mirror of https://github.com/apache/lucene.git
LUCENE-6768: AbstractFirstPassGroupingCollector.groupSort private member is not needed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1698418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3b4a5be68
commit
7653c36bfa
|
@ -105,6 +105,9 @@ Other
|
|||
* LUCENE-6571: fix some private access level javadoc errors and warnings
|
||||
(Cao Manh Dat, Christine Poerschke)
|
||||
|
||||
* LUCENE-6768: AbstractFirstPassGroupingCollector.groupSort private member
|
||||
is not needed. (Christine Poerschke)
|
||||
|
||||
Build
|
||||
|
||||
* LUCENE-6732: Improve checker for invalid source patterns to also
|
||||
|
|
|
@ -35,7 +35,6 @@ import java.util.*;
|
|||
*/
|
||||
abstract public class AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE> extends SimpleCollector {
|
||||
|
||||
private final Sort groupSort;
|
||||
private final FieldComparator<?>[] comparators;
|
||||
private final LeafFieldComparator[] leafComparators;
|
||||
private final int[] reversed;
|
||||
|
@ -69,7 +68,6 @@ abstract public class AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE> exten
|
|||
|
||||
// TODO: allow null groupSort to mean "by relevance",
|
||||
// and specialize it?
|
||||
this.groupSort = groupSort;
|
||||
|
||||
this.topNGroups = topNGroups;
|
||||
|
||||
|
@ -117,7 +115,7 @@ abstract public class AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE> exten
|
|||
|
||||
final Collection<SearchGroup<GROUP_VALUE_TYPE>> result = new ArrayList<>();
|
||||
int upto = 0;
|
||||
final int sortFieldCount = groupSort.getSort().length;
|
||||
final int sortFieldCount = comparators.length;
|
||||
for(CollectedSearchGroup<GROUP_VALUE_TYPE> group : orderedGroups) {
|
||||
if (upto++ < groupOffset) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue