Class RowTimeDeduplicateFunctionHelper
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.deduplicate.utils.RowTimeDeduplicateFunctionHelper
-
public abstract class RowTimeDeduplicateFunctionHelper extends Object
A helper to deduplicate data with row time inRowTimeDeduplicateFunctionandAsyncStateRowTimeDeduplicateFunction.
-
-
Constructor Summary
Constructors Constructor Description RowTimeDeduplicateFunctionHelper(boolean generateUpdateBefore, boolean generateInsert, int rowtimeIndex, boolean keepLastRow)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddeduplicateOnRowTime(org.apache.flink.table.data.RowData currentRow, org.apache.flink.table.data.RowData prevRow, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)Processes element to deduplicate on keys with row time semantic, sends current element if it is last or first row, retracts previous element if needed.protected abstract voidupdateState(org.apache.flink.table.data.RowData currentRow)
-
-
-
Method Detail
-
deduplicateOnRowTime
public void deduplicateOnRowTime(org.apache.flink.table.data.RowData currentRow, @Nullable org.apache.flink.table.data.RowData prevRow, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws ExceptionProcesses element to deduplicate on keys with row time semantic, sends current element if it is last or first row, retracts previous element if needed.- Parameters:
currentRow- latest row received by deduplicate functionprevRow- previous row received by deduplicate function. `null` if current row is the first rowout- underlying collector- Throws:
Exception
-
-