Module org.apache.lucene.grouping
Class AllGroupHeadsCollector.ScoringGroupHeadsCollector<T>
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.apache.lucene.search.grouping.AllGroupHeadsCollector<T>
-
- org.apache.lucene.search.grouping.AllGroupHeadsCollector.ScoringGroupHeadsCollector<T>
-
- All Implemented Interfaces:
Collector
,LeafCollector
- Enclosing class:
- AllGroupHeadsCollector<T>
private static class AllGroupHeadsCollector.ScoringGroupHeadsCollector<T> extends AllGroupHeadsCollector<T>
Specialized implementation for sorting by score
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector
AllGroupHeadsCollector.GroupHead<T>
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector
compIDXEnd, context, heads, reversed, scorer, sort
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ScoringGroupHeadsCollector(GroupSelector<T> selector, Sort sort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AllGroupHeadsCollector.GroupHead<T>
newGroupHead(int doc, T value, LeafReaderContext context, Scorable scorer)
Create a new GroupHead for the given group value, initialized with a doc, context and scorer-
Methods inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector
collect, doSetNextReader, getCollectedGroupHeads, groupHeadsSize, newCollector, retrieveGroupHeads, retrieveGroupHeads, scoreMode, setScorer
-
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator, finish
-
-
-
-
Constructor Detail
-
ScoringGroupHeadsCollector
protected ScoringGroupHeadsCollector(GroupSelector<T> selector, Sort sort)
-
-
Method Detail
-
newGroupHead
protected AllGroupHeadsCollector.GroupHead<T> newGroupHead(int doc, T value, LeafReaderContext context, Scorable scorer) throws java.io.IOException
Description copied from class:AllGroupHeadsCollector
Create a new GroupHead for the given group value, initialized with a doc, context and scorer- Specified by:
newGroupHead
in classAllGroupHeadsCollector<T>
- Throws:
java.io.IOException
-
-