CassandraSchema Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CassandraSchema
- com.
Implements
public final class CassandraSchema
implements JsonSerializable<CassandraSchema>
Cosmos DB Cassandra table schema.
Constructor Summary
Constructor | Description |
---|---|
CassandraSchema() |
Creates an instance of Cassandra |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Cluster |
clusterKeys()
Get the cluster |
List<Column> |
columns()
Get the columns property: List of Cassandra table columns. |
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
List<Cassandra |
partitionKeys()
Get the partition |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cassandra |
withClusterKeys(List<ClusterKey> clusterKeys)
Set the cluster |
Cassandra |
withColumns(List<Column> columns)
Set the columns property: List of Cassandra table columns. |
Cassandra |
withPartitionKeys(List<CassandraPartitionKey> partitionKeys)
Set the partition |
Methods inherited from java.lang.Object
Constructor Details
CassandraSchema
public CassandraSchema()
Creates an instance of CassandraSchema class.
Method Details
clusterKeys
public List
Get the clusterKeys property: List of cluster key.
Returns:
columns
public List
Get the columns property: List of Cassandra table columns.
Returns:
fromJson
public static CassandraSchema fromJson(JsonReader jsonReader)
Reads an instance of CassandraSchema from the JsonReader.
Parameters:
Returns:
Throws:
partitionKeys
public List
Get the partitionKeys property: List of partition key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withClusterKeys
public CassandraSchema withClusterKeys(List
Set the clusterKeys property: List of cluster key.
Parameters:
Returns:
withColumns
public CassandraSchema withColumns(List
Set the columns property: List of Cassandra table columns.
Parameters:
Returns:
withPartitionKeys
public CassandraSchema withPartitionKeys(List
Set the partitionKeys property: List of partition key.
Parameters:
Returns:
Applies to
Azure SDK for Java