org.apache.lucene.search
Class HitIterator
- Iterator
public class HitIterator
implements Iterator
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.
boolean | hasNext()
|
int | length()- Returns the total number of hits.
|
Object | next()- Returns a
Hit instance representing the next hit in Hits.
|
void | remove()- Unsupported operation.
|
hasNext
public boolean hasNext()
- true if current hit is less than the total number of
Hits.
length
public int length()
Returns the total number of hits.
next
public Object next()
Returns a
Hit instance representing the next hit in
Hits.
remove
public void remove()
Unsupported operation.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.