Package org.apache.iceberg.nessie
Class NessieExtCatalog
- java.lang.Object
-
- org.apache.iceberg.BaseMetastoreCatalog
-
- org.apache.iceberg.nessie.NessieExtCatalog
-
-
Constructor Summary
Constructors Constructor Description NessieExtCatalog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcreate(java.lang.String viewIdentifier, ViewDefinition viewDefinition, java.util.Map<java.lang.String,java.lang.String> properties)Create a view without replacing any existing view.protected java.lang.StringdefaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)voiddrop(java.lang.String viewIdentifier)Drops a view.booleandropTable(org.apache.iceberg.catalog.TableIdentifier tableIdentifier, boolean purge)NessieViewCataloggetViewCatalog()voidinitialize(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties)java.util.List<org.apache.iceberg.catalog.TableIdentifier>listTables(org.apache.iceberg.catalog.Namespace namespace)Viewload(java.lang.String viewIdentifier)Loads a view by name.ViewDefinitionloadDefinition(java.lang.String viewIdentifier)Loads a view by name.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)voidreplace(java.lang.String viewIdentifier, ViewDefinition viewDefinition, java.util.Map<java.lang.String,java.lang.String> properties)Replaces a view.voidsetConf(org.apache.hadoop.conf.Configuration conf)-
Methods inherited from class org.apache.iceberg.BaseMetastoreCatalog
buildTable, fullTableName, isValidIdentifier, loadTable, properties, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.catalog.Catalog
createTable, createTable, createTable, createTable, dropTable, invalidateTable, name, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, registerTable, tableExists
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties)- Specified by:
initializein interfaceorg.apache.iceberg.catalog.Catalog
-
newTableOps
protected org.apache.iceberg.TableOperations newTableOps(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
- Specified by:
newTableOpsin classorg.apache.iceberg.BaseMetastoreCatalog
-
defaultWarehouseLocation
protected java.lang.String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
- Specified by:
defaultWarehouseLocationin classorg.apache.iceberg.BaseMetastoreCatalog
-
listTables
public java.util.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 tableIdentifier, 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
-
create
public void create(java.lang.String viewIdentifier, ViewDefinition viewDefinition, java.util.Map<java.lang.String,java.lang.String> properties)Description copied from interface:ViewsCreate a view without replacing any existing view.
-
replace
public void replace(java.lang.String viewIdentifier, ViewDefinition viewDefinition, java.util.Map<java.lang.String,java.lang.String> properties)Description copied from interface:ViewsReplaces a view.
-
load
public View load(java.lang.String viewIdentifier)
Description copied from interface:ViewsLoads a view by name.
-
loadDefinition
public ViewDefinition loadDefinition(java.lang.String viewIdentifier)
Description copied from interface:ViewsLoads a view by name.- Specified by:
loadDefinitionin interfaceViews- Parameters:
viewIdentifier- view name or location- Returns:
- SQL metadata of the view
-
drop
public void drop(java.lang.String viewIdentifier)
Description copied from interface:ViewsDrops a view.
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
-
refresh
public void refresh() throws org.projectnessie.error.NessieNotFoundException- Throws:
org.projectnessie.error.NessieNotFoundException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getViewCatalog
public NessieViewCatalog getViewCatalog()
-
-