public class GravitinoMetaLake extends MetalakeDTO implements SupportsCatalogs
GravitinoMetaLake, users can list, create, load,
 alter and drop a catalog with specified identifier.| Modifier and Type | Method and Description | 
|---|---|
| Catalog | alterCatalog(NameIdentifier ident,
            CatalogChange... changes)Alter the catalog with specified identifier by applying the changes. | 
| Catalog | createCatalog(NameIdentifier ident,
             Catalog.Type type,
             java.lang.String provider,
             java.lang.String comment,
             java.util.Map<java.lang.String,java.lang.String> properties)Create a new catalog with specified identifier, type, comment and properties. | 
| boolean | dropCatalog(NameIdentifier ident)Drop the catalog with specified identifier. | 
| NameIdentifier[] | listCatalogs(Namespace namespace)List all the catalogs under this metalake with specified namespace. | 
| Catalog | loadCatalog(NameIdentifier ident)Load the catalog with specified identifier. | 
auditInfo, comment, equals, hashCode, name, propertiesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcatalogExistspublic NameIdentifier[] listCatalogs(Namespace namespace) throws NoSuchMetalakeException
listCatalogs in interface SupportsCatalogsnamespace - The namespace to list the catalogs under it.NameIdentifier of the catalogs under the specified namespace.NoSuchMetalakeException - if the metalake with specified namespace does not exist.public Catalog loadCatalog(NameIdentifier ident) throws NoSuchCatalogException
loadCatalog in interface SupportsCatalogsident - The identifier of the catalog to load.Catalog with specified identifier.NoSuchCatalogException - if the catalog with specified identifier does not exist.public Catalog createCatalog(NameIdentifier ident, Catalog.Type type, java.lang.String provider, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> properties) throws NoSuchMetalakeException, CatalogAlreadyExistsException
createCatalog in interface SupportsCatalogsident - The identifier of the catalog.type - The type of the catalog.provider - The provider of the catalog.comment - The comment of the catalog.properties - The properties of the catalog.Catalog.NoSuchMetalakeException - if the metalake with specified namespace does not exist.CatalogAlreadyExistsException - if the catalog with specified identifier already exists.public Catalog alterCatalog(NameIdentifier ident, CatalogChange... changes) throws NoSuchCatalogException, java.lang.IllegalArgumentException
alterCatalog in interface SupportsCatalogsident - the identifier of the catalog.changes - the changes to apply to the catalog.Catalog.NoSuchCatalogException - if the catalog with specified identifier does not exist.java.lang.IllegalArgumentException - if the changes are invalid.public boolean dropCatalog(NameIdentifier ident)
dropCatalog in interface SupportsCatalogsident - the identifier of the catalog.