Class KeyspaceOptions
- java.lang.Object
-
- com.datastax.driver.core.Statement
-
- com.datastax.driver.core.RegularStatement
-
- com.datastax.driver.core.schemabuilder.SchemaStatement
-
- com.datastax.driver.core.schemabuilder.KeyspaceOptions
-
public class KeyspaceOptions extends SchemaStatement
The keyspace options used in CREATE KEYSPACE or ALTER KEYSPACE statements.
-
-
Field Summary
-
Fields inherited from class com.datastax.driver.core.Statement
idempotent, NULL_PAYLOAD_VALUE
-
-
Constructor Summary
Constructors Constructor Description KeyspaceOptions(String command, String keyspaceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyspaceOptionsdurableWrites(Boolean durableWrites)Define the durable writes option for the statement.KeyspaceOptionsreplication(Map<String,Object> replication)Define the replication options for the statement.-
Methods inherited from class com.datastax.driver.core.schemabuilder.SchemaStatement
getKeyspace, getNamedValues, getQueryString, getRoutingKey, getValues, hasValues, usesNamedValues
-
Methods inherited from class com.datastax.driver.core.RegularStatement
getQueryString, hasValues, requestSizeInBytes, toString
-
Methods inherited from class com.datastax.driver.core.Statement
disableTracing, enableTracing, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getHost, getLastHost, getNowInSeconds, getOutgoingPayload, getPartitioner, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, isBatchIdempotent, isIdempotent, isLWT, isTracing, setConsistencyLevel, setDefaultTimestamp, setFetchSize, setHost, setIdempotent, setLastHost, setNowInSeconds, setOutgoingPayload, setPagingState, setPagingState, setPagingStateUnsafe, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel
-
-
-
-
Method Detail
-
replication
public KeyspaceOptions replication(Map<String,Object> replication)
Define the replication options for the statement.- Parameters:
replication- replication properties map- Returns:
- this
KeyspaceOptionsobject
-
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
KeyspaceOptionsobject
-
-