Package org.apache.beam.fn.harness
Class BeamFnDataReadRunner<OutputT>
- java.lang.Object
-
- org.apache.beam.fn.harness.BeamFnDataReadRunner<OutputT>
-
public class BeamFnDataReadRunner<OutputT> extends java.lang.ObjectRegisters as a consumer for data over the Beam Fn API. Multiplexes any received data to all receivers in a specified output map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeamFnDataReadRunner.RegistrarA registrar which provides a factory to handle reading from the Fn Api Data Plane.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockTillReadFinishes()voidforwardElementToConsumer(org.apache.beam.sdk.values.WindowedValue<OutputT> element)voidreset()voidtrySplit(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleSplitRequest request, org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleSplitResponse.Builder response)
-
-
-
Method Detail
-
forwardElementToConsumer
public void forwardElementToConsumer(org.apache.beam.sdk.values.WindowedValue<OutputT> element) throws java.lang.Exception
- Throws:
java.lang.Exception
-
trySplit
public void trySplit(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleSplitRequest request, org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleSplitResponse.Builder response)
-
blockTillReadFinishes
public void blockTillReadFinishes() throws java.lang.Exception- Throws:
java.lang.Exception
-
reset
public void reset()
-
-