Class Min
- java.lang.Object
-
- org.teiid.query.function.aggregate.AggregateFunction
-
- org.teiid.query.function.aggregate.SingleArgumentAggregateFunction
-
- org.teiid.query.function.aggregate.Min
-
public class Min extends SingleArgumentAggregateFunction
-
-
Field Summary
-
Fields inherited from class org.teiid.query.function.aggregate.AggregateFunction
argIndexes
-
-
Constructor Summary
Constructors Constructor Description Min()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInputDirect(Object value, List<?> tuple, CommandContext commandContext)ObjectgetResult(CommandContext commandContext)Called after all values have been processed to get the result.voidgetState(List<Object> state)List<? extends Class<?>>getStateTypes()voidinitialize(Class<?> dataType, Class<?> inputType)voidreset()Called to reset the state of the function.intsetState(List<?> state, int index)-
Methods inherited from class org.teiid.query.function.aggregate.SingleArgumentAggregateFunction
addInputDirect, initialize
-
Methods inherited from class org.teiid.query.function.aggregate.AggregateFunction
addInput, filter, getArgIndexes, getOutputType, respectsNull, setArgIndexes, setConditionIndex
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from class:AggregateFunctionCalled to reset the state of the function.- Specified by:
resetin classAggregateFunction
-
initialize
public void initialize(Class<?> dataType, Class<?> inputType)
- Overrides:
initializein classSingleArgumentAggregateFunction
-
addInputDirect
public void addInputDirect(Object value, List<?> tuple, CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
- Specified by:
addInputDirectin classSingleArgumentAggregateFunction- Throws:
FunctionExecutionExceptionExpressionEvaluationExceptionTeiidComponentException
-
getResult
public Object getResult(CommandContext commandContext)
Description copied from class:AggregateFunctionCalled after all values have been processed to get the result.- Specified by:
getResultin classAggregateFunction- Returns:
- Result value
- See Also:
AggregateFunction.getResult(CommandContext)
-
getStateTypes
public List<? extends Class<?>> getStateTypes()
- Overrides:
getStateTypesin classAggregateFunction
-
getState
public void getState(List<Object> state)
- Overrides:
getStatein classAggregateFunction
-
setState
public int setState(List<?> state, int index)
- Overrides:
setStatein classAggregateFunction
-
-