Package org.apache.lucene.search
Class IndexSearcher.ShortcutHitCountCollector
- java.lang.Object
-
- org.apache.lucene.search.IndexSearcher.ShortcutHitCountCollector
-
- All Implemented Interfaces:
Collector
- Enclosing class:
- IndexSearcher
private static class IndexSearcher.ShortcutHitCountCollector extends java.lang.Object implements Collector
-
-
Field Summary
Fields Modifier and Type Field Description private TotalHitCountCollectortotalHitCountCollectorprivate Weightweightprivate intweightCount
-
Constructor Summary
Constructors Constructor Description ShortcutHitCountCollector(Weight weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollectorgetLeafCollector(LeafReaderContext context)Create a newcollectorto collect the given context.ScoreModescoreMode()Indicates what features are required from the scorer.
-
-
-
Field Detail
-
weight
private final Weight weight
-
totalHitCountCollector
private final TotalHitCountCollector totalHitCountCollector
-
weightCount
private int weightCount
-
-
Constructor Detail
-
ShortcutHitCountCollector
ShortcutHitCountCollector(Weight weight)
-
-
Method Detail
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Parameters:
context- next atomic reader context- Throws:
java.io.IOException
-
-