public final class ReplaceDoc extends NodeUpdate
pre
data
Constructor and Description |
---|
ReplaceDoc(int pre,
Data data,
NewInput input,
Options opts,
QueryContext qc,
InputInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAtomics(AtomicUpdateCache auc)
Adds the atomic update operations for this update primitive to the given list.
|
void |
merge(Update update)
Merges two update primitives, as they have the same target node.
|
void |
prepare(MemData tmp)
Prepares this update primitive before execution.
|
int |
size()
Returns the number of update operations.
|
void |
update(NamePool pool)
Updates the name pool, which is used to find duplicate attributes
and namespace conflicts.
|
node, substitute
data
public ReplaceDoc(int pre, Data data, NewInput input, Options opts, QueryContext qc, InputInfo info) throws QueryException
pre
- target node pre valuedata
- target data instanceinput
- new documentopts
- optionsqc
- query contextinfo
- input infoQueryException
- query exceptionpublic void prepare(MemData tmp) throws QueryException
NodeUpdate
prepare
in class NodeUpdate
tmp
- temporary databaseQueryException
- query exceptionpublic void merge(Update update) throws QueryException
NodeUpdate
merge
in class NodeUpdate
update
- primitive to merge withQueryException
- exceptionpublic void update(NamePool pool)
NodeUpdate
update
in class NodeUpdate
pool
- name poolpublic void addAtomics(AtomicUpdateCache auc)
NodeUpdate
addAtomics
in class NodeUpdate
auc
- list of atomic updatesCopyright © 2005–2015 BaseX Team. All rights reserved.