Package com.databricks.jdbc.dbclient
Interface IDatabricksMetadataClient
-
- All Known Implementing Classes:
DatabricksEmptyMetadataClient,DatabricksMetadataSdkClient,DatabricksThriftServiceClient
public interface IDatabricksMetadataClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatabricksResultSetlistCatalogs(IDatabricksSession session)Returns the list of catalogsDatabricksResultSetlistColumns(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String columnNamePattern)Returns the list of columnsDatabricksResultSetlistCrossReferences(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 tableDatabricksResultSetlistExportedKeys(IDatabricksSession session, String catalog, String schema, String table)Returns the list of imported keysDatabricksResultSetlistFunctions(IDatabricksSession session, String catalog, String schemaNamePattern, String functionNamePattern)Returns the list of functionsDatabricksResultSetlistImportedKeys(IDatabricksSession session, String catalog, String schema, String table)Returns the list of imported keysDatabricksResultSetlistPrimaryKeys(IDatabricksSession session, String catalog, String schema, String table)Returns the list of primary keysDatabricksResultSetlistSchemas(IDatabricksSession session, String catalog, String schemaNamePattern)Returns the list of schemasDatabricksResultSetlistTables(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String[] tableTypes)Returns the list of tablesDatabricksResultSetlistTableTypes(IDatabricksSession session)Returns list of table typesDatabricksResultSetlistTypeInfo(IDatabricksSession session)Returns information about types supported by Databricks server
-
-
-
Method Detail
-
listTypeInfo
DatabricksResultSet listTypeInfo(IDatabricksSession session) throws SQLException
Returns information about types supported by Databricks server- Throws:
SQLException
-
listCatalogs
DatabricksResultSet listCatalogs(IDatabricksSession session) throws SQLException
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
DatabricksResultSet listTableTypes(IDatabricksSession session) throws SQLException
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
-
-