presto-main/src/main/java/io/prestosql/operator/index/PageBuffer.java/PageBuffer/isFull
class PageBuffer:    public synchronized boolean isFull()
    {
        return pages.size() >= maxBufferedPages;
    }