public interface AlterDseKeyspace extends BuildableQuery, KeyspaceOptions<AlterDseKeyspace>, KeyspaceReplicationOptions<AlterDseKeyspace>
Modifier and Type | Method and Description |
---|---|
AlterDseKeyspace |
withDurableWrites(boolean durableWrites)
Adjusts durable writes configuration for this keyspace.
|
AlterDseKeyspace |
withGraphEngine(String graphEngine)
Adjusts the graph engine that will be used to interpret this keyspace.
|
AlterDseKeyspace |
withNetworkTopologyStrategy(Map<String,Integer> replications)
Adds NetworkTopologyStrategy replication options with the given data center replication
factors.
|
AlterDseKeyspace |
withOption(String name,
Object value)
Adds a free-form option.
|
AlterDseKeyspace |
withReplicationOptions(Map<String,Object> replicationOptions)
Adds 'replication' options.
|
AlterDseKeyspace |
withSimpleStrategy(int replicationFactor)
Adds SimpleStrategy replication options with the given replication factor.
|
asCql, build, build, build, builder
getOptions
@NonNull AlterDseKeyspace withOption(@NonNull String name, @NonNull Object value)
OptionProvider
withOption
in interface OptionProvider<AlterDseKeyspace>
@NonNull AlterDseKeyspace withDurableWrites(boolean durableWrites)
withDurableWrites
in interface KeyspaceOptions<AlterDseKeyspace>
@NonNull AlterDseKeyspace withGraphEngine(String graphEngine)
@NonNull AlterDseKeyspace withReplicationOptions(@NonNull Map<String,Object> replicationOptions)
withSimpleStrategy(int)
or withNetworkTopologyStrategy(Map)
.withReplicationOptions
in interface KeyspaceReplicationOptions<AlterDseKeyspace>
@NonNull AlterDseKeyspace withSimpleStrategy(int replicationFactor)
Note that using this will overwrite any previous use of this method or withNetworkTopologyStrategy(Map)
.
withSimpleStrategy
in interface KeyspaceReplicationOptions<AlterDseKeyspace>
@NonNull AlterDseKeyspace 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<AlterDseKeyspace>
replications
- Mapping of data center name to replication factor to use for that data
center.Copyright © 2017–2022. All rights reserved.