Package org.apache.gravitino
Interface Schema
- All Superinterfaces:
Auditable
- All Known Implementing Classes:
SchemaDTO
An interface representing a schema in the
Catalog
. A Schema is a basic container of
relational objects, like tables, views, etc. A Schema can be self-nested, which means it can be
schema1.schema2.table.
This defines the basic properties of a schema. A catalog implementation with SupportsSchemas
should implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
comment()
name()
default SupportsPolicies
default SupportsRoles
default SupportsTags
-
Method Details
-
name
String name()- Returns:
- The name of the Schema.
-
comment
- Returns:
- The comment of the Schema. Null is returned if the comment is not set.
-
properties
- Returns:
- The properties of the Schema. An empty map is returned if no properties are set.
-
supportsTags
- Returns:
- the
SupportsTags
if the schema supports tag operations. - Throws:
UnsupportedOperationException
- if the schema does not support tag operations.
-
supportsPolicies
- Returns:
- the
SupportsPolicies
if the schema supports policy operations. - Throws:
UnsupportedOperationException
- if the schema does not support policy operations.
-
supportsRoles
- Returns:
- the
SupportsRoles
if the schema supports role operations. - Throws:
UnsupportedOperationException
- if the schema does not support role operations.
-