@Override
  public int getLocalSize() {
    if (dataStore == null) {
      return 0;
    }

    return dataStore.getLocalBucket2RegionMap().values().stream()
        .mapToInt(BucketRegion::getLocalSize)
        .sum();
  }
Get the VSD statistics type

@return the statistics instance specific to this Partitioned Region
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java