public static class PCollectionViews.ListViewFn2<T> extends ViewFn<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,java.util.List<T>>
List<T>
.
For internal use only.
PCollectionViews.ListViewFn
is meant to be removed in the future and replaced with this class.
Constructor and Description |
---|
ListViewFn2(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
apply(Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>> primitiveViewT)
A function to adapt a primitive view type to a desired view type.
|
Materialization<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>> |
getMaterialization()
Gets the materialization of this
ViewFn . |
TypeDescriptor<java.util.List<T>> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
public ListViewFn2(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier)
public Materialization<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,java.util.List<T>>
public java.util.List<T> apply(Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>> primitiveViewT)
ViewFn
apply
in class ViewFn<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,java.util.List<T>>
public TypeDescriptor<java.util.List<T>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.MultimapView<java.lang.Long,PCollectionViews.ValueOrMetadata<T,OffsetRange>>,java.util.List<T>>