public class AtomicRowDelete extends AbstractAtomicRowReadOrWrite
ITPS
object.filter, fromTime, primaryKey, schema, toTime
AUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP
Constructor and Description |
---|
AtomicRowDelete()
De-serialization ctor.
|
AtomicRowDelete(Schema schema,
Object primaryKey,
long fromTime,
long toTime,
long writeTime,
INameFilter filter)
Constructor for an atomic read+delete operation.
|
Modifier and Type | Method and Description |
---|---|
TPS |
apply(IIndex ndx)
An atomic read of the matching properties is performed and those
properties are then deleted atomically.
|
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, getCurrentValue
public AtomicRowDelete()
public AtomicRowDelete(Schema schema, Object primaryKey, long fromTime, long toTime, long writeTime, INameFilter filter)
schema
- The schema governing the property set.primaryKey
- The primary key for the logical row.writeTime
- The timestamp to be assigned to the property values by an
atomic write -or- IRowStoreConstants.AUTO_TIMESTAMP
if a
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.public final boolean isReadOnly()
IReadOnly
true
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.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractAtomicRowReadOrWrite
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractAtomicRowReadOrWrite
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.