Package org.apache.beam.sdk.values
Class PCollectionViews.InMemoryMapViewFn<K,V>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.IterableView<KV<K,V>>,Map<K,V>>
org.apache.beam.sdk.values.PCollectionViews.InMemoryMapViewFn<K,V>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.InMemoryMapViewFn<K,V>
extends ViewFn<Materializations.IterableView<KV<K,V>>,Map<K,V>>
Implementation which is able to adapt an iterable materialization to an in-memory
Map<K,
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, V>> Return theTypeDescriptordescribing the output of this fn.
-
Constructor Details
-
InMemoryMapViewFn
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFnGets the materialization of thisViewFn.- Specified by:
getMaterializationin classViewFn<Materializations.IterableView<KV<K,V>>, Map<K, V>>
-
apply
Description copied from class:ViewFnA function to adapt a primitive view type to a desired view type. -
getTypeDescriptor
Description copied from class:ViewFnReturn theTypeDescriptordescribing the output of this fn.- Specified by:
getTypeDescriptorin classViewFn<Materializations.IterableView<KV<K,V>>, Map<K, V>>
-