Package org.apache.iceberg.view
Class BaseMetastoreViewCatalog
java.lang.Object
org.apache.iceberg.BaseMetastoreCatalog
org.apache.iceberg.view.BaseMetastoreViewCatalog
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Catalog,- ViewCatalog
- Direct Known Subclasses:
- HiveCatalog,- InMemoryCatalog,- JdbcCatalog,- NessieCatalog
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classThe purpose of this class is to add view detection when replacing a tableprotected classNested classes/interfaces inherited from class org.apache.iceberg.BaseMetastoreCatalogBaseMetastoreCatalog.BaseMetastoreCatalogTableBuilderNested classes/interfaces inherited from interface org.apache.iceberg.catalog.CatalogCatalog.TableBuilder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildTable(TableIdentifier identifier, Schema schema) /** Instantiate a builder to either create a table or start a create/replace transaction.buildView(TableIdentifier identifier) Instantiate a builder to create or replace a SQL view.voidinitialize(String name, Map<String, String> properties) Initialize a view catalog given a custom name and a map of catalog properties.loadView(TableIdentifier identifier) Load a view.name()Return the name for this catalog.protected abstract ViewOperationsnewViewOps(TableIdentifier identifier) Methods inherited from class org.apache.iceberg.BaseMetastoreCatalogclose, defaultWarehouseLocation, fullTableName, isValidIdentifier, loadTable, metricsReporter, newTableOps, properties, registerTable, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.catalog.CatalogcreateTable, createTable, createTable, createTable, dropTable, dropTable, invalidateTable, listTables, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, renameTable, tableExistsMethods inherited from interface org.apache.iceberg.catalog.ViewCatalogdropView, invalidateView, listViews, renameView, viewExists
- 
Constructor Details- 
BaseMetastoreViewCatalogpublic BaseMetastoreViewCatalog()
 
- 
- 
Method Details- 
newViewOps
- 
initializeDescription copied from interface:ViewCatalogInitialize a view catalog given a custom name and a map of catalog properties.A custom view catalog implementation must have a no-arg constructor. A compute engine like Spark or Flink will first initialize the catalog without any arguments, and then call this method to complete catalog initialization with properties passed into the engine. - Specified by:
- initializein interface- Catalog
- Specified by:
- initializein interface- ViewCatalog
- Parameters:
- name- a custom name for the catalog
- properties- catalog properties
 
- 
nameDescription copied from interface:ViewCatalogReturn the name for this catalog.- Specified by:
- namein interface- Catalog
- Specified by:
- namein interface- ViewCatalog
- Returns:
- this catalog's name
 
- 
loadViewDescription copied from interface:ViewCatalogLoad a view.- Specified by:
- loadViewin interface- ViewCatalog
- Parameters:
- identifier- a view identifier
- Returns:
- instance of Viewimplementation referred by the identifier
 
- 
buildViewDescription copied from interface:ViewCatalogInstantiate a builder to create or replace a SQL view.- Specified by:
- buildViewin interface- ViewCatalog
- Parameters:
- identifier- a view identifier
- Returns:
- a view builder
 
- 
buildTableDescription copied from interface:Catalog/** Instantiate a builder to either create a table or start a create/replace transaction.- Specified by:
- buildTablein interface- Catalog
- Overrides:
- buildTablein class- BaseMetastoreCatalog
- Parameters:
- identifier- a table identifier
- schema- a schema
- Returns:
- the builder to create a table or start a create/replace transaction
 
 
-