|
||||||||||
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.index.value.MemValues
public class MemValues
This class provides a main memory access to attribute values and text contents.
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 | |
---|---|
MemValues(Data d)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the index. |
int |
count(IndexToken it)
Returns the (approximate/estimated) number of hits for the specified token. |
void |
delete(byte[] key,
int id)
Removes a record from the index. |
EntryIterator |
entries(IndexEntries entries)
Returns all entries that match the specified token. |
byte[] |
info()
Returns information on the index structure. |
void |
init()
Initializes the index. |
IndexIterator |
iter(IndexToken tok)
Returns an iterator for the index results. |
int |
put(byte[] key,
int id)
Stores the specified key and id. |
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 MemValues(Data d)
d
- data instanceMethod Detail |
---|
public void init()
Index
init
in interface Index
public IndexIterator iter(IndexToken tok)
Index
iter
in interface Index
tok
- token to be found
public int count(IndexToken it)
Index
count
in interface Index
it
- token to be found
public EntryIterator entries(IndexEntries entries)
Index
entries
in interface Index
entries
- index entries
public byte[] info()
Index
info
in interface Index
public void close()
Index
close
in interface Index
public void rehash(int s)
ASet
rehash
in class TokenSet
s
- new hash sizepublic final int put(byte[] key, int id)
key
- keyid
- id value
public void delete(byte[] key, int id)
key
- record keyid
- record id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |