public interface DataSourceProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataSourceProvider.DataSourceNameConfigurator |
| Modifier and Type | Method and Description |
|---|---|
default DataSource |
create(org.apache.hadoop.conf.Configuration hdpConfig) |
DataSource |
create(org.apache.hadoop.conf.Configuration hdpConfig,
int maxPoolSize) |
static String |
getDataSourceName(org.apache.hadoop.conf.Configuration conf) |
static String |
getMetastoreJdbcDriverUrl(org.apache.hadoop.conf.Configuration conf) |
static String |
getMetastoreJdbcPasswd(org.apache.hadoop.conf.Configuration conf) |
static String |
getMetastoreJdbcUser(org.apache.hadoop.conf.Configuration conf) |
String |
getPoolingType()
Get the declared pooling type string.
|
static Properties |
getPrefixedProperties(org.apache.hadoop.conf.Configuration hdpConfig,
String factoryPrefix) |
default DataSource create(org.apache.hadoop.conf.Configuration hdpConfig) throws SQLException
hdpConfig - SQLExceptionDataSource create(org.apache.hadoop.conf.Configuration hdpConfig, int maxPoolSize) throws SQLException
hdpConfig - maxPoolSize - the maximum size of the connection poolSQLExceptionString getPoolingType()
static Properties getPrefixedProperties(org.apache.hadoop.conf.Configuration hdpConfig, String factoryPrefix)
hdpConfig - static String getMetastoreJdbcUser(org.apache.hadoop.conf.Configuration conf)
static String getMetastoreJdbcPasswd(org.apache.hadoop.conf.Configuration conf) throws SQLException
SQLExceptionstatic String getMetastoreJdbcDriverUrl(org.apache.hadoop.conf.Configuration conf) throws SQLException
SQLExceptionstatic String getDataSourceName(org.apache.hadoop.conf.Configuration conf)
Copyright © 2024 The Apache Software Foundation. All rights reserved.