@Immutable public class DefaultCreateDseAggregate extends Object implements CreateDseAggregateEnd, CreateDseAggregateStart, CreateDseAggregateStateFunc
DefaultCreateAggregate
implementation, with
the additional DSE specific extended functionality (DETERMINISTIC keyword).Constructor and Description |
---|
DefaultCreateDseAggregate(com.datastax.oss.driver.api.core.CqlIdentifier functionName) |
DefaultCreateDseAggregate(com.datastax.oss.driver.api.core.CqlIdentifier keyspace,
com.datastax.oss.driver.api.core.CqlIdentifier functionName) |
DefaultCreateDseAggregate(com.datastax.oss.driver.api.core.CqlIdentifier keyspace,
com.datastax.oss.driver.api.core.CqlIdentifier functionName,
boolean orReplace,
boolean ifNotExists,
com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<com.datastax.oss.driver.api.core.type.DataType> parameters,
com.datastax.oss.driver.api.core.CqlIdentifier sFunc,
com.datastax.oss.driver.api.core.type.DataType sType,
com.datastax.oss.driver.api.core.CqlIdentifier finalFunc,
com.datastax.oss.driver.api.querybuilder.term.Term term,
boolean deterministic) |
Modifier and Type | Method and Description |
---|---|
String |
asCql() |
CreateDseAggregateEnd |
deterministic()
Adds "DETERMINISTIC" to create aggregate specification.
|
com.datastax.oss.driver.api.core.CqlIdentifier |
getFinalFunc() |
com.datastax.oss.driver.api.core.CqlIdentifier |
getFunctionName() |
com.datastax.oss.driver.api.core.CqlIdentifier |
getKeyspace() |
com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<com.datastax.oss.driver.api.core.type.DataType> |
getParameters() |
com.datastax.oss.driver.api.core.CqlIdentifier |
getsFunc() |
com.datastax.oss.driver.api.core.type.DataType |
getsType() |
com.datastax.oss.driver.api.querybuilder.term.Term |
getTerm() |
CreateDseAggregateStart |
ifNotExists()
Adds IF NOT EXISTS to the create aggregate specification.
|
boolean |
isDeterministic() |
boolean |
isIfNotExists() |
boolean |
isOrReplace() |
CreateDseAggregateStart |
orReplace()
Adds OR REPLACE to the create aggregate specification.
|
String |
toString() |
CreateDseAggregateEnd |
withFinalFunc(com.datastax.oss.driver.api.core.CqlIdentifier finalFunc)
Adds FINALFUNC to the create aggregate query.
|
CreateDseAggregateEnd |
withInitCond(com.datastax.oss.driver.api.querybuilder.term.Term term)
Adds INITCOND to the aggregate query.
|
CreateDseAggregateStart |
withParameter(com.datastax.oss.driver.api.core.type.DataType paramType)
Adds a parameter definition in the CREATE AGGREGATE statement.
|
CreateDseAggregateStateFunc |
withSFunc(com.datastax.oss.driver.api.core.CqlIdentifier sFunc)
Adds SFUNC to the create aggregate specification.
|
CreateDseAggregateEnd |
withSType(com.datastax.oss.driver.api.core.type.DataType sType)
Adds STYPE to the create aggregate query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
withFinalFunc
build, builder
withSFunc
public DefaultCreateDseAggregate(@NonNull com.datastax.oss.driver.api.core.CqlIdentifier functionName)
public DefaultCreateDseAggregate(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, @NonNull com.datastax.oss.driver.api.core.CqlIdentifier functionName)
public DefaultCreateDseAggregate(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, @NonNull com.datastax.oss.driver.api.core.CqlIdentifier functionName, boolean orReplace, boolean ifNotExists, @NonNull com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<com.datastax.oss.driver.api.core.type.DataType> parameters, @Nullable com.datastax.oss.driver.api.core.CqlIdentifier sFunc, @Nullable com.datastax.oss.driver.api.core.type.DataType sType, @Nullable com.datastax.oss.driver.api.core.CqlIdentifier finalFunc, @Nullable com.datastax.oss.driver.api.querybuilder.term.Term term, boolean deterministic)
@NonNull public String asCql()
asCql
in interface com.datastax.oss.driver.api.querybuilder.BuildableQuery
@NonNull public CreateDseAggregateEnd withInitCond(@NonNull com.datastax.oss.driver.api.querybuilder.term.Term term)
CreateDseAggregateEnd
withInitCond
in interface CreateDseAggregateEnd
@NonNull public CreateDseAggregateStart ifNotExists()
CreateDseAggregateStart
ifNotExists
in interface CreateDseAggregateStart
@NonNull public CreateDseAggregateStart orReplace()
CreateDseAggregateStart
orReplace
in interface CreateDseAggregateStart
@NonNull public CreateDseAggregateStart withParameter(@NonNull com.datastax.oss.driver.api.core.type.DataType paramType)
CreateDseAggregateStart
Parameter 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)
.
withParameter
in interface CreateDseAggregateStart
@NonNull public CreateDseAggregateStateFunc withSFunc(@NonNull com.datastax.oss.driver.api.core.CqlIdentifier sFunc)
CreateDseAggregateStart
withSFunc
in interface CreateDseAggregateStart
@NonNull public CreateDseAggregateEnd withSType(@NonNull com.datastax.oss.driver.api.core.type.DataType sType)
CreateDseAggregateStateFunc
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
withSType
in interface CreateDseAggregateStateFunc
@NonNull public CreateDseAggregateEnd withFinalFunc(@NonNull com.datastax.oss.driver.api.core.CqlIdentifier finalFunc)
CreateDseAggregateEnd
withFinalFunc
in interface CreateDseAggregateEnd
@NonNull public CreateDseAggregateEnd deterministic()
CreateDseAggregateEnd
deterministic
in interface CreateDseAggregateEnd
@Nullable public com.datastax.oss.driver.api.core.CqlIdentifier getKeyspace()
@NonNull public com.datastax.oss.driver.api.core.CqlIdentifier getFunctionName()
public boolean isOrReplace()
public boolean isIfNotExists()
@NonNull public com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<com.datastax.oss.driver.api.core.type.DataType> getParameters()
@Nullable public com.datastax.oss.driver.api.core.CqlIdentifier getsFunc()
@Nullable public com.datastax.oss.driver.api.core.type.DataType getsType()
@Nullable public com.datastax.oss.driver.api.core.CqlIdentifier getFinalFunc()
@Nullable public com.datastax.oss.driver.api.querybuilder.term.Term getTerm()
public boolean isDeterministic()
Copyright © 2017–2019. All rights reserved.