Merge remote-tracking branch 'origin/druid-0.7.x-fastTopN-rebase' into druid-0.7.x-fastTopN-rebase

This commit is contained in:
Charles Allen 2014-11-10 12:55:08 -08:00
commit 9ac8589143
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ public class PooledTopNAlgorithm
} }
final int nAggregators = theAggregators.length; final int nAggregators = theAggregators.length;
final int extra = nAggregators - (nAggregators % 4) - 1; final int extra = nAggregators - nAggregators % 4;
final int ub = (nAggregators / 4) * 4; final int ub = ((nAggregators / 4) * 4) - 1;
while (!cursor.isDone()) { while (!cursor.isDone()) {
final IndexedInts dimValues = dimSelector.getRow(); final IndexedInts dimValues = dimSelector.getRow();