Class RowTimeDeduplicateRecordsCombiner
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.deduplicate.window.combines.RowTimeDeduplicateRecordsCombiner
-
- All Implemented Interfaces:
RecordsCombiner
public final class RowTimeDeduplicateRecordsCombiner extends Object implements RecordsCombiner
An implementation ofRecordsCombinerthat stores the first/last records of incremental input records into the window state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowTimeDeduplicateRecordsCombiner.FactoryFactory to createRowTimeDeduplicateRecordsCombiner.-
Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.tvf.combines.RecordsCombiner
RecordsCombiner.LocalFactory
-
-
Constructor Summary
Constructors Constructor Description RowTimeDeduplicateRecordsCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> dataState, int rowtimeIndex, boolean keepLastRow, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> recordSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Release resources allocated by this combine function.voidcombine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> records)Combines the buffered data into state based on the given window-key pair.
-
-
-
Constructor Detail
-
RowTimeDeduplicateRecordsCombiner
public RowTimeDeduplicateRecordsCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> dataState, int rowtimeIndex, boolean keepLastRow, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> recordSerializer)
-
-
Method Detail
-
combine
public void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> records) throws Exception
Description copied from interface:RecordsCombinerCombines the buffered data into state based on the given window-key pair.- Specified by:
combinein interfaceRecordsCombiner- Parameters:
windowKey- the window-key pair that the buffered data belong to, the window-key object is reused.records- the buffered data, the iterator andRowDataobjects are reused.- Throws:
Exception
-
close
public void close() throws ExceptionDescription copied from interface:RecordsCombinerRelease resources allocated by this combine function.- Specified by:
closein interfaceRecordsCombiner- Throws:
Exception
-
-