public class UDAggregate extends AbstractFunction implements AggregateFunction, SchemaElement
AggregateFunction.AggregateAssignmentTestable.TestResultSchemaElement.SchemaElementType| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
initcond |
protected static org.slf4j.Logger |
logger |
argTypes, name, returnTypeNAME_COMPARATOR| Constructor and Description |
|---|
UDAggregate(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
ScalarFunction stateFunc,
ScalarFunction finalFunc,
java.nio.ByteBuffer initcond) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctionsTo(java.util.List<Function> functions) |
java.util.Optional<Difference> |
compare(Function function) |
static UDAggregate |
create(java.util.Collection<UDFunction> functions,
FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
SchemaElement.SchemaElementType |
elementType()
Return the schema element type
|
boolean |
equals(java.lang.Object o) |
ScalarFunction |
finalFunction() |
int |
hashCode() |
boolean |
hasReferenceTo(Function function) |
java.nio.ByteBuffer |
initialCondition() |
boolean |
isAggregate()
Checks whether the function is an aggregate function or not.
|
boolean |
isNative()
Checks whether the function is a native/hard coded one or not.
|
AggregateFunction.Aggregate |
newAggregate()
Creates a new
Aggregate instance. |
boolean |
referencesUserType(java.nio.ByteBuffer name) |
ScalarFunction |
stateFunction() |
AbstractType<?> |
stateType() |
java.lang.String |
toCqlString(boolean withInternals,
boolean ifNotExists)
Returns a CQL representation of this element
|
UDAggregate |
withUpdatedUserType(java.util.Collection<UDFunction> udfs,
UserType udt) |
argTypes, argumentsList, columnName, elementKeyspace, elementName, name, returnType, testAssignment, toCqlString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargTypes, columnName, name, returnTypetestAssignmentelementKeyspace, elementKeyspaceQuotedIfNeeded, elementName, elementNameQuotedIfNeededprotected static final org.slf4j.Logger logger
protected final java.nio.ByteBuffer initcond
public UDAggregate(FunctionName name, java.util.List<AbstractType<?>> argTypes, AbstractType<?> returnType, ScalarFunction stateFunc, ScalarFunction finalFunc, java.nio.ByteBuffer initcond)
public static UDAggregate create(java.util.Collection<UDFunction> functions, FunctionName name, java.util.List<AbstractType<?>> argTypes, AbstractType<?> returnType, FunctionName stateFunc, FunctionName finalFunc, AbstractType<?> stateType, java.nio.ByteBuffer initcond)
public boolean hasReferenceTo(Function function)
public boolean referencesUserType(java.nio.ByteBuffer name)
referencesUserType in interface FunctionreferencesUserType in class AbstractFunctionpublic UDAggregate withUpdatedUserType(java.util.Collection<UDFunction> udfs, UserType udt)
public void addFunctionsTo(java.util.List<Function> functions)
addFunctionsTo in interface FunctionaddFunctionsTo in class AbstractFunctionpublic boolean isAggregate()
FunctionisAggregate in interface Functiontrue if the function is an aggregate function, false otherwise.public boolean isNative()
Functionpublic ScalarFunction stateFunction()
public ScalarFunction finalFunction()
public java.nio.ByteBuffer initialCondition()
public AbstractType<?> stateType()
public AggregateFunction.Aggregate newAggregate() throws InvalidRequestException
AggregateFunctionAggregate instance.newAggregate in interface AggregateFunctionAggregate instance.InvalidRequestExceptionpublic boolean equals(java.lang.Object o)
equals in class AbstractFunctionpublic java.util.Optional<Difference> compare(Function function)
public int hashCode()
hashCode in class AbstractFunctionpublic SchemaElement.SchemaElementType elementType()
SchemaElementelementType in interface SchemaElementpublic java.lang.String toCqlString(boolean withInternals,
boolean ifNotExists)
SchemaElementtoCqlString in interface SchemaElementwithInternals - if the internals part of the CQL should be exposed.ifNotExists - if "IF NOT EXISTS" should be included.Copyright © 2009-2022 The Apache Software Foundation