Package org.apache.druid.metadata
Class SQLInputSourceDatabaseConnector
java.lang.Object
org.apache.druid.metadata.SQLInputSourceDatabaseConnector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindPropertyKeysFromConnectURL(String connectUri, boolean allowUnknown) Extract property keys from the given JDBC URL.protected org.apache.commons.dbcp2.BasicDataSourcegetDatasource(MetadataStorageConnectorConfig connectorConfig, JdbcAccessSecurityConfig securityConfig) abstract org.skife.jdbi.v2.DBIgetDBI()final boolean<T> TretryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback, com.google.common.base.Predicate<Throwable> myShouldRetry)
-
Constructor Details
-
SQLInputSourceDatabaseConnector
public SQLInputSourceDatabaseConnector()
-
-
Method Details
-
retryWithHandle
public <T> T retryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback, com.google.common.base.Predicate<Throwable> myShouldRetry) -
isTransientException
-
getDatasource
protected org.apache.commons.dbcp2.BasicDataSource getDatasource(MetadataStorageConnectorConfig connectorConfig, JdbcAccessSecurityConfig securityConfig) -
getValidationQuery
-
getDBI
public abstract org.skife.jdbi.v2.DBI getDBI() -
findPropertyKeysFromConnectURL
Extract property keys from the given JDBC URL.
-