TopDocCollector and TopDocs instead.public class HitIterator
extends java.lang.Object
implements java.util.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()
hasNext in interface java.util.IteratorHits.public java.lang.Object next()
next in interface java.util.IteratorHit.public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationExceptionpublic int length()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.