Apache Lucene open-source search software
avoid synthetic method call access for things like 'bottom' in these comparators
Robert Muir5106f914e88c
diff --git a/lucene/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/src/java/org/apache/lucene/search/FieldComparator.javaindex c697c9aac02..de8c59d8408 100644--- a/lucene/src/java/org/apache/lucene/search/FieldComparator.java+++ b/lucene/src/java/org/apache/lucene/search/FieldComparator.java@@ -808,20 +808,28 @@ public abstract class FieldComparator {* than {@link TermValComparator}. For very small* result sets it may be slower. */public static final class TermOrdValComparator extends FieldComparator {-- private final int[] ords;- private final BytesRef[] values;- private final int[] readerGen;-- private int currentReaderGen = -1;+ /** @lucene.internal */+ final int[] ords;+ /** @lucene.internal */+ final BytesRef[] values;+ /** @lucene.internal */+ final int[] readerGen;++ /** @lucene.internal */+ int currentReaderGen = -1;private DocTermsIndex termsIndex;private final String field;- private int bottomSlot = -1;- private int bottomOrd;- private boolean bottomSameReader;- private BytesRef bottomValue;- private final BytesRef tempBR = new BytesRef();+ /** @lucene.internal */+ int bottomSlot = -1;+ /** @lucene.internal */+ int bottomOrd;+ /** @lucene.internal */+ boolean bottomSameReader;+ /** @lucene.internal */+ BytesRef bottomValue;+ /** @lucene.internal */+ final BytesRef tempBR = new BytesRef();public TermOrdValComparator(int numHits, String field, int sortPos, boolean reversed) {ords = new int[numHits];@@ -859,11 +867,13 @@ public abstract class FieldComparator {throw new UnsupportedOperationException();}- // Base class for specialized (per bit width of the- // ords) per-segment comparator. NOTE: this is messy;- // we do this only because hotspot can't reliably inline- // the underlying array access when looking up doc->ord- private abstract class PerSegmentComparator extends FieldComparator {+ /** Base class for specialized (per bit width of the+ * ords) per-segment comparator. NOTE: this is messy;+ * we do this only because hotspot can't reliably inline+ * the underlying array access when looking up doc->ord+ * @lucene.internal+ */+ abstract class PerSegmentComparator extends FieldComparator {@Overridepublic FieldComparator setNextReader(IndexReader reader, int docBase) throws IOException {