Package org.apache.iceberg.view
Class BaseMetastoreViews
- java.lang.Object
-
- org.apache.iceberg.view.BaseMetastoreViews
-
- All Implemented Interfaces:
Views
- Direct Known Subclasses:
NessieViewCatalog
public abstract class BaseMetastoreViews extends Object implements Views
-
-
Constructor Summary
Constructors Constructor Description BaseMetastoreViews(org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreate(String viewIdentifier, ViewDefinition definition, Map<String,String> properties)Create a view without replacing any existing view.protected StringdefaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier viewIdentifier)voiddrop(String viewIdentifier)Drops a view.Viewload(String viewIdentifier)Loads a view by name.ViewDefinitionloadDefinition(String viewIdentifier)Loads a view by name.protected abstract BaseMetastoreViewOperationsnewViewOps(org.apache.iceberg.catalog.TableIdentifier viewName)voidreplace(String viewIdentifier, ViewDefinition definition, Map<String,String> properties)Replaces a view.
-
-
-
Method Detail
-
newViewOps
protected abstract BaseMetastoreViewOperations newViewOps(org.apache.iceberg.catalog.TableIdentifier viewName)
-
defaultWarehouseLocation
protected String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
-
create
public void create(String viewIdentifier, ViewDefinition definition, Map<String,String> properties)
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
public void drop(String viewIdentifier)
Description copied from interface:ViewsDrops a view.
-
load
public View load(String viewIdentifier)
Description copied from interface:ViewsLoads a view by name.
-
loadDefinition
public ViewDefinition loadDefinition(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
-
-