- java.lang.Object
-
- org.apache.lucene.util.fst.Util.TopResults<T>
-
- All Implemented Interfaces:
java.lang.Iterable<Util.Result<T>>
- Enclosing class:
- Util
public static final class Util.TopResults<T> extends java.lang.Object implements java.lang.Iterable<Util.Result<T>>
Holds the results for a top N search usingUtil.TopNSearcher
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isComplete
true
iff this is a complete result ie.java.util.List<Util.Result<T>>
topN
The top results
-
Constructor Summary
Constructors Constructor Description TopResults(boolean isComplete, java.util.List<Util.Result<T>> topN)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Util.Result<T>>
iterator()
-
-
-
Field Detail
-
isComplete
public final boolean isComplete
true
iff this is a complete result ie. if the specified queue size was large enough to find the complete list of results. This might befalse
if theUtil.TopNSearcher
rejected too many results.
-
topN
public final java.util.List<Util.Result<T>> topN
The top results
-
-
Constructor Detail
-
TopResults
TopResults(boolean isComplete, java.util.List<Util.Result<T>> topN)
-
-
Method Detail
-
iterator
public java.util.Iterator<Util.Result<T>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
-