public static class PCollectionViews.ValueOrMetadata<T,MetaT>
extends java.lang.Object
Constructor and Description |
---|
ValueOrMetadata(boolean isMetadata,
T value,
MetaT metadata) |
Modifier and Type | Method and Description |
---|---|
static <T,MetaT> PCollectionViews.ValueOrMetadata<T,MetaT> |
create(T value) |
static <T,MetaT> PCollectionViews.ValueOrMetadata<T,MetaT> |
createMetadata(MetaT metadata) |
T |
get() |
MetaT |
getMetadata() |
boolean |
isMetadata() |
public static <T,MetaT> PCollectionViews.ValueOrMetadata<T,MetaT> create(T value)
public static <T,MetaT> PCollectionViews.ValueOrMetadata<T,MetaT> createMetadata(MetaT metadata)
public T get()
public boolean isMetadata()
public MetaT getMetadata()