@Evolving public interface CatalogProvider
There are two kinds of catalogs in Gravitino, one is managed catalog and another is external catalog.
Managed catalog: A catalog and its subsidiary objects are all managed by Gravitino. Gravitino takes care of the lifecycle of the catalog and its objects. For those catalogs, Gravitino uses the type of the catalog as the provider short name. Note that for each catalog type, there is only one implementation of managed catalog for that type. Currently, Gravitino only has model catalog that is a managed catalog.
External catalog: A catalog its subsidiary objects are stored by an external sources, such as Hive catalog, the DB and tables are stored in HMS. For those catalogs, Gravitino uses a unique name as the provider short name to load the catalog. For example, Hive catalog uses "hive" as the provider short name.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
shortName()
The string that represents the catalog that this provider uses.
|
static java.lang.String |
shortNameForManagedCatalog(Catalog.Type type)
Form the provider short name for a managed catalog.
|
static java.lang.String shortNameForManagedCatalog(Catalog.Type type)
type
- The catalog type.java.lang.String shortName()