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