Fix identation

This commit is contained in:
Martijn van Groningen 2015-01-14 09:45:23 +01:00
parent eaa1674d6d
commit 12a2e761c5
1 changed files with 25 additions and 21 deletions

View File

@ -204,7 +204,9 @@ public class GlobalOrdinalsStringTermsAggregator extends AbstractStringTermsAggr
return new StringTerms(name, order, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), bucketCountThresholds.getMinDocCount(), Arrays.asList(list), showTermDocCountError, 0, otherDocCount, metaData());
}
/** This is used internally only, just for compare using global ordinal instead of term bytes in the PQ */
/**
* This is used internally only, just for compare using global ordinal instead of term bytes in the PQ
*/
static class OrdBucket extends InternalTerms.Bucket {
long globalOrd;
@ -215,7 +217,7 @@ public class GlobalOrdinalsStringTermsAggregator extends AbstractStringTermsAggr
@Override
int compareTerm(Terms.Bucket other) {
return Long.compare(globalOrd, ((OrdBucket)other).globalOrd);
return Long.compare(globalOrd, ((OrdBucket) other).globalOrd);
}
@Override
@ -406,6 +408,8 @@ public class GlobalOrdinalsStringTermsAggregator extends AbstractStringTermsAggr
mapping = null;
}
for (long i = 1; i < segmentDocCounts.size(); i++) {
// We use set(...) here, because we need to reset the slow to 0.
// segmentDocCounts get reused over the segments and otherwise counts would be too high.
final int inc = segmentDocCounts.set(i, 0);
if (inc == 0) {
continue;