presto-blackhole/src/main/java/io/prestosql/plugin/blackhole/BlackHolePageSource.java/BlackHolePageSource/isFinished
class BlackHolePageSource:    @Override
    public boolean isFinished()
    {
        return closed || (pagesLeft == 0 && currentPage == null);
    }