Apache Lucene open-source search software
LUCENE-7780: Remove TermValComparator.isNull.
Adrien Grand1d74134500d2
diff --git a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.javaindex 82162015d0f..3fe0e933349 100644--- a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java+++ b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java@@ -883,14 +883,6 @@ public abstract class FieldComparator<T> {return DocValues.getBinary(context.reader(), field);}- /** Check whether the given value represents <tt>null</tt>. This can be- * useful if the {@link BinaryDocValues} returned by {@link #getBinaryDocValues}- * use a special value as a sentinel.- * <p>NOTE: The null value can only be an EMPTY {@link BytesRef}. */- protected boolean isNull(int doc, BytesRef term) throws IOException {- return getValueForDoc(doc) == null;- }-@Overridepublic LeafFieldComparator getLeafComparator(LeafReaderContext context) throws IOException {docTerms = getBinaryDocValues(context, field);