public interface CreateTable extends BuildableQuery, OngoingPartitionKey, CreateTableWithOptions
Modifier and Type | Method and Description |
---|---|
CreateTable |
withClusteringColumn(CqlIdentifier columnName,
DataType dataType)
Adds a clustering column definition in the CREATE TABLE statement.
|
default CreateTable |
withClusteringColumn(String columnName,
DataType dataType)
|
CreateTable |
withColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the CREATE TABLE statement.
|
default CreateTable |
withColumn(String columnName,
DataType dataType)
Shortcut for
withColumn(CqlIdentifier.asCql(columnName), dataType) . |
CreateTable |
withStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the CREATE TABLE statement.
|
default CreateTable |
withStaticColumn(String columnName,
DataType dataType)
|
withPartitionKey, withPartitionKey
withCompactStorage
asCql, build, build, build, builder
withClusteringOrder, withClusteringOrder, withClusteringOrder, withClusteringOrderByIds
withBloomFilterFpChance, withCaching, withCDC, withComment, withCompaction, withCompression, withCompression, withDcLocalReadRepairChance, withDefaultTimeToLiveSeconds, withDeflateCompression, withDeflateCompression, withGcGraceSeconds, withLZ4Compression, withLZ4Compression, withMaxIndexInterval, withMemtableFlushPeriodInMs, withMinIndexInterval, withNoCompression, withReadRepairChance, withSnappyCompression, withSnappyCompression, withSpeculativeRetry
getOptions, withOption
@NonNull CreateTable withClusteringColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
This includes the column declaration (you don't need an additional addColumn
call).
Clustering key columns are added in the order of their declaration.
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default CreateTable withClusteringColumn(@NonNull String columnName, @NonNull DataType dataType)
@NonNull CreateTable withColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default CreateTable withColumn(@NonNull String columnName, @NonNull DataType dataType)
withColumn(CqlIdentifier.asCql(columnName), dataType)
.@NonNull CreateTable withStaticColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
This includes the column declaration (you don't need an additional addColumn
call).
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default CreateTable withStaticColumn(@NonNull String columnName, @NonNull DataType dataType)
Copyright © 2017–2022. All rights reserved.