M
- type used to represent stored records@API(value=MAINTAINED) public class FDBIndexedRecord<M extends Message> extends Object implements FDBRecord<M>, FDBStoredSizes
Constructor and Description |
---|
FDBIndexedRecord(IndexEntry indexEntry,
FDBStoredRecord<M> storedRecord)
Wrap a stored record with an index entry that pointed to it.
|
FDBIndexedRecord(Index index,
IndexEntry indexEntry,
FDBStoredRecord<M> storedRecord)
Deprecated.
use
FDBIndexedRecord(IndexEntry, FDBStoredRecord) instead |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Index |
getIndex()
Get the index for this record.
|
IndexEntry |
getIndexEntry()
Get the index entry for this record.
|
int |
getKeyCount()
Get the number of keys used to store this record.
|
int |
getKeySize()
Get the size in bytes of all keys used to store this record.
|
Tuple |
getPrimaryKey()
Get the primary key for this record.
|
M |
getRecord()
Get the Protobuf message form of this record.
|
RecordType |
getRecordType()
Get the record type for this record.
|
FDBStoredRecord<M> |
getStoredRecord() |
int |
getValueSize()
Get the size in bytes of all values used to store this record.
|
FDBRecordVersion |
getVersion()
Get the
FDBRecordVersion associated with this record (or null ). |
int |
hashCode() |
boolean |
hasStoredRecord()
When scanning for orphaned index entries, this method must be used to determine whether or not a record exists
before calling
getStoredRecord() . |
boolean |
hasVersion()
Get whether a
FDBRecordVersion has been set for this StoredRecord . |
boolean |
isSplit()
Get whether this record is split between two or more key-value pairs.
|
boolean |
isVersionedInline()
Get whether this record was stored with an associated version.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addSizeLogInfo
@API(value=DEPRECATED) @Deprecated public FDBIndexedRecord(@Nonnull Index index, @Nonnull IndexEntry indexEntry, @Nullable FDBStoredRecord<M> storedRecord)
FDBIndexedRecord(IndexEntry, FDBStoredRecord)
insteadindex
- the index that this record originated fromindexEntry
- the index entry that produced this recordstoredRecord
- the FDBStoredRecord
containing the record's data@API(value=INTERNAL) public FDBIndexedRecord(@Nonnull IndexEntry indexEntry, @Nullable FDBStoredRecord<M> storedRecord)
indexEntry
- the index entry that produced this recordstoredRecord
- the FDBStoredRecord
containing the record's data@Nonnull public Index getIndex()
@Nonnull public IndexEntry getIndexEntry()
public boolean hasStoredRecord()
getStoredRecord()
.true
if this record has an FDBStoredRecord
@Nonnull public FDBStoredRecord<M> getStoredRecord()
@Nonnull public Tuple getPrimaryKey()
FDBRecord
getPrimaryKey
in interface FDBRecord<M extends Message>
@Nonnull public RecordType getRecordType()
FDBRecord
getRecordType
in interface FDBRecord<M extends Message>
@Nonnull public M getRecord()
FDBRecord
public boolean hasVersion()
FDBRecord
FDBRecordVersion
has been set for this StoredRecord
.hasVersion
in interface FDBRecord<M extends Message>
true
if this record has a version@Nullable public FDBRecordVersion getVersion()
FDBRecord
FDBRecordVersion
associated with this record (or null
).getVersion
in interface FDBRecord<M extends Message>
public int getKeyCount()
FDBStoredSizes
getKeyCount
in interface FDBStoredSizes
public int getKeySize()
FDBStoredSizes
getKeySize
in interface FDBStoredSizes
public int getValueSize()
FDBStoredSizes
getValueSize
in interface FDBStoredSizes
public boolean isSplit()
FDBStoredSizes
isSplit
in interface FDBStoredSizes
true
if splitpublic boolean isVersionedInline()
FDBStoredSizes
FDBRecordStore.SAVE_VERSION_WITH_RECORD_FORMAT_VERSION
.isVersionedInline
in interface FDBStoredSizes
true
if this record is stored with a version in-line