Package org.apache.beam.sdk.values
Class PCollectionViews.IterableViewFn2<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.IterableView<T>,Iterable<T>>
org.apache.beam.sdk.values.PCollectionViews.IterableViewFn2<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
@Internal
public static class PCollectionViews.IterableViewFn2<T>
extends ViewFn<Materializations.IterableView<T>,Iterable<T>>
Implementation which is able to adapt an iterable materialization to a
Iterable<T>
.
For internal use only.
PCollectionViews.IterableViewFn
is meant to be removed in the future and replaced with this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIterableViewFn2
(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Materializations.IterableView<T> primitiveViewT) A function to adapt a primitive view type to a desired view type.Gets the materialization of thisViewFn
.Return theTypeDescriptor
describing the output of this fn.
-
Constructor Details
-
IterableViewFn2
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.IterableView<T>,
Iterable<T>>
-
apply
Description copied from class:ViewFn
A function to adapt a primitive view type to a desired view type. -
getTypeDescriptor
Description copied from class:ViewFn
Return theTypeDescriptor
describing the output of this fn.- Specified by:
getTypeDescriptor
in classViewFn<Materializations.IterableView<T>,
Iterable<T>>
-