Class KeyspaceOptionsSpecification<T extends KeyspaceOptionsSpecification<T>>

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceOptionsSpecification<T>
Type Parameters:
T - the subtype of the KeyspaceOptionsSpecification.
Direct Known Subclasses:
AlterKeyspaceSpecification, CreateKeyspaceSpecification

public abstract class KeyspaceOptionsSpecification<T extends KeyspaceOptionsSpecification<T>> extends KeyspaceActionSpecification
Abstract builder class to support the construction of table specifications that have table options, that is, those options normally specified by WITH ... AND ....

It is important to note that although this class depends on KeyspaceOption for convenient and typesafe use, it ultimately stores its options in a Map<String,Object> for flexibility. This means that with(KeyspaceOption) and with(KeyspaceOption, Object) delegate to with(String, Object, boolean, boolean). This design allows the API to support new Cassandra options as they are introduced without having to update the code immediately.

Author:
John McPeek
  • Field Details

  • Constructor Details

    • KeyspaceOptionsSpecification

      protected KeyspaceOptionsSpecification(com.datastax.oss.driver.api.core.CqlIdentifier name)
  • Method Details