in iceberg-catalog-migrator/api/src/main/java/org/apache/polaris/iceberg/catalog/migrator/api/CatalogMigrationUtil.java [73:99]
private static String catalogImpl(CatalogType type, String customCatalogImpl) {
switch (type) {
case CUSTOM:
Preconditions.checkArgument(
customCatalogImpl != null && !customCatalogImpl.trim().isEmpty(),
"Need to specify the fully qualified class name of the custom catalog impl");
return customCatalogImpl;
case DYNAMODB:
return DynamoDbCatalog.class.getName();
case ECS:
return EcsCatalog.class.getName();
case GLUE:
return GlueCatalog.class.getName();
case HADOOP:
return HadoopCatalog.class.getName();
case HIVE:
return HiveCatalog.class.getName();
case JDBC:
return JdbcCatalog.class.getName();
case NESSIE:
return NessieCatalog.class.getName();
case REST:
return RESTCatalog.class.getName();
default:
throw new IllegalArgumentException("Unsupported type: " + type.name());
}
}