public class Read extends Object
PTransform for reading from a Source.
Usage example:
Pipeline p = Pipeline.create();
p.apply(Read.from(new MySource().withFoo("foo").withBar("bar"))
.named("foobar"));
| Modifier and Type | Class and Description |
|---|---|
static class |
Read.Bound<T>
Implementation of the
Read PTransform builder. |
| Constructor and Description |
|---|
Read() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Read.Bound<T> |
from(BoundedSource<T> source)
Returns a new
Read.Bound PTransform reading from the given
BoundedSource. |
static <T> Read.Bound<T> |
from(UnboundedSource<T,?> source)
Returns a new
Read.Bound PTransform reading from the given
UnboundedSource. |
static Read.Bound<?> |
named(String name)
Returns a new
Read.Bound PTransform with the given name. |
public static Read.Bound<?> named(String name)
Read.Bound PTransform with the given name.public static <T> Read.Bound<T> from(BoundedSource<T> source)
Read.Bound PTransform reading from the given
BoundedSource.public static <T> Read.Bound<T> from(UnboundedSource<T,?> source)
Read.Bound PTransform reading from the given
UnboundedSource.