Package org.apache.beam.sdk.values
Class PCollectionViews.InMemoryMultimapViewFn<K,V>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.IterableView<KV<K,V>>,Map<K,Iterable<V>>>
org.apache.beam.sdk.values.PCollectionViews.InMemoryMultimapViewFn<K,V>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.InMemoryMultimapViewFn<K,V>
extends ViewFn<Materializations.IterableView<KV<K,V>>,Map<K,Iterable<V>>>
Implementation which is able to adapt an iterable materialization to an in-memory
Map<K,
Iterable<V>>
.
For internal use only.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(Materializations.IterableView<KV<K, V>> primitiveView) A function to adapt a primitive view type to a desired view type.Gets the materialization of thisViewFn
.TypeDescriptor
<Map<K, Iterable<V>>> Return theTypeDescriptor
describing the output of this fn.
-
Constructor Details
-
InMemoryMultimapViewFn
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.IterableView<KV<K,
V>>, Map<K, Iterable<V>>>
-
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<KV<K,
V>>, Map<K, Iterable<V>>>
-