public interface OngoingPartitionKey
Modifier and Type | Method and Description |
---|---|
CreateTable |
withPartitionKey(CqlIdentifier columnName,
DataType dataType)
Adds a partition key column definition.
|
default CreateTable |
withPartitionKey(String columnName,
DataType dataType)
|
@NonNull CreateTable withPartitionKey(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
This includes the column declaration (you don't need an additional addColumn
call).
Partition keys 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 withPartitionKey(@NonNull String columnName, @NonNull DataType dataType)
Copyright © 2017–2022. All rights reserved.