Package ru.yandex.clickhouse
Class ClickHouseDriver
- java.lang.Object
-
- ru.yandex.clickhouse.ClickHouseDriver
-
-
Constructor Summary
Constructors Constructor Description ClickHouseDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)ClickHouseConnectionconnect(String url, Properties info)ClickHouseConnectionconnect(String url, ClickHouseProperties properties)intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()voidscheduleConnectionsCleaning(int rate, TimeUnit timeUnit)Schedules connections cleaning at a rate.
-
-
-
Method Detail
-
connect
public ClickHouseConnection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
connect
public ClickHouseConnection connect(String url, ClickHouseProperties properties) throws SQLException
- Throws:
SQLException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
scheduleConnectionsCleaning
public void scheduleConnectionsCleaning(int rate, TimeUnit timeUnit)Schedules connections cleaning at a rate. Turned off by default. See https://hc.apache.org/httpcomponents-client-4.5.x/tutorial/html/connmgmt.html#d5e418- Parameters:
rate- period when checking would be performedtimeUnit- time unit of rate
-
-