org.basex.index
Class IndexBuilder

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.index.IndexBuilder
Direct Known Subclasses:
FTFuzzyBuilder, FTTrieBuilder, ValueBuilder

public abstract class IndexBuilder
extends Progress

This interface defines the functions which are needed for building new index structures.

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

Constructor Summary
IndexBuilder(Data d)
          Constructor.
 
Method Summary
abstract  Index build()
          Builds the index structure and returns an index instance.
 void checkStop()
          Checks if the progress was interrupted; if yes, sends a runtime exception.
 double prog()
          Returns progress information.
 java.lang.String tit()
          Returns short information on this process.
 
Methods inherited from class org.basex.core.Progress
det, detail, progress, progress, stop, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexBuilder

public IndexBuilder(Data d)
Constructor.

Parameters:
d - reference
Method Detail

build

public abstract Index build()
                     throws java.io.IOException
Builds the index structure and returns an index instance.

Returns:
index instance
Throws:
java.io.IOException - IO Exception

checkStop

public void checkStop()
Description copied from class: Progress
Checks if the progress was interrupted; if yes, sends a runtime exception.

Overrides:
checkStop in class Progress

tit

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

Overrides:
tit 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