Package org.apache.iceberg.viewdepoc
Interface Views
- All Known Implementing Classes:
BaseMetastoreViews,HadoopViews,NessieExtCatalog,NessieViewCatalog
public interface Views
Generic interface for creating and loading a view implementation.
The 'viewIdentifier' field should be interpreted by the underlying implementation (e.g. catalog.database.view_name)
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a view without replacing any existing view.voidDrops a view.Loads a view by name.loadDefinition(String viewIdentifier) Loads a view by name.default voidRenames a view.voidReplaces a view.
-
Method Details
-
create
Create a view without replacing any existing view.- Parameters:
viewIdentifier- view name or locationviewDefinition- SQL metadata of the viewproperties- Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
-
replace
Replaces a view.- Parameters:
viewIdentifier- view name or locationviewDefinition- SQL metadata of the viewproperties- Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
-
load
Loads a view by name.- Parameters:
viewIdentifier- view name or location- Returns:
- All the metadata of the view
-
loadDefinition
Loads a view by name.- Parameters:
viewIdentifier- view name or location- Returns:
- SQL metadata of the view
-
drop
Drops a view.- Parameters:
viewIdentifier- view name or location
-
rename
Renames a view.- Parameters:
oldIdentifier- the view identifier of the existing view to renamenewIdentifier- the new view identifier of the view
-