Class ViewInfo

Object
org.apache.spark.sql.connector.catalog.ViewInfo

@DeveloperApi public class ViewInfo extends Object
A class that holds view information.
  • Constructor Details

  • Method Details

    • ident

      @Nonnull public Identifier ident()
      Returns:
      The view identifier
    • sql

      @Nonnull public String sql()
      Returns:
      The SQL text that defines the view
    • currentCatalog

      @Nonnull public String currentCatalog()
      Returns:
      The current catalog
    • currentNamespace

      @Nonnull public String[] currentNamespace()
      Returns:
      The current namespace
    • schema

      @Nonnull public StructType schema()
      Returns:
      The view query output schema
    • queryColumnNames

      @Nonnull public String[] queryColumnNames()
      Returns:
      The query column names
    • columnAliases

      @Nonnull public String[] columnAliases()
      Returns:
      The column aliases
    • columnComments

      @Nonnull public String[] columnComments()
      Returns:
      The column comments
    • properties

      @Nonnull public Map<String,String> properties()
      Returns:
      The view properties
    • 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