|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.ACreate
org.basex.core.cmd.Optimize
public final class Optimize
Evaluates the 'optimize' command and optimizes the data structures of the currently opened database. Indexes and statistics are refreshed, which is especially helpful after updates.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
Optimize()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
det()
Returns short information on this process. |
static void |
optimize(Data data,
boolean rebuild,
Optimize cmd)
Optimizes the structures of a database. |
double |
prog()
Returns a progress value (0 - 1). |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
boolean |
stoppable()
Returns true if this command can be stopped. |
Methods inherited from class org.basex.core.cmd.ACreate |
---|
create, databases, drop, newData, sourceToIO, supportsProg |
Methods inherited from class org.basex.core.Command |
---|
build, close, databases, error, execute, execute, getOption, getOption, info, info, result, run, run, setInput, setInput, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Optimize()
Method Detail |
---|
protected boolean run()
Command
run
in class Command
public double prog()
Proc
prog
in class Proc
public boolean stoppable()
Command
stoppable
in class ACreate
public java.lang.String det()
Proc
det
in class Proc
public static void optimize(Data data, boolean rebuild, Optimize cmd) throws java.io.IOException
data
- datarebuild
- rebuild all index structurescmd
- calling command instance (can be null
)
java.io.IOException
- I/O Exception during index rebuild
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |