Package org.apache.beam.sdk.values
Class PCollectionViews.MultimapViewFn<K,V>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>
-
- org.apache.beam.sdk.values.PCollectionViews.MultimapViewFn<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PCollectionViews
@Deprecated @Experimental(CORE_RUNNERS_ONLY) public static class PCollectionViews.MultimapViewFn<K,V> extends ViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>
Deprecated.Implementation which is able to adapt a multimap materialization to aMap<K, Iterable<V>>
.For internal use only.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultimapViewFn(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier, PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<K,java.lang.Iterable<V>>
apply(Materializations.MultimapView<java.lang.Void,KV<K,V>> primitiveViewT)
Deprecated.A function to adapt a primitive view type to a desired view type.Materialization<Materializations.MultimapView<java.lang.Void,KV<K,V>>>
getMaterialization()
Deprecated.Gets the materialization of thisViewFn
.TypeDescriptor<java.util.Map<K,java.lang.Iterable<V>>>
getTypeDescriptor()
Deprecated.Return theTypeDescriptor
describing the output of this fn.
-
-
-
Constructor Detail
-
MultimapViewFn
public MultimapViewFn(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier, PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier)
Deprecated.
-
-
Method Detail
-
getMaterialization
public Materialization<Materializations.MultimapView<java.lang.Void,KV<K,V>>> getMaterialization()
Deprecated.Description copied from class:ViewFn
Gets the materialization of thisViewFn
.- Specified by:
getMaterialization
in classViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>
-
apply
public java.util.Map<K,java.lang.Iterable<V>> apply(Materializations.MultimapView<java.lang.Void,KV<K,V>> primitiveViewT)
Deprecated.Description copied from class:ViewFn
A function to adapt a primitive view type to a desired view type.
-
getTypeDescriptor
public TypeDescriptor<java.util.Map<K,java.lang.Iterable<V>>> getTypeDescriptor()
Deprecated.Description copied from class:ViewFn
Return theTypeDescriptor
describing the output of this fn.- Specified by:
getTypeDescriptor
in classViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>
-
-