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 TotalHitCountCollector
totalHitCountCollector
private Weight
weight
private int
weightCount
-
Constructor Summary
Constructors Constructor Description ShortcutHitCountCollector(Weight weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollector
getLeafCollector(LeafReaderContext context)
Create a newcollector
to collect the given context.ScoreMode
scoreMode()
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:Collector
Create a newcollector
to collect the given context.- Specified by:
getLeafCollector
in interfaceCollector
- Parameters:
context
- next atomic reader context- Throws:
java.io.IOException
-
-