org.basex.index.value
Class ValueIndexBuilder

java.lang.Object
  extended by org.basex.core.Proc
      extended by org.basex.index.IndexBuilder
          extended by 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:

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.index.IndexBuilder
count, data, pre, size, splits, splitSize
 
Fields inherited from class org.basex.core.Proc
listen, updating
 
Constructor Summary
ValueIndexBuilder(Data d, boolean txt)
          Constructor.
 
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.index.IndexBuilder
check, finishIndex, finishSplit, prog, split, tit
 
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
 

Constructor Detail

ValueIndexBuilder

public ValueIndexBuilder(Data d,
                         boolean txt)
Constructor.

Parameters:
d - data reference
txt - value type (text/attribute)
Method Detail

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