public static class DirectPipelineRunner.ValueWithMetadata<V> extends Object
DirectPipelineRunner.| Modifier and Type | Method and Description |
|---|---|
Object |
getKey()
Returns the key associated with this element.
|
org.joda.time.Instant |
getTimestamp()
Returns the timestamp associated with this element.
|
V |
getValue()
Returns the value associated with this element.
|
com.google.cloud.dataflow.sdk.util.WindowedValue<V> |
getWindowedValue()
Returns the
WindowedValue associated with this element. |
Collection<? extends BoundedWindow> |
getWindows()
Returns the collection of windows this element has been placed into.
|
static <V> DirectPipelineRunner.ValueWithMetadata<V> |
of(com.google.cloud.dataflow.sdk.util.WindowedValue<V> windowedValue)
Returns a new
ValueWithMetadata with the WindowedValue. |
DirectPipelineRunner.ValueWithMetadata<V> |
withKey(Object key)
Returns a new
ValueWithMetadata with the implicit key associated
with this value set. |
<T> DirectPipelineRunner.ValueWithMetadata<T> |
withValue(T value)
Returns a new
ValueWithMetadata that is a copy of this one, but with
a different value. |
public static <V> DirectPipelineRunner.ValueWithMetadata<V> of(com.google.cloud.dataflow.sdk.util.WindowedValue<V> windowedValue)
ValueWithMetadata with the WindowedValue.
Key is null.public DirectPipelineRunner.ValueWithMetadata<V> withKey(Object key)
ValueWithMetadata with the implicit key associated
with this value set. The key is the last key grouped by in the chain of
productions that produced this element.
These keys are used internally by DirectPipelineRunner for keeping
persisted state separate across keys.public <T> DirectPipelineRunner.ValueWithMetadata<T> withValue(T value)
ValueWithMetadata that is a copy of this one, but with
a different value.public com.google.cloud.dataflow.sdk.util.WindowedValue<V> getWindowedValue()
WindowedValue associated with this element.public V getValue()
withValue(T)public org.joda.time.Instant getTimestamp()
public Collection<? extends BoundedWindow> getWindows()
PCollection this element is in has not yet been
windowed.getWindows()public Object getKey()
PCollection this element is in is not keyed.withKey(java.lang.Object)