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
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone a CatalogLoader.static CatalogLoader
custom
(String name, Map<String, String> properties, org.apache.hadoop.conf.Configuration hadoopConf, String impl) static CatalogLoader
static CatalogLoader
Create 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 theCatalogLoader
at 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
-