public static class PCollectionViews.InMemoryMapViewFn<K,V> extends ViewFn<Materializations.IterableView<KV<K,V>>,java.util.Map<K,V>>
Map<K,
V>
.
For internal use only.
Constructor and Description |
---|
InMemoryMapViewFn(Coder<K> keyCoder,
Coder<V> valueCoder) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,V> |
apply(Materializations.IterableView<KV<K,V>> primitiveView)
A function to adapt a primitive view type to a desired view type.
|
Materialization<Materializations.IterableView<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.IterableView<KV<K,V>>> getMaterialization()
ViewFn
ViewFn
.getMaterialization
in class ViewFn<Materializations.IterableView<KV<K,V>>,java.util.Map<K,V>>
public java.util.Map<K,V> apply(Materializations.IterableView<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.IterableView<KV<K,V>>,java.util.Map<K,V>>