@Internal public class PythonScalarFunctionFlatMap extends AbstractPythonScalarFunctionFlatMap
RichFlatMapFunction used to invoke Python ScalarFunction functions for the
old planner.scalarFunctionsbais, 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, getUserDefinedFunctionsProtocheckInvokeFinishBundleByCount, close, createPythonEnvironmentManager, flatMap, getFlinkMetricContainer, getFunctionInput, getProducedType, getPythonConfig, invokeFinishBundlepublic 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.RichFunctionopen in class AbstractPythonScalarFunctionFlatMapExceptionpublic String getInputOutputCoderUrn()
getInputOutputCoderUrn in class AbstractPythonStatelessFunctionFlatMappublic void processElementInternal(org.apache.flink.types.Row value)
throws Exception
processElementInternal in class AbstractPythonStatelessFunctionFlatMapExceptionpublic void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws IOException
emitResult in class AbstractPythonStatelessFunctionFlatMapIOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.