public class DiskValues extends Object implements Index
DiskValuesBuilder
class.Constructor and Description |
---|
DiskValues(Data data,
boolean text)
Constructor, initializing the index structure.
|
Modifier and Type | Method and Description |
---|---|
void |
add(TokenObjMap<IntList> map)
Add entries to the index.
|
void |
close()
Closes the index.
|
int |
costs(IndexToken it)
Returns a cost estimation for searching the specified token.
|
void |
delete(TokenObjMap<IntList> map)
Deletes index entries from the index.
|
boolean |
drop()
Drops the index.
|
EntryIterator |
entries(IndexEntries input)
Returns all entries that match the specified token.
|
void |
flush()
Flushes the buffered data.
|
byte[] |
info(MainOptions options)
Returns information on the index structure.
|
void |
init()
Initializes the index.
|
IndexIterator |
iter(IndexToken it)
Returns an iterator for the index results.
|
void |
replace(byte[] old,
byte[] key,
int id)
Replaces an index entry in the index.
|
String |
toString() |
public DiskValues(Data data, boolean text) throws IOException
data
- data referencetext
- value type (texts/attributes)IOException
- I/O Exceptionpublic void init()
Index
public byte[] info(MainOptions options)
Index
public int costs(IndexToken it)
Index
public IndexIterator iter(IndexToken it)
Index
public final boolean drop()
Index
public void close()
Index
public void add(TokenObjMap<IntList> map)
map
- a set of [key, id-list] pairspublic void delete(TokenObjMap<IntList> map)
map
- a set of [key, id-list] pairspublic void replace(byte[] old, byte[] key, int id)
old
- old record keykey
- new record keyid
- record idpublic EntryIterator entries(IndexEntries input)
Index
public final void flush()
Copyright © 2005–2015 BaseX Team. All rights reserved.