Class MetalakeDTO

java.lang.Object
org.apache.gravitino.dto.MetalakeDTO
All Implemented Interfaces:
Auditable, Metalake
Direct Known Subclasses:
GravitinoMetalake

public class MetalakeDTO extends Object implements Metalake
Represents a Metalake Data Transfer Object (DTO) that implements the Metalake interface.
  • Constructor Details

    • MetalakeDTO

      protected MetalakeDTO()
      Default constructor for Jackson deserialization.
    • MetalakeDTO

      protected MetalakeDTO(String name, String comment, Map<String,String> properties, AuditDTO audit)
      Creates a new instance of MetalakeDTO.
      Parameters:
      name - The name of the Metalake DTO.
      comment - The comment of the Metalake DTO.
      properties - The properties of the Metalake DTO.
      audit - The audit information of the Metalake DTO.
  • Method Details

    • name

      public String name()
      Description copied from interface: Metalake
      The name of the metalake.
      Specified by:
      name in interface Metalake
      Returns:
      The name of the Metalake DTO.
    • comment

      public String comment()
      Description copied from interface: Metalake
      The comment of the metalake. Note. this method will return null if the comment is not set for this metalake.
      Specified by:
      comment in interface Metalake
      Returns:
      The comment of the Metalake DTO.
    • properties

      public Map<String,String> properties()
      Description copied from interface: Metalake
      The properties of the metalake. Note, this method will return null if the properties are not set.
      Specified by:
      properties in interface Metalake
      Returns:
      The properties of the Metalake DTO.
    • auditInfo

      public Audit auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the Metalake DTO.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

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