presto-main/src/main/java/io/prestosql/operator/project/MergingPageOutput.java/MergingPageOutput/needsInput
class MergingPageOutput:    public boolean needsInput()
    {
        return currentInput == null && !finishing && outputQueue.isEmpty();
    }