|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.index.IndexBuilder
public abstract class IndexBuilder
This interface defines the functions which are needed for building new index structures.
Field Summary | |
---|---|
protected long |
count
Total number of index operations (may get pretty large). |
protected Data |
data
Data reference. |
protected int |
pre
Current pre value. |
protected int |
size
Total parsing value. |
protected int |
splits
Number of partial index structures. |
protected int |
splitSize
Number of index operations to perform before writing a partial index to disk. |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
protected |
IndexBuilder(Data d,
int max)
Constructor. |
Method Summary | |
---|---|
abstract Index |
build()
Builds the index structure and returns an index instance. |
protected void |
check()
Checks if the command was interrupted, and prints some debug output. |
protected void |
finishIndex(Performance perf)
Prints some final debugging information. |
protected void |
finishSplit()
Performs memory cleanup after writing partial memory, if necessary. |
double |
prog()
Returns a progress value (0 - 1). |
protected boolean |
split()
Decides whether in-memory temporary index structures are so large that we must flush them to disk before continuing. |
java.lang.String |
tit()
Returns short information on this process. |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, databases, det, 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 |
Field Detail |
---|
protected final Data data
protected final int size
protected final int splitSize
protected int pre
protected long count
protected int splits
Constructor Detail |
---|
protected IndexBuilder(Data d, int max)
d
- referencemax
- maximum number of operations per partial indexMethod Detail |
---|
public abstract Index build() throws java.io.IOException
java.io.IOException
- I/O Exceptionprotected final void check()
protected final boolean split() throws java.io.IOException
java.io.IOException
- I/O Exceptionprotected final void finishSplit()
protected final void finishIndex(Performance perf)
perf
- performancepublic final java.lang.String tit()
Proc
tit
in class Proc
public final double prog()
Proc
prog
in class Proc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |