public static class PCollectionViews.InMemoryMultimapViewFn<K,V> extends ViewFn<Materializations.IterableView<KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>
Map<K,
Iterable<V>>
.
For internal use only.
Constructor and Description |
---|
InMemoryMultimapViewFn(Coder<K> keyCoder,
Coder<V> valueCoder) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,java.lang.Iterable<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,java.lang.Iterable<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,java.lang.Iterable<V>>>
public java.util.Map<K,java.lang.Iterable<V>> apply(Materializations.IterableView<KV<K,V>> primitiveView)
ViewFn
public TypeDescriptor<java.util.Map<K,java.lang.Iterable<V>>> getTypeDescriptor()
ViewFn
TypeDescriptor
describing the output of this fn.getTypeDescriptor
in class ViewFn<Materializations.IterableView<KV<K,V>>,java.util.Map<K,java.lang.Iterable<V>>>