|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.index.value.DiskValues
org.basex.index.value.UpdatableDiskValues
public final class UpdatableDiskValues
This class provides access to attribute values and text contents stored on
disk. The data structure is described in the ValueIndexBuilder
class.
Field Summary |
---|
Fields inherited from class org.basex.index.value.DiskValues |
---|
cache, ctext, data, idxl, idxr, monitor, size, text |
Constructor Summary | |
---|---|
UpdatableDiskValues(Data d,
boolean txt)
Constructor, initializing the index structure. |
Method Summary | |
---|---|
void |
delete(TokenObjMap<IntList> m)
Delete records from the index. |
void |
flush()
Flushes the buffered data. |
void |
index(TokenObjMap<IntList> m)
Add entries to the index. |
protected int |
pre(int id)
Returns the pre value for the specified id. |
void |
replace(byte[] o,
byte[] n,
int id)
Remove record from the index. |
Methods inherited from class org.basex.index.value.DiskValues |
---|
close, count, entries, get, get, idRange, info, init, iter, iter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdatableDiskValues(Data d, boolean txt) throws java.io.IOException
d
- data referencetxt
- value type (texts/attributes)
java.io.IOException
- I/O ExceptionMethod Detail |
---|
protected int pre(int id)
DiskValues
pre
value for the specified id.
pre
in class DiskValues
id
- id value
public void flush()
DiskValues
flush
in class DiskValues
public void index(TokenObjMap<IntList> m)
DiskValues
index
in class DiskValues
m
- a set of public void delete(TokenObjMap<IntList> m)
DiskValues
delete
in class DiskValues
m
- a set of public void replace(byte[] o, byte[] n, int id)
DiskValues
replace
in class DiskValues
o
- old record keyn
- new record keyid
- record id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |