@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| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.flink.api.common.functions.RichFunctionopen 在类中 AbstractPythonStatelessFunctionFlatMapExceptionpublic org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
PythonEnv used to create PythonEnvironmentManager..public void bufferInput(org.apache.flink.types.Row input)
public void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws Exception
emitResult 在类中 AbstractPythonStatelessFunctionFlatMapExceptionpublic int getForwardedFieldsCount()
public FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
public String getInputOutputCoderUrn()
public String getFunctionUrn()
public void processElementInternal(org.apache.flink.types.Row value)
throws Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.