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 theTypeDescriptor
describing the output of this fn.boolean
Deprecated.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:
getDefaultValue
in interfacePCollectionViews.HasDefaultValue<T>
- Throws:
NoSuchElementException
- if no default was specified.
-
getMaterialization
Deprecated.Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.MultimapView<Void,
T>, T>
-
apply
Deprecated.Description copied from class:ViewFn
A function to adapt a primitive view type to a desired view type. -
getTypeDescriptor
Deprecated.Description copied from class:ViewFn
Return theTypeDescriptor
describing the output of this fn.- Specified by:
getTypeDescriptor
in classViewFn<Materializations.MultimapView<Void,
T>, T>
-
PCollectionViews.SingletonViewFn2
.