@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
ScalarFunction s 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, processElementInternal
public final org.apache.flink.table.functions.python.PythonFunctionInfo[] scalarFunctions
ScalarFunction
s 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.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 int getForwardedFieldsCount()
getForwardedFieldsCount
in class AbstractPythonStatelessFunctionFlatMap
public FlinkFnApi.UserDefinedFunctions getUserDefinedFunctionsProto()
AbstractPythonStatelessFunctionFlatMap
getUserDefinedFunctionsProto
in class AbstractPythonStatelessFunctionFlatMap
public String getFunctionUrn()
getFunctionUrn
in class AbstractPythonStatelessFunctionFlatMap
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.