presto-main/src/main/java/io/prestosql/operator/TopNProcessor.java/TopNProcessor/noMoreOutput
class TopNProcessor:    public boolean noMoreOutput()
    {
        return outputIterator != null && !outputIterator.hasNext();
    }