Package org.apache.flink.table.runtime.operators.rank
package org.apache.flink.table.runtime.operators.rank
-
ClassDescriptionBase class for TopN Function with sync state api.Base class for TopN Function.An abstract helper to do the logic Top-n used for all top-n functions.A variant of
AppendOnlyTopNFunctionto handle first-n case.A TopN function could handle insert-only stream.Because it's impossible to restore aRecordComparatorinstance generated byGeneratedRecordComparatorfrom checkpoint snapshot.rankStart and rankEnd are inclusive, rankStart always start from one.ConstantRankRangeWithoutEnd is a RankRange which not specify RankEnd.A more concise implementation forAppendOnlyTopNFunctionandUpdatableTopNFunctionwhen only Top-1 is desired.RankRange for Rank, including following 3 types : ConstantRankRange, ConstantRankRangeWithoutEnd, VariableRankRange.An enumeration of rank type, usable to show how exactly generate rank number.A TopN function could handle updating stream.TopNBuffer stores mapping from sort key to records list, sortKey is RowData type, each record is RowData type.A common cache removal listener for rank node.A TopN function could handle updating stream.changing rank limit depends on input.