Class BaseMetastoreViews

  • All Implemented Interfaces:
    Views
    Direct Known Subclasses:
    NessieViewCatalog

    public abstract class BaseMetastoreViews
    extends java.lang.Object
    implements Views
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseMetastoreViews()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void create​(java.lang.String viewIdentifier, ViewDefinition definition, java.util.Map<java.lang.String,​java.lang.String> properties)
      Create a view without replacing any existing view.
      protected java.lang.String defaultWarehouseLocation​(org.apache.iceberg.catalog.TableIdentifier viewIdentifier)  
      void drop​(java.lang.String viewIdentifier)
      Drops a view.
      View load​(java.lang.String viewIdentifier)
      Loads a view by name.
      ViewDefinition loadDefinition​(java.lang.String viewIdentifier)
      Loads a view by name.
      protected abstract BaseMetastoreViewOperations newViewOps​(org.apache.iceberg.catalog.TableIdentifier viewName)  
      void replace​(java.lang.String viewIdentifier, ViewDefinition definition, java.util.Map<java.lang.String,​java.lang.String> properties)
      Replaces a view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.iceberg.view.Views

        rename
    • Constructor Detail

      • BaseMetastoreViews

        protected BaseMetastoreViews()
    • Method Detail

      • defaultWarehouseLocation

        protected java.lang.String defaultWarehouseLocation​(org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
      • create

        public void create​(java.lang.String viewIdentifier,
                           ViewDefinition definition,
                           java.util.Map<java.lang.String,​java.lang.String> properties)
        Description copied from interface: Views
        Create a view without replacing any existing view.
        Specified by:
        create in interface Views
        Parameters:
        viewIdentifier - view name or location
        definition - SQL metadata of the view
        properties - Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
      • replace

        public void replace​(java.lang.String viewIdentifier,
                            ViewDefinition definition,
                            java.util.Map<java.lang.String,​java.lang.String> properties)
        Description copied from interface: Views
        Replaces a view.
        Specified by:
        replace in interface Views
        Parameters:
        viewIdentifier - view name or location
        definition - SQL metadata of the view
        properties - Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
      • drop

        public void drop​(java.lang.String viewIdentifier)
        Description copied from interface: Views
        Drops a view.
        Specified by:
        drop in interface Views
        Parameters:
        viewIdentifier - view name or location
      • load

        public View load​(java.lang.String viewIdentifier)
        Description copied from interface: Views
        Loads a view by name.
        Specified by:
        load in interface Views
        Parameters:
        viewIdentifier - view name or location
        Returns:
        All the metadata of the view
      • loadDefinition

        public ViewDefinition loadDefinition​(java.lang.String viewIdentifier)
        Description copied from interface: Views
        Loads a view by name.
        Specified by:
        loadDefinition in interface Views
        Parameters:
        viewIdentifier - view name or location
        Returns:
        SQL metadata of the view