public interface CreateDseKeyspaceStart extends KeyspaceReplicationOptions<CreateDseKeyspace>
Modifier and Type | Method and Description |
---|---|
CreateDseKeyspaceStart |
ifNotExists()
Adds IF NOT EXISTS to the create keyspace specification.
|
default CreateDseKeyspace |
withNetworkTopologyStrategy(Map<String,Integer> replications)
Adds NetworkTopologyStrategy replication options with the given data center replication
factors.
|
CreateDseKeyspace |
withReplicationOptions(Map<String,Object> replicationOptions)
Adds 'replication' options.
|
default CreateDseKeyspace |
withSimpleStrategy(int replicationFactor)
Adds SimpleStrategy replication options with the given replication factor.
|
@NonNull CreateDseKeyspaceStart ifNotExists()
@NonNull CreateDseKeyspace withReplicationOptions(@NonNull Map<String,Object> replicationOptions)
withSimpleStrategy(int)
or withNetworkTopologyStrategy(Map)
.withReplicationOptions
in interface KeyspaceReplicationOptions<CreateDseKeyspace>
@NonNull default CreateDseKeyspace withSimpleStrategy(int replicationFactor)
Note that using this will overwrite any previous use of this method or withNetworkTopologyStrategy(Map)
.
withSimpleStrategy
in interface KeyspaceReplicationOptions<CreateDseKeyspace>
@NonNull default CreateDseKeyspace withNetworkTopologyStrategy(@NonNull Map<String,Integer> replications)
Note that using this will overwrite any previous use of this method or withSimpleStrategy(int)
.
withNetworkTopologyStrategy
in interface KeyspaceReplicationOptions<CreateDseKeyspace>
replications
- Mapping of data center name to replication factor to use for that data
center.Copyright © 2017–2023. All rights reserved.