@Internal public static class PCollectionViews.MapViewFn2<K,V> extends ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,V>>
Map<K, V>
.
For internal use only.
PCollectionViews.MapViewFn
is meant to be removed in the future and replaced with this class.
Constructor and Description |
---|
MapViewFn2(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier,
PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,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,V>> |
getTypeDescriptor()
Return the
TypeDescriptor describing the output of this fn. |
public MapViewFn2(PCollectionViews.TypeDescriptorSupplier<K> keyTypeDescriptorSupplier, PCollectionViews.TypeDescriptorSupplier<V> valueTypeDescriptorSupplier)
public Materialization<Materializations.MultimapView<K,V>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,V>>
public java.util.Map<K,V> apply(Materializations.MultimapView<K,V> primitiveViewT)
ViewFn
public TypeDescriptor<java.util.Map<K,V>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.MultimapView<K,V>,java.util.Map<K,V>>