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 enumThe cloud that the catalog is running on.static enumThe type of the catalog. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis variable is used as a key in properties of catalogs to use authorization provider in Gravitino.static final StringThe property to specify the cloud that the catalog is running on.static final StringThe property to specify the region code of the cloud that the catalog is running on.static final StringThe property indicates the catalog is in use.static final StringA reserved property to specify the package location of the catalog. -
Method Summary
Modifier and TypeMethodDescriptiondefault FilesetCatalogdefault ModelCatalogdefault SupportsSchemasReturn theSupportsSchemasif the catalog supports schema operations.default TableCatalogdefault TopicCatalogcomment()The comment of the catalog.name()The properties of the catalog.provider()default SupportsCredentialsdefault SupportsPoliciesdefault SupportsRolesdefault SupportsTagstype()
-
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 theSupportsSchemasif the catalog supports schema operations.- Returns:
- The
SupportsSchemasif the catalog supports schema operations. - Throws:
UnsupportedOperationException- if the catalog does not support schema operations.
-
asTableCatalog
- Returns:
- the
TableCatalogif the catalog supports table operations. - Throws:
UnsupportedOperationException- if the catalog does not support table operations.
-
asFilesetCatalog
- Returns:
- the
FilesetCatalogif the catalog supports fileset operations. - Throws:
UnsupportedOperationException- if the catalog does not support fileset operations.
-
asTopicCatalog
- Returns:
- the
TopicCatalogif the catalog supports topic operations. - Throws:
UnsupportedOperationException- if the catalog does not support topic operations.
-
asModelCatalog
- Returns:
- the
ModelCatalogif the catalog supports model operations. - Throws:
UnsupportedOperationException- if the catalog does not support model operations.
-
supportsTags
- Returns:
- the
SupportsTagsif the catalog supports tag operations. - Throws:
UnsupportedOperationException- if the catalog does not support tag operations.
-
supportsPolicies
- Returns:
- the
SupportsPoliciesif the catalog supports policy operations. - Throws:
UnsupportedOperationException- if the catalog does not support policy operations.
-
supportsRoles
- Returns:
- the
SupportsRolesif the catalog supports role operations. - Throws:
UnsupportedOperationException- if the catalog does not support role operations.
-
supportsCredentials
- Returns:
- the
SupportsCredentialsif the catalog supports credential operations. - Throws:
UnsupportedOperationException- if the catalog does not support credential operations.
-