Package org.apache.iceberg.catalog
Class BaseViewSessionCatalog.AsViewCatalog
java.lang.Object
org.apache.iceberg.catalog.BaseViewSessionCatalog.AsViewCatalog
- All Implemented Interfaces:
- ViewCatalog
- Enclosing class:
- BaseViewSessionCatalog
- 
Method SummaryModifier and TypeMethodDescriptionbuildView(TableIdentifier identifier) Instantiate a builder to create or replace a SQL view.booleandropView(TableIdentifier identifier) Drop a view.voidinitialize(String name, Map<String, String> properties) Initialize a view catalog given a custom name and a map of catalog properties.voidinvalidateView(TableIdentifier identifier) Invalidate cached view metadata from current catalog.Return all the identifiers under this namespace.loadView(TableIdentifier identifier) Load a view.name()Return the name for this catalog.voidrenameView(TableIdentifier from, TableIdentifier to) Rename a view.booleanviewExists(TableIdentifier identifier) Check whether view exists.
- 
Method Details- 
nameDescription copied from interface:ViewCatalogReturn the name for this catalog.- Specified by:
- namein interface- ViewCatalog
- Returns:
- this catalog's name
 
- 
listViewsDescription copied from interface:ViewCatalogReturn all the identifiers under this namespace.- Specified by:
- listViewsin interface- ViewCatalog
- Parameters:
- namespace- a namespace
- Returns:
- a list of identifiers for views
 
- 
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
 
- 
viewExistsDescription copied from interface:ViewCatalogCheck whether view exists.- Specified by:
- viewExistsin interface- ViewCatalog
- Parameters:
- identifier- a view identifier
- Returns:
- true if the view exists, false otherwise
 
- 
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
 
- 
dropViewDescription copied from interface:ViewCatalogDrop a view.- Specified by:
- dropViewin interface- ViewCatalog
- Parameters:
- identifier- a view identifier
- Returns:
- true if the view was dropped, false if the view did not exist
 
- 
renameViewDescription copied from interface:ViewCatalogRename a view.- Specified by:
- renameViewin interface- ViewCatalog
- Parameters:
- from- identifier of the view to rename
- to- new view identifier
 
- 
invalidateViewDescription copied from interface:ViewCatalogInvalidate cached view metadata from current catalog.If the view is already loaded or cached, drop cached data. If the view does not exist or is not cached, do nothing. - Specified by:
- invalidateViewin interface- ViewCatalog
- Parameters:
- identifier- a view identifier
 
- 
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- ViewCatalog
- Parameters:
- name- a custom name for the catalog
- properties- catalog properties
 
 
-