Package com.gpudb.filesystem.ingest
Class TableCreationOptions
java.lang.Object
com.gpudb.filesystem.ingest.TableCreationOptions
Nested Class Summary
Nested ClassesMethod Summary
Modifier and TypeMethodDescriptionGets the list of foreign keysGets the foreign shard keyThis method returns a Map of String to String carrying all the options that have been set by the user.Gets the list of partition definitionsGets the list of partition keysGets the value of ‘partitionType’ used for table creationintgetTtl()Gets the value of ‘ttl’ for the tableGets the type ID set for table creation.booleanGets whether the partiion is automatic or notbooleanGets the value of ‘noErrorIfExists’booleanGets the value of ‘isReplicated’booleanGets whether the table is a result table or notvoidOne of the four overloaded methods based on varying data types for setting options not already exposed through the other setter methods as documented here.voidOne of the four overloaded methods based on varying data types for setting options not already exposed through the other setter methods as documented here.voidOne of the four overloaded methods based on varying data types for setting options not already exposed through the other setter methods as documented here.voidOne of the four overloaded methods based on varying data types for setting options not already exposed through the other setter methods as documented here.setAutomaticPartition(boolean automaticPartition) Sets the value of ‘automaticPartition’setForeignKeys(List<String> foreignKeys) Sets the list of foreign keyssetForeignShardKey(String foreignShardKey) Sets the foreign shard key valuesetNoErrorIfExists(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.setPartitionDefinitions(List<String> partitionDefinitions) Sets the list of partition definitionssetPartitionKeys(List<String> partitionKeys) Sets the list of partition keyssetPartitionType(PartitionType partitionType) Sets the parition type value used for table creationsetReplicated(boolean replicated) Sets the value of ‘replicated’ indicating whether the table to be created will be a replicated table or not.setResultTable(boolean resultTable) Sets the value of ‘resultTable’ indicating whether this table is a result table or notsetTtl(int ttl) Sets the ‘ttl’ value for the tableSets the type ID for the table
Method Details
setTypeId
Sets the type ID for the tableisNoErrorIfExists
public boolean isNoErrorIfExists()Gets the value of ‘noErrorIfExists’Returns:true or falseSee Also:setNoErrorIfExists
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.setReplicated
Sets the value of ‘replicated’ indicating whether the table to be created will be a replicated table or not.setForeignKeys
Sets the list of foreign keysParameters:foreignKeys- - A list of strings specifying the foreign keysReturns:- ThisTableCreationOptionsobjectSee Also:setForeignShardKey
Sets the foreign shard key valuegetPartitionType
Gets the value of ‘partitionType’ used for table creationsetPartitionType
Sets the parition type value used for table creationsetPartitionKeys
Sets the list of partition keysParameters:partitionKeys- - A list of partition ksysReturns:- ThisTableCreationOptionsobjectSee Also:setPartitionDefinitions
Sets the list of partition definitionsisAutomaticPartition
public boolean isAutomaticPartition()Gets whether the partiion is automatic or notReturns:true or falseSee Also:setAutomaticPartition
Sets the value of ‘automaticPartition’getTtl
public int getTtl()Gets the value of ‘ttl’ for the tableReturns:an int value indicating the ‘ttl’setTtl
Sets the ‘ttl’ value for the tableisResultTable
public boolean isResultTable()Gets whether the table is a result table or notReturns:true or falseSee Also:setResultTable
Sets the value of ‘resultTable’ indicating whether this table is a result table or notgetOptions
This method returns a Map of String to String carrying all the options that have been set by the user. This is internally used to get the options so that they can be passed to the endpoints which expect the options as a Map of String to String.Returns:- a Map of String to String