Class RowTimeDeduplicateFunctionHelper
java.lang.Object
org.apache.flink.table.runtime.operators.deduplicate.utils.RowTimeDeduplicateFunctionHelper
A helper to deduplicate data with row time in
RowTimeDeduplicateFunction and AsyncStateRowTimeDeduplicateFunction.-
Constructor Summary
ConstructorsConstructorDescriptionRowTimeDeduplicateFunctionHelper(boolean generateUpdateBefore, boolean generateInsert, int rowtimeIndex, boolean keepLastRow) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeduplicateOnRowTime(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)
-
Constructor Details
-
RowTimeDeduplicateFunctionHelper
public RowTimeDeduplicateFunctionHelper(boolean generateUpdateBefore, boolean generateInsert, int rowtimeIndex, boolean keepLastRow)
-
-
Method Details
-
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 Exception 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.- 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
-
updateState
protected abstract void updateState(org.apache.flink.table.data.RowData currentRow) throws Exception - Throws:
Exception
-