public final class DiskValuesBuilder 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 |
---|
DiskValuesBuilder(Data data,
MainOptions options,
boolean text)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
abort()
Aborts a failed or interrupted process.
|
DiskValues |
build()
Builds the index structure and returns an index instance.
|
protected String |
det()
Returns short information on this process.
|
check, finishIndex, finishSplit, prog, split, tit
checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title
public DiskValuesBuilder(Data data, MainOptions options, boolean text)
data
- data referenceoptions
- main optionstext
- value type (text/attribute)public DiskValues build() throws IOException
IndexBuilder
build
in class IndexBuilder
IOException
- I/O Exceptionprotected void abort()
Proc
Copyright © 2005–2015 BaseX Team. All rights reserved.