Class AbstractAsyncStateTopNFunction

    • Constructor Detail

      • 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 Detail

      • 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