public class Read
extends java.lang.Object
PTransform
for reading from a Source
.
Usage example:
Pipeline p = Pipeline.create(); p.apply(Read.from(new MySource().withFoo("foo").withBar("bar")));
Modifier and Type | Class and Description |
---|---|
static class |
Read.Bounded<T>
PTransform that reads from a BoundedSource . |
static class |
Read.Builder
Helper class for building
Read transforms. |
static class |
Read.Unbounded<T>
PTransform that reads from a UnboundedSource . |
Constructor and Description |
---|
Read() |
Modifier and Type | Method and Description |
---|---|
static <T> Read.Bounded<T> |
from(BoundedSource<T> source)
Returns a new
Read.Bounded PTransform reading from the given
BoundedSource . |
static <T> Read.Unbounded<T> |
from(UnboundedSource<T,?> source)
|
public static <T> Read.Bounded<T> from(BoundedSource<T> source)
Read.Bounded
PTransform
reading from the given
BoundedSource
.public static <T> Read.Unbounded<T> from(UnboundedSource<T,?> source)