Class ProcTimeDeduplicateKeepFirstRowFunction
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.KeyedProcessFunction<K,IN,OUT>
-
- org.apache.flink.table.runtime.operators.deduplicate.ProcTimeDeduplicateKeepFirstRowFunction
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction
public class ProcTimeDeduplicateKeepFirstRowFunction extends org.apache.flink.streaming.api.functions.KeyedProcessFunction<K,IN,OUT>This function is used to deduplicate on keys and keeps only first row.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.api.common.typeutils.TypeSerializer<OUT>serializerprotected org.apache.flink.api.common.state.ValueState<T>stateprotected longstateRetentionTimeprotected org.apache.flink.api.common.typeinfo.TypeInformation<T>typeInfo
-
Constructor Summary
Constructors Constructor Description ProcTimeDeduplicateKeepFirstRowFunction(long stateRetentionTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(org.apache.flink.api.common.functions.OpenContext openContext)voidprocessElement(org.apache.flink.table.data.RowData input, org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
-
-
-
Field Detail
-
typeInfo
protected final org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo
-
stateRetentionTime
protected final long stateRetentionTime
-
serializer
protected final org.apache.flink.api.common.typeutils.TypeSerializer<OUT> serializer
-
state
protected org.apache.flink.api.common.state.ValueState<T> state
-
-
Method Detail
-
processElement
public void processElement(org.apache.flink.table.data.RowData input, org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws Exception- Specified by:
processElementin classorg.apache.flink.streaming.api.functions.KeyedProcessFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>- Throws:
Exception
-
-