From d3231b9ff900ef69ea1e7cb7a20a3dd57f4b9e03 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 23 Jul 2014 17:28:58 +0000 Subject: [PATCH] LUCENE-5835: Make TermValComparator extendable. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612881 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/search/FieldComparator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java index 64a3511991a..4c655a56abc 100644 --- a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java +++ b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java @@ -935,7 +935,7 @@ public abstract class FieldComparator { * comparisons are done using BytesRef.compareTo, which is * slow for medium to large result sets but possibly * very fast for very small results sets. */ - public static final class TermValComparator extends FieldComparator { + public static class TermValComparator extends FieldComparator { private final BytesRef[] values; private final BytesRef[] tempBRs; @@ -946,8 +946,6 @@ public abstract class FieldComparator { private BytesRef topValue; private final int missingSortCmp; - // TODO: add missing first/last support here? - /** Sole constructor. */ public TermValComparator(int numHits, String field, boolean sortMissingLast) { values = new BytesRef[numHits];