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