public static class PCollectionViews.IterableBackedListViewFn<T> extends ViewFn<Materializations.IterableView<T>,java.util.List<T>>
List<T>
.
Unlike ListViewFn2, this implementation is optimized for iteration rather than indexing.
For internal use only.
Constructor and Description |
---|
IterableBackedListViewFn(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
apply(Materializations.IterableView<T> primitiveViewT)
A function to adapt a primitive view type to a desired view type.
|
boolean |
equals(@Nullable java.lang.Object other) |
Materialization<Materializations.IterableView<T>> |
getMaterialization()
Gets the materialization of this
ViewFn . |
TypeDescriptor<java.util.List<T>> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
int |
hashCode() |
public IterableBackedListViewFn(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier)
public Materialization<Materializations.IterableView<T>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.IterableView<T>,java.util.List<T>>
public java.util.List<T> apply(Materializations.IterableView<T> primitiveViewT)
ViewFn
apply
in class ViewFn<Materializations.IterableView<T>,java.util.List<T>>
public TypeDescriptor<java.util.List<T>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.IterableView<T>,java.util.List<T>>
public boolean equals(@Nullable java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object