Package org.apache.beam.sdk.values
Class PCollectionViews.IterableBackedListViewFn<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.IterableView<T>,List<T>>
org.apache.beam.sdk.values.PCollectionViews.IterableBackedListViewFn<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.IterableBackedListViewFn<T>
extends ViewFn<Materializations.IterableView<T>,List<T>>
Implementation which is able to adapt an iterable materialization to a
List<T>
.
Unlike ListViewFn2, this implementation is optimized for iteration rather than indexing.
For internal use only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIterableBackedListViewFn
(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.boolean
Gets the materialization of thisViewFn
.Return theTypeDescriptor
describing the output of this fn.int
hashCode()
-
Constructor Details
-
IterableBackedListViewFn
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.IterableView<T>,
List<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>,
List<T>>
-
equals
-
hashCode
public int hashCode()
-