Package io.pravega.client.tables
Class KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
- java.lang.Object
-
- io.pravega.client.tables.KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
-
- Enclosing class:
- KeyValueTableConfiguration
public static final class KeyValueTableConfiguration.KeyValueTableConfigurationBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValueTableConfiguration
build()
KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
partitionCount(int partitionCount)
The number of Partitions for a Key-Value Table.KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
primaryKeyLength(int primaryKeyLength)
The number of bytes for the Primary Key.KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
rolloverSizeBytes(long rolloverSizeBytes)
The rollover size for table segment in LTS.KeyValueTableConfiguration.KeyValueTableConfigurationBuilder
secondaryKeyLength(int secondaryKeyLength)
The number of bytes for the Secondary Key.java.lang.String
toString()
-
-
-
Method Detail
-
build
public KeyValueTableConfiguration build()
-
partitionCount
public KeyValueTableConfiguration.KeyValueTableConfigurationBuilder partitionCount(int partitionCount)
The number of Partitions for a Key-Value Table. This value cannot be adjusted after the Key-Value Table has been created.- Parameters:
partitionCount
- The number of Partitions for a Key-Value Table.- Returns:
this
.
-
primaryKeyLength
public KeyValueTableConfiguration.KeyValueTableConfigurationBuilder primaryKeyLength(int primaryKeyLength)
The number of bytes for the Primary Key. This value cannot be changed after the Key-Value Table has been created.- Parameters:
primaryKeyLength
- The number of bytes for the Primary Key.- Returns:
this
.
-
secondaryKeyLength
public KeyValueTableConfiguration.KeyValueTableConfigurationBuilder secondaryKeyLength(int secondaryKeyLength)
The number of bytes for the Secondary Key. This value cannot be changed after the Key-Value Table has been created.- Parameters:
secondaryKeyLength
- The number of bytes for the Secondary Key.- Returns:
this
.
-
rolloverSizeBytes
public KeyValueTableConfiguration.KeyValueTableConfigurationBuilder rolloverSizeBytes(long rolloverSizeBytes)
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.- Parameters:
rolloverSizeBytes
- The rollover size for the table segment in LTS.- Returns:
this
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-