Was this page helpful?
Strategy¶
metadata~Strategy()
Describes the replication strategy used by a keyspace.
Constructor¶
new Strategy()
Members¶
(nullable) data :Object:.<String:, String:>
Additional parameters of the strategy, which the driver does not understand. (only set when kind is StrategyKind.Other).
Type:
(nullable) datacenterRepfactors :Object:.<String:, number:>
Replication factors of datacenters with given names, i.e. how many replicas of each piece of data there are in each datacenter. (only set when kind is StrategyKind.NetworkTopologyStrategy).
Type:
kind :StrategyKind
Identifies which strategy variant this is.
Type:
- StrategyKind
(nullable) name :String
Name of the strategy (only set when kind is StrategyKind.Other).
Type:
- String
(nullable) replicationFactor :number
Replication factor, i.e. how many replicas of each piece of data there are. (only set when kind is StrategyKind.SimpleStrategy).
Type:
- number