Interface ViewDefinition


  • public interface ViewDefinition
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.iceberg.Schema EMPTY_SCHEMA  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static ViewDefinition of​(java.lang.String sql, org.apache.iceberg.Schema schema, java.lang.String sessionCatalog, java.util.List<java.lang.String> sessionNamespace)  
      org.apache.iceberg.Schema schema()
      Returns the view query output schema.
      java.lang.String sessionCatalog()
      Returns the session catalog when the view is created.
      java.util.List<java.lang.String> sessionNamespace()
      Returns the session namespace when the view is created.
      java.lang.String sql()
      Returns the view query SQL text.
    • Field Detail

      • EMPTY_SCHEMA

        static final org.apache.iceberg.Schema EMPTY_SCHEMA
    • Method Detail

      • of

        static ViewDefinition of​(java.lang.String sql,
                                 org.apache.iceberg.Schema schema,
                                 java.lang.String sessionCatalog,
                                 java.util.List<java.lang.String> sessionNamespace)
      • sql

        java.lang.String sql()
        Returns the view query SQL text.
        Returns:
        the view query SQL text
      • schema

        org.apache.iceberg.Schema schema()
        Returns the view query output schema.
        Returns:
        the view query output schema
      • sessionCatalog

        java.lang.String sessionCatalog()
        Returns the session catalog when the view is created.
        Returns:
        the session catalog
      • sessionNamespace

        java.util.List<java.lang.String> sessionNamespace()
        Returns the session namespace when the view is created.
        Returns:
        the session namespace