Class DatabricksNewMetadataSdkClient
- java.lang.Object
-
- com.databricks.jdbc.dbclient.impl.sqlexec.DatabricksNewMetadataSdkClient
-
- All Implemented Interfaces:
DatabricksMetadataClient
public class DatabricksNewMetadataSdkClient extends Object implements DatabricksMetadataClient
This is for the new SQL commands added in runtime. Note that the DatabricksMetadataSdkClient will be replaced by this class once runtime code is merged and this class is tested end to end. https://docs.google.com/document/d/1E28o7jyPIp6_byZHGD5Eyc4uwGVSydX5o9PaiSY1V4s/edit#heading=h.681k0yimshae Tracking bug for replacement: (PECO-1502)
-
-
Constructor Summary
Constructors Constructor Description DatabricksNewMetadataSdkClient(DatabricksSdkClient sdkClient)
-
Method Summary
All Methods Instance Methods Concrete 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 columnsDatabricksResultSetlistFunctions(IDatabricksSession session, String catalog, String schemaNamePattern, String functionNamePattern)Returns the list of functionsDatabricksResultSetlistPrimaryKeys(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
-
-
-
Constructor Detail
-
DatabricksNewMetadataSdkClient
public DatabricksNewMetadataSdkClient(DatabricksSdkClient sdkClient)
-
-
Method Detail
-
listTypeInfo
public DatabricksResultSet listTypeInfo(IDatabricksSession session)
Description copied from interface:DatabricksMetadataClientReturns information about types supported by Databricks server- Specified by:
listTypeInfoin interfaceDatabricksMetadataClient
-
listCatalogs
public DatabricksResultSet listCatalogs(IDatabricksSession session) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of catalogs- Specified by:
listCatalogsin interfaceDatabricksMetadataClient- Throws:
SQLException
-
listSchemas
public DatabricksResultSet listSchemas(IDatabricksSession session, String catalog, String schemaNamePattern) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of schemas- Specified by:
listSchemasin interfaceDatabricksMetadataClient- 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
public DatabricksResultSet listTables(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String[] tableTypes) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of tables- Specified by:
listTablesin interfaceDatabricksMetadataClient- 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
public DatabricksResultSet listTableTypes(IDatabricksSession session) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns list of table types- Specified by:
listTableTypesin interfaceDatabricksMetadataClient- Throws:
SQLException
-
listColumns
public DatabricksResultSet listColumns(IDatabricksSession session, String catalog, String schemaNamePattern, String tableNamePattern, String columnNamePattern) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of columns- Specified by:
listColumnsin interfaceDatabricksMetadataClient- 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
public DatabricksResultSet listFunctions(IDatabricksSession session, String catalog, String schemaNamePattern, String functionNamePattern) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of functions- Specified by:
listFunctionsin interfaceDatabricksMetadataClient- 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
public DatabricksResultSet listPrimaryKeys(IDatabricksSession session, String catalog, String schema, String table) throws SQLException
Description copied from interface:DatabricksMetadataClientReturns the list of primary keys- Specified by:
listPrimaryKeysin interfaceDatabricksMetadataClient- 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
-
-