Interface Catalog

All Known Implementing Classes:
SimpleCatalog

public interface Catalog
Represents a database catalog containing schemas, tables, and columns.

A catalog is the top-level container in the database metadata hierarchy:

 Catalog
   └── Schema
         └── Table
               └── Column
 

This is a standalone version that can be used independently of Apache Calcite.

  • Method Details

    • getName

      Returns the name of the catalog.
      Returns:
      Catalog name
    • getSchemas

      Returns all schemas in this catalog.
      Returns:
      List of schemas
    • getSchema

      Returns a schema by name, or null if not found.
      Parameters:
      schemaName - Schema name (case-sensitive)
      Returns:
      Schema, or null
    • getSchemaNames

      Returns all schema names in this catalog.
      Returns:
      List of schema names
    • getTable

      @Nullable Table getTable(String schemaName, String tableName)
      Returns a table by qualified name (schema.table), or null if not found.
      Parameters:
      schemaName - Schema name
      tableName - Table name
      Returns:
      Table, or null
    • getDefaultSchemaName

      Returns the default schema name, or null if not set.
      Returns:
      Default schema name, or null