Class RankingFunction
- java.lang.Object
-
- org.teiid.query.function.aggregate.AggregateFunction
-
- org.teiid.query.function.aggregate.RankingFunction
-
public class RankingFunction extends AggregateFunction
computes rank/dense_rank
-
-
Field Summary
-
Fields inherited from class org.teiid.query.function.aggregate.AggregateFunction
argIndexes
-
-
Constructor Summary
Constructors Constructor Description RankingFunction(AggregateSymbol.Type function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
reset()
Called to reset the state of the function.-
Methods inherited from class org.teiid.query.function.aggregate.AggregateFunction
addInput, filter, getArgIndexes, getOutputType, getState, getStateTypes, initialize, respectsNull, setArgIndexes, setConditionIndex, setState
-
-
-
-
Constructor Detail
-
RankingFunction
public RankingFunction(AggregateSymbol.Type function)
-
-
Method Detail
-
reset
public void reset()
Description copied from class:AggregateFunction
Called to reset the state of the function.- Specified by:
reset
in classAggregateFunction
-
addInputDirect
public void addInputDirect(List<?> tuple, CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
Description copied from class:AggregateFunction
Called for the element value in every row of a group.- Specified by:
addInputDirect
in classAggregateFunction
- Throws:
FunctionExecutionException
ExpressionEvaluationException
TeiidComponentException
-
getResult
public Object getResult(CommandContext commandContext) throws FunctionExecutionException, ExpressionEvaluationException, TeiidComponentException
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:
FunctionExecutionException
ExpressionEvaluationException
TeiidComponentException
-
-