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