Class RankLikeAggFunctionBase
java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.DeclarativeAggregateFunction
org.apache.flink.table.planner.functions.aggfunctions.RankLikeAggFunctionBase
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
- Direct Known Subclasses:
DenseRankAggFunction,RankAggFunction
public abstract class RankLikeAggFunctionBase
extends org.apache.flink.table.functions.DeclarativeAggregateFunction
built-in rank like aggregate function, e.g. rank, dense_rank
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.flink.table.expressions.UnresolvedReferenceExpression[]protected org.apache.flink.table.types.logical.LogicalType[]protected org.apache.flink.table.expressions.UnresolvedReferenceExpression -
Constructor Summary
ConstructorsConstructorDescriptionRankLikeAggFunctionBase(org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.flink.table.expressions.ExpressiongenerateInitLiteral(org.apache.flink.table.types.logical.LogicalType orderType) org.apache.flink.table.types.DataTypeorg.apache.flink.table.expressions.Expressionorg.apache.flink.table.expressions.Expression[]intprotected org.apache.flink.table.expressions.Expressionorg.apache.flink.table.expressions.Expression[]Methods inherited from class org.apache.flink.table.functions.DeclarativeAggregateFunction
accumulateExpressions, aggBufferAttributes, getAggBufferTypes, getKind, getTypeInference, initialValuesExpressions, mergeOperand, mergeOperands, operand, operandsMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.functions.FunctionDefinition
getRequirements, isDeterministic, supportsConstantFolding
-
Field Details
-
sequence
protected org.apache.flink.table.expressions.UnresolvedReferenceExpression sequence -
lastValues
protected org.apache.flink.table.expressions.UnresolvedReferenceExpression[] lastValues -
orderKeyTypes
protected org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes
-
-
Constructor Details
-
RankLikeAggFunctionBase
public RankLikeAggFunctionBase(org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes)
-
-
Method Details
-
operandCount
public int operandCount()- Specified by:
operandCountin classorg.apache.flink.table.functions.DeclarativeAggregateFunction
-
getResultType
public org.apache.flink.table.types.DataType getResultType()- Specified by:
getResultTypein classorg.apache.flink.table.functions.DeclarativeAggregateFunction
-
retractExpressions
public org.apache.flink.table.expressions.Expression[] retractExpressions()- Specified by:
retractExpressionsin classorg.apache.flink.table.functions.DeclarativeAggregateFunction
-
mergeExpressions
public org.apache.flink.table.expressions.Expression[] mergeExpressions()- Specified by:
mergeExpressionsin classorg.apache.flink.table.functions.DeclarativeAggregateFunction
-
getValueExpression
public org.apache.flink.table.expressions.Expression getValueExpression()- Specified by:
getValueExpressionin classorg.apache.flink.table.functions.DeclarativeAggregateFunction
-
orderKeyEqualsExpression
protected org.apache.flink.table.expressions.Expression orderKeyEqualsExpression() -
generateInitLiteral
protected org.apache.flink.table.expressions.Expression generateInitLiteral(org.apache.flink.table.types.logical.LogicalType orderType)
-