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, the method may
 choose to return null, the correct or incorrect output, or fail an assertion. | 
| void | rewind()Reset this Iterator to its starting position | 
public boolean hasNext()
hasNext in interface java.util.Iterator<V>hasNext in interface IndexedSearchIterator<K,V>public V next(K target)
SearchIterator!hasNext() => next(?) == nullnext 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 © 2018 The Apache Software Foundation