Interface IDatabricksMetadataClient
- All Known Implementing Classes:
DatabricksEmptyMetadataClient,DatabricksMetadataSdkClient,DatabricksThriftServiceClient
public interface IDatabricksMetadataClient
-
Method Summary
Modifier and TypeMethodDescriptionlistCatalogs(IDatabricksSession session) Returns the list of catalogslistColumns(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String columnNamePattern) Returns the list of columnslistCrossReferences(IDatabricksSession session, String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) Returns the list of cross references between a parent table and a foreign tablelistExportedKeys(IDatabricksSession session, String catalog, String schema, String table) Returns the list of imported keyslistFunctions(IDatabricksSession session, String catalog, String schemaNamePattern, String functionNamePattern) Returns the list of functionslistImportedKeys(IDatabricksSession session, String catalog, String schema, String table) Returns the list of imported keyslistPrimaryKeys(IDatabricksSession session, String catalog, String schema, String table) Returns the list of primary keyslistSchemas(IDatabricksSession session, String catalog, String schemaNamePattern) Returns the list of schemaslistTables(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String[] tableTypes) Returns the list of tableslistTableTypes(IDatabricksSession session) Returns list of table typeslistTypeInfo(IDatabricksSession session) Returns information about types supported by Databricks server
-
Method Details
-
listTypeInfo
Returns information about types supported by Databricks server- Throws:
SQLException
-
listCatalogs
Returns the list of catalogs- Throws:
SQLException
-
listSchemas
DatabricksResultSet listSchemas(IDatabricksSession session, String catalog, String schemaNamePattern) throws SQLException Returns the list of schemas- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschemaNamePattern- must match to schema name in database (can be a regex pattern or absolute name)- Returns:
- a DatabricksResultSet representing list of schemas
- Throws:
SQLException
-
listTables
DatabricksResultSet listTables(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String[] tableTypes) throws SQLException Returns the list of tables- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschemaNamePattern- must match to schema name in database (can be a regex pattern or absolute name)tableNamePattern- must match to table name in database (can be a regex pattern or absolute name)- Returns:
- a DatabricksResultSet representing list of tables
- Throws:
SQLException
-
listTableTypes
Returns list of table types- Throws:
SQLException
-
listColumns
DatabricksResultSet listColumns(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String columnNamePattern) throws SQLException Returns the list of columns- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschemaNamePattern- must match to schema name in database (can be a regex pattern or absolute name)tableNamePattern- must match to table name in database (can be a regex pattern or absolute name)columnNamePattern- must match to column name in database (can be a regex pattern or absolute name)- Returns:
- a DatabricksResultSet representing list of columns
- Throws:
SQLException
-
listFunctions
DatabricksResultSet listFunctions(IDatabricksSession session, String catalog, String schemaNamePattern, String functionNamePattern) throws SQLException Returns the list of functions- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschemaNamePattern- must match to schema name in database (can be a regex pattern or absolute name)functionNamePattern- must match to function name in database (can be a regex pattern or absolute name)- Returns:
- a DatabricksResultSet representing list of functions
- Throws:
SQLException
-
listPrimaryKeys
DatabricksResultSet listPrimaryKeys(IDatabricksSession session, String catalog, String schema, String table) throws SQLException Returns the list of primary keys- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschema- must match to a schema in databasetable- must match to a table in database- Returns:
- a DatabricksResultSet representing list of functions
- Throws:
SQLException
-
listImportedKeys
DatabricksResultSet listImportedKeys(IDatabricksSession session, String catalog, String schema, String table) throws SQLException Returns the list of imported keys- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschema- must match to a schema in databasetable- must match to a table in database- Returns:
- a DatabricksResultSet representing list of imported keys
- Throws:
SQLException
-
listExportedKeys
DatabricksResultSet listExportedKeys(IDatabricksSession session, String catalog, String schema, String table) throws SQLException Returns the list of imported keys- Parameters:
session- underlying sessioncatalog- catalogName which must match to catalog in databaseschema- must match to a schema in databasetable- must match to a table in database- Returns:
- a DatabricksResultSet representing list of imported keys
- Throws:
SQLException
-
listCrossReferences
DatabricksResultSet listCrossReferences(IDatabricksSession session, String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException Returns the list of cross references between a parent table and a foreign table- Parameters:
session- underlying sessionparentCatalog- catalogName which must match to catalog in databaseparentSchema- must match to a schema in databaseparentTable- must match to a table in databaseforeignCatalog- catalogName which must match to foreign catalog in databaseforeignSchema- must match to a foreign schema in databaseforeignTable- must match to a foreign table in database- Returns:
- a DatabricksResultSet representing list of cross references
- Throws:
SQLException
-