@Internal public class PythonTableFunctionOperator extends AbstractPythonTableFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,org.apache.flink.types.Row>
TableFunction operator for the legacy planner.joinType, tableFunctionbais, baisWrapper, baos, baosWrapper, forwardedInputQueue, inputType, outputType, userDefinedFunctionInputOffsets, userDefinedFunctionInputType, userDefinedFunctionOutputTypeelementCount, maxBundleSize, pythonFunctionRunner| Constructor and Description |
|---|
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 outputType,
int[] udtfInputOffsets,
org.apache.calcite.rel.core.JoinRelType joinType) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferInput(org.apache.flink.table.runtime.types.CRow input)
Buffers the specified input, it will be used to construct the operator result together with
the user-defined function execution result.
|
void |
emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
org.apache.flink.types.Row |
getFunctionInput(org.apache.flink.table.runtime.types.CRow element) |
void |
open() |
void |
processElementInternal(org.apache.flink.table.runtime.types.CRow value) |
getFunctionUrn, getInputOutputCoderUrn, getPythonEnv, getUserDefinedFunctionsProtocreatePythonFunctionRunner, processElementendInputcheckInvokeFinishBundleByCount, close, createPythonEnvironmentManager, dispose, emitResults, getConfig, getFlinkMetricContainer, getPythonConfig, invokeFinishBundle, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setCurrentKey, setPythonConfiggetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementclose, dispose, getMetricGroup, 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 outputType,
int[] udtfInputOffsets,
org.apache.calcite.rel.core.JoinRelType joinType)
public void open()
throws Exception
open in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.runtime.types.CRow>open in class AbstractPythonTableFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,org.apache.flink.types.Row>Exceptionpublic void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws Exception
AbstractPythonFunctionOperatoremitResult in class AbstractPythonFunctionOperator<org.apache.flink.table.runtime.types.CRow>Exceptionpublic void bufferInput(org.apache.flink.table.runtime.types.CRow input)
AbstractStatelessFunctionOperatorbufferInput in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,org.apache.flink.types.Row>public org.apache.flink.types.Row getFunctionInput(org.apache.flink.table.runtime.types.CRow element)
getFunctionInput in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,org.apache.flink.types.Row>public void processElementInternal(org.apache.flink.table.runtime.types.CRow value)
throws Exception
processElementInternal in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,org.apache.flink.types.Row>ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.