@Internal public class PythonScalarFunctionFlatMap extends AbstractPythonScalarFunctionFlatMap
RichFlatMapFunction
used to invoke Python ScalarFunction
functions for the
old planner.scalarFunctions
bais, baisWrapper, baos, forwardedInputQueue, forwardedInputSerializer, inputType, jobOptions, outputType, pythonFunctionRunner, resultCollector, userDefinedFunctionInputType, userDefinedFunctionOutputType
Constructor and Description |
---|
PythonScalarFunctionFlatMap(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 |
emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) |
String |
getInputOutputCoderUrn() |
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
processElementInternal(org.apache.flink.types.Row value) |
bufferInput, getForwardedFieldsCount, getFunctionUrn, getPythonEnv, getUserDefinedFunctionsProto
checkInvokeFinishBundleByCount, close, createPythonEnvironmentManager, flatMap, getFlinkMetricContainer, getFunctionInput, getProducedType, getPythonConfig, invokeFinishBundle
public PythonScalarFunctionFlatMap(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 AbstractPythonScalarFunctionFlatMap
Exception
public String getInputOutputCoderUrn()
getInputOutputCoderUrn
in class AbstractPythonStatelessFunctionFlatMap
public void processElementInternal(org.apache.flink.types.Row value) throws Exception
processElementInternal
in class AbstractPythonStatelessFunctionFlatMap
Exception
public void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws IOException
emitResult
in class AbstractPythonStatelessFunctionFlatMap
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.