public class MemValues extends TokenSet implements Index
| Modifier and Type | Method and Description |
|---|---|
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)
Remove record from the index.
|
EntryIterator |
entries(byte[] prefix)
Returns all entries that start with the specified prefix.
|
int |
index(byte[] key,
int id)
Indexes the specified keys and values.
|
byte[] |
info()
Returns information on the index structure.
|
IndexIterator |
iter(IndexToken tok)
Returns an iterator for the index results.
|
void |
rehash()
Resizes the hash table.
|
public MemValues(Data d)
d - data instancepublic int index(byte[] key,
int id)
key - keyid - id valuepublic void delete(byte[] key,
int id)
key - record keyid - record idpublic IndexIterator iter(IndexToken tok)
Indexpublic int count(IndexToken it)
Indexpublic EntryIterator entries(byte[] prefix)
Indexpublic byte[] info()
Indexpublic void close()
Index