org.basex.index.value
Class ValueIndexBuilder
java.lang.Object
org.basex.core.Proc
org.basex.index.IndexBuilder
org.basex.index.value.ValueIndexBuilder
public final class ValueIndexBuilder
- 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.
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Method Summary |
void |
abort()
Aborts a failed or interrupted process. |
DiskValues |
build()
Builds the index structure and returns an index instance. |
protected java.lang.String |
det()
Returns short information on this process. |
Methods inherited from class org.basex.core.Proc |
checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueIndexBuilder
public ValueIndexBuilder(Data d,
boolean txt)
- Constructor.
- Parameters:
d
- data referencetxt
- value type (text/attribute)
build
public DiskValues build()
throws java.io.IOException
- Description copied from class:
IndexBuilder
- Builds the index structure and returns an index instance.
- Specified by:
build
in class IndexBuilder
- Returns:
- index instance
- Throws:
java.io.IOException
- I/O Exception
abort
public void abort()
- Description copied from class:
Proc
- Aborts a failed or interrupted process.
- Overrides:
abort
in class Proc
det
protected java.lang.String det()
- Description copied from class:
Proc
- Returns short information on this process.
- Overrides:
det
in class Proc
- Returns:
- header information