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
    Constructor
    Description
    ChangeApplier(int inputBufferCapacity)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openstreetmap.osmosis.core.task.v0_6.ChangeSink
    getChangeSink(int instance)
    int
    This implementation always returns 1.
    org.openstreetmap.osmosis.core.task.v0_6.Sink
    getSink(int instance)
    int
    This implementation always returns 1.
    void
    run()
    Processes the input sources and sends the updated data stream to the sink.
    void
    setSink(org.openstreetmap.osmosis.core.task.v0_6.Sink sink)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getSink in interface org.openstreetmap.osmosis.core.task.v0_6.MultiSink
    • getSinkCount

      public int getSinkCount()
      This implementation always returns 1.
      Specified by:
      getSinkCount in interface org.openstreetmap.osmosis.core.task.v0_6.MultiSink
      Returns:
      1
    • getChangeSink

      public org.openstreetmap.osmosis.core.task.v0_6.ChangeSink getChangeSink(int instance)
      Specified by:
      getChangeSink in interface org.openstreetmap.osmosis.core.task.v0_6.MultiChangeSink
    • getChangeSinkCount

      public int getChangeSinkCount()
      This implementation always returns 1.
      Specified by:
      getChangeSinkCount in interface org.openstreetmap.osmosis.core.task.v0_6.MultiChangeSink
      Returns:
      1
    • setSink

      public void setSink(org.openstreetmap.osmosis.core.task.v0_6.Sink sink)
      Specified by:
      setSink in interface org.openstreetmap.osmosis.core.task.v0_6.Source
    • run

      public void run()
      Processes the input sources and sends the updated data stream to the sink.
      Specified by:
      run in interface Runnable