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.Serializable
The configuration of a Key-Value Table.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
int
getPartitionCount()
The number of Partitions for a Key-Value Table.int
getPrimaryKeyLength()
The number of bytes for the Primary Key.long
getRolloverSizeBytes()
The rollover size for table segment in LTS.int
getSecondaryKeyLength()
The number of bytes for the Secondary Key.int
getTotalKeyLength()
The total number of bytes for the key (includes Primary and Secondary).int
hashCode()
java.lang.String
toString()
-
-
-
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:
toString
in 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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-