@Internal
public abstract class AbstractPythonFunctionOperator<OUT>
extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Runnable |
bundleFinishedCallback
Callback to be executed after the current bundle was finished.
|
protected org.apache.flink.configuration.Configuration |
config |
protected int |
elementCount
Number of processed elements in the current bundle.
|
protected long |
lastFinishBundleTime
Time that the last bundle was finished.
|
protected int |
maxBundleSize
Max number of elements to include in a bundle.
|
protected boolean |
systemEnvEnabled |
| 构造器和说明 |
|---|
AbstractPythonFunctionOperator(org.apache.flink.configuration.Configuration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkInvokeFinishBundleByCount()
Checks whether to invoke finishBundle by elements count.
|
void |
close() |
protected abstract PythonEnvironmentManager |
createPythonEnvironmentManager() |
void |
finish() |
org.apache.flink.configuration.Configuration |
getConfiguration()
Returns the
Configuration. |
protected FlinkMetricContainer |
getFlinkMetricContainer() |
protected abstract void |
invokeFinishBundle() |
boolean |
isBundleFinished()
Returns whether the bundle is finished.
|
void |
open() |
void |
prepareSnapshotPreBarrier(long checkpointId) |
void |
processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) |
void |
setCurrentKey(Object key) |
getChainingStrategy, 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 final org.apache.flink.configuration.Configuration config
protected transient boolean systemEnvEnabled
protected transient int maxBundleSize
protected transient int elementCount
protected transient long lastFinishBundleTime
protected transient Runnable bundleFinishedCallback
public AbstractPythonFunctionOperator(org.apache.flink.configuration.Configuration config)
public void open()
throws Exception
public void finish()
throws Exception
public void close()
throws Exception
public void prepareSnapshotPreBarrier(long checkpointId)
throws Exception
public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
public void setCurrentKey(Object key)
setCurrentKey 在接口中 org.apache.flink.streaming.api.operators.KeyContextsetCurrentKey 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>public boolean isBundleFinished()
public org.apache.flink.configuration.Configuration getConfiguration()
Configuration.protected abstract PythonEnvironmentManager createPythonEnvironmentManager()
protected void checkInvokeFinishBundleByCount()
throws Exception
Exceptionprotected FlinkMetricContainer getFlinkMetricContainer()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.