public Map<Integer, SizeEntry> getSizeLocallyForBuckets(Collection<Integer> bucketIds) {
    return getSizeLocallyForPrimary(bucketIds, false);
  }
This calculates size of all the primary bucket regions for the list of bucketIds.

@return the size of all the primary bucket regions for the list of bucketIds.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java