Class DatabaseCatalogImpl

java.lang.Object
com.illumon.iris.db.tables.databases.DatabaseCatalogImpl
All Implemented Interfaces:
DatabaseCatalog

public class DatabaseCatalogImpl extends Object implements DatabaseCatalog
  • Constructor Details

    • DatabaseCatalogImpl

      public DatabaseCatalogImpl(Database database, io.deephaven.enterprise.auth.UserContext userContext, SchemaService schemaService, @NotNull PermissionFilterProvider permissionFilterProvider, boolean namespaceAclFilterEnabled, boolean tableNamesAclFilterEnabled)
  • Method Details

    • getVisibleNamespacesSorted

      public List<String> getVisibleNamespacesSorted(Predicate<String> predicate)
      Description copied from interface: DatabaseCatalog
      Gets the list of visible namespaces for a user.
      Specified by:
      getVisibleNamespacesSorted in interface DatabaseCatalog
      Parameters:
      predicate - a predicate evaluated against each namespace before evaluating the filters.
      Returns:
      a list of namespaces that are visible for the user
    • getTableNames

      public List<String> getTableNames(String namespace)
      Description copied from interface: DatabaseCatalog
      Gets the list of tables inside of namespace that are visible to a user.
      Specified by:
      getTableNames in interface DatabaseCatalog
      Parameters:
      namespace - the namespace to interrogate
      Returns:
      the list of visible tables in namespace
    • allVisibleNamespacesAndTables

      public DatabaseCatalog.CatalogInformation allVisibleNamespacesAndTables(Predicate<String> namespacePredicate)
      Description copied from interface: DatabaseCatalog
      Retrieve all visible tables, and their namespace and namespace set. Filtered by namespacePredicate.
      Specified by:
      allVisibleNamespacesAndTables in interface DatabaseCatalog
      Parameters:
      namespacePredicate - the predicate to apply to the namespaces
      Returns:
      a CatalogInformation class containing information for the responsive tables
    • getNamespaceSet

      public NamespaceSet getNamespaceSet(String namespace)
      Description copied from interface: DatabaseCatalog
      Retrieve the namespace set for a given namespace.
      Specified by:
      getNamespaceSet in interface DatabaseCatalog
      Parameters:
      namespace - the namespace to interrogate
      Returns:
      the NamespaceSet for the given namespace.