@Internal
public interface RecordsCombiner
RecordsCombiner is used to combine buffered records into state.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RecordsCombiner.Factory
A factory that creates a
RecordsCombiner. |
static interface |
RecordsCombiner.LocalFactory
A factory that creates a
RecordsCombiner used for combining at local stage. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources allocated by this combine function.
|
void |
combine(WindowKey windowKey,
Iterator<org.apache.flink.table.data.RowData> records)
Combines the buffered data into state based on the given window-key pair.
|
void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> records) throws Exception
windowKey - the window-key pair that the buffered data belong to, the window-key object
is reused.records - the buffered data, the iterator and RowData objects are reused.ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.