Class AbstractEmbeddedDataStreamPythonFunctionOperator<OUT>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
-
- org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator<OUT>
-
- org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedPythonFunctionOperator<OUT>
-
- org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedDataStreamPythonFunctionOperator<OUT>
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.api.java.typeutils.ResultTypeQueryable<OUT>,org.apache.flink.streaming.api.operators.KeyContext,org.apache.flink.streaming.api.operators.KeyContextHandler,DataStreamPythonFunctionOperator<OUT>,org.apache.flink.streaming.api.operators.StreamOperator<OUT>,org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator,org.apache.flink.streaming.api.operators.YieldingOperator<OUT>
- Direct Known Subclasses:
AbstractOneInputEmbeddedPythonFunctionOperator,AbstractTwoInputEmbeddedPythonFunctionOperator
@Internal public abstract class AbstractEmbeddedDataStreamPythonFunctionOperator<OUT> extends AbstractEmbeddedPythonFunctionOperator<OUT> implements DataStreamPythonFunctionOperator<OUT>
Base class for all Python DataStream operators executed in embedded Python environment.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.streaming.api.operators.TimestampedCollector<OUT>collectorprotected booleanhasSideOutputprotected org.apache.flink.api.common.typeinfo.TypeInformation<OUT>outputTypeInfoThe TypeInformation of output data.protected org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedDataStreamPythonFunctionOperator.SideOutputContextsideOutputContext-
Fields inherited from class org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedPythonFunctionOperator
interpreter
-
Fields inherited from class org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator
bundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled
-
-
Constructor Summary
Constructors Constructor Description AbstractEmbeddedDataStreamPythonFunctionOperator(org.apache.flink.configuration.Configuration config, DataStreamPythonFunctionInfo pythonFunctionInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputTypeInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSideOutputTags(Collection<org.apache.flink.util.OutputTag<?>> outputTags)Add a collection ofOutputTags to the operator.Map<String,String>getJobParameters()org.apache.flink.api.common.typeinfo.TypeInformation<OUT>getProducedType()DataStreamPythonFunctionInfogetPythonFunctionInfo()Returns the underlyingDataStreamPythonFunctionInfo.Collection<org.apache.flink.util.OutputTag<?>>getSideOutputTags()Gets theOutputTags belongs to the operator.voidopen()voidsetNumPartitions(int numPartitions)Sets the number of partitions.-
Methods inherited from class org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedPythonFunctionOperator
close, createPythonEnvironmentManager, invokeFinishBundle, openPythonInterpreter
-
Methods inherited from class org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator
checkInvokeFinishBundleByCount, drainUnregisteredTimers, finish, getConfiguration, getFlinkMetricContainer, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setCurrentKey
-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperator
beforeInitializeStateHandler, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isAsyncStateProcessingEnabled, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark, processWatermark1, processWatermark1, processWatermark2, processWatermark2, processWatermarkStatus, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotState, useSplittableTimers
-
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.streaming.api.operators.python.DataStreamPythonFunctionOperator
copy
-
-
-
-
Field Detail
-
outputTypeInfo
protected final org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputTypeInfo
The TypeInformation of output data.
-
collector
protected transient org.apache.flink.streaming.api.operators.TimestampedCollector<OUT> collector
-
hasSideOutput
protected transient boolean hasSideOutput
-
sideOutputContext
protected transient org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedDataStreamPythonFunctionOperator.SideOutputContext sideOutputContext
-
-
Constructor Detail
-
AbstractEmbeddedDataStreamPythonFunctionOperator
public AbstractEmbeddedDataStreamPythonFunctionOperator(org.apache.flink.configuration.Configuration config, DataStreamPythonFunctionInfo pythonFunctionInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputTypeInfo)
-
-
Method Detail
-
open
public void open() throws Exception- Specified by:
openin interfaceorg.apache.flink.streaming.api.operators.StreamOperator<OUT>- Overrides:
openin classAbstractEmbeddedPythonFunctionOperator<OUT>- Throws:
Exception
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<OUT> getProducedType()
- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<OUT>
-
setNumPartitions
public void setNumPartitions(int numPartitions)
Description copied from interface:DataStreamPythonFunctionOperatorSets the number of partitions. This is used for partitionCustom which takes the number of partitions to partition into as input.- Specified by:
setNumPartitionsin interfaceDataStreamPythonFunctionOperator<OUT>
-
getPythonFunctionInfo
public DataStreamPythonFunctionInfo getPythonFunctionInfo()
Description copied from interface:DataStreamPythonFunctionOperatorReturns the underlyingDataStreamPythonFunctionInfo.- Specified by:
getPythonFunctionInfoin interfaceDataStreamPythonFunctionOperator<OUT>
-
addSideOutputTags
public void addSideOutputTags(Collection<org.apache.flink.util.OutputTag<?>> outputTags)
Description copied from interface:DataStreamPythonFunctionOperatorAdd a collection ofOutputTags to the operator.- Specified by:
addSideOutputTagsin interfaceDataStreamPythonFunctionOperator<OUT>
-
getSideOutputTags
public Collection<org.apache.flink.util.OutputTag<?>> getSideOutputTags()
Description copied from interface:DataStreamPythonFunctionOperatorGets theOutputTags belongs to the operator.- Specified by:
getSideOutputTagsin interfaceDataStreamPythonFunctionOperator<OUT>
-
-