public class StatsFunction extends SingleArgumentAggregateFunction
argIndexes| Constructor and Description | 
|---|
| StatsFunction(AggregateSymbol.Type function) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addInputDirect(Object input,
              List<?> tuple,
              CommandContext commandContext) | 
| 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. | 
| int | setState(List<?> state,
        int index) | 
addInputDirect, initialize, initializeaddInput, filter, getArgIndexes, respectsNull, setArgIndexes, setConditionIndexpublic StatsFunction(AggregateSymbol.Type function)
public void reset()
AggregateFunctionreset in class AggregateFunctionpublic void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
addInputDirect in class SingleArgumentAggregateFunctionFunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentExceptionpublic Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
AggregateFunctiongetResult in class AggregateFunctionFunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentExceptionpublic void getState(List<Object> state)
getState in class AggregateFunctionpublic List<? extends Class<?>> getStateTypes()
getStateTypes in class AggregateFunctionpublic int setState(List<?> state, int index)
setState in class AggregateFunctionCopyright © 2018 JBoss by Red Hat. All rights reserved.