public class BTreeSearchIterator<K,V> extends java.lang.Object implements IndexedSearchIterator<K,V>, java.util.Iterator<V>
| Constructor and Description |
|---|
BTreeSearchIterator(java.lang.Object[] btree,
java.util.Comparator<? super K> comparator,
BTree.Dir dir) |
| Modifier and Type | Method and Description |
|---|---|
V |
current() |
boolean |
hasNext() |
int |
indexOfCurrent() |
V |
next() |
V |
next(K target)
Searches "forwards" (in direction of travel) in the iterator for the required key;
if this or any key greater has already been returned by the iterator, null will be returned.
|
void |
rewind()
Reset this Iterator to its starting position
|
public boolean hasNext()
hasNext in interface java.util.Iterator<V>hasNext in interface SearchIterator<K,V>public V next(K target)
SearchIteratornext in interface SearchIterator<K,V>target - to search forpublic void rewind()
public V current()
current in interface IndexedSearchIterator<K,V>public int indexOfCurrent()
indexOfCurrent in interface IndexedSearchIterator<K,V>Copyright © 2015 The Apache Software Foundation