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