|
||||||||||
| 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. |
java.lang.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 java.util.IteratorHits.public java.lang.Object next()
Hit instance representing the next hit in Hits.
next in interface java.util.IteratorHit.public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationExceptionpublic int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||