Interface FDBStoredSizes
-
- All Known Subinterfaces:
FDBIndexableRecord<M>
- All Known Implementing Classes:
FDBIndexedRecord
,FDBStoredRecord
,FDBStoredRecordBuilder
,FDBSyntheticRecord
,SplitHelper.SizeInfo
@API(STABLE) public interface FDBStoredSizes
Information about how a record is stored in the database.- See Also:
FDBStoredRecord
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addSizeLogInfo(KeyValueLogMessage msg)
Add logging information about size information to a log message.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.int
getValueSize()
Get the size in bytes of all values used to store this record.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.
-
-
-
Method Detail
-
getKeyCount
int getKeyCount()
Get the number of keys used to store this record.- Returns:
- number of keys
-
getKeySize
int getKeySize()
Get the size in bytes of all keys used to store this record.- Returns:
- size in bytes
-
getValueSize
int getValueSize()
Get the size in bytes of all values used to store this record.- Returns:
- size in bytes
-
isSplit
boolean isSplit()
Get whether this record is split between two or more key-value pairs.- Returns:
true
if split
-
isVersionedInline
boolean isVersionedInline()
Get whether this record was stored with an associated version. In particular, this states whether there was a version stored directly with the record in the database, which should only be true if the format version of the database is greater than or equal toFDBRecordStore.SAVE_VERSION_WITH_RECORD_FORMAT_VERSION
.- Returns:
true
if this record is stored with a version in-line
-
addSizeLogInfo
@API(EXPERIMENTAL) default void addSizeLogInfo(@Nonnull KeyValueLogMessage msg)
Add logging information about size information to a log message.- Parameters:
msg
- the log message to add information to
-
-