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
ConstructorsModifierConstructorDescriptionprotected
ScoringGroupHeadsCollector
(GroupSelector<T> selector, Sort sort) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 scorerMethods 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
competitiveIterator
-
Constructor Details
-
ScoringGroupHeadsCollector
-
-
Method Details
-
newGroupHead
protected AllGroupHeadsCollector.GroupHead<T> newGroupHead(int doc, T value, LeafReaderContext context, Scorable scorer) throws 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:
IOException
-