public class TableCreationOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableCreationOptions.Option |
| Constructor and Description |
|---|
TableCreationOptions() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getForeignKeys()
Gets the list of foreign keys
|
String |
getForeignShardKey()
Gets the foreign shard key
|
Map<String,String> |
getOptions()
This method returns a Map of String to String carrying all the options
that have been set by the user.
|
List<String> |
getPartitionDefinitions()
Gets the list of partition definitions
|
List<String> |
getPartitionKeys()
Gets the list of partition keys
|
PartitionType |
getPartitionType()
Gets the value of 'partitionType' used for table creation
|
int |
getTtl()
Gets the value of 'ttl' for the table
|
String |
getTypeId()
Gets the type ID set for table creation.
|
boolean |
isAutomaticPartition()
Gets whether the partiion is automatic or not
|
boolean |
isNoErrorIfExists()
Gets the value of 'noErrorIfExists'
|
boolean |
isReplicated()
Gets the value of 'isReplicated'
|
boolean |
isResultTable()
Gets whether the table is a result table or not
|
void |
put(String key,
boolean value)
One of the four overloaded methods based on varying data types for
setting options not already exposed through the other setter methods
as documented here.
|
void |
put(String key,
int value)
One of the four overloaded methods based on varying data types for
setting options not already exposed through the other setter methods
as documented here.
|
void |
put(String key,
long value)
One of the four overloaded methods based on varying data types for
setting options not already exposed through the other setter methods
as documented here.
|
void |
put(String key,
String value)
One of the four overloaded methods based on varying data types for
setting options not already exposed through the other setter methods
as documented here.
|
TableCreationOptions |
setAutomaticPartition(boolean automaticPartition)
Sets the value of 'automaticPartition'
|
TableCreationOptions |
setForeignKeys(List<String> foreignKeys)
Sets the list of foreign keys
|
TableCreationOptions |
setForeignShardKey(String foreignShardKey)
Sets the foreign shard key value
|
TableCreationOptions |
setNoErrorIfExists(boolean noErrorIfExists)
Sets the value of 'noErrorIfExists'
A truthy value indicates that no error will be thrown if there is an attempt
to re-create an already existent table and false otherwise.
|
TableCreationOptions |
setPartitionDefinitions(List<String> partitionDefinitions)
Sets the list of partition definitions
|
TableCreationOptions |
setPartitionKeys(List<String> partitionKeys)
Sets the list of partition keys
|
TableCreationOptions |
setPartitionType(PartitionType partitionType)
Sets the parition type value used for table creation
|
TableCreationOptions |
setReplicated(boolean replicated)
Sets the value of 'replicated' indicating whether the table to be
created will be a replicated table or not.
|
TableCreationOptions |
setResultTable(boolean resultTable)
Sets the value of 'resultTable' indicating whether this table is a
result table or not
|
TableCreationOptions |
setTtl(int ttl)
Sets the 'ttl' value for the table
|
TableCreationOptions |
setTypeId(String typeId)
Sets the type ID for the table
|
public String getTypeId()
setTypeId(String)public TableCreationOptions setTypeId(String typeId)
typeId - - A type ID stringTableCreationOptions objectgetTypeId()public boolean isNoErrorIfExists()
setNoErrorIfExists(boolean)public TableCreationOptions setNoErrorIfExists(boolean noErrorIfExists)
noErrorIfExists - - true or falseTableCreationOptions objectpublic boolean isReplicated()
public TableCreationOptions setReplicated(boolean replicated)
replicated - - True or falseTableCreationOptions objectisReplicated()public List<String> getForeignKeys()
setForeignKeys(List)public TableCreationOptions setForeignKeys(List<String> foreignKeys)
foreignKeys - - A list of strings specifying the foreign keysTableCreationOptions objectgetForeignKeys()public String getForeignShardKey()
public TableCreationOptions setForeignShardKey(String foreignShardKey)
foreignShardKey - TableCreationOptions objectgetForeignShardKey()public PartitionType getPartitionType()
PartitionType valuePartitionType,
setPartitionType(PartitionType)public TableCreationOptions setPartitionType(PartitionType partitionType)
partitionType - enum PartitionTypeTableCreationOptions objectgetPartitionType()public List<String> getPartitionKeys()
setPartitionKeys(List)public TableCreationOptions setPartitionKeys(List<String> partitionKeys)
partitionKeys - - A list of partition ksysTableCreationOptions objectgetPartitionKeys()public List<String> getPartitionDefinitions()
setPartitionDefinitions(List)public TableCreationOptions setPartitionDefinitions(List<String> partitionDefinitions)
partitionDefinitions - TableCreationOptions objectgetPartitionDefinitions()public boolean isAutomaticPartition()
setAutomaticPartition(boolean)public TableCreationOptions setAutomaticPartition(boolean automaticPartition)
automaticPartition - - true or falseTableCreationOptions objectisAutomaticPartition()public int getTtl()
public TableCreationOptions setTtl(int ttl)
ttl - - an int valueTableCreationOptions objectgetTtl()public boolean isResultTable()
setResultTable(boolean)public TableCreationOptions setResultTable(boolean resultTable)
resultTable - - true or falseTableCreationOptions objectisResultTable()public void put(String key, int value)
key - - a stringvalue - - an intput(String, int),
put(String, long),
put(String, String),
put(String, boolean)public void put(String key, long value)
key - - a stringvalue - - a longput(String, int),
put(String, long),
put(String, String),
put(String, boolean)public void put(String key, String value)
key - - a stringvalue - - a stringput(String, int),
put(String, long),
put(String, String),
put(String, boolean)public void put(String key, boolean value)
key - - a stringvalue - - a booleanput(String, int),
put(String, long),
put(String, String),
put(String, boolean)public Map<String,String> getOptions()
Copyright © 2025. All rights reserved.