public class BoundedSourceRunner<InputT extends org.apache.beam.sdk.io.BoundedSource<OutputT>,OutputT>
extends java.lang.Object
Source.Readers for each BoundedSource sent as an input and
executes the Source.Readers read loop.| Modifier and Type | Class and Description |
|---|---|
static class |
BoundedSourceRunner.Registrar
A registrar which provides a factory to handle Java
BoundedSources. |
| Modifier and Type | Method and Description |
|---|---|
void |
runReadLoop(org.apache.beam.sdk.util.WindowedValue<InputT> value)
Creates a
Source.Reader for each BoundedSource and executes the Source.Readers read
loop. |
void |
start()
Deprecated.
The runner harness is meant to send the source over the Beam Fn Data API which
would be consumed by the
runReadLoop(org.apache.beam.sdk.util.WindowedValue<InputT>). Drop this method once the runner harness
sends the source instead of unpacking it from the data block of the function specification. |
java.lang.String |
toString() |
@Deprecated
public void start()
throws java.lang.Exception
runReadLoop(org.apache.beam.sdk.util.WindowedValue<InputT>). Drop this method once the runner harness
sends the source instead of unpacking it from the data block of the function specification.java.lang.Exceptionpublic void runReadLoop(org.apache.beam.sdk.util.WindowedValue<InputT> value) throws java.lang.Exception
Source.Reader for each BoundedSource and executes the Source.Readers read
loop. See Source.Reader for further details of the read loop.
Propagates any exceptions caused during reading or processing via a consumer to the caller.
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object