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