public final class MemValues extends ValueIndex
data, type
Constructor and Description |
---|
MemValues(Data data,
IndexType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ValueCache cache)
Add entries to the index.
|
void |
close()
Closes the index.
|
IndexCosts |
costs(IndexSearch search)
Computes costs for performing the specified search.
|
void |
delete(ValueCache cache)
Deletes entries from the index.
|
boolean |
drop()
Drops the index.
|
EntryIterator |
entries(IndexEntries entries)
Returns all entries that match the specified token.
|
void |
flush()
Flushes the buffered data.
|
byte[] |
info(MainOptions options)
Returns information on the index structure.
|
IndexIterator |
iter(IndexSearch search)
Returns an iterator for the index results.
|
int |
size()
Returns the number of index entries.
|
String |
toString() |
String |
toString(boolean all)
Returns a string representation of the index structure.
|
public IndexIterator iter(IndexSearch search)
Index
search
- index search definitionpublic IndexCosts costs(IndexSearch search)
Index
search
- index search definitionpublic EntryIterator entries(IndexEntries entries)
Index
entries
- index entriespublic byte[] info(MainOptions options)
Index
options
- main optionspublic int size()
ValueIndex
size
in class ValueIndex
public boolean drop()
Index
public void add(ValueCache cache)
ValueIndex
add
in class ValueIndex
cache
- value cache with [key, id-list] pairspublic void delete(ValueCache cache)
ValueIndex
delete
in class ValueIndex
cache
- value cache with [key, id-list] pairspublic void flush()
ValueIndex
flush
in class ValueIndex
public void close()
Index
public String toString(boolean all)
all
- include database contents in the representation. During updates, database lookups
must be avoided, as the data structures will be inconsistentCopyright © 2005–2023 BaseX Team. All rights reserved.