org.exist.util.hashtable
Class NamePool

java.lang.Object
  extended byorg.exist.util.hashtable.AbstractHashtable
      extended byorg.exist.util.hashtable.NamePool

public class NamePool
extends AbstractHashtable

Author:
Wolfgang Meier (wolfgang@exist-db.org)

Nested Class Summary
 
Nested classes inherited from class org.exist.util.hashtable.AbstractHashtable
AbstractHashtable.HashtableIterator, AbstractHashtable.HashtableOverflowException
 
Field Summary
 
Fields inherited from class org.exist.util.hashtable.AbstractHashtable
items, maxRehash, tabSize
 
Constructor Summary
NamePool()
           
NamePool(int iSize)
          Create a new symbol table using the specified size.
 
Method Summary
 int add(QName value)
           
 java.lang.Object get(int pos)
           
protected static int hash(java.lang.Object o)
           
protected  int insert(QName value)
           
 java.util.Iterator iterator()
           
protected  int rehash(int iVal)
           
 void remove(QName value)
           
 int size()
           
 java.util.Iterator valueIterator()
           
 
Methods inherited from class org.exist.util.hashtable.AbstractHashtable
getMaxRehash, isPrime, nextPrime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamePool

public NamePool()

NamePool

public NamePool(int iSize)
Create a new symbol table using the specified size. The actual size will be next prime number following iSize * 1.5.

Parameters:
iSize -
Method Detail

size

public int size()
Overrides:
size in class AbstractHashtable

get

public java.lang.Object get(int pos)

add

public int add(QName value)

insert

protected int insert(QName value)
              throws AbstractHashtable.HashtableOverflowException
Throws:
AbstractHashtable.HashtableOverflowException

remove

public void remove(QName value)

rehash

protected int rehash(int iVal)

hash

protected static final int hash(java.lang.Object o)

iterator

public java.util.Iterator iterator()
Specified by:
iterator in class AbstractHashtable

valueIterator

public java.util.Iterator valueIterator()
Specified by:
valueIterator in class AbstractHashtable


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.