Search in sources :

Example 1 with ChangeSorter

use of org.openstreetmap.osmosis.core.sort.v0_6.ChangeSorter in project osmosis by openstreetmap.

the class ReplicationFileMerger method buildResultWriter.

private ChangeSink buildResultWriter(long sequenceNumber) {
    XmlChangeWriter xmlChangeWriter;
    ChangeSorter changeSorter;
    xmlChangeWriter = replicationStore.saveData(sequenceNumber);
    changeSorter = new ChangeSorter(new ChangeForStreamableApplierComparator());
    changeSorter.setChangeSink(xmlChangeWriter);
    return changeSorter;
}
Also used : XmlChangeWriter(org.openstreetmap.osmosis.xml.v0_6.XmlChangeWriter) ChangeForStreamableApplierComparator(org.openstreetmap.osmosis.core.sort.v0_6.ChangeForStreamableApplierComparator) ChangeSorter(org.openstreetmap.osmosis.core.sort.v0_6.ChangeSorter)

Aggregations

ChangeForStreamableApplierComparator (org.openstreetmap.osmosis.core.sort.v0_6.ChangeForStreamableApplierComparator)1 ChangeSorter (org.openstreetmap.osmosis.core.sort.v0_6.ChangeSorter)1 XmlChangeWriter (org.openstreetmap.osmosis.xml.v0_6.XmlChangeWriter)1