Class DedupingOperator<T>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.beam.sdk.values.WindowedValue<T>>
-
- org.apache.beam.runners.flink.translation.wrappers.streaming.io.DedupingOperator<T>
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.streaming.api.operators.Input<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.ValueWithRecordId<T>>>,org.apache.flink.streaming.api.operators.KeyContext,org.apache.flink.streaming.api.operators.KeyContextHandler,org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.ValueWithRecordId<T>>,org.apache.beam.sdk.values.WindowedValue<T>>,org.apache.flink.streaming.api.operators.SetupableStreamOperator<org.apache.beam.sdk.values.WindowedValue<T>>,org.apache.flink.streaming.api.operators.StreamOperator<org.apache.beam.sdk.values.WindowedValue<T>>,org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator,org.apache.flink.streaming.api.operators.Triggerable<FlinkKey,org.apache.flink.runtime.state.VoidNamespace>
public class DedupingOperator<T> extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.beam.sdk.values.WindowedValue<T>> implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.ValueWithRecordId<T>>,org.apache.beam.sdk.values.WindowedValue<T>>, org.apache.flink.streaming.api.operators.Triggerable<FlinkKey,org.apache.flink.runtime.state.VoidNamespace>
Remove values with duplicate ids.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DedupingOperator(org.apache.beam.sdk.options.PipelineOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitializeState(org.apache.flink.runtime.state.StateInitializationContext context)voidonEventTime(org.apache.flink.streaming.api.operators.InternalTimer<FlinkKey,org.apache.flink.runtime.state.VoidNamespace> internalTimer)voidonProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<FlinkKey,org.apache.flink.runtime.state.VoidNamespace> internalTimer)voidopen()voidprocessElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.ValueWithRecordId<T>>> streamRecord)-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperator
close, finish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.api.common.state.CheckpointListener
notifyCheckpointAborted, notifyCheckpointComplete
-
Methods inherited from interface org.apache.flink.streaming.api.operators.Input
processLatencyMarker, processWatermark, processWatermarkStatus
-
Methods inherited from interface org.apache.flink.streaming.api.operators.KeyContext
getCurrentKey, setCurrentKey
-
Methods inherited from interface org.apache.flink.streaming.api.operators.KeyContextHandler
hasKeyContext
-
-
-
-
Method Detail
-
initializeState
public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context) throws java.lang.Exception- Specified by:
initializeStatein interfaceorg.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator- Overrides:
initializeStatein classorg.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.beam.sdk.values.WindowedValue<T>>- Throws:
java.lang.Exception
-
open
public void open()
-
processElement
public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.ValueWithRecordId<T>>> streamRecord) throws java.lang.Exception
- Specified by:
processElementin interfaceorg.apache.flink.streaming.api.operators.Input<T>- Throws:
java.lang.Exception
-
onEventTime
public void onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<FlinkKey,org.apache.flink.runtime.state.VoidNamespace> internalTimer)
- Specified by:
onEventTimein interfaceorg.apache.flink.streaming.api.operators.Triggerable<FlinkKey,org.apache.flink.runtime.state.VoidNamespace>
-
onProcessingTime
public void onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<FlinkKey,org.apache.flink.runtime.state.VoidNamespace> internalTimer) throws java.lang.Exception
- Specified by:
onProcessingTimein interfaceorg.apache.flink.streaming.api.operators.Triggerable<FlinkKey,org.apache.flink.runtime.state.VoidNamespace>- Throws:
java.lang.Exception
-
-