public class SortedMerge extends AbstractSortedMerge
AbstractSortedMerge.Input<T extends OsmEntity>
nodeItems, relationItems, wayItems
bounds, hasBounds, inputs
Constructor and Description |
---|
SortedMerge(OsmOutputStream output,
Collection<OsmIterator> inputs)
Merge the elements from a collection of OSM input sources to a single OSM
output.
|
SortedMerge(OsmOutputStream output,
Collection<OsmIterator> inputs,
Comparator<? super OsmNode> comparatorNodes,
Comparator<? super OsmWay> comparatorWays,
Comparator<? super OsmRelation> comparatorRelations)
Merge the elements from a collection of OSM input sources to a single OSM
output.
|
SortedMerge(OsmOutputStream output,
Collection<OsmIterator> inputs,
Comparator<OsmEntity> comparator)
Merge the elements from a collection of OSM input sources to a single OSM
output.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
advanceNodeItem, advanceRelationItem, advanceWayItem, createItem
initBounds
public SortedMerge(OsmOutputStream output, Collection<OsmIterator> inputs)
output
- am OsmOutputStream to write data to.inputs
- a collection of iterators to retrieve data from.public SortedMerge(OsmOutputStream output, Collection<OsmIterator> inputs, Comparator<OsmEntity> comparator)
output
- am OsmOutputStream to write data to.inputs
- a collection of iterators to retrieve data from.comparator
- a Comparator used to compare elements of the same type.public SortedMerge(OsmOutputStream output, Collection<OsmIterator> inputs, Comparator<? super OsmNode> comparatorNodes, Comparator<? super OsmWay> comparatorWays, Comparator<? super OsmRelation> comparatorRelations)
output
- am OsmOutputStream to write data to.inputs
- a collection of iterators to retrieve data from.comparatorNodes
- a Comparator used to compare nodes.comparatorWays
- a Comparator used to compare ways.comparatorRelations
- a Comparator used to compare relations.public void run() throws IOException
IOException