Class ReplaceDoc
java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.DataUpdate
org.basex.query.up.primitives.node.NodeUpdate
org.basex.query.up.primitives.node.ReplaceDoc
Replace document primitive.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.query.up.primitives.node.NodeUpdate
preFields inherited from class org.basex.query.up.primitives.DataUpdate
data -
Constructor Summary
ConstructorsConstructorDescriptionReplaceDoc(int pre, Data data, NewInput input, Options opts, QueryContext qc, InputInfo info) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the atomic update operations for this update primitive to the given list.voidMerges two update operations pointing to the same target.voidprepare(MemData memData, QueryContext qc) Prepares this update primitive before execution.intsize()Returns the number of update operations.voidUpdates the name pool, which is used to find duplicate attributes and namespace conflicts.Methods inherited from class org.basex.query.up.primitives.node.NodeUpdate
node, substituteMethods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
Constructor Details
-
ReplaceDoc
public ReplaceDoc(int pre, Data data, NewInput input, Options opts, QueryContext qc, InputInfo info) throws QueryException Constructor.- Parameters:
pre- target node pre valuedata- target data instanceinput- new documentopts- optionsqc- query contextinfo- input info- Throws:
QueryException- query exception
-
-
Method Details
-
prepare
Description copied from class:NodeUpdatePrepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.- Specified by:
preparein classNodeUpdate- Parameters:
memData- temporary data instanceqc- query context- Throws:
QueryException- query exception
-
merge
Description copied from class:UpdateMerges two update operations pointing to the same target.- Specified by:
mergein classUpdate- Parameters:
update- operation to merge with- Throws:
QueryException- exception
-
update
Description copied from class:NodeUpdateUpdates the name pool, which is used to find duplicate attributes and namespace conflicts.- Specified by:
updatein classNodeUpdate- Parameters:
pool- name pool
-
addAtomics
Description copied from class:NodeUpdateAdds the atomic update operations for this update primitive to the given list.- Specified by:
addAtomicsin classNodeUpdate- Parameters:
auc- list of atomic updates
-
size
public int size()Description copied from class:UpdateReturns the number of update operations.
-