Package org.apache.gravitino
Interface Catalog
- All Superinterfaces:
Auditable
- All Known Implementing Classes:
CatalogDTO
The interface of a catalog. The catalog is the second level entity in the Gravitino system,
containing a set of tables. The server side should use the other one with the same name in the
core module.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The cloud that the catalog is running on.static enum
The type of the catalog. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
This variable is used as a key in properties of catalogs to use authorization provider in Gravitino.static final String
The property to specify the cloud that the catalog is running on.static final String
The property to specify the region code of the cloud that the catalog is running on.static final String
The property indicates the catalog is in use.static final String
A reserved property to specify the package location of the catalog. -
Method Summary
Modifier and TypeMethodDescriptiondefault FilesetCatalog
default ModelCatalog
default SupportsSchemas
Return theSupportsSchemas
if the catalog supports schema operations.default TableCatalog
default TopicCatalog
comment()
The comment of the catalog.name()
The properties of the catalog.provider()
default SupportsCredentials
default SupportsPolicies
default SupportsRoles
default SupportsTags
type()
-
Field Details
-
PROPERTY_PACKAGE
A reserved property to specify the package location of the catalog. The "package" is a string of path to the folder where all the catalog related dependencies is located. The dependencies under the "package" will be loaded by Gravitino to create the catalog.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.
- See Also:
-
PROPERTY_IN_USE
The property indicates the catalog is in use.- See Also:
-
CLOUD_NAME
The property to specify the cloud that the catalog is running on. The value should be one of theCatalog.CloudName
.- See Also:
-
CLOUD_REGION_CODE
The property to specify the region code of the cloud that the catalog is running on. The value should be the region code of the cloud provider.- See Also:
-
AUTHORIZATION_PROVIDER
This variable is used as a key in properties of catalogs to use authorization provider in Gravitino.- See Also:
-
-
Method Details
-
name
String name()- Returns:
- The name of the catalog.
-
type
Catalog.Type type()- Returns:
- The type of the catalog.
-
provider
String provider()- Returns:
- The provider of the catalog.
-
comment
String comment()The comment of the catalog. Note. this method will return null if the comment is not set for this catalog.- Returns:
- The comment of the catalog.
-
properties
The properties of the catalog. Note, this method will return null if the properties are not set.- Returns:
- The properties of the catalog.
-
asSchemas
Return theSupportsSchemas
if the catalog supports schema operations.- Returns:
- The
SupportsSchemas
if the catalog supports schema operations. - Throws:
UnsupportedOperationException
- if the catalog does not support schema operations.
-
asTableCatalog
- Returns:
- the
TableCatalog
if the catalog supports table operations. - Throws:
UnsupportedOperationException
- if the catalog does not support table operations.
-
asFilesetCatalog
- Returns:
- the
FilesetCatalog
if the catalog supports fileset operations. - Throws:
UnsupportedOperationException
- if the catalog does not support fileset operations.
-
asTopicCatalog
- Returns:
- the
TopicCatalog
if the catalog supports topic operations. - Throws:
UnsupportedOperationException
- if the catalog does not support topic operations.
-
asModelCatalog
- Returns:
- the
ModelCatalog
if the catalog supports model operations. - Throws:
UnsupportedOperationException
- if the catalog does not support model operations.
-
supportsTags
- Returns:
- the
SupportsTags
if the catalog supports tag operations. - Throws:
UnsupportedOperationException
- if the catalog does not support tag operations.
-
supportsPolicies
- Returns:
- the
SupportsPolicies
if the catalog supports policy operations. - Throws:
UnsupportedOperationException
- if the catalog does not support policy operations.
-
supportsRoles
- Returns:
- the
SupportsRoles
if the catalog supports role operations. - Throws:
UnsupportedOperationException
- if the catalog does not support role operations.
-
supportsCredentials
- Returns:
- the
SupportsCredentials
if the catalog supports credential operations. - Throws:
UnsupportedOperationException
- if the catalog does not support credential operations.
-