Package com.dremio.nessie.iceberg
Class NessieCatalog
- java.lang.Object
-
- org.apache.iceberg.BaseMetastoreCatalog
-
- com.dremio.nessie.iceberg.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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONF_NESSIE_AUTH_TYPEstatic StringCONF_NESSIE_HASHstatic StringCONF_NESSIE_PASSWORDstatic StringCONF_NESSIE_REFstatic StringCONF_NESSIE_URLstatic StringCONF_NESSIE_USERNAMEstatic StringNESSIE_AUTH_TYPE_DEFAULT
-
Constructor Summary
Constructors Constructor Description NessieCatalog(String name, org.apache.hadoop.conf.Configuration config)Create a catalog with a known name from a hadoop configuration.NessieCatalog(String name, org.apache.hadoop.conf.Configuration config, String ref)Create a catalog with a known name from a hadoop configuration.NessieCatalog(org.apache.hadoop.conf.Configuration config)create a catalog from a hadoop configuration.NessieCatalog(org.apache.hadoop.conf.Configuration config, String ref)create a catalog from a hadoop configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected StringdefaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier table)booleandropTable(org.apache.iceberg.catalog.TableIdentifier identifier, boolean purge)StringgetHash()com.dremio.nessie.api.TreeApigetTreeApi()List<org.apache.iceberg.catalog.TableIdentifier>listTables(org.apache.iceberg.catalog.Namespace namespace)protected Stringname()protected org.apache.iceberg.TableOperationsnewTableOps(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)voidrefresh()voidrenameTable(org.apache.iceberg.catalog.TableIdentifier from, org.apache.iceberg.catalog.TableIdentifier to)-
Methods inherited from class org.apache.iceberg.BaseMetastoreCatalog
createTable, dropTableData, fullTableName, isValidIdentifier, loadTable, newCreateTableTransaction, newReplaceTableTransaction, toString
-
-
-
-
Field Detail
-
CONF_NESSIE_URL
public static final String CONF_NESSIE_URL
- See Also:
- Constant Field Values
-
CONF_NESSIE_USERNAME
public static final String CONF_NESSIE_USERNAME
- See Also:
- Constant Field Values
-
CONF_NESSIE_PASSWORD
public static final String CONF_NESSIE_PASSWORD
- See Also:
- Constant Field Values
-
CONF_NESSIE_AUTH_TYPE
public static final String CONF_NESSIE_AUTH_TYPE
- See Also:
- Constant Field Values
-
NESSIE_AUTH_TYPE_DEFAULT
public static final String NESSIE_AUTH_TYPE_DEFAULT
- See Also:
- Constant Field Values
-
CONF_NESSIE_REF
public static final String CONF_NESSIE_REF
- See Also:
- Constant Field Values
-
CONF_NESSIE_HASH
public static final String CONF_NESSIE_HASH
- See Also:
- Constant Field Values
-
-
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.
-
-
Method Detail
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
name
protected String name()
- Specified by:
namein classorg.apache.iceberg.BaseMetastoreCatalog
-
newTableOps
protected org.apache.iceberg.TableOperations newTableOps(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
- Specified by:
newTableOpsin classorg.apache.iceberg.BaseMetastoreCatalog
-
defaultWarehouseLocation
protected String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier table)
- Specified by:
defaultWarehouseLocationin classorg.apache.iceberg.BaseMetastoreCatalog
-
listTables
public List<org.apache.iceberg.catalog.TableIdentifier> listTables(org.apache.iceberg.catalog.Namespace namespace)
- Specified by:
listTablesin interfaceorg.apache.iceberg.catalog.Catalog
-
dropTable
public boolean dropTable(org.apache.iceberg.catalog.TableIdentifier identifier, boolean purge)- Specified by:
dropTablein interfaceorg.apache.iceberg.catalog.Catalog
-
renameTable
public void renameTable(org.apache.iceberg.catalog.TableIdentifier from, org.apache.iceberg.catalog.TableIdentifier to)- Specified by:
renameTablein interfaceorg.apache.iceberg.catalog.Catalog
-
getTreeApi
public com.dremio.nessie.api.TreeApi getTreeApi()
-
refresh
public void refresh()
-
getHash
public String getHash()
-
-