@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SchemaDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Describes the schema of the table.
Constructor and Description |
---|
SchemaDefinition() |
Modifier and Type | Method and Description |
---|---|
SchemaDefinition |
clone() |
boolean |
equals(Object obj) |
List<ColumnDefinition> |
getAllColumns()
The regular columns of the table.
|
List<ClusteringKey> |
getClusteringKeys()
The columns that are part of the clustering key of the table.
|
List<PartitionKey> |
getPartitionKeys()
The columns that are part of the partition key of the table .
|
List<StaticColumn> |
getStaticColumns()
The columns that have been defined as
STATIC . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllColumns(Collection<ColumnDefinition> allColumns)
The regular columns of the table.
|
void |
setClusteringKeys(Collection<ClusteringKey> clusteringKeys)
The columns that are part of the clustering key of the table.
|
void |
setPartitionKeys(Collection<PartitionKey> partitionKeys)
The columns that are part of the partition key of the table .
|
void |
setStaticColumns(Collection<StaticColumn> staticColumns)
The columns that have been defined as
STATIC . |
String |
toString()
Returns a string representation of this object.
|
SchemaDefinition |
withAllColumns(Collection<ColumnDefinition> allColumns)
The regular columns of the table.
|
SchemaDefinition |
withAllColumns(ColumnDefinition... allColumns)
The regular columns of the table.
|
SchemaDefinition |
withClusteringKeys(ClusteringKey... clusteringKeys)
The columns that are part of the clustering key of the table.
|
SchemaDefinition |
withClusteringKeys(Collection<ClusteringKey> clusteringKeys)
The columns that are part of the clustering key of the table.
|
SchemaDefinition |
withPartitionKeys(Collection<PartitionKey> partitionKeys)
The columns that are part of the partition key of the table .
|
SchemaDefinition |
withPartitionKeys(PartitionKey... partitionKeys)
The columns that are part of the partition key of the table .
|
SchemaDefinition |
withStaticColumns(Collection<StaticColumn> staticColumns)
The columns that have been defined as
STATIC . |
SchemaDefinition |
withStaticColumns(StaticColumn... staticColumns)
The columns that have been defined as
STATIC . |
public List<ColumnDefinition> getAllColumns()
The regular columns of the table.
public void setAllColumns(Collection<ColumnDefinition> allColumns)
The regular columns of the table.
allColumns
- The regular columns of the table.public SchemaDefinition withAllColumns(ColumnDefinition... allColumns)
The regular columns of the table.
NOTE: This method appends the values to the existing list (if any). Use
setAllColumns(java.util.Collection)
or withAllColumns(java.util.Collection)
if you want to
override the existing values.
allColumns
- The regular columns of the table.public SchemaDefinition withAllColumns(Collection<ColumnDefinition> allColumns)
The regular columns of the table.
allColumns
- The regular columns of the table.public List<PartitionKey> getPartitionKeys()
The columns that are part of the partition key of the table .
public void setPartitionKeys(Collection<PartitionKey> partitionKeys)
The columns that are part of the partition key of the table .
partitionKeys
- The columns that are part of the partition key of the table .public SchemaDefinition withPartitionKeys(PartitionKey... partitionKeys)
The columns that are part of the partition key of the table .
NOTE: This method appends the values to the existing list (if any). Use
setPartitionKeys(java.util.Collection)
or withPartitionKeys(java.util.Collection)
if you want
to override the existing values.
partitionKeys
- The columns that are part of the partition key of the table .public SchemaDefinition withPartitionKeys(Collection<PartitionKey> partitionKeys)
The columns that are part of the partition key of the table .
partitionKeys
- The columns that are part of the partition key of the table .public List<ClusteringKey> getClusteringKeys()
The columns that are part of the clustering key of the table.
public void setClusteringKeys(Collection<ClusteringKey> clusteringKeys)
The columns that are part of the clustering key of the table.
clusteringKeys
- The columns that are part of the clustering key of the table.public SchemaDefinition withClusteringKeys(ClusteringKey... clusteringKeys)
The columns that are part of the clustering key of the table.
NOTE: This method appends the values to the existing list (if any). Use
setClusteringKeys(java.util.Collection)
or withClusteringKeys(java.util.Collection)
if you want
to override the existing values.
clusteringKeys
- The columns that are part of the clustering key of the table.public SchemaDefinition withClusteringKeys(Collection<ClusteringKey> clusteringKeys)
The columns that are part of the clustering key of the table.
clusteringKeys
- The columns that are part of the clustering key of the table.public List<StaticColumn> getStaticColumns()
The columns that have been defined as STATIC
. Static columns store values that are shared by all
rows in the same partition.
STATIC
. Static columns store values that are shared by
all rows in the same partition.public void setStaticColumns(Collection<StaticColumn> staticColumns)
The columns that have been defined as STATIC
. Static columns store values that are shared by all
rows in the same partition.
staticColumns
- The columns that have been defined as STATIC
. Static columns store values that are shared by
all rows in the same partition.public SchemaDefinition withStaticColumns(StaticColumn... staticColumns)
The columns that have been defined as STATIC
. Static columns store values that are shared by all
rows in the same partition.
NOTE: This method appends the values to the existing list (if any). Use
setStaticColumns(java.util.Collection)
or withStaticColumns(java.util.Collection)
if you want
to override the existing values.
staticColumns
- The columns that have been defined as STATIC
. Static columns store values that are shared by
all rows in the same partition.public SchemaDefinition withStaticColumns(Collection<StaticColumn> staticColumns)
The columns that have been defined as STATIC
. Static columns store values that are shared by all
rows in the same partition.
staticColumns
- The columns that have been defined as STATIC
. Static columns store values that are shared by
all rows in the same partition.public String toString()
toString
in class Object
Object.toString()
public SchemaDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.