processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/HashVectorGrouper.java
/**
   * Attempts to grow the table and returns whether or not it was possible. Each growth doubles the number of buckets
   * in the table.
   */
Attempts to grow the table and returns whether or not it was possible. Each growth doubles the number of buckets
in the table.
Attempts to grow the table and returns whether or not it was possible . Each growth doubles the number of buckets in the table .
private boolean grow()
  {
    if (hashTable.numBuckets() >= maxNumBuckets) {
      return false;
    }
    final int newNumBuckets = nextTableNumBuckets();
    final int newTableStart = nextTableStart();
    final MemoryOpenHashTable newHashTable = createTable(buffer, newTableStart, newNumBuckets);
    hashTable.copyTo(newHashTable, new HashVectorGrouperBucketCopyHandler(aggregators, hashTable.bucketValueOffset()));
    hashTable = newHashTable;
    tableStart = newTableStart;
    return true;
  }
private boolean grow ( ) { if ( hashTable . numBuckets ( ) >= maxNumBuckets ) { return false ; } final int newNumBuckets = nextTableNumBuckets ( ) ; final int newTableStart = nextTableStart ( ) ; final MemoryOpenHashTable newHashTable = createTable ( buffer , newTableStart , newNumBuckets ) ; hashTable . copyTo ( newHashTable , new HashVectorGrouperBucketCopyHandler ( aggregators , hashTable . bucketValueOffset ( ) ) ) ; hashTable = newHashTable ; tableStart = newTableStart ; return true ; }
Attempts to grow the table and returns whether or not it was possible.
Attempts to grow the table and returns whether or not it was possible .