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

    Modifier and Type
    Method
    Description
    org.openstreetmap.osmosis.core.task.v0_6.Sink
    getSink(int instance)
    int
    This implementation always returns 2.
    void
    run()
    Processes the input sources and sends the changes to the change sink.
    void
    setChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink)

    Methods inherited from class java.lang.Object

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

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

      public void setChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink)
      Specified by:
      setChangeSink in interface org.openstreetmap.osmosis.core.task.v0_6.ChangeSource
    • run

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