Package io.pravega.client.tables
Class KeyValueTableConfiguration
- java.lang.Object
-
- io.pravega.client.tables.KeyValueTableConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
@Beta public class KeyValueTableConfiguration extends java.lang.Object implements java.io.SerializableThe configuration of a Key-Value Table.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyValueTableConfiguration.KeyValueTableConfigurationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyValueTableConfiguration.KeyValueTableConfigurationBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetPartitionCount()The number of Partitions for a Key-Value Table.intgetPrimaryKeyLength()The number of bytes for the Primary Key.longgetRolloverSizeBytes()The rollover size for table segment in LTS.intgetSecondaryKeyLength()The number of bytes for the Secondary Key.intgetTotalKeyLength()The total number of bytes for the key (includes Primary and Secondary).inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getTotalKeyLength
public int getTotalKeyLength()
The total number of bytes for the key (includes Primary and Secondary).- Returns:
- The total key size, in bytes.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static KeyValueTableConfiguration.KeyValueTableConfigurationBuilder builder()
-
getPartitionCount
public int getPartitionCount()
The number of Partitions for a Key-Value Table. This value cannot be adjusted after the Key-Value Table has been created.- Returns:
- The number of Partitions for a Key-Value Table.
-
getPrimaryKeyLength
public int getPrimaryKeyLength()
The number of bytes for the Primary Key. This value cannot be changed after the Key-Value Table has been created.- Returns:
- The number of bytes for the Primary Key.
-
getSecondaryKeyLength
public int getSecondaryKeyLength()
The number of bytes for the Secondary Key. This value cannot be changed after the Key-Value Table has been created.- Returns:
- The number of bytes for the Secondary Key.
-
getRolloverSizeBytes
public long getRolloverSizeBytes()
The rollover size for table segment in LTS. The default value for this field is 0. If default value is passed down to the server, a non-zero value defined in the server will be used for the actual rollover size.- Returns:
- The rollover size for the table segment in LTS.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-