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