@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(CqlIdentifier functionName) |
DefaultCreateDseAggregate(CqlIdentifier keyspace,
CqlIdentifier functionName) |
DefaultCreateDseAggregate(CqlIdentifier keyspace,
CqlIdentifier functionName,
boolean orReplace,
boolean ifNotExists,
com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<DataType> parameters,
CqlIdentifier sFunc,
DataType sType,
CqlIdentifier finalFunc,
Term term,
boolean deterministic) |
Modifier and Type | Method and Description |
---|---|
String |
asCql() |
CreateDseAggregateEnd |
deterministic()
Adds "DETERMINISTIC" to create aggregate specification.
|
CqlIdentifier |
getFinalFunc() |
CqlIdentifier |
getFunctionName() |
CqlIdentifier |
getKeyspace() |
com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<DataType> |
getParameters() |
CqlIdentifier |
getsFunc() |
DataType |
getsType() |
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(CqlIdentifier finalFunc)
Adds FINALFUNC to the create aggregate query.
|
CreateDseAggregateEnd |
withInitCond(Term term)
Adds INITCOND to the aggregate query.
|
CreateDseAggregateStart |
withParameter(DataType paramType)
Adds a parameter definition in the CREATE AGGREGATE statement.
|
CreateDseAggregateStateFunc |
withSFunc(CqlIdentifier sFunc)
Adds SFUNC to the create aggregate specification.
|
CreateDseAggregateEnd |
withSType(DataType sType)
Adds STYPE to the create aggregate query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
withFinalFunc
build, build, build, builder
withSFunc
public DefaultCreateDseAggregate(@NonNull CqlIdentifier functionName)
public DefaultCreateDseAggregate(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier functionName)
public DefaultCreateDseAggregate(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier functionName, boolean orReplace, boolean ifNotExists, @NonNull com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<DataType> parameters, @Nullable CqlIdentifier sFunc, @Nullable DataType sType, @Nullable CqlIdentifier finalFunc, @Nullable Term term, boolean deterministic)
@NonNull public String asCql()
asCql
in interface BuildableQuery
@NonNull public CreateDseAggregateEnd withInitCond(@NonNull 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 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 CqlIdentifier sFunc)
CreateDseAggregateStart
withSFunc
in interface CreateDseAggregateStart
@NonNull public CreateDseAggregateEnd withSType(@NonNull 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 CqlIdentifier finalFunc)
CreateDseAggregateEnd
withFinalFunc
in interface CreateDseAggregateEnd
@NonNull public CreateDseAggregateEnd deterministic()
CreateDseAggregateEnd
deterministic
in interface CreateDseAggregateEnd
@Nullable public CqlIdentifier getKeyspace()
@NonNull public CqlIdentifier getFunctionName()
public boolean isOrReplace()
public boolean isIfNotExists()
@NonNull public com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<DataType> getParameters()
@Nullable public CqlIdentifier getsFunc()
@Nullable public DataType getsType()
@Nullable public CqlIdentifier getFinalFunc()
@Nullable public Term getTerm()
public boolean isDeterministic()
Copyright © 2017–2019. All rights reserved.