public class MapUnion<K,T> extends java.lang.Object implements Reduction<java.util.Map<K,T>>
Map objects into one by merging them into
the first Map object. The process checks every key in the
second Map object. For the keys that exist in the first
Map object as well, the values will be merged according to
programmer's specifications. If the first Map object does
not contain the key already, then the key and its corresponding value will
be added to the first Map object.| Modifier and Type | Field and Description |
|---|---|
protected Reduction<T> |
reducer |
ArrayCOMBINE, BooleanBITAND, BooleanBITOR, BooleanBITXOR, BooleanLOGAND, BooleanLOGOR, ByteBITAND, ByteBITOR, ByteBITXOR, ByteMAX, ByteMIN, ByteMINUS, ByteMULTI, ByteSUM, DoubleBITAND, DoubleBITOR, DoubleBITXOR, DoubleLOGAND, DoubleLOGOR, DoubleMAX, DoubleMIN, DoubleMINUS, DoubleMULTI, DoubleSUM, FloatMAX, FloatMIN, FloatMINUS, FloatMULTI, FloatSUM, IntegerBITAND, IntegerBITOR, IntegerBITXOR, IntegerLOGAND, IntegerLOGOR, IntegerMAX, IntegerMIN, IntegerMINUS, IntegerMULTI, IntegerSUM, LongBITAND, LongBITOR, LongBITXOR, LongLOGOR, LongMAX, LongMIN, LongMINUS, LongMULTI, LongSUM, ShortBITAND, ShortBITOR, ShortBITXOR, ShortMAX, ShortMIN, ShortMINUS, ShortMULTI, ShortSUM| Modifier and Type | Method and Description |
|---|---|
java.util.Map<K,T> |
reduce(java.util.Map<K,T> first,
java.util.Map<K,T> second)
Specifies a reduction as defined by 2 elements into 1.
|
public java.util.Map<K,T> reduce(java.util.Map<K,T> first, java.util.Map<K,T> second)
Reduction