public class Count extends AggregateFunction
argIndexes| Constructor and Description |
|---|
Count() |
| 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.
|
int |
setState(List<?> state,
int index) |
addInput, filter, getArgIndexes, initialize, respectsNull, setArgIndexes, setConditionIndexpublic void reset()
AggregateFunctionreset in class AggregateFunctionpublic void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunctionaddInputDirect in class AggregateFunctionTeiidProcessingExceptionTeiidComponentExceptionpublic Object getResult(CommandContext commandContext)
AggregateFunctiongetResult in class AggregateFunctionAggregateFunction.getResult(CommandContext)public void getState(List<Object> state)
getState in class AggregateFunctionpublic int setState(List<?> state, int index)
setState in class AggregateFunctionpublic List<? extends Class<?>> getStateTypes()
getStateTypes in class AggregateFunctionCopyright © 2017 JBoss by Red Hat. All rights reserved.