|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.TokenSet
org.basex.index.MemValues
public final class MemValues
This class provides a main-memory access to attribute values and text contents.
| Constructor Summary | |
|---|---|
MemValues()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the index. |
byte[] |
get(int id)
Returns the key for the specified id. |
IndexIterator |
ids(IndexToken tok)
Returns an iterator for the index results. |
int |
index(byte[] key,
int id)
Indexes the specified keys and values. |
byte[] |
info()
Returns information on the index structure. |
int |
nrIDs(IndexToken it)
Returns the (approximate/estimated) number of ids for the specified token. |
void |
rehash()
Resizes the hash table. |
| Methods inherited from class org.basex.util.TokenSet |
|---|
add, delete, id, key, keys, read, size, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemValues()
| Method Detail |
|---|
public int index(byte[] key,
int id)
key - keyid - id value
public byte[] get(int id)
id - id
public IndexIterator ids(IndexToken tok)
Index
ids in interface Indextok - token to be found
public int nrIDs(IndexToken it)
Index
nrIDs in interface Indexit - token to be found
public byte[] info()
Index
info in interface Indexpublic void close()
Index
close in interface Indexpublic void rehash()
TokenSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||