presto-main/src/main/java/io/prestosql/operator/index/IndexSnapshotBuilder.java/IndexSnapshotBuilder/isMemoryExceeded
class IndexSnapshotBuilder:    public boolean isMemoryExceeded()
    {
        return memoryInBytes > maxMemoryInBytes;
    }