Package org.apache.iceberg.nessie
Class NessieExtCatalog
java.lang.Object
org.apache.iceberg.BaseMetastoreCatalog
org.apache.iceberg.nessie.NessieExtCatalog
- All Implemented Interfaces:
org.apache.iceberg.catalog.Catalog,Views
This is a wrapper catalog that supports both Iceberg Views and Tables. USE AT YOUR OWN RISK /
EXPERIMENTAL CODE.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.iceberg.BaseMetastoreCatalog
org.apache.iceberg.BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilderNested classes/interfaces inherited from interface org.apache.iceberg.catalog.Catalog
org.apache.iceberg.catalog.Catalog.TableBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCreate a view without replacing any existing view.protected StringdefaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) voidDrops a view.booleandropTable(org.apache.iceberg.catalog.TableIdentifier tableIdentifier, boolean purge) voidinitialize(String name, Map<String, String> properties) List<org.apache.iceberg.catalog.TableIdentifier>listTables(org.apache.iceberg.catalog.Namespace namespace) Loads a view by name.loadDefinition(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) voidReplaces a view.voidsetConf(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.iceberg.BaseMetastoreCatalog
buildTable, fullTableName, isValidIdentifier, loadTable, properties, registerTable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.catalog.Catalog
createTable, createTable, createTable, createTable, dropTable, invalidateTable, name, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, tableExists
-
Constructor Details
-
NessieExtCatalog
public NessieExtCatalog()
-
-
Method Details
-
initialize
- 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 String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) - 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 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(String viewIdentifier, ViewDefinition viewDefinition, Map<String, String> properties) Description copied from interface:ViewsCreate a view without replacing any existing view. -
replace
public void replace(String viewIdentifier, ViewDefinition viewDefinition, Map<String, String> properties) Description copied from interface:ViewsReplaces a view. -
load
Description copied from interface:ViewsLoads a view by name. -
loadDefinition
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
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
- Throws:
IOException
-
getViewCatalog
-