public final class CassandraSchema extends Object
| Constructor and Description |
|---|
CassandraSchema() |
| Modifier and Type | Method and Description |
|---|---|
List<ClusterKey> |
clusterKeys()
Get the clusterKeys property: List of cluster key.
|
List<Column> |
columns()
Get the columns property: List of Cassandra table columns.
|
List<CassandraPartitionKey> |
partitionKeys()
Get the partitionKeys property: List of partition key.
|
void |
validate()
Validates the instance.
|
CassandraSchema |
withClusterKeys(List<ClusterKey> clusterKeys)
Set the clusterKeys property: List of cluster key.
|
CassandraSchema |
withColumns(List<Column> columns)
Set the columns property: List of Cassandra table columns.
|
CassandraSchema |
withPartitionKeys(List<CassandraPartitionKey> partitionKeys)
Set the partitionKeys property: List of partition key.
|
public List<Column> columns()
public CassandraSchema withColumns(List<Column> columns)
columns - the columns value to set.public List<CassandraPartitionKey> partitionKeys()
public CassandraSchema withPartitionKeys(List<CassandraPartitionKey> partitionKeys)
partitionKeys - the partitionKeys value to set.public List<ClusterKey> clusterKeys()
public CassandraSchema withClusterKeys(List<ClusterKey> clusterKeys)
clusterKeys - the clusterKeys value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.