Class TopGroupsCollector.TopDocsReducer<T>
java.lang.Object
org.apache.lucene.search.grouping.GroupReducer<T,TopGroupsCollector.TopDocsAndMaxScoreCollector>
org.apache.lucene.search.grouping.TopGroupsCollector.TopDocsReducer<T>
- Enclosing class:
- TopGroupsCollector<T>
private static class TopGroupsCollector.TopDocsReducer<T>
extends GroupReducer<T,TopGroupsCollector.TopDocsAndMaxScoreCollector>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final Supplier<TopGroupsCollector.TopDocsAndMaxScoreCollector>
-
Constructor Summary
ConstructorsConstructorDescriptionTopDocsReducer
(Sort withinGroupSort, int maxDocsPerGroup, boolean getMaxScores) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not this reducer requires collected documents to be scoredCreates a new Collector for each groupMethods inherited from class org.apache.lucene.search.grouping.GroupReducer
collect, getCollector, setGroups, setNextReader, setScorer
-
Field Details
-
supplier
-
needsScores
private final boolean needsScores
-
-
Constructor Details
-
TopDocsReducer
TopDocsReducer(Sort withinGroupSort, int maxDocsPerGroup, boolean getMaxScores)
-
-
Method Details
-
needsScores
public boolean needsScores()Description copied from class:GroupReducer
Whether or not this reducer requires collected documents to be scored- Specified by:
needsScores
in classGroupReducer<T,
TopGroupsCollector.TopDocsAndMaxScoreCollector>
-
newCollector
Description copied from class:GroupReducer
Creates a new Collector for each group- Specified by:
newCollector
in classGroupReducer<T,
TopGroupsCollector.TopDocsAndMaxScoreCollector>
-