org.basex.index
Class ValueBuilder

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.index.ValueBuilder
All Implemented Interfaces:
IndexBuilder

public final class ValueBuilder
extends Progress
implements IndexBuilder

This main-memory based class builds an index for attribute values and text contents in a tree structure and stores the result to disk.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
ValueBuilder(boolean txt)
          Constructor.
 
Method Summary
 Values build(Data data)
          Builds the index structure and returns an index instance.
 java.lang.String det()
          Returns short information on this process.
 double prog()
          Returns progress information.
 java.lang.String tit()
          Returns short information on this process.
 
Methods inherited from class org.basex.core.Progress
checkStop, detail, progress, progress, stop, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBuilder

public ValueBuilder(boolean txt)
Constructor.

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

build

public Values build(Data data)
             throws java.io.IOException
Builds the index structure and returns an index instance.

Specified by:
build in interface IndexBuilder
Parameters:
data - data reference
Returns:
index instance
Throws:
java.io.IOException - IO Exception

tit

public java.lang.String tit()
Description copied from class: Progress
Returns short information on this process. Can be overwritten to give more detailed information.

Returns:
header information

det

public java.lang.String det()
Description copied from class: Progress
Returns short information on this process.

Overrides:
det in class Progress
Returns:
header information

prog

public double prog()
Description copied from class: Progress
Returns progress information. Can be overwritten to give more detailed information.

Overrides:
prog in class Progress
Returns:
header information