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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name for the location of the schema. -
Method Summary
Modifier and TypeMethodDescriptiondefault Stringcomment()name()default SupportsPoliciesdefault SupportsRolesdefault SupportsTags
-
Field Details
-
PROPERTY_LOCATION
The property name for the location of the schema. This property indicates the physical storage location of the schema, such as a directory path in a file system or a URI.This property is optional, and it can be specified during schema creation.
It depends on the catalog implementation to decide whether to use this property or not. It also depends on the catalog implementation to decide whether this property can be altered after schema creation. Besides, the behavior of altering this property (moving data or not) is also determined by the catalog implementation.
- See Also:
-
-
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
SupportsTagsif the schema supports tag operations. - Throws:
UnsupportedOperationException- if the schema does not support tag operations.
-
supportsPolicies
- Returns:
- the
SupportsPoliciesif the schema supports policy operations. - Throws:
UnsupportedOperationException- if the schema does not support policy operations.
-
supportsRoles
- Returns:
- the
SupportsRolesif the schema supports role operations. - Throws:
UnsupportedOperationException- if the schema does not support role operations.
-