presto-main/src/main/java/io/prestosql/operator/LimitOperator.java/LimitOperator/getOutput
class LimitOperator:    @Override
    public Page getOutput()
    {
        Page page = nextPage;
        nextPage = null;
        return page;
    }