private List<ColumnFamilyDescriptor> loadManagedColumnFamilies(DBOptions dbOptions)
      throws RocksDBException {
    final List<ColumnFamilyDescriptor> managedColumnFamilies = new ArrayList<>();
    final Options options = new Options(dbOptions, new ColumnFamilyOptions());
    List<byte[]> existing = RocksDB.listColumnFamilies(options, rocksDBBasePath);

    if (existing.isEmpty()) {
      LOG.info("No column family found. Loading default");
      managedColumnFamilies.add(getColumnFamilyDescriptor(RocksDB.DEFAULT_COLUMN_FAMILY));
    } else {
      LOG.info(
          "Loading column families :"
              + existing.stream().map(String::new).collect(Collectors.toList()));
      managedColumnFamilies.addAll(
          existing.stream().map(this::getColumnFamilyDescriptor).collect(Collectors.toList()));
    }
    return managedColumnFamilies;
  }
Helper to load managed column family descriptors.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/map/RocksDBBackend.java