public class AtomicRowWriteRead extends AbstractAtomicRowReadOrWrite
ITPS object.filter, fromTime, primaryKey, schema, toTimeAUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP| Constructor and Description |
|---|
AtomicRowWriteRead()
De-serialization ctor.
|
AtomicRowWriteRead(Schema schema,
Map<String,Object> propertySet,
long fromTime,
long toTime,
long writeTime,
INameFilter filter,
IPrecondition precondition)
Constructor for an atomic write/read operation.
|
| Modifier and Type | Method and Description |
|---|---|
TPS |
apply(IIndex ndx)
If a property set was specified then do an atomic write of the property
set.
|
protected void |
atomicWrite(IIndex ndx,
Schema schema,
Object primaryKey,
Map<String,Object> propertySet,
long writeTime) |
protected long |
inc(IIndex ndx,
Schema schema,
Object primaryKey,
long timestamp,
String col)
Return the increment of the named property value.
|
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
atomicRead, atomicRead, getCurrentValuepublic AtomicRowWriteRead()
public AtomicRowWriteRead(Schema schema, Map<String,Object> propertySet, long fromTime, long toTime, long writeTime, INameFilter filter, IPrecondition precondition)
schema - The schema governing the property set.propertySet - The property set. An entry bound to a null
value will cause the corresponding binding to be "deleted" in
the index.fromTime - During pre-condition and post-condition reads, the
first timestamp for which timestamped property values will be
accepted.toTime - During pre-condition and post-condition reads, the
first timestamp for which timestamped property values will NOT
be accepted -or- IRowStoreConstants.CURRENT_ROW to
accept only the most current binding whose timestamp is GTE
fromTime.writeTime - The timestamp to be assigned to the property values by an
atomic write -or- IRowStoreConstants.AUTO_TIMESTAMP if the
timestamp will be assigned by the server -or-
IRowStoreConstants.AUTO_TIMESTAMP_UNIQUE if a unique
timestamp will be assigned by the server.filter - An optional filter used to restrict the property values that
will be returned.precondition - public final boolean isReadOnly()
IReadOnlytrue iff the procedure asserts that it will not
write on the index. When true, the procedure may be run
against a view of the index that is read-only or which allows concurrent
processes to read on the same index object. When false the
procedure will be run against a mutable view of the index (assuming that
the procedure is executed in a context that has access to a mutable index
view).public TPS apply(IIndex ndx)
ndx - The index.TPS instance
-or- null iff there is no data for the
primaryKey.protected void atomicWrite(IIndex ndx, Schema schema, Object primaryKey, Map<String,Object> propertySet, long writeTime)
protected long inc(IIndex ndx, Schema schema, Object primaryKey, long timestamp, String col)
ValueType.Integer and
ValueType.Long.UnsupportedOperationException - if a property has an auto-increment type and the
ValueType of the property does not support
auto-increment.UnsupportedOperationException - if there is no successor for the property value.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractAtomicRowReadOrWriteIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractAtomicRowReadOrWriteIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.