public interface Catalog extends Auditable
Modifier and Type | Interface and Description |
---|---|
static class |
Catalog.Type
The type of the catalog.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_PACKAGE
A reserved property to specify the package location of the catalog.
|
Modifier and Type | Method and Description |
---|---|
default SupportsSchemas |
asSchemas()
Return the
SupportsSchemas if the catalog supports schema operations. |
default TableCatalog |
asTableCatalog() |
java.lang.String |
comment()
The comment of the catalog.
|
java.lang.String |
name() |
java.util.Map<java.lang.String,java.lang.String> |
properties()
The properties of the catalog.
|
java.lang.String |
provider() |
Catalog.Type |
type() |
static final java.lang.String PROPERTY_PACKAGE
The property "package" is not needed if the catalog is a built-in one, Gravitino will search the proper location using "provider" to load the dependencies. Only when the folder is in different location, the "package" property is needed.
java.lang.String name()
Catalog.Type type()
java.lang.String provider()
java.lang.String comment()
java.util.Map<java.lang.String,java.lang.String> properties()
default SupportsSchemas asSchemas() throws java.lang.UnsupportedOperationException
SupportsSchemas
if the catalog supports schema operations.SupportsSchemas
if the catalog supports schema operations.java.lang.UnsupportedOperationException
- if the catalog does not support schema operations.default TableCatalog asTableCatalog() throws java.lang.UnsupportedOperationException
TableCatalog
if the catalog supports table operations.java.lang.UnsupportedOperationException
- if the catalog does not support table operations.