|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.HitIterator
TopDocCollector
and TopDocs
instead.
public class HitIterator
An iterator over Hits
that provides lazy fetching of each document.
Hits.iterator()
returns an instance of this class. Calls to next()
return a Hit
instance.
Method Summary | |
---|---|
boolean |
hasNext()
Deprecated. |
int |
length()
Deprecated. Returns the total number of hits. |
Object |
next()
Deprecated. Returns a Hit instance representing the next hit in Hits . |
void |
remove()
Deprecated. Unsupported operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
Hits
.public Object next()
Hit
instance representing the next hit in Hits
.
next
in interface Iterator
Hit
.public void remove()
remove
in interface Iterator
UnsupportedOperationException
public int length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |