|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.sparse.AbstractAtomicRowReadOrWrite
public abstract class AbstractAtomicRowReadOrWrite
Abstract class implements the atomic read operation. However, it does NOT
declare itself to be a read-only operation since this class is extended by
both AtomicRowRead and AtomicRowWriteRead.
| Field Summary | |
|---|---|
protected static boolean |
DEBUG
True iff the log level is DEBUG or less. |
protected INameFilter |
filter
|
protected long |
fromTime
|
protected static boolean |
INFO
True iff the log level is INFO or less. |
protected static org.apache.log4j.Logger |
log
|
protected Object |
primaryKey
|
protected Schema |
schema
|
protected long |
toTime
|
| Fields inherited from interface com.bigdata.sparse.IRowStoreConstants |
|---|
AUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP |
| Constructor Summary | |
|---|---|
protected |
AbstractAtomicRowReadOrWrite()
De-serialization ctor. |
protected |
AbstractAtomicRowReadOrWrite(Schema schema,
Object primaryKey,
long fromTime,
long toTime,
INameFilter filter)
Constructor for an atomic write/read operation. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.bigdata.btree.proc.AbstractIndexProcedure |
|---|
getKeyBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bigdata.btree.proc.IIndexProcedure |
|---|
apply, isReadOnly |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected static final boolean INFO
log level is INFO or less.
protected static final boolean DEBUG
log level is DEBUG or less.
protected Schema schema
protected Object primaryKey
protected long fromTime
protected long toTime
protected INameFilter filter
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||