public class UDAggregate extends AbstractFunction implements AggregateFunction
AggregateFunction.AggregateAssignmentTestable.TestResult| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
initcond |
protected static org.slf4j.Logger |
logger |
protected AbstractType<?> |
stateType |
argTypes, name, returnType| 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) |
static UDAggregate |
create(Functions functions,
FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
static UDAggregate |
createBroken(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
java.nio.ByteBuffer initcond,
InvalidRequestException reason) |
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. |
ScalarFunction |
stateFunction() |
AbstractType<?> |
stateType() |
argTypes, name, returnType, testAssignment, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargTypes, name, returnTypetestAssignmentprotected static final org.slf4j.Logger logger
protected final AbstractType<?> stateType
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(Functions functions, FunctionName name, java.util.List<AbstractType<?>> argTypes, AbstractType<?> returnType, FunctionName stateFunc, FunctionName finalFunc, AbstractType<?> stateType, java.nio.ByteBuffer initcond) throws InvalidRequestException
InvalidRequestExceptionpublic static UDAggregate createBroken(FunctionName name, java.util.List<AbstractType<?>> argTypes, AbstractType<?> returnType, java.nio.ByteBuffer initcond, InvalidRequestException reason)
public boolean hasReferenceTo(Function function)
hasReferenceTo in interface FunctionhasReferenceTo in class AbstractFunctionpublic 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 int hashCode()
hashCode in class AbstractFunctionCopyright © 2016 The Apache Software Foundation