Class ViewChange.ReplaceView

java.lang.Object
org.apache.gravitino.rel.ViewChange.ReplaceView
All Implemented Interfaces:
ViewChange
Enclosing interface:
ViewChange

public static final class ViewChange.ReplaceView extends Object implements ViewChange
A ViewChange that atomically replaces the view body (columns, representations, default catalog, default schema and comment).
  • Method Details

    • getColumns

      public Column[] getColumns()
      Retrieves the new output columns of the view.
      Returns:
      The new columns.
    • getRepresentations

      public Representation[] getRepresentations()
      Retrieves the new representations of the view.
      Returns:
      The new representations.
    • getDefaultCatalog

      @Nullable public String getDefaultCatalog()
      Retrieves the new default catalog, or null if it should be unset.
      Returns:
      The new default catalog, or null.
    • getDefaultSchema

      @Nullable public String getDefaultSchema()
      Retrieves the new default schema, or null if it should be unset.
      Returns:
      The new default schema, or null.
    • getComment

      @Nullable public String getComment()
      Retrieves the new view comment, or null if it should be unset.
      Returns:
      The new comment, or null.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object