Class ArrayAgg
- java.lang.Object
-
- org.teiid.query.function.aggregate.AggregateFunction
-
- org.teiid.query.function.aggregate.SingleArgumentAggregateFunction
-
- org.teiid.query.function.aggregate.ArrayAgg
-
public class ArrayAgg extends SingleArgumentAggregateFunction
-
-
Field Summary
-
Fields inherited from class org.teiid.query.function.aggregate.AggregateFunction
argIndexes
-
-
Constructor Summary
Constructors Constructor Description ArrayAgg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
initialize(Class<?> dataType, Class<?> inputType)
void
reset()
Called to reset the state of the function.boolean
respectsNull()
-
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, getState, getStateTypes, setArgIndexes, setConditionIndex, setState
-
-
-
-
Method Detail
-
initialize
public void initialize(Class<?> dataType, Class<?> inputType)
- Overrides:
initialize
in classSingleArgumentAggregateFunction
-
addInputDirect
public void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
- Specified by:
addInputDirect
in classSingleArgumentAggregateFunction
- Throws:
TeiidComponentException
TeiidProcessingException
-
getResult
public Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException, TeiidProcessingException
Description copied from class:AggregateFunction
Called after all values have been processed to get the result.- Specified by:
getResult
in classAggregateFunction
- Returns:
- Result value
- Throws:
TeiidProcessingException
FunctionExecutionException
ExpressionEvaluationException
TeiidComponentException
-
reset
public void reset()
Description copied from class:AggregateFunction
Called to reset the state of the function.- Specified by:
reset
in classAggregateFunction
-
respectsNull
public boolean respectsNull()
- Overrides:
respectsNull
in classAggregateFunction
-
-