Class ChangeDeriver
java.lang.Object
org.openstreetmap.osmosis.set.v0_6.ChangeDeriver
- All Implemented Interfaces:
Runnable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.ChangeSource,org.openstreetmap.osmosis.core.task.v0_6.MultiSink,org.openstreetmap.osmosis.core.task.v0_6.MultiSinkRunnableChangeSource,org.openstreetmap.osmosis.core.task.v0_6.RunnableChangeSource
public class ChangeDeriver
extends Object
implements org.openstreetmap.osmosis.core.task.v0_6.MultiSinkRunnableChangeSource
Compares two different data sources and produces a set of differences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openstreetmap.osmosis.core.task.v0_6.SinkgetSink(int instance) intThis implementation always returns 2.voidrun()Processes the input sources and sends the changes to the change sink.voidsetChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink)
-
Constructor Details
-
ChangeDeriver
public ChangeDeriver(int inputBufferCapacity) Creates a new instance.- Parameters:
inputBufferCapacity- The size of the buffers to use for input sources.
-
-
Method Details
-
getSink
public org.openstreetmap.osmosis.core.task.v0_6.Sink getSink(int instance) - Specified by:
getSinkin interfaceorg.openstreetmap.osmosis.core.task.v0_6.MultiSink
-
getSinkCount
public int getSinkCount()This implementation always returns 2.- Specified by:
getSinkCountin interfaceorg.openstreetmap.osmosis.core.task.v0_6.MultiSink- Returns:
- 2
-
setChangeSink
public void setChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink) - Specified by:
setChangeSinkin interfaceorg.openstreetmap.osmosis.core.task.v0_6.ChangeSource
-
run
public void run()Processes the input sources and sends the changes to the change sink.
-