public
final
class
OverwritingInputMerger
extends InputMerger
An InputMerger
that attempts to add all keys from all inputs to the output. In case of a
conflict, this class will overwrite the previously-set key. Because there is no defined order
for inputs, this implementation is best suited for cases where conflicts will not happen, or
where overwriting is a valid strategy to deal with them.
Summary
Public methods |
Data
|
merge(List<Data> inputs)
Merges a list of Data and outputs a single Data object.
|
Inherited methods |
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
public OverwritingInputMerger ()
Public methods
merge
public Data merge (List<Data> inputs)
Merges a list of Data
and outputs a single Data object.
Parameters |
inputs |
List : A list of Data |
Returns |
Data |
The merged output
|