mirror of https://github.com/apache/lucene.git
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:
parent
04b9a98060
commit
ab0b17ec8c
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue