Class ViewDTO

java.lang.Object
org.apache.gravitino.dto.rel.ViewDTO
All Implemented Interfaces:
Auditable, View

public class ViewDTO extends Object implements View
Represents a View DTO (Data Transfer Object).
  • Method Details

    • name

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

      public String comment()
      Description copied from interface: View
      Returns the comment of the view, or null if no comment is set.
      Specified by:
      comment in interface View
      Returns:
      The view comment, or null.
    • columns

      public Column[] columns()
      Description copied from interface: View
      Returns the output schema of the view. Implementations should return an empty array when the output schema is unknown; callers should not rely on a null return value.
      Specified by:
      columns in interface View
      Returns:
      The view output columns.
    • representations

      public Representation[] representations()
      Description copied from interface: View
      Returns the representations of the view. A view carries at least one Representation, typically a SQLRepresentation for one or more dialects.
      Specified by:
      representations in interface View
      Returns:
      The view representations.
    • defaultCatalog

      public String defaultCatalog()
      Description copied from interface: View
      Returns the default catalog used to resolve unqualified identifiers referenced by the view definition, or null if not set. The default catalog is shared across all representations.
      Specified by:
      defaultCatalog in interface View
      Returns:
      The default catalog, or null.
    • defaultSchema

      public String defaultSchema()
      Description copied from interface: View
      Returns the default schema used to resolve unqualified identifiers referenced by the view definition, or null if not set. The default schema is shared across all representations.
      Specified by:
      defaultSchema in interface View
      Returns:
      The default schema, or null.
    • properties

      public Map<String,String> properties()
      Description copied from interface: View
      Returns the properties of the view, or an empty map if no properties are set.
      Specified by:
      properties in interface View
      Returns:
      The view properties.
    • auditInfo

      public AuditDTO auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the entity.
    • builder

      public static ViewDTO.Builder builder()
      Creates a new ViewDTO.Builder to build a ViewDTO.
      Returns:
      A new builder instance.