Make some variables in PooledTopNAlgorithm final

This commit is contained in:
Charles Allen 2014-11-10 12:19:04 -08:00
parent febaf56b8b
commit 5aad149b24
1 changed files with 6 additions and 5 deletions

View File

@ -146,10 +146,10 @@ public class PooledTopNAlgorithm
@Override
protected void scanAndAggregate(
PooledTopNParams params,
int[] positions,
BufferAggregator[] theAggregators,
int numProcessed
final PooledTopNParams params,
final int[] positions,
final BufferAggregator[] theAggregators,
final int numProcessed
)
{
final ByteBuffer resultsBuf = params.getResultsBuf();
@ -167,7 +167,8 @@ public class PooledTopNAlgorithm
while (!cursor.isDone()) {
final IndexedInts dimValues = dimSelector.getRow();
for (int i = 0; i < dimValues.size(); ++i) {
final int size = dimValues.size();
for (int i = 0; i < size; ++i) {
final int dimIndex = dimValues.get(i);
int position = positions[dimIndex];
if (SKIP_POSITION_VALUE == position) {