TopScoreDocCollector
and TopDocs
instead. Hits will be removed in Lucene 3.0.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.Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
int |
length()
Deprecated.
Returns the total number of hits.
|
java.lang.Object |
next()
Deprecated.
|
void |
remove()
Deprecated.
Unsupported operation.
|
public boolean hasNext()
hasNext
in interface java.util.Iterator
Hits
.public java.lang.Object next()
next
in interface java.util.Iterator
Hit
.public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public int length()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.