|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.merge.v0_6.ChangeMerger
public class ChangeMerger
Merges two change sources into a single data set. Conflicting elements are resolved by using either the latest timestamp (default) or always selecting the second source.
Constructor Summary | |
---|---|
ChangeMerger(ConflictResolutionMethod conflictResolutionMethod,
int inputBufferCapacity)
Creates a new instance. |
Method Summary | |
---|---|
ChangeSink |
getChangeSink(int instance)
Obtains one of the change sinks exposed by the task. |
int |
getChangeSinkCount()
This implementation always returns 2. |
void |
run()
|
void |
setChangeSink(ChangeSink changeSink)
Sets the change sink to send data to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeMerger(ConflictResolutionMethod conflictResolutionMethod, int inputBufferCapacity)
conflictResolutionMethod
- The method to used to resolve conflict when two sources
contain the same entity.inputBufferCapacity
- The size of the buffers to use for input sources.Method Detail |
---|
public ChangeSink getChangeSink(int instance)
getChangeSink
in interface MultiChangeSink
instance
- The index of the change sink to be returned.
public int getChangeSinkCount()
getChangeSinkCount
in interface MultiChangeSink
public void setChangeSink(ChangeSink changeSink)
setChangeSink
in interface ChangeSource
changeSink
- The sink for receiving all produced data.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |