public class SortedIdMergeIterator extends AbstractSortedIdMerge implements OsmIdIterator
AbstractSortedIdMerge.Input
nodeItems, relationItems, wayItems
bounds, hasBounds, inputs
Constructor and Description |
---|
SortedIdMergeIterator(Collection<OsmIdIterator> inputs)
Merge the elements from a collection of OSM input sources to a single OSM
input source.
|
Modifier and Type | Method and Description |
---|---|
OsmBounds |
getBounds() |
boolean |
hasBounds() |
boolean |
hasNext() |
Iterator<IdContainer> |
iterator() |
IdContainer |
next() |
void |
remove() |
advanceNodeItem, advanceRelationItem, advanceWayItem, createItem
initBounds
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
public SortedIdMergeIterator(Collection<OsmIdIterator> inputs) throws IOException
inputs
- a collection of iterators to retrieve data from.IOException
public Iterator<IdContainer> iterator()
iterator
in interface Iterable<IdContainer>
public void remove()
remove
in interface Iterator<IdContainer>
public boolean hasBounds()
hasBounds
in interface OsmIdIterator
public OsmBounds getBounds()
getBounds
in interface OsmIdIterator
public boolean hasNext()
hasNext
in interface Iterator<IdContainer>
public IdContainer next()
next
in interface Iterator<IdContainer>