presto-hive/src/main/java/io/prestosql/plugin/hive/ConcurrentLazyQueue.java/ConcurrentLazyQueue/poll
class ConcurrentLazyQueue:    public synchronized E poll()
    {
        if (!iterator.hasNext()) {
            return null;
        }
        return iterator.next();
    }