public final class ValueBuilder extends IndexBuilder
This class builds an index for attribute values and text contents in a tree structure and stores the result to disk.
The data is stored on disk in the following format:
DATATXT/ATV + 'l': contains the index values, which are dense id
lists to all text nodes/attribute values, stored in the Num format:
[size0, id1, id2, ...]. The number of index keys is stored in the first 4
bytes of the file.DATATXT/ATV + 'r': contains 5-byte references to the id lists
for all keys. To save space, the keys itself are not stored in the index
structure. Instead, they can be found by following the id references to
the main table.
| Constructor and Description |
|---|
ValueBuilder(Data d,
boolean txt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts a failed or interrupted progress.
|
DiskValues |
build()
Builds the index structure and returns an index instance.
|
protected java.lang.String |
det()
Returns short information on this process.
|
check, memFull, prog, titcheckStop, detail, progress, progress, startTimeout, stop, stopTimeout, titlepublic ValueBuilder(Data d, boolean txt)
d - data referencetxt - value type (text/attribute)public DiskValues build() throws java.io.IOException
IndexBuilderbuild in class IndexBuilderjava.io.IOException - I/O Exceptionpublic void abort()
Progress