Package com.clickhouse.client
Class ClickHouseConfig
java.lang.Object
com.clickhouse.client.ClickHouseConfig
- All Implemented Interfaces:
ClickHouseDataConfig,Serializable
Deprecated.
An immutable class holding client-specific options like
ClickHouseCredentials and ClickHouseNodeSelector etc.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.clickhouse.data.ClickHouseDataConfig
ClickHouseDataConfig.Wrapped -
Field Summary
FieldsFields inherited from interface com.clickhouse.data.ClickHouseDataConfig
DEFAULT_ASYNC, DEFAULT_BUFFER_QUEUE_VARIATION, DEFAULT_BUFFER_SIZE, DEFAULT_BUFFERING_MODE, DEFAULT_COLUMN_RENAME_METHOD, DEFAULT_COMPRESS_LEVEL, DEFAULT_FORMAT, DEFAULT_MAX_BUFFER_SIZE, DEFAULT_MAX_MAPPER_CACHE, DEFAULT_MAX_QUEUED_BUFFERS, DEFAULT_READ_BUFFER_SIZE, DEFAULT_READ_COMPRESS_LEVEL, DEFAULT_REUSE_VALUE_WRAPPER, DEFAULT_ROUNDING_MODE, DEFAULT_TIMEOUT, DEFAULT_USE_BINARY_STRING, DEFAULT_USE_BLOCKING_QUEUE, DEFAULT_USE_COMPILATION, DEFAULT_USE_OBJECT_IN_ARRAY, DEFAULT_WIDEN_UNSIGNED_TYPE, DEFAULT_WRITE_BUFFER_SIZE, DEFAULT_WRITE_COMPRESS_LEVEL -
Constructor Summary
ConstructorsConstructorDescriptionClickHouseConfig(ClickHouseConfig... configs) Deprecated.Construct a new configuration by consolidating given ones.ClickHouseConfig(List<ClickHouseConfig> configs) Deprecated.Constructs a new configuration by consolidating given ones.ClickHouseConfig(Map<ClickHouseOption, Serializable> options) Deprecated.Constructs a new configuration using given options.ClickHouseConfig(Map<ClickHouseOption, Serializable> options, ClickHouseCredentials credentials, ClickHouseNodeSelector nodeSelector, Object metricRegistry) Deprecated.Constructs a new configuration using given arguments. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.booleangetBoolOption(ClickHouseOption option) Deprecated.Shortcut ofgetOption(option, Boolean.class).intDeprecated.intDeprecated.final StringDeprecated.Same asClickHouseClientOption.CLIENT_HOST.final StringDeprecated.Deprecated.final StringDeprecated.final StringDeprecated.Same asClickHouseClientOption.CLIENT_USER.Deprecated.intDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.intgetIntOption(ClickHouseOption option) Deprecated.Shortcut ofgetOption(option, Integer.class).Deprecated.longgetLongOption(ClickHouseOption option) Deprecated.Shortcut ofgetOption(option, Long.class).intDeprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.longDeprecated.intDeprecated.Deprecated.intDeprecated.Deprecated.getOption(ClickHouseOption option) Deprecated.Shortcut ofgetOption(ClickHouseOption, ClickHouseDefaults).getOption(ClickHouseOption option, ClickHouseConfig defaultConfig) Deprecated.Gets option value.getOption(ClickHouseOption option, ClickHouseDefaults defaultValue) Deprecated.Gets option value.<T extends Serializable>
TgetOption(ClickHouseOption option, Class<T> valueType) Deprecated.Gets typed option value.Deprecated.Deprecated.Deprecated.final StringDeprecated.final StringDeprecated.Deprecated.char[]Deprecated.intDeprecated.Deprecated.Deprecated.Deprecated.intDeprecated.intDeprecated.Deprecated.Gets request buffering mode.intDeprecated.Gets request chunk size.Deprecated.Gets input compress algorithm.intDeprecated.Gets input compress level.Deprecated.Gets response buffering mode.Deprecated.Gets server response compress algorithm.intDeprecated.Gets input compress level.intgetRetry()Deprecated.Deprecated.Deprecated.intDeprecated.intDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.getStrOption(ClickHouseOption option) Deprecated.Shortcut ofgetOption(option, String.class).Deprecated.Gets time zone for date values.intDeprecated.Deprecated.Deprecated.Deprecated.Gets preferred time zone.Deprecated.intDeprecated.intDeprecated.inthashCode()Deprecated.booleanhasOption(ClickHouseOption option) Deprecated.Test whether a given option is configured or not.booleanDeprecated.Checks whether we got all server information(e.g.booleanisAsync()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Checks if client's output, aka.booleanDeprecated.Checks if server response is compressed or not.booleanDeprecated.booleanDeprecated.booleanisSsl()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.protected static final ClickHouseCredentialsmergeCredentials(List<ClickHouseConfig> list) Deprecated.protected static final ObjectDeprecated.protected static final ClickHouseNodeSelectorDeprecated.protected static final Map<ClickHouseOption,Serializable> mergeOptions(List<ClickHouseConfig> list) Deprecated.static Map<ClickHouseOption,Serializable> toClientOptions(Map<?, ?> props) Deprecated.Converts given key-value pairs to a mutable map of correspondingClickHouseOption.
-
Field Details
-
TYPE_NAME
Deprecated.- See Also:
-
-
Constructor Details
-
ClickHouseConfig
Deprecated.Construct a new configuration by consolidating given ones.- Parameters:
configs- list of configuration
-
ClickHouseConfig
Deprecated.Constructs a new configuration by consolidating given ones.- Parameters:
configs- list of configuration
-
ClickHouseConfig
Deprecated.Constructs a new configuration using given options.- Parameters:
options- generic options
-
ClickHouseConfig
public ClickHouseConfig(Map<ClickHouseOption, Serializable> options, ClickHouseCredentials credentials, ClickHouseNodeSelector nodeSelector, Object metricRegistry) Deprecated.Constructs a new configuration using given arguments.- Parameters:
options- generic optionscredentials- default credentialnodeSelector- node selectormetricRegistry- metric registry
-
-
Method Details
-
mergeOptions
Deprecated. -
mergeCredentials
Deprecated. -
mergeNodeSelector
Deprecated. -
mergeMetricRegistry
Deprecated. -
toClientOptions
Deprecated.Converts given key-value pairs to a mutable map of correspondingClickHouseOption.- Parameters:
props- key-value pairs- Returns:
- non-null mutable map of client options
-
isAsync
public boolean isAsync()Deprecated.- Specified by:
isAsyncin interfaceClickHouseDataConfig
-
isAutoDiscovery
public boolean isAutoDiscovery()Deprecated. -
getCustomSettings
Deprecated. -
getCustomSocketFactory
Deprecated. -
getCustomSocketFactoryOptions
Deprecated. -
getClientName
Deprecated. -
isResponseCompressed
public boolean isResponseCompressed()Deprecated.Checks if server response is compressed or not.- Returns:
- true if server response is compressed; false otherwise
-
getResponseCompressAlgorithm
Deprecated.Gets server response compress algorithm. WhenisResponseCompressed()isfalse, this will returnClickHouseCompression.NONE.- Returns:
- non-null compress algorithm
-
getResponseCompressLevel
public int getResponseCompressLevel()Deprecated.- Returns:
- compress level
-
isRequestCompressed
public boolean isRequestCompressed()Deprecated.Checks if client's output, aka. client request, should be compressed or not.- Returns:
- true if client request should be compressed; false otherwise
-
getRequestCompressAlgorithm
Deprecated.Gets input compress algorithm. WhenisRequestCompressed()isfalse, this will returnClickHouseCompression.NONE.- Returns:
- non-null compress algorithm
-
getRequestCompressLevel
public int getRequestCompressLevel()Deprecated.- Returns:
- compress level
-
getConnectionTimeout
public int getConnectionTimeout()Deprecated. -
getDatabase
Deprecated. -
getFormat
Deprecated.- Specified by:
getFormatin interfaceClickHouseDataConfig
-
getNodeCheckInterval
public int getNodeCheckInterval()Deprecated. -
getMaxBufferSize
public int getMaxBufferSize()Deprecated.- Specified by:
getMaxBufferSizein interfaceClickHouseDataConfig
-
getMaxMapperCache
public int getMaxMapperCache()Deprecated.- Specified by:
getMaxMapperCachein interfaceClickHouseDataConfig
-
getBufferSize
public int getBufferSize()Deprecated.- Specified by:
getBufferSizein interfaceClickHouseDataConfig
-
getBufferQueueVariation
public int getBufferQueueVariation()Deprecated.- Specified by:
getBufferQueueVariationin interfaceClickHouseDataConfig
-
getReadBufferSize
public int getReadBufferSize()Deprecated.- Specified by:
getReadBufferSizein interfaceClickHouseDataConfig
-
getWriteBufferSize
public int getWriteBufferSize()Deprecated.- Specified by:
getWriteBufferSizein interfaceClickHouseDataConfig
-
getRequestChunkSize
public int getRequestChunkSize()Deprecated.Gets request chunk size.- Returns:
- request chunk size
-
getRequestBuffering
Deprecated.Gets request buffering mode.- Returns:
- request buffering mode
-
getResponseBuffering
Deprecated.Gets response buffering mode.- Returns:
- response buffering mode
-
getMaxExecutionTime
public int getMaxExecutionTime()Deprecated. -
getMaxQueuedBuffers
public int getMaxQueuedBuffers()Deprecated.- Specified by:
getMaxQueuedBuffersin interfaceClickHouseDataConfig
-
getMaxQueuedRequests
public int getMaxQueuedRequests()Deprecated. -
getMaxResultRows
public long getMaxResultRows()Deprecated. -
getMaxThreadsPerClient
public int getMaxThreadsPerClient()Deprecated. -
getProductName
Deprecated. -
getFailover
public int getFailover()Deprecated. -
getRetry
public int getRetry()Deprecated. -
isRepeatOnSessionLock
public boolean isRepeatOnSessionLock()Deprecated. -
isReuseValueWrapper
public boolean isReuseValueWrapper()Deprecated.- Specified by:
isReuseValueWrapperin interfaceClickHouseDataConfig
-
hasServerInfo
public boolean hasServerInfo()Deprecated.Checks whether we got all server information(e.g. timezone and version).- Returns:
- true if we got all server information; false otherwise
-
getServerTimeZone
Deprecated. -
getServerVersion
Deprecated. -
getSessionTimeout
public int getSessionTimeout()Deprecated. -
isSessionCheck
public boolean isSessionCheck()Deprecated. -
getSocketTimeout
public int getSocketTimeout()Deprecated. -
isSsl
public boolean isSsl()Deprecated. -
getSslMode
Deprecated. -
getSslRootCert
Deprecated. -
getSslCert
Deprecated. -
getSslKey
Deprecated. -
getKeyStoreType
Deprecated. -
getTrustStore
Deprecated. -
getTrustStorePassword
Deprecated. -
getTransactionTimeout
public int getTransactionTimeout()Deprecated. -
isWidenUnsignedTypes
public boolean isWidenUnsignedTypes()Deprecated.- Specified by:
isWidenUnsignedTypesin interfaceClickHouseDataConfig
-
isUseBinaryString
public boolean isUseBinaryString()Deprecated.- Specified by:
isUseBinaryStringin interfaceClickHouseDataConfig
-
isUseBlockingQueue
public boolean isUseBlockingQueue()Deprecated.- Specified by:
isUseBlockingQueuein interfaceClickHouseDataConfig
-
isUseCompilation
public boolean isUseCompilation()Deprecated.- Specified by:
isUseCompilationin interfaceClickHouseDataConfig
-
isUseObjectsInArray
public boolean isUseObjectsInArray()Deprecated.- Specified by:
isUseObjectsInArrayin interfaceClickHouseDataConfig
-
getProxyType
Deprecated. -
getProxyHost
Deprecated. -
getProxyPort
public int getProxyPort()Deprecated. -
getProxyUserName
Deprecated. -
getProxyPassword
public char[] getProxyPassword()Deprecated. -
isUseServerTimeZone
public boolean isUseServerTimeZone()Deprecated. -
isUseServerTimeZoneForDates
public boolean isUseServerTimeZoneForDates()Deprecated. -
getTimeZoneForDate
Deprecated.Gets time zone for date values.- Specified by:
getTimeZoneForDatein interfaceClickHouseDataConfig- Returns:
- time zone, could be null when
use_server_time_zone_for_dateis set tofalse.
-
getUseTimeZone
Deprecated.Gets preferred time zone. WhenisUseServerTimeZone()istrue, this returns same time zone asgetServerTimeZone().- Specified by:
getUseTimeZonein interfaceClickHouseDataConfig- Returns:
- non-null preferred time zone
-
getProductVersion
Deprecated.- Returns:
- non-empty semantic version
-
getProductRevision
Deprecated.- Returns:
- non-empty revision
-
getClientOsInfo
Deprecated.- Returns:
- non-empty O/S information
-
getClientJvmInfo
Deprecated.- Returns:
- non-empty JVM information
-
getClientUser
Deprecated.Same asClickHouseClientOption.CLIENT_USER.- Returns:
- non-empty user name
-
getClientHost
Deprecated.Same asClickHouseClientOption.CLIENT_HOST.- Returns:
- non-empty host name
-
getDefaultCredentials
Deprecated. -
getMetricRegistry
Deprecated. -
getNodeSelector
Deprecated. -
getPreferredProtocols
Deprecated. -
getPreferredTags
Deprecated. -
getAllOptions
Deprecated. -
getOption
Deprecated.Gets typed option value.ClickHouseOption.getEffectiveDefaultValue()will be called when the option is undefined.- Type Parameters:
T- type of option value, must be serializable- Parameters:
option- non-null option to lookupvalueType- non-null type of option value, must be serializable- Returns:
- typed value
-
getOption
Deprecated.Gets option value.- Parameters:
option- non-null option to lookupdefaultConfig- optional default config to retrieve default value- Returns:
- option value
-
getOption
Deprecated.Gets option value.- Parameters:
option- non-null option to lookupdefaultValue- optional default value- Returns:
- option value
-
getOption
Deprecated.Shortcut ofgetOption(ClickHouseOption, ClickHouseDefaults).- Parameters:
option- non-null option to lookup- Returns:
- option value
-
getBoolOption
Deprecated.Shortcut ofgetOption(option, Boolean.class).- Parameters:
option- non-null option to lookup- Returns:
- boolean value of the given option
-
getIntOption
Deprecated.Shortcut ofgetOption(option, Integer.class).- Parameters:
option- non-null option to lookup- Returns:
- int value of the given option
-
getLongOption
Deprecated.Shortcut ofgetOption(option, Long.class).- Parameters:
option- non-null option to lookup- Returns:
- long value of the given option
-
getStrOption
Deprecated.Shortcut ofgetOption(option, String.class).- Parameters:
option- non-null option to lookup- Returns:
- String value of the given option
-
hasOption
Deprecated.Test whether a given option is configured or not.- Parameters:
option- option to test- Returns:
- true if the option is configured; false otherwise
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
getReadTimeout
public int getReadTimeout()Deprecated.- Specified by:
getReadTimeoutin interfaceClickHouseDataConfig
-
getWriteTimeout
public int getWriteTimeout()Deprecated.- Specified by:
getWriteTimeoutin interfaceClickHouseDataConfig
-
getReadBufferingMode
Deprecated.- Specified by:
getReadBufferingModein interfaceClickHouseDataConfig
-
getWriteBufferingMode
Deprecated.- Specified by:
getWriteBufferingModein interfaceClickHouseDataConfig
-
getColumnRenameMethod
Deprecated.- Specified by:
getColumnRenameMethodin interfaceClickHouseDataConfig
-