Class ChangeApplier
java.lang.Object
org.openstreetmap.osmosis.set.v0_6.ChangeApplier
- All Implemented Interfaces:
Runnable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.MultiChangeSink,org.openstreetmap.osmosis.core.task.v0_6.MultiSink,org.openstreetmap.osmosis.core.task.v0_6.MultiSinkMultiChangeSinkRunnableSource,org.openstreetmap.osmosis.core.task.v0_6.RunnableSource,org.openstreetmap.osmosis.core.task.v0_6.Source
public class ChangeApplier
extends Object
implements org.openstreetmap.osmosis.core.task.v0_6.MultiSinkMultiChangeSinkRunnableSource
Applies a change set to an input source and produces an updated data set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openstreetmap.osmosis.core.task.v0_6.ChangeSinkgetChangeSink(int instance) intThis implementation always returns 1.org.openstreetmap.osmosis.core.task.v0_6.SinkgetSink(int instance) intThis implementation always returns 1.voidrun()Processes the input sources and sends the updated data stream to the sink.voidsetSink(org.openstreetmap.osmosis.core.task.v0_6.Sink sink)
-
Constructor Details
-
ChangeApplier
public ChangeApplier(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 1.- Specified by:
getSinkCountin interfaceorg.openstreetmap.osmosis.core.task.v0_6.MultiSink- Returns:
- 1
-
getChangeSink
public org.openstreetmap.osmosis.core.task.v0_6.ChangeSink getChangeSink(int instance) - Specified by:
getChangeSinkin interfaceorg.openstreetmap.osmosis.core.task.v0_6.MultiChangeSink
-
getChangeSinkCount
public int getChangeSinkCount()This implementation always returns 1.- Specified by:
getChangeSinkCountin interfaceorg.openstreetmap.osmosis.core.task.v0_6.MultiChangeSink- Returns:
- 1
-
setSink
public void setSink(org.openstreetmap.osmosis.core.task.v0_6.Sink sink) - Specified by:
setSinkin interfaceorg.openstreetmap.osmosis.core.task.v0_6.Source
-
run
public void run()Processes the input sources and sends the updated data stream to the sink.
-