LUCENE-7780: Remove TermValComparator.isNull.

This commit is contained in:
Adrien Grand 2017-04-13 08:21:39 +02:00
parent d3494c2cd6
commit 1d74134500
1 changed files with 0 additions and 8 deletions

View File

@ -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;
}
@Override
public LeafFieldComparator getLeafComparator(LeafReaderContext context) throws IOException {
docTerms = getBinaryDocValues(context, field);