TopDocCollector and TopDocs instead.public class HitIterator extends Object implements Iterator
Hits that provides lazy fetching of each document.
Hits.iterator() returns an instance of this class. Calls to next()
return a Hit instance.public boolean hasNext()
public void remove()
remove in interface IteratorUnsupportedOperationExceptionpublic int length()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.