Package com.yahoo.search.result
Class DeepHitIterator
java.lang.Object
com.yahoo.search.result.DeepHitIterator
An iterator for the forest of hits in a result.
- Author:
- havardpe
-
Constructor Summary
ConstructorDescriptionDeepHitIterator
(Iterator<Hit> it, boolean ordered) Create a deep hit iterator based on the given hit iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DeepHitIterator
Create a deep hit iterator based on the given hit iterator.- Parameters:
it
- The hits iterator to traverse.ordered
- Whether or not the hits should be ordered.
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
- Specified by:
next
in interfaceIterator<Hit>
- Throws:
NoSuchElementException
-
remove
- Specified by:
remove
in interfaceIterator<Hit>
- Throws:
UnsupportedOperationException
IllegalStateException
-