Package org.apache.gravitino.rel
Interface ViewCatalog
The ViewCatalog interface defines the public API for managing views in a schema. If the catalog
implementation supports views, it must implement this interface.
Note: This is a minimal interface. Full operations (create, list, alter, drop) will be added when Gravitino APIs support views.
-
Method Summary
Modifier and TypeMethodDescriptionloadView(NameIdentifier ident) Load view metadata byNameIdentifierfrom the catalog.default booleanviewExists(NameIdentifier ident) Check if a view exists using its identifier.
-
Method Details
-
loadView
Load view metadata byNameIdentifierfrom the catalog.- Parameters:
ident- A view identifier.- Returns:
- The view metadata.
- Throws:
NoSuchViewException- If the view does not exist.
-
viewExists
Check if a view exists using its identifier.- Parameters:
ident- A view identifier.- Returns:
- true If the view exists, false otherwise.
-