@Internal public class PythonTableFunctionOperator extends AbstractPythonTableFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
TableFunction
operator for the legacy planner.joinType, tableFunction
bais, baisWrapper, baos, baosWrapper, forwardedInputQueue, inputType, outputType, userDefinedFunctionInputOffsets, userDefinedFunctionInputType, userDefinedFunctionOutputType
elementCount, maxBundleSize, pythonFunctionRunner
chainingStrategy, latencyStats, LOG, metrics, output, processingTimeService
Constructor and Description |
---|
PythonTableFunctionOperator(Configuration config,
PythonFunctionInfo tableFunction,
RowType inputType,
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(Tuple2<byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
Row |
getFunctionInput(org.apache.flink.table.runtime.types.CRow element) |
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g.
|
void |
processElementInternal(org.apache.flink.table.runtime.types.CRow value) |
getFunctionUrn, getInputOutputCoderUrn, getPythonEnv, getUserDefinedFunctionsProto
createPythonFunctionRunner, processElement
endInput
checkInvokeFinishBundleByCount, close, createPythonEnvironmentManager, dispose, emitResults, getConfig, getFlinkMetricContainer, getPythonConfig, invokeFinishBundle, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setCurrentKey, setPythonConfig
getChainingStrategy, 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, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setKeyContextElement
close, dispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
notifyCheckpointAborted, notifyCheckpointComplete
getCurrentKey, setCurrentKey
processLatencyMarker, processWatermark
public PythonTableFunctionOperator(Configuration config, PythonFunctionInfo tableFunction, RowType inputType, RowType outputType, int[] udtfInputOffsets, org.apache.calcite.rel.core.JoinRelType joinType)
public void open() throws Exception
AbstractStreamOperator
The default implementation does nothing.
open
in interface 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,Row>
Exception
- An exception in this method causes the operator to fail.public void emitResult(Tuple2<byte[],Integer> resultTuple) throws Exception
AbstractPythonFunctionOperator
emitResult
in class AbstractPythonFunctionOperator<org.apache.flink.table.runtime.types.CRow>
Exception
public void bufferInput(org.apache.flink.table.runtime.types.CRow input)
AbstractStatelessFunctionOperator
bufferInput
in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
public 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,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,Row>
Exception
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.