@Internal public class BeamDataStreamPythonFunctionRunner extends BeamPythonFunctionRunner
BeamDataStreamPythonFunctionRunner
is responsible for starting a beam python harness to
execute user defined python function.LOG, mainInputReceiver, resultBuffer, resultTuple
Constructor and Description |
---|
BeamDataStreamPythonFunctionRunner(String taskName,
PythonEnvironmentManager environmentManager,
TypeInformation inputType,
TypeInformation outputType,
String functionUrn,
FlinkFnApi.UserDefinedDataStreamFunction userDefinedDataStreamFunction,
String coderUrn,
Map<String,String> jobOptions,
FlinkMetricContainer flinkMetricContainer,
KeyedStateBackend stateBackend,
TypeSerializer keySerializer,
MemoryManager memoryManager,
double managedMemoryFraction) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.beam.model.pipeline.v1.RunnerApi.Coder |
getInputCoderProto() |
protected org.apache.beam.model.pipeline.v1.RunnerApi.Coder |
getOutputCoderProto() |
protected byte[] |
getUserDefinedFunctionsProtoBytes() |
close, createJobBundleFactory, flush, open, pollResult, process, startBundle
public BeamDataStreamPythonFunctionRunner(String taskName, PythonEnvironmentManager environmentManager, TypeInformation inputType, TypeInformation outputType, String functionUrn, FlinkFnApi.UserDefinedDataStreamFunction userDefinedDataStreamFunction, String coderUrn, Map<String,String> jobOptions, @Nullable FlinkMetricContainer flinkMetricContainer, KeyedStateBackend stateBackend, TypeSerializer keySerializer, MemoryManager memoryManager, double managedMemoryFraction)
protected byte[] getUserDefinedFunctionsProtoBytes()
getUserDefinedFunctionsProtoBytes
in class BeamPythonFunctionRunner
protected org.apache.beam.model.pipeline.v1.RunnerApi.Coder getInputCoderProto()
getInputCoderProto
in class BeamPythonFunctionRunner
protected org.apache.beam.model.pipeline.v1.RunnerApi.Coder getOutputCoderProto()
getOutputCoderProto
in class BeamPythonFunctionRunner
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.