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 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 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)
.
Copyright © 2017–2020. All rights reserved.