org.apache.lucene.search
Class HitIterator
public
class
HitIterator
extends Object
implements Iterator
An iterator over
Hits that provides lazy fetching of each document.
iterator returns an instance of this class. Calls to
next
return a
Hit instance.
Author: Jeremy Rayner
public boolean hasNext()
Returns: true if current hit is less than the total number of Hits.
public int length()
Returns the total number of hits.
public Object next()
Returns a
Hit instance representing the next hit in
Hits.
Returns: Next Hit.
public void remove()
Unsupported operation.
Throws: UnsupportedOperationException
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.