Class Create.Options
- java.lang.Object
-
- com.datastax.driver.core.Statement
-
- com.datastax.driver.core.RegularStatement
-
- com.datastax.driver.core.schemabuilder.SchemaStatement
-
- com.datastax.driver.core.schemabuilder.TableOptions<Create.Options>
-
- com.datastax.driver.core.schemabuilder.Create.Options
-
- Enclosing class:
- Create
public static class Create.Options extends TableOptions<Create.Options>
The table options of a CREATE TABLE statement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.datastax.driver.core.schemabuilder.TableOptions
TableOptions.AdditionalWritePolicyValue, TableOptions.CachingRowsPerPartition, TableOptions.CompactionOptions<T extends TableOptions.CompactionOptions>, TableOptions.CompressionOptions, TableOptions.ReadRepairValue, TableOptions.SpeculativeRetryValue
-
-
Field Summary
-
Fields inherited from class com.datastax.driver.core.Statement
idempotent, NULL_PAYLOAD_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSpecificOptions(List<String> options)Create.OptionsclusteringOrder(String columnName, SchemaBuilder.Direction direction)Add a clustering order for this table.Create.OptionscompactStorage()Enable the compact storage option for the table.-
Methods inherited from class com.datastax.driver.core.schemabuilder.TableOptions
additionalWritePolicy, bloomFilterFPChance, buildInternal, caching, caching, cdc, comment, compactionOptions, compressionOptions, dcLocalReadRepairChance, defaultTimeToLive, freeformOption, gcGraceSeconds, indexInterval, maxIndexInterval, maxReadsPerSecond, maxWritesPerSecond, memtableFlushPeriodInMillis, minIndexInterval, populateIOCacheOnFlush, readRepair, readRepairChance, replicateOnWrite, speculativeRetry
-
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
-
clusteringOrder
public Create.Options clusteringOrder(String columnName, SchemaBuilder.Direction direction)
Add a clustering order for this table.To define the order on multiple columns, call this method repeatedly. The columns will be declared in the call order.
- Parameters:
columnName- the clustering column name.direction- the clustering direction (DESC/ASC).- Returns:
- this
Optionsobject.
-
compactStorage
public Create.Options compactStorage()
Enable the compact storage option for the table.- Returns:
- this
Optionsobject.
-
addSpecificOptions
protected void addSpecificOptions(List<String> options)
- Specified by:
addSpecificOptionsin classTableOptions<Create.Options>
-
-