public class DseSchemaBuilder
extends com.datastax.oss.driver.api.querybuilder.SchemaBuilder
SchemaBuilder
for building
schema entities that have DSE specific functionality.Constructor and Description |
---|
DseSchemaBuilder() |
Modifier and Type | Method and Description |
---|---|
static com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart |
createAggregate(com.datastax.oss.driver.api.core.CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart |
createAggregate(com.datastax.oss.driver.api.core.CqlIdentifier keyspace,
com.datastax.oss.driver.api.core.CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart |
createAggregate(String aggregateName)
Shortcut for
createAggregate(CqlIdentifier.fromCql(aggregateName) . |
static com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart |
createAggregate(String keyspace,
String aggregateName)
|
static CreateDseAggregateStart |
createDseAggregate(com.datastax.oss.driver.api.core.CqlIdentifier aggregateId)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateDseAggregateStart |
createDseAggregate(com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId,
com.datastax.oss.driver.api.core.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(com.datastax.oss.driver.api.core.CqlIdentifier functionId)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateDseFunctionStart |
createDseFunction(com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId,
com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.CreateFunctionStart |
createFunction(com.datastax.oss.driver.api.core.CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name.
|
static com.datastax.oss.driver.api.querybuilder.schema.CreateFunctionStart |
createFunction(com.datastax.oss.driver.api.core.CqlIdentifier keyspace,
com.datastax.oss.driver.api.core.CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
static com.datastax.oss.driver.api.querybuilder.schema.CreateFunctionStart |
createFunction(String functionName)
|
static com.datastax.oss.driver.api.querybuilder.schema.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 com.datastax.oss.driver.api.core.CqlIdentifier aggregateId)
@NonNull public static CreateDseAggregateStart createDseAggregate(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId, @NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart createAggregate(@NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.CreateAggregateStart createAggregate(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, @NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.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 com.datastax.oss.driver.api.querybuilder.schema.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 com.datastax.oss.driver.api.core.CqlIdentifier functionId)
@NonNull public static CreateDseFunctionStart createDseFunction(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId, @NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.CreateFunctionStart createFunction(@NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.CreateFunctionStart createFunction(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, @NonNull com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.querybuilder.schema.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 com.datastax.oss.driver.api.querybuilder.schema.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–2019. All rights reserved.