presto-main/src/main/java/io/prestosql/operator/StatisticsWriterOperator.java/StatisticsWriterOperator/isFinished
class StatisticsWriterOperator:    @Override
    public boolean isFinished()
    {
        return state == State.FINISHED;
    }