|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.hash.ASet
org.basex.util.hash.TokenSet
org.basex.query.util.QNmCache
public final class QNmCache
This class caches frequently used QNames.
Field Summary |
---|
Fields inherited from class org.basex.util.hash.TokenSet |
---|
keys |
Fields inherited from class org.basex.util.hash.ASet |
---|
bucket, next, size |
Constructor Summary | |
---|---|
QNmCache()
|
Method Summary | |
---|---|
QNm |
index(byte[] prefix,
byte[] local,
byte[] uri)
Creates a QName for the specified key, or returns an existing one. |
protected void |
rehash(int s)
Rehashes all entries. |
Methods inherited from class org.basex.util.hash.TokenSet |
---|
add, add, clear, contains, delete, hash, id, iterator, key, put, read, toString, write |
Methods inherited from class org.basex.util.hash.ASet |
---|
checkSize, isEmpty, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QNmCache()
Method Detail |
---|
public QNm index(byte[] prefix, byte[] local, byte[] uri)
prefix
- prefix (may be null)
local
- local nameuri
- namespace uri (may be null)
protected void rehash(int s)
ASet
rehash
in class TokenSet
s
- new hash size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |