public class FirstLastValue extends SingleArgumentAggregateFunction
argIndexes| Constructor and Description |
|---|
FirstLastValue(Class<?> type,
boolean first) |
| 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.
|
boolean |
respectsNull() |
int |
setState(List<?> state,
int index) |
addInputDirect, initialize, initializeaddInput, filter, getArgIndexes, getOutputType, setArgIndexes, setConditionIndexpublic FirstLastValue(Class<?> type, boolean first)
public void reset()
AggregateFunctionreset in class AggregateFunctionpublic void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws TeiidProcessingException, TeiidComponentException
addInputDirect in class SingleArgumentAggregateFunctionTeiidProcessingExceptionTeiidComponentExceptionpublic 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 AggregateFunctionpublic boolean respectsNull()
respectsNull in class AggregateFunctionCopyright © 2019. All rights reserved.