@Internal public abstract class AbstractEmbeddedDataStreamPythonFunctionOperator<OUT> extends AbstractEmbeddedPythonFunctionOperator<OUT> implements DataStreamPythonFunctionOperator<OUT>
Modifier and Type | Field and Description |
---|---|
protected TimestampedCollector<OUT> |
collector |
protected boolean |
hasSideOutput |
protected TypeInformation<OUT> |
outputTypeInfo
The TypeInformation of output data.
|
protected org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedDataStreamPythonFunctionOperator.SideOutputContext |
sideOutputContext |
interpreter
bundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled
chainingStrategy, latencyStats, LOG, metrics, output, processingTimeService
Constructor and Description |
---|
AbstractEmbeddedDataStreamPythonFunctionOperator(Configuration config,
DataStreamPythonFunctionInfo pythonFunctionInfo,
TypeInformation<OUT> outputTypeInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addSideOutputTags(Collection<OutputTag<?>> outputTags)
Add a collection of
OutputTag s to the operator. |
Map<String,String> |
getJobParameters() |
TypeInformation<OUT> |
getProducedType()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
DataStreamPythonFunctionInfo |
getPythonFunctionInfo()
Returns the underlying
DataStreamPythonFunctionInfo . |
Collection<OutputTag<?>> |
getSideOutputTags()
Gets the
OutputTag s belongs to the operator. |
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g.
|
void |
setNumPartitions(int numPartitions)
Sets the number of partitions.
|
close, createPythonEnvironmentManager, invokeFinishBundle, openPythonInterpreter
checkInvokeFinishBundleByCount, finish, getConfiguration, getFlinkMetricContainer, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setCurrentKey
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy
hasKeyContext
protected final TypeInformation<OUT> outputTypeInfo
protected transient TimestampedCollector<OUT> collector
protected transient boolean hasSideOutput
protected transient org.apache.flink.streaming.api.operators.python.embedded.AbstractEmbeddedDataStreamPythonFunctionOperator.SideOutputContext sideOutputContext
public AbstractEmbeddedDataStreamPythonFunctionOperator(Configuration config, DataStreamPythonFunctionInfo pythonFunctionInfo, TypeInformation<OUT> outputTypeInfo)
public void open() throws Exception
AbstractStreamOperator
The default implementation does nothing.
open
in interface StreamOperator<OUT>
open
in class AbstractEmbeddedPythonFunctionOperator<OUT>
Exception
- An exception in this method causes the operator to fail.public TypeInformation<OUT> getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable<OUT>
public void setNumPartitions(int numPartitions)
DataStreamPythonFunctionOperator
setNumPartitions
in interface DataStreamPythonFunctionOperator<OUT>
public DataStreamPythonFunctionInfo getPythonFunctionInfo()
DataStreamPythonFunctionOperator
DataStreamPythonFunctionInfo
.getPythonFunctionInfo
in interface DataStreamPythonFunctionOperator<OUT>
public void addSideOutputTags(Collection<OutputTag<?>> outputTags)
DataStreamPythonFunctionOperator
OutputTag
s to the operator.addSideOutputTags
in interface DataStreamPythonFunctionOperator<OUT>
public Collection<OutputTag<?>> getSideOutputTags()
DataStreamPythonFunctionOperator
OutputTag
s belongs to the operator.getSideOutputTags
in interface DataStreamPythonFunctionOperator<OUT>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.