|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.Operation
org.basex.query.up.primitives.BasicOperation
public abstract class BasicOperation
Basic task that operates on the database but is not an update primitive. This task
is carried out after all updates on the database have been made effective in the order
of the BasicOperation.TYPE
. Hence changes made during a snapshot will be reflected by this
task.
Nested Class Summary | |
---|---|
static class |
BasicOperation.TYPE
Basic Operation types. |
Field Summary | |
---|---|
BasicOperation.TYPE |
type
Type of this operation. |
Fields inherited from class org.basex.query.up.primitives.Operation |
---|
data, info |
Constructor Summary | |
---|---|
BasicOperation(BasicOperation.TYPE t,
Data d,
InputInfo ii)
Constructor. |
Method Summary | |
---|---|
abstract void |
apply()
Applies this operation. |
int |
compareTo(BasicOperation o)
|
Data |
getData()
Returns the target data reference. |
InputInfo |
getInfo()
Input info. |
DBNode |
getTargetNode()
Returns the target node of this operation. |
abstract void |
merge(BasicOperation o)
Merges this operation with the given one. |
abstract void |
prepare(MemData tmp)
Prepares this operation. |
Methods inherited from class org.basex.query.up.primitives.Operation |
---|
size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final BasicOperation.TYPE type
Constructor Detail |
---|
public BasicOperation(BasicOperation.TYPE t, Data d, InputInfo ii)
t
- type of this operationd
- target data referenceii
- input infoMethod Detail |
---|
public final int compareTo(BasicOperation o)
compareTo
in interface java.lang.Comparable<BasicOperation>
public DBNode getTargetNode()
Operation
getTargetNode
in class Operation
public final InputInfo getInfo()
Operation
getInfo
in class Operation
public final Data getData()
Operation
getData
in class Operation
public abstract void merge(BasicOperation o) throws QueryException
o
- operation to merge into this one
QueryException
- exceptionpublic abstract void apply() throws QueryException
QueryException
- exceptionpublic abstract void prepare(MemData tmp) throws QueryException
tmp
- temporary mem data
QueryException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |