public class ProcessBundleHandler
extends java.lang.Object
BeamFnApi.ProcessBundleRequests by materializing the set of required runners
for each RunnerApi.FunctionSpec, wiring them together based upon the input and
output map definitions.
Finally executes the DAG based graph by starting all runners in reverse topological order, and finishing all runners in forward topological order.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAVA_SOURCE_URN |
| Constructor and Description |
|---|
ProcessBundleHandler(org.apache.beam.sdk.options.PipelineOptions options,
java.util.function.Function<java.lang.String,org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Message> fnApiRegistry,
BeamFnDataClient beamFnDataClient,
BeamFnStateGrpcClientCache beamFnStateGrpcClientCache) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse.Builder |
processBundle(org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest request)
Processes a bundle, running the start(), process(), and finish() functions.
|
public static final java.lang.String JAVA_SOURCE_URN
public ProcessBundleHandler(org.apache.beam.sdk.options.PipelineOptions options,
java.util.function.Function<java.lang.String,org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Message> fnApiRegistry,
BeamFnDataClient beamFnDataClient,
BeamFnStateGrpcClientCache beamFnStateGrpcClientCache)
public org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse.Builder processBundle(org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest request)
throws java.lang.Exception
java.lang.Exception