presto-main/src/main/java/io/prestosql/operator/MergeOperator.java/MergeOperator/isFinished
class MergeOperator:    @Override
    public boolean isFinished()
    {
        return closed || (mergedPages != null && mergedPages.isFinished());
    }