@Experimental(value=CORE_RUNNERS_ONLY) @Internal public static class PCollectionViews.MultimapViewFn2<K,V> extends ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,java.lang.Iterable<V>>>
Map<K,
Iterable<V>>.
For internal use only.
PCollectionViews.MultimapViewFn is meant to be removed in the future and replaced with this class.
| Constructor and Description |
|---|
MultimapViewFn2(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier,
PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<K,java.lang.Iterable<V>> |
apply(Materializations.MultimapView<K,V> primitiveViewT)
A function to adapt a primitive view type to a desired view type.
|
Materialization<Materializations.MultimapView<K,V>> |
getMaterialization()
Gets the materialization of this
ViewFn. |
TypeDescriptor<java.util.Map<K,java.lang.Iterable<V>>> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
public MultimapViewFn2(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier, PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier)
public Materialization<Materializations.MultimapView<K,V>> getMaterialization()
ViewFnViewFn.getMaterialization in class ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,java.lang.Iterable<V>>>public java.util.Map<K,java.lang.Iterable<V>> apply(Materializations.MultimapView<K,V> primitiveViewT)
ViewFnpublic TypeDescriptor<java.util.Map<K,java.lang.Iterable<V>>> getTypeDescriptor()
ViewFnTypeDescriptor describing the output of this fn.getTypeDescriptor in class ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,java.lang.Iterable<V>>>