Fix indent from 4 to 2 spaces (#2129)

Files in org.apache.lucene.search.comparators package
has a wrong indent of 4 spaces instead of 2.
This patch fixes only the indent from 4 to correct 2 spaces
This commit is contained in:
Mayya Sharipova 2020-12-10 14:55:26 -05:00 committed by GitHub
parent 04b9a98060
commit ab0b17ec8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 665 additions and 661 deletions

View File

@ -37,7 +37,9 @@ public class DocComparator extends FieldComparator<Integer> {
private boolean bottomValueSet;
private boolean hitsThresholdReached;
/** Creates a new comparator based on document ids for {@code numHits} */
/**
* Creates a new comparator based on document ids for {@code numHits}
*/
public DocComparator(int numHits, boolean reverse, int sortPost) {
this.docIDs = new int[numHits];
// skipping functionality is enabled if we are sorting by _doc in asc order as a primary sort

View File

@ -33,7 +33,7 @@ public class LongComparator extends NumericComparator<Long> {
protected long bottom;
public LongComparator(int numHits, String field, Long missingValue, boolean reverse, int sortPos) {
super(field,missingValue != null ? missingValue : 0L, reverse, sortPos, Long.BYTES);
super(field, missingValue != null ? missingValue : 0L, reverse, sortPos, Long.BYTES);
values = new long[numHits];
}

View File

@ -104,7 +104,9 @@ public abstract class NumericComparator<T extends Number> extends FieldComparato
}
}
/** Retrieves the NumericDocValues for the field in this segment */
/**
* Retrieves the NumericDocValues for the field in this segment
*/
protected NumericDocValues getNumericDocValues(LeafReaderContext context, String field) throws IOException {
return DocValues.getNumeric(context.reader(), field);
}