org.apache.lucene.search
Class HitIterator
- java.lang.Object
-
- org.apache.lucene.search.HitIterator
-
- All Implemented Interfaces:
- java.util.Iterator
public class HitIterator extends java.lang.Object implements java.util.IteratorAn iterator overHitsthat provides lazy fetching of each document.Hits.iterator()returns an instance of this class. Calls tonext()return aHitinstance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasNext()intlength()Returns the total number of hits.java.lang.Objectnext()voidremove()Unsupported operation.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator- Returns:
- true if current hit is less than the total number of
Hits.
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator- Returns:
- Next
Hit.
-
remove
public void remove()
Unsupported operation.- Specified by:
removein interfacejava.util.Iterator- Throws:
java.lang.UnsupportedOperationException
-
length
public int length()
Returns the total number of hits.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG