Package org.apache.beam.sdk.values
Class PCollectionViews.SingletonViewFn<T>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<java.lang.Void,T>,T>
-
- org.apache.beam.sdk.values.PCollectionViews.SingletonViewFn<T>
-
- All Implemented Interfaces:
java.io.Serializable
,PCollectionViews.HasDefaultValue<T>
- Enclosing class:
- PCollectionViews
@Deprecated @Experimental(CORE_RUNNERS_ONLY) public static class PCollectionViews.SingletonViewFn<T> extends ViewFn<Materializations.MultimapView<java.lang.Void,T>,T> implements PCollectionViews.HasDefaultValue<T>
Deprecated.Implementation which is able to adapt a multimap materialization to aT
.For internal use only.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 thisViewFn
.TypeDescriptor<T>
getTypeDescriptor()
Deprecated.Return theTypeDescriptor
describing the output of this fn.boolean
hasDefault()
Deprecated.Returns if a default value was specified.
-
-
-
Method Detail
-
hasDefault
@Internal public boolean hasDefault()
Deprecated.Returns if a default value was specified.
-
getDefaultValue
public T getDefaultValue()
Deprecated.Returns the default value that was specified.For internal use only.
- Specified by:
getDefaultValue
in interfacePCollectionViews.HasDefaultValue<T>
- Throws:
java.util.NoSuchElementException
- if no default was specified.
-
getMaterialization
public Materialization<Materializations.MultimapView<java.lang.Void,T>> getMaterialization()
Deprecated.Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.MultimapView<java.lang.Void,T>,T>
-
apply
public T apply(Materializations.MultimapView<java.lang.Void,T> primitiveViewT)
Deprecated.Description copied from class:ViewFn
A function to adapt a primitive view type to a desired view type.- Specified by:
apply
in classViewFn<Materializations.MultimapView<java.lang.Void,T>,T>
-
getTypeDescriptor
public TypeDescriptor<T> getTypeDescriptor()
Deprecated.Description copied from class:ViewFn
Return theTypeDescriptor
describing the output of this fn.- Specified by:
getTypeDescriptor
in classViewFn<Materializations.MultimapView<java.lang.Void,T>,T>
-
-