public void close() {
    memoryMap = null;
    diskBasedMap.ifPresent(SimpleSpilledMap::close);
    currentInMemoryMapSize = 0L;
  }
Approximate memory footprint of the in-memory map.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/map/SimpleSpillableMap.java