public final class RowTimeDeduplicateRecordsCombiner extends Object implements RecordsCombiner
RecordsCombiner
that stores the first/last records of incremental
input records into the window state.Modifier and Type | Class and Description |
---|---|
static class |
RowTimeDeduplicateRecordsCombiner.Factory
Factory to create
RowTimeDeduplicateRecordsCombiner . |
RecordsCombiner.LocalFactory
Constructor and Description |
---|
RowTimeDeduplicateRecordsCombiner(WindowTimerService<Long> timerService,
StateKeyContext keyContext,
WindowValueState<Long> dataState,
int rowtimeIndex,
boolean keepLastRow,
TypeSerializer<RowData> recordSerializer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release resources allocated by this combine function.
|
void |
combine(WindowKey windowKey,
Iterator<RowData> records)
Combines the buffered data into state based on the given window-key pair.
|
public RowTimeDeduplicateRecordsCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> dataState, int rowtimeIndex, boolean keepLastRow, TypeSerializer<RowData> recordSerializer)
public void combine(WindowKey windowKey, Iterator<RowData> records) throws Exception
RecordsCombiner
combine
in interface RecordsCombiner
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.Exception
public void close() throws Exception
RecordsCombiner
close
in interface RecordsCombiner
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.