Package org.apache.beam.sdk.values
Class PCollectionViews.ListViewFn2<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,List<T>>
org.apache.beam.sdk.values.PCollectionViews.ListViewFn2<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.ListViewFn2<T>
extends ViewFn<Materializations.MultimapView<Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,List<T>>
Implementation which is able to adapt a multimap materialization to a
List<T>
.
For internal use only.
PCollectionViews.ListViewFn
is meant to be removed in the future and replaced with this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionListViewFn2
(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Materializations.MultimapView<Long, PCollectionViews.ValueOrMetadata<T, OffsetRange>> primitiveViewT) A function to adapt a primitive view type to a desired view type.Materialization
<Materializations.MultimapView<Long, PCollectionViews.ValueOrMetadata<T, OffsetRange>>> Gets the materialization of thisViewFn
.Return theTypeDescriptor
describing the output of this fn.
-
Constructor Details
-
ListViewFn2
-
-
Method Details
-
getMaterialization
public Materialization<Materializations.MultimapView<Long,PCollectionViews.ValueOrMetadata<T, getMaterialization()OffsetRange>>> Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.MultimapView<Long,
PCollectionViews.ValueOrMetadata<T, OffsetRange>>, List<T>>
-
apply
public List<T> apply(Materializations.MultimapView<Long, PCollectionViews.ValueOrMetadata<T, OffsetRange>> primitiveViewT) 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<Long,
PCollectionViews.ValueOrMetadata<T, OffsetRange>>, List<T>>
-
getTypeDescriptor
Description copied from class:ViewFn
Return theTypeDescriptor
describing the output of this fn.- Specified by:
getTypeDescriptor
in classViewFn<Materializations.MultimapView<Long,
PCollectionViews.ValueOrMetadata<T, OffsetRange>>, List<T>>
-