LUCENE-5835: Make TermValComparator extendable.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612881 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2014-07-23 17:28:58 +00:00
parent 26e5273658
commit d3231b9ff9
1 changed files with 1 additions and 3 deletions

View File

@ -935,7 +935,7 @@ public abstract class FieldComparator<T> {
* 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<BytesRef> {
public static class TermValComparator extends FieldComparator<BytesRef> {
private final BytesRef[] values;
private final BytesRef[] tempBRs;
@ -946,8 +946,6 @@ public abstract class FieldComparator<T> {
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];