public class AtomicRowRead extends AbstractAtomicRowReadOrWrite
Schema
and
primary key.filter, fromTime, primaryKey, schema, toTime
AUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP
Constructor and Description |
---|
AtomicRowRead()
De-serialization ctor.
|
AtomicRowRead(Schema schema,
Object primaryKey,
long fromTime,
long toTime,
INameFilter filter)
Constructor for an atomic read operation.
|
Modifier and Type | Method and Description |
---|---|
TPS |
apply(IIndex ndx)
Atomic read.
|
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
atomicRead, atomicRead, getCurrentValue, readExternal, writeExternal
public AtomicRowRead()
public AtomicRowRead(Schema schema, Object primaryKey, long fromTime, long toTime, INameFilter filter)
schema
- The schema governing the property set.primaryKey
- The value of the primary key (identifies the logical row
to be read).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.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.TPS
instance containing the selected data from the
logical row identified by the AbstractAtomicRowReadOrWrite.primaryKey
-or-
null
iff the primary key was NOT FOUND in the
index. I.e., iff there are NO entries for that primary key
regardless of whether or not they were selected.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.