Class CatalogDTO

java.lang.Object
org.apache.gravitino.dto.CatalogDTO
All Implemented Interfaces:
Auditable, Catalog

public class CatalogDTO extends Object implements Catalog
Data transfer object representing catalog information.
  • 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

      public String name()
      Get the name of the catalog.
      Specified by:
      name in interface Catalog
      Returns:
      The name of the catalog.
    • type

      public Catalog.Type type()
      Get the type of the catalog.
      Specified by:
      type in interface Catalog
      Returns:
      The type of the catalog.
    • provider

      public String provider()
      Get the provider of the catalog.
      Specified by:
      provider in interface Catalog
      Returns:
      The provider of the catalog.
    • comment

      public String comment()
      Get the comment of the catalog.
      Specified by:
      comment in interface Catalog
      Returns:
      The comment of the catalog.
    • properties

      public Map<String,String> properties()
      Get the properties of the catalog.
      Specified by:
      properties in interface Catalog
      Returns:
      The properties of the catalog.
    • auditInfo

      public Audit auditInfo()
      Get the audit information of the catalog.
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the catalog.
    • builder

      public static CatalogDTO.Builder builder()
      Returns:
      the builder for creating a new instance of CatalogDTO.