presto-geospatial/src/main/java/io/prestosql/plugin/geospatial/SpatialPartitioningStateFactory.java/SpatialPartitioningStateFactory/ensureCapacity
class SpatialPartitioningStateFactory:        @Override
        public void ensureCapacity(long size)
        {
            partitionCounts.ensureCapacity(size);
            counts.ensureCapacity(size);
            envelopes.ensureCapacity(size);
            samples.ensureCapacity(size);
        }