public abstract class AbstractAtomicRowReadOrWrite extends AbstractIndexProcedure<TPS> implements ISimpleIndexProcedure<TPS>, IRowStoreConstants, Externalizable
AtomicRowRead and AtomicRowWriteRead.| Modifier and Type | Field and Description |
|---|---|
protected INameFilter |
filter |
protected long |
fromTime |
protected Object |
primaryKey |
protected Schema |
schema |
protected long |
toTime |
AUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAtomicRowReadOrWrite()
De-serialization ctor.
|
protected |
AbstractAtomicRowReadOrWrite(Schema schema,
Object primaryKey,
long fromTime,
long toTime,
INameFilter filter)
Constructor for an atomic write/read operation.
|
| Modifier and Type | Method and Description |
|---|---|
protected static TPS |
atomicRead(IIndex ndx,
byte[] fromKey,
Schema schema,
long fromTime,
long toTime,
INameFilter filter,
TPS tps)
Alternative form useful when you have the raw key (unsigned byte[])
rather than a primary key (application object).
|
protected static TPS |
atomicRead(IIndex ndx,
Schema schema,
Object primaryKey,
long fromTime,
long toTime,
long writeTime,
INameFilter filter)
Atomic read on the index.
|
protected static ITPV |
getCurrentValue(IIndex ndx,
Schema schema,
Object primaryKey,
String name)
Return the current binding for the named property.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyisReadOnlyprotected Schema schema
protected Object primaryKey
protected long fromTime
protected long toTime
protected INameFilter filter
protected AbstractAtomicRowReadOrWrite()
protected AbstractAtomicRowReadOrWrite(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 - The first timestamp for which timestamped property values will
be accepted.toTime - 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.protected static TPS atomicRead(IIndex ndx, Schema schema, Object primaryKey, long fromTime, long toTime, long writeTime, INameFilter filter)
ndx - The index on which the data are stored.schema - The schema governing the row.primaryKey - The primary key identifies the logical row of interest.fromTime - The first timestamp for which timestamped property values will
be accepted.toTime - 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 resolved timestamp for an atomic write operation -or- ZERO
(0L) IFF the operation is NOT a write.filter - An optional filter used to select the values for property
names accepted by that filter.null iff
there is no data for the primaryKey.protected static TPS atomicRead(IIndex ndx, byte[] fromKey, Schema schema, long fromTime, long toTime, INameFilter filter, TPS tps)
tps - fromKey - ndx - schema - fromTime - toTime - filter - tps - The object into which the timestamped property values will be
read.TPS -or- null iff there is no data for
the logical row which satisified the various criteria (the
schema, fromTime, toTime, and filter).protected static ITPV getCurrentValue(IIndex ndx, Schema schema, Object primaryKey, String name)
schema - The schema.primaryKey - The primary key.name - The property name.null iff there is no
current binding.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.