Interface ViewCatalog


@Unstable public 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 Details

    • loadView

      View loadView(NameIdentifier ident) throws NoSuchViewException
      Load view metadata by NameIdentifier from the catalog.
      Parameters:
      ident - A view identifier.
      Returns:
      The view metadata.
      Throws:
      NoSuchViewException - If the view does not exist.
    • viewExists

      default boolean viewExists(NameIdentifier ident)
      Check if a view exists using its identifier.
      Parameters:
      ident - A view identifier.
      Returns:
      true If the view exists, false otherwise.