presto-main/src/main/java/io/prestosql/operator/WindowInfo.java/IndexInfoBuilder/addPartition
class IndexInfoBuilder:        public void addPartition(WindowPartition partition)
        {
            partitionsSizes.add(partition.getPartitionEnd() - partition.getPartitionStart());
        }