public final class UpdatableDiskValues extends DiskValues
DiskValuesBuilder
class.Constructor and Description |
---|
UpdatableDiskValues(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 |
delete(TokenObjMap<IntList> map)
Deletes index entries from the index.
|
protected int |
pre(int id)
Returns the
pre value for the specified id. |
void |
replace(byte[] old,
byte[] key,
int id)
Replaces an index entry in the index.
|
String |
toString() |
public UpdatableDiskValues(Data data, boolean text) throws IOException
data
- data referencetext
- value type (texts/attributes)IOException
- I/O Exceptionprotected int pre(int id)
DiskValues
pre
value for the specified id.id
- id valuepublic void add(TokenObjMap<IntList> map)
DiskValues
add
in class DiskValues
map
- a set of [key, id-list] pairspublic void delete(TokenObjMap<IntList> map)
DiskValues
delete
in class DiskValues
map
- a set of [key, id-list] pairspublic void replace(byte[] old, byte[] key, int id)
DiskValues
replace
in class DiskValues
old
- old record keykey
- new record keyid
- record idpublic String toString()
toString
in class DiskValues
Copyright © 2005–2015 BaseX Team. All rights reserved.