org.basex.query.up.primitives
Class DBOptimize
java.lang.Object
org.basex.query.up.primitives.Operation
org.basex.query.up.primitives.BasicOperation
org.basex.query.up.primitives.DBNew
org.basex.query.up.primitives.DBOptimize
- All Implemented Interfaces:
- java.lang.Comparable<BasicOperation>
public final class DBOptimize
- extends DBNew
Update primitive for the optimize function.
- Author:
- BaseX Team 2005-12, BSD License, Dimitar Popov
Method Summary |
void |
apply()
Applies this operation. |
void |
merge(BasicOperation o)
Merges this operation with the given one. |
void |
prepare(MemData tmp)
Prepares this operation. |
int |
size()
Returns the total number of node operations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBOptimize
public DBOptimize(Data dt,
QueryContext ctx,
boolean al,
TokenMap map,
InputInfo ii)
throws QueryException
- Constructor.
- Parameters:
dt
- datactx
- database contextal
- optimize all database structures flagmap
- index optionsii
- input info
- Throws:
QueryException
- query exception
merge
public void merge(BasicOperation o)
- Description copied from class:
BasicOperation
- Merges this operation with the given one.
- Specified by:
merge
in class BasicOperation
- Parameters:
o
- operation to merge into this one
prepare
public void prepare(MemData tmp)
throws QueryException
- Description copied from class:
BasicOperation
- Prepares this operation.
- Specified by:
prepare
in class BasicOperation
- Parameters:
tmp
- temporary mem data
- Throws:
QueryException
- exception
apply
public void apply()
throws QueryException
- Description copied from class:
BasicOperation
- Applies this operation.
- Specified by:
apply
in class BasicOperation
- Throws:
QueryException
- exception
size
public int size()
- Description copied from class:
Operation
- Returns the total number of node operations.
- Specified by:
size
in class Operation
- Returns:
- number of updates