Package org.apache.gravitino.dto
Class CatalogDTO
java.lang.Object
org.apache.gravitino.dto.CatalogDTO
Data transfer object representing catalog information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
CatalogDTO.Builder<S extends CatalogDTO.Builder>
Builder class for constructing a CatalogDTO instance.Nested classes/interfaces inherited from interface org.apache.gravitino.Catalog
Catalog.CloudName, Catalog.Type
-
Field Summary
Fields inherited from interface org.apache.gravitino.Catalog
AUTHORIZATION_PROVIDER, CLOUD_NAME, CLOUD_REGION_CODE, PROPERTY_IN_USE, PROPERTY_PACKAGE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor for Jackson.protected
CatalogDTO
(String name, Catalog.Type type, String provider, String comment, Map<String, String> properties, AuditDTO audit) Constructor for the catalog. -
Method Summary
Modifier and TypeMethodDescriptionGet the audit information of the catalog.static CatalogDTO.Builder
builder()
comment()
Get the comment of the catalog.name()
Get the name of the catalog.Get the properties of the catalog.provider()
Get the provider of the catalog.type()
Get the type of the catalog.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.Catalog
asFilesetCatalog, asModelCatalog, asSchemas, asTableCatalog, asTopicCatalog, supportsCredentials, supportsPolicies, supportsRoles, supportsTags
-
Constructor Details
-
CatalogDTO
protected CatalogDTO()Default constructor for Jackson. -
CatalogDTO
protected CatalogDTO(String name, Catalog.Type type, String provider, String comment, Map<String, String> properties, AuditDTO audit) Constructor for the catalog.- Parameters:
name
- The name of the catalog.type
- The type of the catalog.provider
- The provider of the catalog.comment
- The comment of the catalog.properties
- The properties of the catalog.audit
- The audit information of the catalog.
-
-
Method Details
-
name
Get the name of the catalog. -
type
Get the type of the catalog. -
provider
Get the provider of the catalog. -
comment
Get the comment of the catalog. -
properties
Get the properties of the catalog.- Specified by:
properties
in interfaceCatalog
- Returns:
- The properties of the catalog.
-
auditInfo
Get the audit information of the catalog. -
builder
- Returns:
- the builder for creating a new instance of CatalogDTO.
-