Package com.yahoo.search.result
Class DeepHitIterator
- java.lang.Object
-
- com.yahoo.search.result.DeepHitIterator
-
-
Constructor Summary
Constructors Constructor Description DeepHitIterator(java.util.Iterator<Hit> it, boolean ordered)
Create a deep hit iterator based on the given hit iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Hit
next()
void
remove()
-
-
-
Constructor Detail
-
DeepHitIterator
public DeepHitIterator(java.util.Iterator<Hit> it, boolean ordered)
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 Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Hit>
-
next
public Hit next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator<Hit>
- Throws:
java.util.NoSuchElementException
-
remove
public void remove() throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
- Specified by:
remove
in interfacejava.util.Iterator<Hit>
- Throws:
java.lang.UnsupportedOperationException
java.lang.IllegalStateException
-
-