M
- type used to represent stored records@API(value=MAINTAINED) public abstract class FDBQueriedRecord<M extends Message> extends Object implements FDBRecord<M>
Constructor and Description |
---|
FDBQueriedRecord() |
Modifier and Type | Method and Description |
---|---|
static <M extends Message> |
covered(Index index,
IndexEntry indexEntry,
Tuple primaryKey,
RecordType recordType,
M record) |
abstract Index |
getIndex()
Get the index, if any, that produced this query result record.
|
abstract IndexEntry |
getIndexEntry()
Get the index entry, if any, that produced this query result record.
|
abstract FDBStoredRecord<M> |
getStoredRecord()
Get the stored record, if any, that produced this query result record.
|
static <M extends Message> |
indexed(FDBIndexedRecord<M> indexed) |
static <M extends Message> |
stored(FDBStoredRecord<M> stored) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrimaryKey, getRecord, getRecordType, getVersion, hasVersion
@Nullable public abstract FDBStoredRecord<M> getStoredRecord()
null
if this query result record was assembled without loading the whole record,
for example, from a covering index.@Nullable public abstract Index getIndex()
null
if this query result record was gotten by some other means than an index scan.@Nullable public abstract IndexEntry getIndexEntry()
null
if this query result record was gotten by direct lookup or scan and not an index.public static <M extends Message> FDBQueriedRecord<M> indexed(@Nonnull FDBIndexedRecord<M> indexed)
public static <M extends Message> FDBQueriedRecord<M> stored(@Nonnull FDBStoredRecord<M> stored)
public static <M extends Message> FDBQueriedRecord<M> covered(@Nonnull Index index, @Nonnull IndexEntry indexEntry, @Nonnull Tuple primaryKey, @Nonnull RecordType recordType, @Nonnull M record)