Class KeyspaceDefinition
java.lang.Object
com.datastax.astra.client.databases.definition.keyspaces.KeyspaceDefinition
Keyspace definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName for the keyspace.networkTopologyStrategy(Map<String, Integer> datacenters) Enforce the creation of a namespace with NetworkTopology strategy.simpleStrategy(int replicationFactor) Enforce the creation of a namespace with SimpleStrategy.
-
Constructor Details
-
KeyspaceDefinition
public KeyspaceDefinition()Default constructor
-
-
Method Details
-
name
Name for the keyspace.- Parameters:
name- keyspace name- Returns:
- instance of the options populated
-
simpleStrategy
Enforce the creation of a namespace with SimpleStrategy.- Parameters:
replicationFactor- replication factor- Returns:
- instance of the options populated
-
networkTopologyStrategy
Enforce the creation of a namespace with NetworkTopology strategy.- Parameters:
datacenters- list of datacenters with replication factors- Returns:
- instance of the options populated
-