presto-main/src/main/java/io/prestosql/operator/PartitionedOutputOperator.java/PartitionedOutputOperator/finish
class PartitionedOutputOperator:    @Override
    public void finish()
    {
        finished = true;
        partitionFunction.flush(true);
    }