presto-main/src/main/java/io/prestosql/operator/LimitOperator.java/LimitOperator/needsInput
class LimitOperator:    @Override
    public boolean needsInput()
    {
        return remainingLimit > 0 && nextPage == null;
    }