public static class Create.TimestampedValues<T> extends PTransform<PInput,PCollection<T>>
PTransform that creates a PCollection whose elements have
associated timestamps.name| Modifier and Type | Method and Description |
|---|---|
PCollection<T> |
apply(PInput input)
Applies this
PTransform on the given InputT, and returns its
Output. |
Create.TimestampedValues<T> |
withCoder(Coder<T> coder)
Returns a
Create.TimestampedValues PTransform like this one that uses the given
Coder<T> to decode each of the objects into a
value of type T. |
getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validatepublic Create.TimestampedValues<T> withCoder(Coder<T> coder)
Create.TimestampedValues PTransform like this one that uses the given
Coder<T> to decode each of the objects into a
value of type T.
By default, Create.TimestampedValues can automatically determine the
Coder to use if all elements have the same non-parameterized run-time class,
and a default coder is registered for that class. See CoderRegistry for details
on how defaults are determined.
Note that for with no elements, the VoidCoder
is used.
public PCollection<T> apply(PInput input)
PTransformPTransform on the given InputT, and returns its
Output.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
apply in class PTransform<PInput,PCollection<T>>