public class ProcTimeMiniBatchDeduplicateKeepLastRowFunction extends MapBundleFunction<K,V,IN,OUT>
Modifier and Type | Field and Description |
---|---|
protected long |
minRetentionTime |
protected ValueState<T> |
state |
protected TypeInformation<T> |
stateType |
ctx
Constructor and Description |
---|
ProcTimeMiniBatchDeduplicateKeepLastRowFunction(InternalTypeInfo<RowData> typeInfo,
TypeSerializer<RowData> serializer,
long stateRetentionTime,
boolean generateUpdateBefore,
boolean generateInsert,
boolean inputInsertOnly,
GeneratedRecordEqualiser genRecordEqualiser) |
Modifier and Type | Method and Description |
---|---|
RowData |
addInput(RowData value,
RowData input)
Adds the given input to the given value, returning the new bundle value.
|
void |
finishBundle(Map<RowData,RowData> buffer,
Collector<RowData> out)
Called when a bundle is finished.
|
void |
open(ExecutionContext ctx) |
close
protected final TypeInformation<T> stateType
protected final long minRetentionTime
protected ValueState<T> state
public ProcTimeMiniBatchDeduplicateKeepLastRowFunction(InternalTypeInfo<RowData> typeInfo, TypeSerializer<RowData> serializer, long stateRetentionTime, boolean generateUpdateBefore, boolean generateInsert, boolean inputInsertOnly, GeneratedRecordEqualiser genRecordEqualiser)
public void open(ExecutionContext ctx) throws Exception
Exception
public RowData addInput(@Nullable RowData value, RowData input)
MapBundleFunction
public void finishBundle(Map<RowData,RowData> buffer, Collector<RowData> out) throws Exception
MapBundleFunction
finishBundle
in class MapBundleFunction<RowData,RowData,RowData,RowData>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.