Class BaseMetastoreViews

    • Constructor Detail

      • BaseMetastoreViews

        public BaseMetastoreViews​(org.apache.hadoop.conf.Configuration conf)
    • Method Detail

      • defaultWarehouseLocation

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

        public void create​(String viewIdentifier,
                           ViewDefinition definition,
                           Map<String,​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​(String viewIdentifier,
                            ViewDefinition definition,
                            Map<String,​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​(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​(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​(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