@Internal public final class PythonTableFunctionFlatMap extends AbstractPythonStatelessFunctionFlatMap
RichFlatMapFunction used to invoke Python TableFunction functions for the old
planner.bais, baisWrapper, baos, forwardedInputQueue, forwardedInputSerializer, inputType, jobOptions, outputType, pythonFunctionRunner, resultCollector, userDefinedFunctionInputType, userDefinedFunctionOutputType| Constructor and Description |
|---|
PythonTableFunctionFlatMap(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.types.Row input) |
void |
emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) |
int |
getForwardedFieldsCount() |
String |
getFunctionUrn() |
String |
getInputOutputCoderUrn() |
org.apache.flink.table.functions.python.PythonEnv |
getPythonEnv()
Returns the
PythonEnv used to create PythonEnvironmentManager.. |
FlinkFnApi.UserDefinedFunctions |
getUserDefinedFunctionsProto()
Gets the proto representation of the Python user-defined functions to be executed.
|
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
processElementInternal(org.apache.flink.types.Row value) |
checkInvokeFinishBundleByCount, close, createPythonEnvironmentManager, flatMap, getFlinkMetricContainer, getFunctionInput, getProducedType, getPythonConfig, invokeFinishBundlepublic PythonTableFunctionFlatMap(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(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class AbstractPythonStatelessFunctionFlatMapExceptionpublic org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
AbstractPythonStatelessFunctionFlatMapPythonEnv used to create PythonEnvironmentManager..getPythonEnv in class AbstractPythonStatelessFunctionFlatMappublic void bufferInput(org.apache.flink.types.Row input)
bufferInput in class AbstractPythonStatelessFunctionFlatMappublic void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws Exception
emitResult in class AbstractPythonStatelessFunctionFlatMapExceptionpublic int getForwardedFieldsCount()
getForwardedFieldsCount in class AbstractPythonStatelessFunctionFlatMappublic FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
AbstractPythonStatelessFunctionFlatMapgetUserDefinedFunctionsProto in class AbstractPythonStatelessFunctionFlatMappublic String getInputOutputCoderUrn()
getInputOutputCoderUrn in class AbstractPythonStatelessFunctionFlatMappublic String getFunctionUrn()
getFunctionUrn in class AbstractPythonStatelessFunctionFlatMappublic void processElementInternal(org.apache.flink.types.Row value)
throws Exception
processElementInternal in class AbstractPythonStatelessFunctionFlatMapExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.