public interface Catalog
A catalog is the top-level container in the database metadata hierarchy:
Catalog
└── Schema
└── Table
└── Column
Originally derived from Apache Calcite's catalog interfaces.
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultSchemaName()
Returns the default schema name, or null if not set.
|
String |
getName()
Returns the name of the catalog.
|
Schema |
getSchema(String schemaName)
Returns a schema by name, or null if not found.
|
List<String> |
getSchemaNames()
Returns all schema names in this catalog.
|
List<Schema> |
getSchemas()
Returns all schemas in this catalog.
|
Table |
getTable(String schemaName,
String tableName)
Returns a table by qualified name (schema.table), or null if not found.
|
List<Schema> getSchemas()
Schema getSchema(String schemaName)
schemaName - Schema name (case-sensitive)List<String> getSchemaNames()
Table getTable(String schemaName, String tableName)
schemaName - Schema nametableName - Table nameString getDefaultSchemaName()