Package org.apache.iceberg.viewdepoc
Class BaseMetastoreViews
java.lang.Object
org.apache.iceberg.viewdepoc.BaseMetastoreViews
- All Implemented Interfaces:
Views
- Direct Known Subclasses:
NessieViewCatalog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a view without replacing any existing view.protected StringdefaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier viewIdentifier) voidDrops a view.Loads a view by name.loadDefinition(String viewIdentifier) Loads a view by name.protected abstract BaseMetastoreViewOperationsnewViewOps(org.apache.iceberg.catalog.TableIdentifier viewName) voidReplaces a view.
-
Constructor Details
-
BaseMetastoreViews
protected BaseMetastoreViews()
-
-
Method Details
-
newViewOps
protected abstract BaseMetastoreViewOperations newViewOps(org.apache.iceberg.catalog.TableIdentifier viewName) -
defaultWarehouseLocation
protected String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier viewIdentifier) -
create
Description copied from interface:ViewsCreate a view without replacing any existing view. -
replace
public void replace(String viewIdentifier, ViewDefinition definition, Map<String, String> properties) Description copied from interface:ViewsReplaces a view. -
drop
Description copied from interface:ViewsDrops 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
-