|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.HitIterator
TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.
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 IteratorHits.public Object next()
Hit instance representing the next hit in Hits.
next in interface IteratorHit.public void remove()
remove in interface IteratorUnsupportedOperationExceptionpublic int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||