@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, invokeFinishBundle
public 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.RichFunction
open
in class AbstractPythonStatelessFunctionFlatMap
Exception
public org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
AbstractPythonStatelessFunctionFlatMap
PythonEnv
used to create PythonEnvironmentManager..getPythonEnv
in class AbstractPythonStatelessFunctionFlatMap
public void bufferInput(org.apache.flink.types.Row input)
bufferInput
in class AbstractPythonStatelessFunctionFlatMap
public void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws Exception
emitResult
in class AbstractPythonStatelessFunctionFlatMap
Exception
public int getForwardedFieldsCount()
getForwardedFieldsCount
in class AbstractPythonStatelessFunctionFlatMap
public FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
AbstractPythonStatelessFunctionFlatMap
getUserDefinedFunctionsProto
in class AbstractPythonStatelessFunctionFlatMap
public String getInputOutputCoderUrn()
getInputOutputCoderUrn
in class AbstractPythonStatelessFunctionFlatMap
public String getFunctionUrn()
getFunctionUrn
in class AbstractPythonStatelessFunctionFlatMap
public void processElementInternal(org.apache.flink.types.Row value) throws Exception
processElementInternal
in class AbstractPythonStatelessFunctionFlatMap
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.