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