public abstract class IndexBuilder extends Proc
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
IndexBuilder(Data data,
int max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
tit()
Returns short information on this process.
|
abort, checkStop, databases, det, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title
protected final Data data
protected final int size
protected int pre
protected long count
protected int splits
protected IndexBuilder(Data data, int max)
data
- referencemax
- maximum number of operations per partial indexpublic abstract Index build() throws IOException
IOException
- I/O Exceptionprotected final void check()
protected final boolean split() throws IOException
IOException
- I/O Exceptionprotected final void finishSplit()
protected final void finishIndex(Performance perf)
perf
- performancepublic final String tit()
Proc
Copyright © 2005–2015 BaseX Team. All rights reserved.