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 theTypeDescriptordescribing 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:ViewFnGets the materialization of thisViewFn.- Specified by:
getMaterializationin 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:ViewFnA function to adapt a primitive view type to a desired view type.- Specified by:
applyin classViewFn<Materializations.MultimapView<Long,PCollectionViews.ValueOrMetadata<T, OffsetRange>>, List<T>>
-
getTypeDescriptor
Description copied from class:ViewFnReturn theTypeDescriptordescribing the output of this fn.- Specified by:
getTypeDescriptorin classViewFn<Materializations.MultimapView<Long,PCollectionViews.ValueOrMetadata<T, OffsetRange>>, List<T>>
-