Class AbstractAsyncStateTopNFunction

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.streaming.api.functions.KeyedProcessFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
org.apache.flink.table.runtime.operators.rank.AbstractTopNFunction
org.apache.flink.table.runtime.operators.rank.async.AbstractAsyncStateTopNFunction
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction
Direct Known Subclasses:
AsyncStateAppendOnlyTopNFunction, AsyncStateFastTop1Function

public abstract class AbstractAsyncStateTopNFunction extends AbstractTopNFunction
Base class for TopN Function with async state api.
See Also:
  • Constructor Details

    • AbstractAsyncStateTopNFunction

      public AbstractAsyncStateTopNFunction(org.apache.flink.api.common.state.StateTtlConfig ttlConfig, InternalTypeInfo<org.apache.flink.table.data.RowData> inputRowType, GeneratedRecordComparator generatedSortKeyComparator, RowDataKeySelector sortKeySelector, RankType rankType, RankRange rankRange, boolean generateUpdateBefore, boolean outputRankNumber)
  • Method Details

    • open

      public void open(org.apache.flink.api.common.functions.OpenContext openContext) throws Exception
      Specified by:
      open in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      open in class AbstractTopNFunction
      Throws:
      Exception
    • initRankEnd

      protected org.apache.flink.api.common.state.v2.StateFuture<Long> initRankEnd(org.apache.flink.table.data.RowData row)
      Initialize rank end.
      Parameters:
      row - input record
      Returns:
      rank end