Class KeyspaceOptions


  • public class KeyspaceOptions
    extends SchemaStatement
    The keyspace options used in CREATE KEYSPACE or ALTER KEYSPACE statements.
    • Constructor Detail

      • KeyspaceOptions

        public KeyspaceOptions​(String command,
                               String keyspaceName)
    • Method Detail

      • replication

        public KeyspaceOptions replication​(Map<String,​Object> replication)
        Define the replication options for the statement.
        Parameters:
        replication - replication properties map
        Returns:
        this KeyspaceOptions object
      • durableWrites

        public KeyspaceOptions durableWrites​(Boolean durableWrites)
        Define the durable writes option for the statement. If set to false, data written to the keyspace will bypass the commit log.
        Parameters:
        durableWrites - durable write option
        Returns:
        this KeyspaceOptions object