mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
fix formatting
This commit is contained in:
parent
52f575025b
commit
5ae848ab14
@ -281,7 +281,6 @@ public class IncrementalIndex implements Iterable<Row>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
@ -562,10 +561,15 @@ public class IncrementalIndex implements Iterable<Row>
|
||||
while (retVal == 0 && valsIndex < lhsVals.length) {
|
||||
final String lhsVal = lhsVals[valsIndex];
|
||||
final String rhsVal = rhsVals[valsIndex];
|
||||
if(lhsVal == null && rhsVal == null) return 0;
|
||||
else if(lhsVal == null) return -1;
|
||||
else if(rhsVal == null) return 1;
|
||||
else retVal = lhsVal.compareTo(rhsVal);
|
||||
if (lhsVal == null && rhsVal == null) {
|
||||
return 0;
|
||||
} else if (lhsVal == null) {
|
||||
return -1;
|
||||
} else if (rhsVal == null) {
|
||||
return 1;
|
||||
} else {
|
||||
retVal = lhsVal.compareTo(rhsVal);
|
||||
}
|
||||
++valsIndex;
|
||||
}
|
||||
++index;
|
||||
@ -646,7 +650,9 @@ public class IncrementalIndex implements Iterable<Row>
|
||||
|
||||
public synchronized void add(@Nullable String value)
|
||||
{
|
||||
if(value == null) value = NULL_STRING;
|
||||
if (value == null) {
|
||||
value = NULL_STRING;
|
||||
}
|
||||
poorMansInterning.put(value, value);
|
||||
falseIds.put(value, falseIds.size());
|
||||
}
|
||||
@ -654,7 +660,9 @@ public class IncrementalIndex implements Iterable<Row>
|
||||
public int getSortedId(@Nullable String value)
|
||||
{
|
||||
assertSorted();
|
||||
if(value == null) value = NULL_STRING;
|
||||
if (value == null) {
|
||||
value = NULL_STRING;
|
||||
}
|
||||
return Arrays.binarySearch(sortedVals, value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user