@Internal public abstract class AbstractExternalPythonFunctionOperator<OUT> extends AbstractPythonFunctionOperator<OUT>
| 限定符和类型 | 字段和说明 |
|---|---|
protected PythonFunctionRunner |
pythonFunctionRunner
The
PythonFunctionRunner which is responsible for Python user-defined function
execution. |
bundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled| 构造器和说明 |
|---|
AbstractExternalPythonFunctionOperator(org.apache.flink.configuration.Configuration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected ProcessPythonEnvironmentManager |
createPythonEnvironmentManager() |
abstract PythonFunctionRunner |
createPythonFunctionRunner()
Creates the
PythonFunctionRunner which is responsible for Python user-defined
function execution. |
abstract void |
emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
protected void |
emitResults() |
abstract org.apache.flink.table.functions.python.PythonEnv |
getPythonEnv()
Returns the
PythonEnv used to create PythonEnvironmentManager.. |
protected void |
invokeFinishBundle() |
void |
open() |
checkInvokeFinishBundleByCount, finish, getConfiguration, getFlinkMetricContainer, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setCurrentKeygetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotState, useSplittableTimersprotected transient PythonFunctionRunner pythonFunctionRunner
PythonFunctionRunner which is responsible for Python user-defined function
execution.public AbstractExternalPythonFunctionOperator(org.apache.flink.configuration.Configuration config)
public void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<OUT>open 在类中 AbstractPythonFunctionOperator<OUT>Exceptionpublic void close()
throws Exception
close 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<OUT>close 在类中 AbstractPythonFunctionOperator<OUT>Exceptionprotected void invokeFinishBundle()
throws Exception
invokeFinishBundle 在类中 AbstractPythonFunctionOperator<OUT>Exceptionprotected ProcessPythonEnvironmentManager createPythonEnvironmentManager()
public abstract org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
PythonEnv used to create PythonEnvironmentManager..public abstract void emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple) throws Exception
Exceptionpublic abstract PythonFunctionRunner createPythonFunctionRunner() throws Exception
PythonFunctionRunner which is responsible for Python user-defined
function execution.ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.