use of org.apache.cassandra.schema.ReplicationParams in project cassandra by apache.
the class KeyspaceAttributes method asAlteredKeyspaceParams.
public KeyspaceParams asAlteredKeyspaceParams(KeyspaceParams previous) {
boolean durableWrites = getBoolean(Option.DURABLE_WRITES.toString(), previous.durableWrites);
ReplicationParams replication = getReplicationStrategyClass() == null ? previous.replication : ReplicationParams.fromMap(getAllReplicationOptions());
return new KeyspaceParams(durableWrites, replication);
}
Aggregations