Package org.apache.beam.sdk.values
Class PCollectionViews.SingletonViewFn<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<Void,T>,T>
  
org.apache.beam.sdk.values.PCollectionViews.SingletonViewFn<T>
- All Implemented Interfaces:
 Serializable,PCollectionViews.HasDefaultValue<T>,PCollectionViews.IsSingletonView<T>
- Enclosing class:
 PCollectionViews
@Deprecated
public static class PCollectionViews.SingletonViewFn<T>
extends ViewFn<Materializations.MultimapView<Void,T>,T>
implements PCollectionViews.HasDefaultValue<T>, PCollectionViews.IsSingletonView<T>  
Deprecated.
Implementation which is able to adapt a multimap materialization to a 
T.
 For internal use only.
- See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionapply(Materializations.MultimapView<Void, T> primitiveViewT) Deprecated.A function to adapt a primitive view type to a desired view type.Deprecated.Returns the default value that was specified.Deprecated.Gets the materialization of thisViewFn.Deprecated.Return theTypeDescriptordescribing the output of this fn.booleanDeprecated.Returns if a default value was specified. 
- 
Method Details
- 
hasDefault
public boolean hasDefault()Deprecated.Returns if a default value was specified. - 
getDefaultValue
Deprecated.Returns the default value that was specified.For internal use only.
- Specified by:
 getDefaultValuein interfacePCollectionViews.HasDefaultValue<T>- Throws:
 NoSuchElementException- if no default was specified.
 - 
getMaterialization
Deprecated.Description copied from class:ViewFnGets the materialization of thisViewFn.- Specified by:
 getMaterializationin classViewFn<Materializations.MultimapView<Void,T>, T> 
 - 
apply
Deprecated.Description copied from class:ViewFnA function to adapt a primitive view type to a desired view type. - 
getTypeDescriptor
Deprecated.Description copied from class:ViewFnReturn theTypeDescriptordescribing the output of this fn.- Specified by:
 getTypeDescriptorin classViewFn<Materializations.MultimapView<Void,T>, T> 
 
 - 
 
PCollectionViews.SingletonViewFn2.