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 Summary
Modifier and TypeMethodDescriptionReturns the default schema name, or null if not set.getName()Returns the name of the catalog.Returns a schema by name, or null if not found.Returns all schema names in this catalog.Returns all schemas in this catalog.Returns a table by qualified name (schema.table), or null if not found.
-
Method Details
-
getName
Returns the name of the catalog.- Returns:
- Catalog name
-
getSchemas
List<Schema> 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
Returns a table by qualified name (schema.table), or null if not found.- Parameters:
schemaName- Schema nametableName- Table name- Returns:
- Table, or null
-
getDefaultSchemaName
Returns the default schema name, or null if not set.- Returns:
- Default schema name, or null
-