presto-main/src/main/java/io/prestosql/operator/index/PageBuffer.java/PageBuffer/poll
class PageBuffer:    public synchronized Page poll()
    {
        if (settableFuture != null) {
            settableFuture.set(null);
            settableFuture = null;
        }
        return pages.poll();
    }