Iterable<WindowedValue<T>>
as a primitive
view type.@Deprecated @Experimental(value=CORE_RUNNERS_ONLY) public static class PCollectionViews.SingletonViewFn<T> extends ViewFn<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<T>>,T>
Iterable<WindowedValue<T>>
to T
.
For internal use only.
Modifier and Type | Method and Description |
---|---|
T |
apply(java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<T>> contents)
Deprecated.
A function to adapt a primitive view type to a desired view type.
|
T |
getDefaultValue()
Deprecated.
Returns the default value that was specified.
|
Materialization<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<T>>> |
getMaterialization()
Deprecated.
Gets the materialization of this
ViewFn . |
boolean |
hasDefault()
Deprecated.
|
@Deprecated @Internal public boolean hasDefault()
public T getDefaultValue()
For internal use only.
java.util.NoSuchElementException
- if no default was specified.public Materialization<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<T>>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<T>>,T>