Search in sources :

Example 1 with ReplicationParams

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);
}
Also used : ReplicationParams(org.apache.cassandra.schema.ReplicationParams) KeyspaceParams(org.apache.cassandra.schema.KeyspaceParams)

Aggregations

KeyspaceParams (org.apache.cassandra.schema.KeyspaceParams)1 ReplicationParams (org.apache.cassandra.schema.ReplicationParams)1