presto-ml/src/main/java/io/prestosql/plugin/ml/LearnStateFactory.java/LearnStateFactory/ensureCapacity
class LearnStateFactory:        @Override
        public void ensureCapacity(long size)
        {
            labelsArray.ensureCapacity(size);
            featureVectorsArray.ensureCapacity(size);
            parametersArray.ensureCapacity(size);
        }