Package org.basex.query.up.primitives.db
Class DBOptimize
- java.lang.Object
-
- org.basex.query.up.primitives.Update
-
- org.basex.query.up.primitives.DataUpdate
-
- org.basex.query.up.primitives.db.DBUpdate
-
- org.basex.query.up.primitives.db.DBOptimize
-
- All Implemented Interfaces:
Comparable<DBUpdate>
public final class DBOptimize extends DBUpdate
Update primitive for the optimize function.- Author:
- BaseX Team 2005-24, BSD License, Dimitar Popov
-
-
Field Summary
-
Fields inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
Constructor Summary
Constructors Constructor Description DBOptimize(Data data, boolean all, HashMap<String,String> qopts, QueryContext qc, InputInfo info)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Applies this operation.void
merge(Update update)
Merges two update operations pointing to the same target.void
prepare()
Prepares this operation.int
size()
Returns the number of update operations.-
Methods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
-
-
Constructor Detail
-
DBOptimize
public DBOptimize(Data data, boolean all, HashMap<String,String> qopts, QueryContext qc, InputInfo info) throws QueryException
Constructor.- Parameters:
data
- dataall
- optimize all database structures flagqopts
- query optionsqc
- database contextinfo
- input info (can benull
)- Throws:
QueryException
- query exception
-
-
Method Detail
-
prepare
public void prepare()
Description copied from class:DBUpdate
Prepares this operation.
-
apply
public void apply() throws QueryException
Description copied from class:DBUpdate
Applies this operation.- Specified by:
apply
in classDBUpdate
- Throws:
QueryException
- exception
-
merge
public void merge(Update update)
Description copied from class:Update
Merges two update operations pointing to the same target.
-
-