Class SplittableDoFnOperator<InputT,OutputT,RestrictionT>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.beam.sdk.values.WindowedValue<OutputT>>
-
- org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>
-
- org.apache.beam.runners.flink.translation.wrappers.streaming.SplittableDoFnOperator<InputT,OutputT,RestrictionT>
-
- 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.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>>,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.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>,org.apache.beam.sdk.values.WindowedValue<OutputT>>,org.apache.flink.streaming.api.operators.SetupableStreamOperator<org.apache.beam.sdk.values.WindowedValue<OutputT>>,org.apache.flink.streaming.api.operators.StreamOperator<org.apache.beam.sdk.values.WindowedValue<OutputT>>,org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator,org.apache.flink.streaming.api.operators.Triggerable<FlinkKey,org.apache.beam.runners.core.TimerInternals.TimerData>,org.apache.flink.streaming.api.operators.TwoInputStreamOperator<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>,org.apache.beam.sdk.transforms.join.RawUnionValue,org.apache.beam.sdk.values.WindowedValue<OutputT>>
public class SplittableDoFnOperator<InputT,OutputT,RestrictionT> extends DoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>
Flink operator for executing splittableDoFns. Specifically, for executing the@ProcessElementmethod of a splittableDoFn.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator
DoFnOperator.BufferedOutputManager<OutputT>, DoFnOperator.FlinkStepContext, DoFnOperator.MultiOutputOutputManagerFactory<OutputT>
-
-
Field Summary
-
Fields inherited from class org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator
additionalOutputTags, bufferingDoFnRunner, doFn, doFnRunner, keyedStateInternals, mainOutputTag, outputManager, outputManagerFactory, pushbackDoFnRunner, serializedOptions, sideInputHandler, sideInputReader, sideInputs, sideInputTagMapping, stepName, timerInternals, timerService, windowingStrategy
-
-
Constructor Summary
Constructors Constructor Description SplittableDoFnOperator(org.apache.beam.sdk.transforms.DoFn<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT> doFn, java.lang.String stepName, org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>> windowedInputCoder, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.coders.Coder<?>> outputCoders, org.apache.beam.sdk.values.TupleTag<OutputT> mainOutputTag, java.util.List<org.apache.beam.sdk.values.TupleTag<?>> additionalOutputTags, org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator.OutputManagerFactory<OutputT> outputManagerFactory, org.apache.beam.sdk.values.WindowingStrategy<?,?> windowingStrategy, java.util.Map<java.lang.Integer,org.apache.beam.sdk.values.PCollectionView<?>> sideInputTagMapping, java.util.Collection<org.apache.beam.sdk.values.PCollectionView<?>> sideInputs, org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.coders.Coder<?> keyCoder, org.apache.flink.api.java.functions.KeySelector<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>,?> keySelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected org.apache.beam.runners.core.DoFnRunner<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>createWrappingDoFnRunner(org.apache.beam.runners.core.DoFnRunner<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT> wrappedRunner, org.apache.beam.runners.core.StepContext stepContext)protected voidfireTimer(org.apache.beam.runners.core.TimerInternals.TimerData timer)voidinitializeState(org.apache.flink.runtime.state.StateInitializationContext context)-
Methods inherited from class org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator
addSideInputValue, applyInputWatermarkHold, applyOutputWatermarkHold, finish, fireTimerInternal, getBundleFinalizer, getCurrentOutputWatermark, getDoFn, getEffectiveInputWatermark, getLockToAcquireForStateAccessDuringBundles, invokeFinishBundle, notifyCheckpointComplete, numProcessingTimeTimers, onEventTime, onProcessingTime, open, prepareSnapshotPreBarrier, preProcess, processElement, processElement1, processElement2, processWatermark, processWatermark1, processWatermark2, scheduleForCurrentProcessingTime, setBundleFinishedCallback, setPreBundleCallback, setup, shoudBundleElements, snapshotState
-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperator
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, 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
-
Methods inherited from interface org.apache.flink.streaming.api.operators.Input
processLatencyMarker, 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
-
Methods inherited from interface org.apache.flink.streaming.api.operators.OneInputStreamOperator
setKeyContextElement
-
-
-
-
Constructor Detail
-
SplittableDoFnOperator
public SplittableDoFnOperator(org.apache.beam.sdk.transforms.DoFn<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT> doFn, java.lang.String stepName, org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>> windowedInputCoder, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.coders.Coder<?>> outputCoders, org.apache.beam.sdk.values.TupleTag<OutputT> mainOutputTag, java.util.List<org.apache.beam.sdk.values.TupleTag<?>> additionalOutputTags, org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator.OutputManagerFactory<OutputT> outputManagerFactory, org.apache.beam.sdk.values.WindowingStrategy<?,?> windowingStrategy, java.util.Map<java.lang.Integer,org.apache.beam.sdk.values.PCollectionView<?>> sideInputTagMapping, java.util.Collection<org.apache.beam.sdk.values.PCollectionView<?>> sideInputs, org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.coders.Coder<?> keyCoder, org.apache.flink.api.java.functions.KeySelector<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>>,?> keySelector)
-
-
Method Detail
-
createWrappingDoFnRunner
protected org.apache.beam.runners.core.DoFnRunner<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT> createWrappingDoFnRunner(org.apache.beam.runners.core.DoFnRunner<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT> wrappedRunner, org.apache.beam.runners.core.StepContext stepContext)
- Overrides:
createWrappingDoFnRunnerin classDoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>
-
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 classDoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>- Throws:
java.lang.Exception
-
fireTimer
protected void fireTimer(org.apache.beam.runners.core.TimerInternals.TimerData timer)
- Overrides:
fireTimerin classDoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfaceorg.apache.flink.streaming.api.operators.StreamOperator<InputT>- Overrides:
closein classDoFnOperator<org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,org.apache.beam.runners.core.KeyedWorkItem<byte[],org.apache.beam.sdk.values.KV<InputT,RestrictionT>>,OutputT>- Throws:
java.lang.Exception
-
-