Class NessieCatalog

  • All Implemented Interfaces:
    AutoCloseable, org.apache.iceberg.catalog.Catalog

    public class NessieCatalog
    extends org.apache.iceberg.BaseMetastoreCatalog
    implements AutoCloseable
    Nessie implementation of Iceberg Catalog.
    • Constructor Detail

      • NessieCatalog

        public NessieCatalog​(org.apache.hadoop.conf.Configuration config)
        create a catalog from a hadoop configuration.
      • NessieCatalog

        public NessieCatalog​(org.apache.hadoop.conf.Configuration config,
                             String ref)
        create a catalog from a hadoop configuration.
      • NessieCatalog

        public NessieCatalog​(String name,
                             org.apache.hadoop.conf.Configuration config)
        Create a catalog with a known name from a hadoop configuration.
      • NessieCatalog

        public NessieCatalog​(String name,
                             org.apache.hadoop.conf.Configuration config,
                             String ref)
        Create a catalog with a known name from a hadoop configuration.
    • Method Detail

      • name

        protected String name()
        Specified by:
        name in class org.apache.iceberg.BaseMetastoreCatalog
      • newTableOps

        protected org.apache.iceberg.TableOperations newTableOps​(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
        Specified by:
        newTableOps in class org.apache.iceberg.BaseMetastoreCatalog
      • defaultWarehouseLocation

        protected String defaultWarehouseLocation​(org.apache.iceberg.catalog.TableIdentifier table)
        Specified by:
        defaultWarehouseLocation in class org.apache.iceberg.BaseMetastoreCatalog
      • listTables

        public List<org.apache.iceberg.catalog.TableIdentifier> listTables​(org.apache.iceberg.catalog.Namespace namespace)
        Specified by:
        listTables in interface org.apache.iceberg.catalog.Catalog
      • dropTable

        public boolean dropTable​(org.apache.iceberg.catalog.TableIdentifier identifier,
                                 boolean purge)
        Specified by:
        dropTable in interface org.apache.iceberg.catalog.Catalog
      • renameTable

        public void renameTable​(org.apache.iceberg.catalog.TableIdentifier from,
                                org.apache.iceberg.catalog.TableIdentifier to)
        Specified by:
        renameTable in interface org.apache.iceberg.catalog.Catalog
      • getTreeApi

        public com.dremio.nessie.api.TreeApi getTreeApi()
      • refresh

        public void refresh()
      • getHash

        public String getHash()