public static class SplitHelper.SizeInfo extends Object implements FDBStoredSizes
Constructor and Description |
---|
SizeInfo() |
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] keyBytes,
byte[] valueBytes) |
void |
add(FDBStoredSizes sizes) |
void |
add(KeyValue keyValue) |
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.
|
void |
reset() |
void |
set(byte[] keyBytes,
byte[] valueBytes) |
void |
set(KeyValue keyValue) |
void |
setKeyCount(int keyCount) |
void |
setKeySize(int keySize) |
void |
setSplit(boolean split) |
void |
setValueSize(int valueSize) |
void |
setVersionedInline(boolean versionedInline) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSizeLogInfo
public int getKeyCount()
FDBStoredSizes
getKeyCount
in interface FDBStoredSizes
public void setKeyCount(int keyCount)
public int getKeySize()
FDBStoredSizes
getKeySize
in interface FDBStoredSizes
public void setKeySize(int keySize)
public int getValueSize()
FDBStoredSizes
getValueSize
in interface FDBStoredSizes
public void setValueSize(int valueSize)
public boolean isSplit()
FDBStoredSizes
isSplit
in interface FDBStoredSizes
true
if splitpublic void setSplit(boolean split)
public boolean isVersionedInline()
FDBStoredSizes
FDBRecordStore.SAVE_VERSION_WITH_RECORD_FORMAT_VERSION
.isVersionedInline
in interface FDBStoredSizes
true
if this record is stored with a version in-linepublic void setVersionedInline(boolean versionedInline)
public void add(@Nonnull FDBStoredSizes sizes)
public void reset()