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, setConditionIndex
public UserDefined(FunctionDescriptor functionDescriptor) throws FunctionExecutionException
FunctionExecutionException
public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunction
addInputDirect
in class AggregateFunction
TeiidProcessingException
TeiidComponentException
public void reset()
AggregateFunction
reset
in class AggregateFunction
public Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException, TeiidProcessingException
AggregateFunction
getResult
in class AggregateFunction
TeiidProcessingException
FunctionExecutionException
ExpressionEvaluationException
TeiidComponentException
public boolean respectsNull()
respectsNull
in class AggregateFunction
public List<? extends Class<?>> getStateTypes()
getStateTypes
in class AggregateFunction
public void getState(List<Object> state)
getState
in class AggregateFunction
public int setState(List<?> state, int index)
setState
in class AggregateFunction
Copyright © 2019. All rights reserved.