org.basex.core.proc
Class Optimize

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.Proc
          extended by org.basex.core.proc.Optimize

public final class Optimize
extends Proc

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.

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

Field Summary
 
Fields inherited from class org.basex.core.Proc
DATAREF, flags, STANDARD
 
Constructor Summary
Optimize()
          Default constructor.
 
Method Summary
 String det()
          Returns short information on this process.
 double prog()
          Returns progress information.
 boolean updating(Context ctx)
          Returns if the process performs updates.
 
Methods inherited from class org.basex.core.Proc
exec, exec, execute, execute, info, result, toString
 
Methods inherited from class org.basex.core.Progress
abort, checkStop, detail, progress, progress, stop, tit, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Optimize

public Optimize()
Default constructor.

Method Detail

updating

public boolean updating(Context ctx)
Description copied from class: Proc
Returns if the process performs updates.

Overrides:
updating in class Proc
Parameters:
ctx - context reference
Returns:
result of check

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

det

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

Overrides:
det in class Progress
Returns:
header information