Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
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:
- Object<String, String>
(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:
- Object<String, number>
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