public void expandAndRehashToTarget(int estimateNewRowCount) {
   int oldRefsCount = refs.length;
   int newRefsCount = oldRefsCount + estimateNewRowCount;
   if (resizeThreshold <= newRefsCount) {
     newRefsCount =
         (Long.bitCount(newRefsCount) == 1)
             ? estimateNewRowCount
             : nextHighestPowerOfTwo(newRefsCount);
     expandAndRehashImpl(newRefsCount);
     LOG.info("Expand and rehash to " + newRefsCount + " from " + oldRefsCount);
   }
 }
 private void expandAndRehash() {
   long capacity = refs.length << 1;
   expandAndRehashImpl(capacity);
 }