public class TableDefinition extends Object
Constructor and Description |
---|
TableDefinition(String tableName,
Iterable<FullColumnDescription> fullColumnDescriptions)
Create a new Table Definition
|
Modifier and Type | Method and Description |
---|---|
FullColumnDescription |
getDescriptionByColumnName(String columnName)
Look up a FullColumnDescription in this TableDefinition by it's column name.
|
Collection<FullColumnDescription> |
getFullColumnDescriptions()
Get the ordered list of full column descriptions for this definition.
|
Collection<FullColumnDescription> |
getLocalKeyColumnDescriptions()
Get the collection of Local Key FullColumnDescriptions, in order.
|
Collection<FullColumnDescription> |
getPartitionKeyColumnDescriptions()
Get the collection of Partition Key FullColumnDescriptions, in order.
|
FullColumnDescription |
getQuantumDescription()
Get the FullColumnDescription for a quantum field, if any.
|
String |
getTableName()
Get the table name for this definition.
|
public TableDefinition(String tableName, Iterable<FullColumnDescription> fullColumnDescriptions)
tableName
- a Table Name, required.fullColumnDescriptions
- a list of FullColumnDescription that represents the columns in the table.public String getTableName()
public Collection<FullColumnDescription> getFullColumnDescriptions()
public FullColumnDescription getDescriptionByColumnName(String columnName)
columnName
- the column name to look up.public Collection<FullColumnDescription> getPartitionKeyColumnDescriptions()
public FullColumnDescription getQuantumDescription()
public Collection<FullColumnDescription> getLocalKeyColumnDescriptions()
Copyright © 2016. All rights reserved.