public static class PCollectionViews.InMemoryMapFromVoidKeyViewFn<K,V> extends ViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,V>>
Map<K,
V>
.
For internal use only.
Constructor and Description |
---|
InMemoryMapFromVoidKeyViewFn(Coder<K> keyCoder,
Coder<V> valueCoder) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,V> |
apply(Materializations.MultimapView<java.lang.Void,KV<K,V>> primitiveView)
A function to adapt a primitive view type to a desired view type.
|
Materialization<Materializations.MultimapView<java.lang.Void,KV<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 Materialization<Materializations.MultimapView<java.lang.Void,KV<K,V>>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,V>>
public java.util.Map<K,V> apply(Materializations.MultimapView<java.lang.Void,KV<K,V>> primitiveView)
ViewFn
public TypeDescriptor<java.util.Map<K,V>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.MultimapView<java.lang.Void,KV<K,V>>,java.util.Map<K,V>>