public class DseSchemaBuilder extends SchemaBuilder
SchemaBuilder
for building
schema entities that have DSE specific functionality.SchemaBuilder.RowsPerPartition
Constructor and Description |
---|
DseSchemaBuilder() |
Modifier and Type | Method and Description |
---|---|
static AlterDseKeyspaceStart |
alterDseKeyspace(CqlIdentifier keyspaceName)
Starts an ALTER KEYSPACE query.
|
static AlterDseKeyspaceStart |
alterDseKeyspace(String keyspaceName)
Shortcut for
alterKeyspace(CqlIdentifier.fromCql(keyspaceName) . |
static AlterDseTableStart |
alterDseTable(CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name.
|
static AlterDseTableStart |
alterDseTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name for the given keyspace name.
|
static AlterDseTableStart |
alterDseTable(String tableName)
Shortcut for
alterDseTable(CqlIdentifier.fromCql(tableName) |
static AlterDseTableStart |
alterDseTable(String keyspace,
String tableName)
|
static CreateAggregateStart |
createAggregate(CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateAggregateStart |
createAggregate(CqlIdentifier keyspace,
CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static CreateAggregateStart |
createAggregate(String aggregateName)
Shortcut for
createAggregate(CqlIdentifier.fromCql(aggregateName) . |
static CreateAggregateStart |
createAggregate(String keyspace,
String aggregateName)
|
static CreateDseAggregateStart |
createDseAggregate(CqlIdentifier aggregateId)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateDseAggregateStart |
createDseAggregate(CqlIdentifier keyspaceId,
CqlIdentifier aggregateId)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static CreateDseAggregateStart |
createDseAggregate(String aggregateName)
Shortcut for
createDseAggregate(CqlIdentifier.fromCql(aggregateName)) . |
static CreateDseAggregateStart |
createDseAggregate(String keyspaceName,
String aggregateName)
|
static CreateDseFunctionStart |
createDseFunction(CqlIdentifier functionId)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateDseFunctionStart |
createDseFunction(CqlIdentifier keyspaceId,
CqlIdentifier functionId)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
static CreateDseFunctionStart |
createDseFunction(String functionName)
Shortcut for
createFunction(CqlIdentifier.fromCql(functionName) |
static CreateDseFunctionStart |
createDseFunction(String keyspaceName,
String functionName)
|
static CreateDseKeyspaceStart |
createDseKeyspace(CqlIdentifier keyspaceName)
Starts a CREATE KEYSPACE query.
|
static CreateDseKeyspaceStart |
createDseKeyspace(String keyspaceName)
Shortcut for
createKeyspace(CqlIdentifier.fromCql(keyspaceName)) |
static CreateDseTableStart |
createDseTable(CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name.
|
static CreateDseTableStart |
createDseTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name for the given keyspace name.
|
static CreateDseTableStart |
createDseTable(String tableName)
Shortcut for
createDseTable(CqlIdentifier.fromCql(tableName) |
static CreateDseTableStart |
createDseTable(String keyspace,
String tableName)
|
static CreateFunctionStart |
createFunction(CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateFunctionStart |
createFunction(CqlIdentifier keyspace,
CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
static CreateFunctionStart |
createFunction(String functionName)
|
static CreateFunctionStart |
createFunction(String keyspace,
String functionName)
|
alterKeyspace, alterKeyspace, alterMaterializedView, alterMaterializedView, alterMaterializedView, alterMaterializedView, alterTable, alterTable, alterTable, alterTable, alterType, alterType, alterType, alterType, createIndex, createIndex, createIndex, createKeyspace, createKeyspace, createMaterializedView, createMaterializedView, createMaterializedView, createMaterializedView, createTable, createTable, createTable, createTable, createType, createType, createType, createType, dropAggregate, dropAggregate, dropAggregate, dropAggregate, dropFunction, dropFunction, dropFunction, dropFunction, dropIndex, dropIndex, dropIndex, dropIndex, dropKeyspace, dropKeyspace, dropMaterializedView, dropMaterializedView, dropMaterializedView, dropMaterializedView, dropTable, dropTable, dropTable, dropTable, dropType, dropType, dropType, dropType, leveledCompactionStrategy, sizeTieredCompactionStrategy, timeWindowCompactionStrategy, udt, udt
@NonNull public static CreateDseAggregateStart createDseAggregate(@NonNull CqlIdentifier aggregateId)
@NonNull public static CreateDseAggregateStart createDseAggregate(@Nullable CqlIdentifier keyspaceId, @NonNull CqlIdentifier aggregateId)
@NonNull public static CreateDseAggregateStart createDseAggregate(@NonNull String aggregateName)
createDseAggregate(CqlIdentifier.fromCql(aggregateName))
.@NonNull public static CreateDseAggregateStart createDseAggregate(@Nullable String keyspaceName, @NonNull String aggregateName)
@NonNull public static CreateAggregateStart createAggregate(@NonNull CqlIdentifier aggregateName)
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the DETERMINISTIC
keyword, use createDseAggregate(CqlIdentifier)
.
@NonNull public static CreateAggregateStart createAggregate(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier aggregateName)
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the DETERMINISTIC
keyword, use createDseAggregate(CqlIdentifier, CqlIdentifier)
.
@NonNull public static CreateAggregateStart createAggregate(@NonNull String aggregateName)
createAggregate(CqlIdentifier.fromCql(aggregateName)
.
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the DETERMINISTIC
keyword, use createDseAggregate(String)
.
@NonNull public static CreateAggregateStart createAggregate(@Nullable String keyspace, @NonNull String aggregateName)
createAggregate(CqlIdentifier.fromCql(keyspace), CqlIdentifier.fromCql(aggregateName)
.
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the DETERMINISTIC
keyword, use createDseAggregate(String, String)
.
@NonNull public static CreateDseFunctionStart createDseFunction(@NonNull CqlIdentifier functionId)
@NonNull public static CreateDseFunctionStart createDseFunction(@Nullable CqlIdentifier keyspaceId, @NonNull CqlIdentifier functionId)
@NonNull public static CreateDseFunctionStart createDseFunction(@NonNull String functionName)
createFunction(CqlIdentifier.fromCql(functionName)
@NonNull public static CreateDseFunctionStart createDseFunction(@Nullable String keyspaceName, @NonNull String functionName)
@NonNull public static CreateFunctionStart createFunction(@NonNull CqlIdentifier functionName)
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the MONOTONIC
or DETERMINISTIC
keywords, use
createDseFunction(CqlIdentifier)
.
@NonNull public static CreateFunctionStart createFunction(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier functionName)
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the MONOTONIC
or DETERMINISTIC
keywords, use
createDseFunction(CqlIdentifier,CqlIdentifier)
.
@NonNull public static CreateFunctionStart createFunction(@NonNull String functionName)
createFunction(CqlIdentifier.fromCql(keyspace, functionName)
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the MONOTONIC
or DETERMINISTIC
keywords, use
createDseFunction(String)
.
@NonNull public static CreateFunctionStart createFunction(@Nullable String keyspace, @NonNull String functionName)
createFunction(CqlIdentifier.fromCql(keyspaceName),CqlIdentifier.fromCql(functionName)
.
Note that this method only covers open-source Cassandra syntax. If you want to use
DSE-specific features, such as the MONOTONIC
or DETERMINISTIC
keywords, use
createDseFunction(String, String)
.
@NonNull public static CreateDseKeyspaceStart createDseKeyspace(@NonNull CqlIdentifier keyspaceName)
@NonNull public static CreateDseKeyspaceStart createDseKeyspace(@NonNull String keyspaceName)
createKeyspace(CqlIdentifier.fromCql(keyspaceName))
@NonNull public static AlterDseKeyspaceStart alterDseKeyspace(@NonNull CqlIdentifier keyspaceName)
@NonNull public static AlterDseKeyspaceStart alterDseKeyspace(@NonNull String keyspaceName)
alterKeyspace(CqlIdentifier.fromCql(keyspaceName)
.@NonNull public static CreateDseTableStart createDseTable(@NonNull CqlIdentifier tableName)
@NonNull public static CreateDseTableStart createDseTable(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier tableName)
@NonNull public static CreateDseTableStart createDseTable(@NonNull String tableName)
createDseTable(CqlIdentifier.fromCql(tableName)
@NonNull public static CreateDseTableStart createDseTable(@Nullable String keyspace, @NonNull String tableName)
@NonNull public static AlterDseTableStart alterDseTable(@NonNull CqlIdentifier tableName)
@NonNull public static AlterDseTableStart alterDseTable(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier tableName)
@NonNull public static AlterDseTableStart alterDseTable(@NonNull String tableName)
alterDseTable(CqlIdentifier.fromCql(tableName)
@NonNull public static AlterDseTableStart alterDseTable(@Nullable String keyspace, @NonNull String tableName)
Copyright © 2017–2023. All rights reserved.