public interface OngoingDsePartitionKey
Modifier and Type | Method and Description |
---|---|
CreateDseTable |
withPartitionKey(CqlIdentifier columnName,
DataType dataType)
Adds a partition key column definition.
|
default CreateDseTable |
withPartitionKey(String columnName,
DataType dataType)
|
@NonNull CreateDseTable 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 CreateDseTable withPartitionKey(@NonNull String columnName, @NonNull DataType dataType)
Copyright © 2017–2022. All rights reserved.