presto-main/src/main/java/io/prestosql/operator/WindowInfo.java/DriverWindowInfoBuilder/addPartition
class DriverWindowInfoBuilder:        public void addPartition(WindowPartition partition)
        {
            checkState(currentIndexInfoBuilder != null, "addIndex must be called before addPartition");
            currentIndexInfoBuilder.addPartition(partition);
        }