presto-main/src/main/java/io/prestosql/operator/MarkDistinctOperator.java/MarkDistinctOperator/needsInput
class MarkDistinctOperator:    @Override
    public boolean needsInput()
    {
        return !finishing && !hasUnfinishedInput();
    }