Class KeyspaceAttributes

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceAttributes

public class KeyspaceAttributes extends Object
Keyspace attributes.
Author:
Alex Shvid, Matthew T. Adams, Mark Paluch
  • Field Details

  • Constructor Details

    • KeyspaceAttributes

      public KeyspaceAttributes()
  • Method Details

    • newSimpleReplication

      public static Map<Option,Object> newSimpleReplication()
      Returns a map of Options suitable as the value of a KeyspaceOption.REPLICATION option with replication strategy class "SimpleStrategy" and with a replication factor of one.
    • newSimpleReplication

      public static Map<Option,Object> newSimpleReplication(long replicationFactor)
      Returns a map of Options suitable as the value of a KeyspaceOption.REPLICATION option with replication strategy class "SimpleStrategy" and with a replication factor equal to that given.
    • newNetworkReplication

      public static Map<Option,Object> newNetworkReplication(DataCenterReplication... dataCenterReplications)
      Returns a map of Options suitable as the value of a KeyspaceOption.REPLICATION option with replication strategy class "NetworkTopologyStrategy" and with data centers each with their corresponding replication factors.
    • getReplicationStrategy

      public KeyspaceOption.ReplicationStrategy getReplicationStrategy()
    • setReplicationStrategy

      public void setReplicationStrategy(KeyspaceOption.ReplicationStrategy replicationStrategy)
    • getReplicationFactor

      public long getReplicationFactor()
    • setReplicationFactor

      public void setReplicationFactor(long replicationFactor)
    • getDurableWrites

      public boolean getDurableWrites()
    • setDurableWrites

      public void setDurableWrites(boolean durableWrites)