|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.store.IndexRangeIterator<K,T>
K
- The index key type.T
- The index record being stored.public class IndexRangeIterator<K,T extends IndexElement<K>>
Iterates over specific range within an index source. It will skip records until it reaches the beginning of the range, and stop when it reaches the end of the range.
Constructor Summary | |
---|---|
IndexRangeIterator(java.util.Iterator<T> source,
K beginKey,
K endKey,
java.util.Comparator<K> ordering)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexRangeIterator(java.util.Iterator<T> source, K beginKey, K endKey, java.util.Comparator<K> ordering)
source
- The input index source.beginKey
- The first key for which to return data.endKey
- The last key for which to return data.ordering
- The index key ordering to be used for comparing keys.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T extends IndexElement<K>>
public T next()
next
in interface java.util.Iterator<T extends IndexElement<K>>
public void remove()
remove
in interface java.util.Iterator<T extends IndexElement<K>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |