@Experimental(value=CORE_RUNNERS_ONLY) @Internal public static class PCollectionViews.IterableViewFn2<T> extends ViewFn<Materializations.IterableView<T>,java.lang.Iterable<T>>
Iterable<T>
.
For internal use only.
PCollectionViews.IterableViewFn
is meant to be removed in the future and replaced with this class.
Constructor and Description |
---|
IterableViewFn2(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) |
Modifier and Type | Method and 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 this
ViewFn . |
TypeDescriptor<java.lang.Iterable<T>> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
public IterableViewFn2(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier)
public Materialization<Materializations.IterableView<T>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.IterableView<T>,java.lang.Iterable<T>>
public java.lang.Iterable<T> apply(Materializations.IterableView<T> primitiveViewT)
ViewFn
apply
in class ViewFn<Materializations.IterableView<T>,java.lang.Iterable<T>>
public TypeDescriptor<java.lang.Iterable<T>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.IterableView<T>,java.lang.Iterable<T>>