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

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.flink.table.expressions.UnresolvedReferenceExpression[]
     
    protected org.apache.flink.table.types.logical.LogicalType[]
     
    protected org.apache.flink.table.expressions.UnresolvedReferenceExpression
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RankLikeAggFunctionBase(org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.flink.table.expressions.Expression
    generateInitLiteral(org.apache.flink.table.types.logical.LogicalType orderType)
     
    org.apache.flink.table.types.DataType
     
    org.apache.flink.table.expressions.Expression
     
    org.apache.flink.table.expressions.Expression[]
     
    int
     
    protected org.apache.flink.table.expressions.Expression
     
    org.apache.flink.table.expressions.Expression[]
     

    Methods inherited from class org.apache.flink.table.functions.DeclarativeAggregateFunction

    accumulateExpressions, aggBufferAttributes, getAggBufferTypes, getKind, getTypeInference, initialValuesExpressions, mergeOperand, mergeOperands, operand, operands

    Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction

    close, functionIdentifier, open, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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:
      operandCount in class org.apache.flink.table.functions.DeclarativeAggregateFunction
    • getResultType

      public org.apache.flink.table.types.DataType getResultType()
      Specified by:
      getResultType in class org.apache.flink.table.functions.DeclarativeAggregateFunction
    • retractExpressions

      public org.apache.flink.table.expressions.Expression[] retractExpressions()
      Specified by:
      retractExpressions in class org.apache.flink.table.functions.DeclarativeAggregateFunction
    • mergeExpressions

      public org.apache.flink.table.expressions.Expression[] mergeExpressions()
      Specified by:
      mergeExpressions in class org.apache.flink.table.functions.DeclarativeAggregateFunction
    • getValueExpression

      public org.apache.flink.table.expressions.Expression getValueExpression()
      Specified by:
      getValueExpression in class org.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)