Package org.apache.iceberg.flink
Interface CatalogLoader
- All Superinterfaces:
Cloneable,Serializable
- All Known Implementing Classes:
CatalogLoader.CustomCatalogLoader,CatalogLoader.HadoopCatalogLoader,CatalogLoader.HiveCatalogLoader,CatalogLoader.RESTCatalogLoader
Serializable loader to load an Iceberg
Catalog.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone a CatalogLoader.static CatalogLoadercustom(String name, Map<String, String> properties, org.apache.hadoop.conf.Configuration hadoopConf, String impl) static CatalogLoaderstatic CatalogLoaderCreate a new catalog with the provided properties.static CatalogLoader
-
Method Details
-
loadCatalog
Catalog loadCatalog()Create a new catalog with the provided properties. NOTICE: for flink, we may initialize theCatalogLoaderat flink sql client side or job manager side, and then serialize this catalog loader to task manager, finally deserialize it and create a new catalog at task manager side.- Returns:
- a newly created
Catalog
-
clone
CatalogLoader clone()Clone a CatalogLoader. -
hadoop
static CatalogLoader hadoop(String name, org.apache.hadoop.conf.Configuration hadoopConf, Map<String, String> properties) -
hive
static CatalogLoader hive(String name, org.apache.hadoop.conf.Configuration hadoopConf, Map<String, String> properties) -
rest
static CatalogLoader rest(String name, org.apache.hadoop.conf.Configuration hadoopConf, Map<String, String> properties) -
custom
-