@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. |
TypeDescriptor<T> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
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()
ViewFnViewFn.getMaterialization in class ViewFn<Materializations.MultimapView<java.lang.Void,T>,T>public T apply(Materializations.MultimapView<java.lang.Void,T> primitiveViewT)
ViewFnapply in class ViewFn<Materializations.MultimapView<java.lang.Void,T>,T>public TypeDescriptor<T> getTypeDescriptor()
ViewFnTypeDescriptor describing the output of this fn.getTypeDescriptor in class ViewFn<Materializations.MultimapView<java.lang.Void,T>,T>