public final class UpdatableDiskValues extends DiskValues
ValueBuilder class.| Constructor and Description |
|---|
UpdatableDiskValues(Data d,
boolean txt)
Constructor, initializing the index structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(TokenObjMap<IntList> m)
Delete records from the index.
|
protected int |
firstpre(long pos)
Gets the first pre value from the id-list at the specified position.
|
void |
flush()
Flushes the buffered data.
|
protected IndexIterator |
idRange(RangeToken tok)
Performs a range query.
|
void |
index(TokenObjMap<IntList> m)
Add entries to the index.
|
protected IndexIterator |
iter(int s,
long ps)
Iterator method.
|
void |
replace(byte[] o,
byte[] n,
int id)
Remove record from the index.
|
public UpdatableDiskValues(Data d, boolean txt) throws java.io.IOException
d - data referencetxt - value type (texts/attributes)java.io.IOException - I/O Exceptionprotected IndexIterator iter(int s, long ps)
DiskValuess - number of valuesps - offsetprotected IndexIterator idRange(RangeToken tok)
DiskValuestok - index termprotected int firstpre(long pos)
DiskValuespos - position of the id-list in DiskValues.idxlpublic void flush()
throws java.io.IOException
DiskValuesflush in class DiskValuesjava.io.IOException - I/O exceptionpublic void index(TokenObjMap<IntList> m)
DiskValuesindex in class DiskValuesm - a set of public void delete(TokenObjMap<IntList> m)
DiskValuesdelete in class DiskValuesm - a set of public void replace(byte[] o,
byte[] n,
int id)
DiskValuesreplace in class DiskValueso - old record keyn - new record keyid - record id