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, setConditionIndex
public void reset()
AggregateFunction
reset
in class AggregateFunction
public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunction
addInputDirect
in class AggregateFunction
TeiidProcessingException
TeiidComponentException
public Object getResult(CommandContext commandContext)
AggregateFunction
getResult
in class AggregateFunction
AggregateFunction.getResult(CommandContext)
public void getState(List<Object> state)
getState
in class AggregateFunction
public int setState(List<?> state, int index)
setState
in class AggregateFunction
public List<? extends Class<?>> getStateTypes()
getStateTypes
in class AggregateFunction
Copyright © 2017 JBoss by Red Hat. All rights reserved.