public class RowTimeMiniBatchDeduplicateFunction extends MapBundleFunction<K,V,IN,OUT>
| Modifier and Type | Field and Description |
|---|---|
protected long |
minRetentionTime |
protected org.apache.flink.api.common.state.ValueState<T> |
state |
protected org.apache.flink.api.common.typeinfo.TypeInformation<T> |
stateType |
ctx| Constructor and Description |
|---|
RowTimeMiniBatchDeduplicateFunction(InternalTypeInfo<org.apache.flink.table.data.RowData> typeInfo,
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> serializer,
long minRetentionTime,
int rowtimeIndex,
boolean generateUpdateBefore,
boolean generateInsert,
boolean keepLastRow) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.table.data.RowData> |
addInput(List<org.apache.flink.table.data.RowData> value,
org.apache.flink.table.data.RowData input)
Adds the given input to the given value, returning the new bundle value.
|
void |
finishBundle(Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>> buffer,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
Called when a bundle is finished.
|
void |
open(ExecutionContext ctx) |
closeprotected final org.apache.flink.api.common.typeinfo.TypeInformation<T> stateType
protected final long minRetentionTime
protected org.apache.flink.api.common.state.ValueState<T> state
public RowTimeMiniBatchDeduplicateFunction(InternalTypeInfo<org.apache.flink.table.data.RowData> typeInfo, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> serializer, long minRetentionTime, int rowtimeIndex, boolean generateUpdateBefore, boolean generateInsert, boolean keepLastRow)
public List<org.apache.flink.table.data.RowData> addInput(@Nullable List<org.apache.flink.table.data.RowData> value, org.apache.flink.table.data.RowData input) throws Exception
MapBundleFunctionaddInput in class MapBundleFunction<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>value - the existing bundle value, maybe nullinput - the given input, not nullExceptionpublic void finishBundle(Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>> buffer, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws Exception
MapBundleFunctionfinishBundle in class MapBundleFunction<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Exceptionpublic void open(ExecutionContext ctx) throws Exception
open in class MapBundleFunction<K,V,IN,OUT>ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.