Package org.apache.beam.sdk.values
Class PCollectionViews.InMemoryListFromMultimapViewFn<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<Void,T>,List<T>>
org.apache.beam.sdk.values.PCollectionViews.InMemoryListFromMultimapViewFn<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.InMemoryListFromMultimapViewFn<T>
extends ViewFn<Materializations.MultimapView<Void,T>,List<T>>
Implementation which is able to adapt a multimap materialization to an in-memory
List<T>
.
For internal use only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryListFromMultimapViewFn
(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Materializations.MultimapView<Void, T> primitiveView) 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
-
InMemoryListFromMultimapViewFn
public InMemoryListFromMultimapViewFn(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier)
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.MultimapView<Void,
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.MultimapView<Void,
T>, List<T>>
-
equals
-
hashCode
public int hashCode()
-