public class ConstantFunction extends SingleArgumentAggregateFunction
argIndexes| Constructor and Description |
|---|
ConstantFunction() |
| 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 |
reset()
Called to reset the state of the function.
|
boolean |
respectsNull() |
addInputDirect, initialize, initializeaddInput, filter, getArgIndexes, getOutputType, getState, getStateTypes, setArgIndexes, setConditionIndex, setStatepublic void reset()
AggregateFunctionreset in class AggregateFunctionpublic boolean respectsNull()
respectsNull in class AggregateFunctionpublic void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
addInputDirect in class SingleArgumentAggregateFunctionFunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentExceptionorg.teiid.query.function.aggregate.AggregateFunction#addInputDirect(List, CommandContext, CommandContext)public Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
AggregateFunctiongetResult in class AggregateFunctionFunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentExceptionAggregateFunction.getResult(CommandContext)Copyright © 2018 JBoss by Red Hat. All rights reserved.