@Deprecated @Experimental(value=CORE_RUNNERS_ONLY) public static class PCollectionViews.SingletonViewFn<T> extends ViewFn<Materializations.MultimapView<java.lang.Void,T>,T> implements PCollectionViews.HasDefaultValue<T>
T
.
For internal use only.
Modifier and Type | Method and Description |
---|---|
T |
apply(Materializations.MultimapView<java.lang.Void,T> primitiveViewT)
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<Materializations.MultimapView<java.lang.Void,T>> |
getMaterialization()
Deprecated.
Gets the materialization of this
ViewFn . |
TypeDescriptor<T> |
getTypeDescriptor()
Deprecated.
Return the
TypeDescriptor describing the output of this fn. |
boolean |
hasDefault()
Deprecated.
Returns if a default value was specified.
|
@Internal public boolean hasDefault()
public T getDefaultValue()
For internal use only.
getDefaultValue
in interface PCollectionViews.HasDefaultValue<T>
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>
public TypeDescriptor<T> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.MultimapView<java.lang.Void,T>,T>