public class UserDefined extends AggregateFunction
argIndexes| Constructor and Description |
|---|
UserDefined(FunctionDescriptor functionDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInputDirect(List<?> tuple,
CommandContext commandContext)
Called for the element value in every row of a group.
|
Object |
getResult(CommandContext commandContext)
Called after all values have been processed to get the result.
|
void |
getState(List<Object> state) |
List<? extends Class<?>> |
getStateTypes() |
void |
reset()
Called to reset the state of the function.
|
boolean |
respectsNull() |
int |
setState(List<?> state,
int index) |
addInput, filter, getArgIndexes, getOutputType, initialize, setArgIndexes, setConditionIndexpublic UserDefined(FunctionDescriptor functionDescriptor) throws FunctionExecutionException
FunctionExecutionExceptionpublic void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunctionaddInputDirect in class AggregateFunctionTeiidProcessingExceptionTeiidComponentExceptionpublic void reset()
AggregateFunctionreset in class AggregateFunctionpublic Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException, TeiidProcessingException
AggregateFunctiongetResult in class AggregateFunctionTeiidProcessingExceptionFunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentExceptionpublic boolean respectsNull()
respectsNull in class AggregateFunctionpublic List<? extends Class<?>> getStateTypes()
getStateTypes in class AggregateFunctionpublic void getState(List<Object> state)
getState in class AggregateFunctionpublic int setState(List<?> state, int index)
setState in class AggregateFunctionCopyright © 2019. All rights reserved.