Interface RecordsCombiner
-
- All Known Implementing Classes:
AggCombiner,GlobalAggCombiner,LocalAggCombiner,RowTimeDeduplicateRecordsCombiner,TopNRecordsCombiner
@Internal public interface RecordsCombinerTheRecordsCombineris used to combine buffered records into state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRecordsCombiner.FactoryA factory that creates aRecordsCombiner.static interfaceRecordsCombiner.LocalFactoryA factory that creates aRecordsCombinerused for combining at local stage.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
combine
void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> records) throws Exception
Combines the buffered data into state based on the given window-key pair.- 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
-
-