Class SingleArgumentAggregateFunction
- java.lang.Object
-
- org.teiid.query.function.aggregate.AggregateFunction
-
- org.teiid.query.function.aggregate.SingleArgumentAggregateFunction
-
- Direct Known Subclasses:
ArrayAgg
,ConstantFunction
,FirstLastValue
,JSONArrayAgg
,Max
,Min
,Ntile
,StatsFunction
,Sum
,TextAgg
,XMLAgg
public abstract class SingleArgumentAggregateFunction extends AggregateFunction
-
-
Field Summary
-
Fields inherited from class org.teiid.query.function.aggregate.AggregateFunction
argIndexes
-
-
Constructor Summary
Constructors Constructor Description SingleArgumentAggregateFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addInputDirect(Object input, List<?> tuple, CommandContext commandContext)
void
addInputDirect(List<?> tuple, CommandContext commandContext)
Called for the element value in every row of a group.void
initialize(Class<?> dataType, Class<?> inputType)
void
initialize(Class<?> dataType, Class<?>[] inputTypes)
Called to initialize the function.-
Methods inherited from class org.teiid.query.function.aggregate.AggregateFunction
addInput, filter, getArgIndexes, getOutputType, getResult, getState, getStateTypes, reset, respectsNull, setArgIndexes, setConditionIndex, setState
-
-
-
-
Method Detail
-
addInputDirect
public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
Description copied from class:AggregateFunction
Called for the element value in every row of a group.- Specified by:
addInputDirect
in classAggregateFunction
- Throws:
TeiidProcessingException
TeiidComponentException
-
initialize
public void initialize(Class<?> dataType, Class<?>[] inputTypes)
Description copied from class:AggregateFunction
Called to initialize the function. In the future this may expand with additional information.- Overrides:
initialize
in classAggregateFunction
- Parameters:
dataType
- Data type of element begin aggregated
-
initialize
public void initialize(Class<?> dataType, Class<?> inputType)
- Parameters:
dataType
-inputType
-
-
addInputDirect
public abstract void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws TeiidProcessingException, TeiidComponentException
-
-