@Internal public abstract class AbstractPythonScalarFunctionFlatMap extends AbstractPythonStatelessFunctionFlatMap
RichFlatMapFunction used to invoke Python ScalarFunction
functions for the old planner.| 限定符和类型 | 字段和说明 |
|---|---|
org.apache.flink.table.functions.python.PythonFunctionInfo[] |
scalarFunctions
The Python
ScalarFunctions to be executed. |
bais, baisWrapper, baos, forwardedInputQueue, forwardedInputSerializer, inputType, jobOptions, outputType, pythonFunctionRunner, resultCollector, userDefinedFunctionInputType, userDefinedFunctionOutputType| 构造器和说明 |
|---|
AbstractPythonScalarFunctionFlatMap(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo[] scalarFunctions,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType,
int[] udfInputOffsets,
int[] forwardedFields) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bufferInput(org.apache.flink.types.Row input) |
int |
getForwardedFieldsCount() |
String |
getFunctionUrn() |
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) |
checkInvokeFinishBundleByCount, close, createPythonEnvironmentManager, emitResult, flatMap, getFlinkMetricContainer, getFunctionInput, getInputOutputCoderUrn, getProducedType, getPythonConfig, invokeFinishBundle, processElementInternalpublic final org.apache.flink.table.functions.python.PythonFunctionInfo[] scalarFunctions
ScalarFunctions to be executed.public AbstractPythonScalarFunctionFlatMap(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo[] scalarFunctions,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType,
int[] udfInputOffsets,
int[] forwardedFields)
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 int getForwardedFieldsCount()
public FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
public String getFunctionUrn()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.