Package org.basex.query.up.primitives.db
Class Put
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.Put
- All Implemented Interfaces:
Comparable<DBUpdate>
Fn:put operation primitive.
- Author:
- BaseX Team 2005-21, BSD License, Lukas Kircher
-
Field Summary
FieldsFields inherited from class org.basex.query.up.primitives.DataUpdate
data -
Constructor Summary
ConstructorsConstructorDescriptionPut(int id, Data data, String path, SerializerOptions sopts, InputInfo info) Constructor. -
Method Summary
Methods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
Field Details
-
id
public final int idNode id of the target node. Target nodes are identified via their ID, as structural changes (delete/insert) during the snapshot lead to PRE value shifts on disk. In addition, deleted/replaced nodes will not be serialized by fn:put as the identity of these nodes is gone - which is easier to track operating on IDs.
-
-
Constructor Details
-
Put
Constructor.- Parameters:
id- target node iddata- target data referencepath- target pathsopts- serializer optionsinfo- input info
-
-
Method Details
-
prepare
public void prepare()Description copied from class:DBUpdatePrepares this operation. -
apply
Description copied from class:DBUpdateApplies this operation.- Specified by:
applyin classDBUpdate- Throws:
QueryException- exception
-
merge
Description copied from class:UpdateMerges two update operations pointing to the same target. -
size
public int size()Description copied from class:UpdateReturns the number of update operations. -
toString
-