Class CassandraSchema
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.CassandraSchema
-
public class CassandraSchema extends Object
Cosmos DB Cassandra table schema.
-
-
Constructor Summary
Constructors Constructor Description CassandraSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClusterKey>clusterKeys()Get list of cluster key.List<Column>columns()Get list of Cassandra table columns.List<CassandraPartitionKey>partitionKeys()Get list of partition key.CassandraSchemawithClusterKeys(List<ClusterKey> clusterKeys)Set list of cluster key.CassandraSchemawithColumns(List<Column> columns)Set list of Cassandra table columns.CassandraSchemawithPartitionKeys(List<CassandraPartitionKey> partitionKeys)Set list of partition key.
-
-
-
Method Detail
-
columns
public List<Column> columns()
Get list of Cassandra table columns.- Returns:
- the columns value
-
withColumns
public CassandraSchema withColumns(List<Column> columns)
Set list of Cassandra table columns.- Parameters:
columns- the columns value to set- Returns:
- the CassandraSchema object itself.
-
partitionKeys
public List<CassandraPartitionKey> partitionKeys()
Get list of partition key.- Returns:
- the partitionKeys value
-
withPartitionKeys
public CassandraSchema withPartitionKeys(List<CassandraPartitionKey> partitionKeys)
Set list of partition key.- Parameters:
partitionKeys- the partitionKeys value to set- Returns:
- the CassandraSchema object itself.
-
clusterKeys
public List<ClusterKey> clusterKeys()
Get list of cluster key.- Returns:
- the clusterKeys value
-
withClusterKeys
public CassandraSchema withClusterKeys(List<ClusterKey> clusterKeys)
Set list of cluster key.- Parameters:
clusterKeys- the clusterKeys value to set- Returns:
- the CassandraSchema object itself.
-
-