@Internal public abstract class AbstractPythonScalarFunctionFlatMap extends AbstractPythonStatelessFunctionFlatMap
RichFlatMapFunction used to invoke Python ScalarFunction
functions for the old planner.| Modifier and Type | Field and Description |
|---|---|
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| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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 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 int getForwardedFieldsCount()
getForwardedFieldsCount in class AbstractPythonStatelessFunctionFlatMappublic FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
AbstractPythonStatelessFunctionFlatMapgetUserDefinedFunctionsProto in class AbstractPythonStatelessFunctionFlatMappublic String getFunctionUrn()
getFunctionUrn in class AbstractPythonStatelessFunctionFlatMapCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.