Package org.basex.index.value
Class DiskValuesBuilder
java.lang.Object
org.basex.core.jobs.Job
org.basex.index.IndexBuilder
org.basex.index.ValuesBuilder
org.basex.index.value.DiskValuesBuilder
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 theNumformat: [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.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.index.ValuesBuilder
tokenize -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.index.IndexBuilder
clean, detailedInfo, finishIndex, indexEntry, progressInfo, shortInfo, splitRequired
-
Constructor Details
-
DiskValuesBuilder
Constructor.- Parameters:
data- data referencetype- index type
-
-
Method Details
-
build
Description copied from class:IndexBuilderBuilds the index structure and returns an index instance.- Specified by:
buildin classIndexBuilder- Returns:
- index instance
- Throws:
IOException- I/O Exception
-
check
Description copied from class:IndexBuilderChecks if the command was interrupted, and prints some debug output.- Overrides:
checkin classIndexBuilder- Throws:
IOException- I/O Exception
-