@Internal public class PythonTableFunctionOperator extends AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
TableFunction operator.bais, baisWrapper, baos, baosWrapper, forwardedInputQueue, inputType, udfInputType, udfOutputTypepythonFunctionRunnerbundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled| 构造器和说明 |
|---|
PythonTableFunctionOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo tableFunction,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType udfInputType,
org.apache.flink.table.types.logical.RowType udfOutputType,
org.apache.flink.table.runtime.operators.join.FlinkJoinType joinType,
org.apache.flink.table.runtime.generated.GeneratedProjection udtfInputGeneratedProjection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bufferInput(org.apache.flink.table.data.RowData input)
Buffers the specified input, it will be used to construct the operator result together with
the user-defined function execution result.
|
FlinkFnApi.CoderInfoDescriptor |
createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType) |
FlinkFnApi.CoderInfoDescriptor |
createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType) |
FlinkFnApi.UserDefinedFunctions |
createUserDefinedFunctionsProto()
Gets the proto representation of the Python user-defined functions to be executed.
|
void |
emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
org.apache.flink.table.data.RowData |
getFunctionInput(org.apache.flink.table.data.RowData element) |
String |
getFunctionUrn() |
org.apache.flink.table.functions.python.PythonEnv |
getPythonEnv()
Returns the
PythonEnv used to create PythonEnvironmentManager.. |
void |
open() |
void |
processElementInternal(org.apache.flink.table.data.RowData value) |
createPythonFunctionRunner, processElementendInputclose, createPythonEnvironmentManager, emitResults, invokeFinishBundlecheckInvokeFinishBundleByCount, 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, useSplittableTimersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, finish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletepublic PythonTableFunctionOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo tableFunction,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType udfInputType,
org.apache.flink.table.types.logical.RowType udfOutputType,
org.apache.flink.table.runtime.operators.join.FlinkJoinType joinType,
org.apache.flink.table.runtime.generated.GeneratedProjection udtfInputGeneratedProjection)
public void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Exceptionpublic org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
PythonEnv used to create PythonEnvironmentManager..getPythonEnv 在类中 AbstractExternalPythonFunctionOperator<org.apache.flink.table.data.RowData>public String getFunctionUrn()
getFunctionUrn 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.CoderInfoDescriptor createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType)
createInputCoderInfoDescriptor 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.CoderInfoDescriptor createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType)
createOutputCoderInfoDescriptor 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.UserDefinedFunctions createUserDefinedFunctionsProto()
AbstractStatelessFunctionOperatorcreateUserDefinedFunctionsProto 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public void bufferInput(org.apache.flink.table.data.RowData input)
AbstractStatelessFunctionOperatorbufferInput 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public org.apache.flink.table.data.RowData getFunctionInput(org.apache.flink.table.data.RowData element)
getFunctionInput 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public void processElementInternal(org.apache.flink.table.data.RowData value)
throws Exception
processElementInternal 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Exceptionpublic void emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple) throws Exception
emitResult 在类中 AbstractExternalPythonFunctionOperator<org.apache.flink.table.data.RowData>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.