|
|||||||||
| 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.EntityMerger
public class EntityMerger
Merges two 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 | |
|---|---|
EntityMerger(ConflictResolutionMethod conflictResolutionMethod,
int inputBufferCapacity)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Sink |
getSink(int instance)
Obtains one of the sinks exposed by the task. |
int |
getSinkCount()
This implementation always returns 2. |
void |
run()
|
void |
setSink(Sink sink)
Sets the osm 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 EntityMerger(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 Sink getSink(int instance)
getSink in interface MultiSinkinstance - The index of the sink to be returned.
public int getSinkCount()
getSinkCount in interface MultiSinkpublic void setSink(Sink sink)
setSink in interface Sourcesink - 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 | ||||||||