本文整理匯總了Java中com.facebook.presto.plugin.jdbc.BaseJdbcConfig類的典型用法代碼示例。如果您正苦於以下問題:Java BaseJdbcConfig類的具體用法?Java BaseJdbcConfig怎麽用?Java BaseJdbcConfig使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BaseJdbcConfig類屬於com.facebook.presto.plugin.jdbc包,在下文中一共展示了BaseJdbcConfig類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
@Override
public void configure(Binder binder)
{
binder.bind(JdbcClient.class).to(MySqlClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(MySqlConfig.class);
}
示例2: MySqlClient
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
@Inject
public MySqlClient(JdbcConnectorId connectorId, BaseJdbcConfig config, MySqlConfig mySqlConfig)
throws SQLException
{
super(connectorId, config, "`", new Driver());
connectionProperties.setProperty("nullCatalogMeansCurrent", "false");
if (mySqlConfig.isAutoReconnect()) {
connectionProperties.setProperty("autoReconnect", String.valueOf(mySqlConfig.isAutoReconnect()));
connectionProperties.setProperty("maxReconnects", String.valueOf(mySqlConfig.getMaxReconnects()));
}
if (mySqlConfig.getConnectionTimeout() != null) {
connectionProperties.setProperty("connectTimeout", String.valueOf(mySqlConfig.getConnectionTimeout().toMillis()));
}
}
示例3: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
public void configure(Binder binder) {
binder.bind(JdbcClient.class).to(TemplateClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(TemplateConfig.class);
}
示例4: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
public void configure(Binder binder) {
binder.bind(JdbcClient.class).to(TeradataClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(TeradataConfig.class);
}
示例5: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
@Override
public void configure(Binder binder)
{
binder.bind(JdbcClient.class).to(PostgreSqlClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
}
示例6: PostgreSqlClient
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //導入依賴的package包/類
@Inject
public PostgreSqlClient(JdbcConnectorId connectorId, BaseJdbcConfig config)
throws SQLException
{
super(connectorId, config, "\"", new Driver());
}