Package com.clickhouse.client.config
Enum ClickHouseClientOption
- All Implemented Interfaces:
ClickHouseOption,Serializable,Comparable<ClickHouseClientOption>,java.lang.constant.Constable
@Deprecated
public enum ClickHouseClientOption
extends Enum<ClickHouseClientOption>
implements ClickHouseOption
Deprecated.
Generic client options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Whether the client should run in async mode(e.g.Deprecated.Whether the client should discover more nodes from system tables and/or clickhouse-keeper/zookeeper.Deprecated.Number of times the buffer queue is filled up before increasing capacity of buffer queue.Deprecated.Default buffer size in byte for both request and response.Deprecated.Whether to perform health check against all nodes or just faulty ones.Deprecated.Client name.Deprecated.Whether server will compress response to client or not.Deprecated.Compression algorithm server will use to compress response, whenCOMPRESSistrue.Deprecated.Compression level for compressing server response.Deprecated.Connection timeout in milliseconds.Deprecated.Connection time to live in milliseconds.Deprecated.Custom server settings for all queries.Deprecated.Custom socket factory.Deprecated.Additional socket factory options.Deprecated.Default database.Deprecated.Whether server will decompress request from client or not.Deprecated.Compression algorithm server will use to decompress request, whenDECOMPRESSistrue.Deprecated.Compression level for decompress client request.Deprecated.Maximum number of times failover can happen for a request.Deprecated.Default format.Deprecated.Health check interval in milliseconds.Deprecated.Health check method.Deprecated.Trust Store password.Deprecated.Key Store type.Deprecated.Load balancing policy.Deprecated.Load balancing tags for filtering out nodes.Deprecated.Whether to log leading comment(as log_comment in system.query_log) of the query.Deprecated.Maximum buffer size in byte can be used for streaming.Deprecated.Deprecated.Maximum query execution time in seconds.Deprecated.Maximum number of mappers can be cached.Deprecated.Maximum queued in-memory buffers.Deprecated.Maxium queued requests.Deprecated.Maximum rows allowed in the result.Deprecated.Maximum size of thread pool for each client.Deprecated.Deprecated.Node check interval in milliseconds.Deprecated.Node discovery interval in milliseconds.Deprecated.Maximum number of nodes can be discovered at a time.Deprecated.Maximum number of nodes can be used for operation at a time.Deprecated.Product name usered in user agent.Deprecated.Set Clickhouse proxy hostname.Deprecated.Set ClickHouse proxy password.Deprecated.Set ClickHouse proxy port.Deprecated.Type of proxy can be used to access ClickHouse server.Deprecated.Set Clickhouse proxy username.Deprecated.Query ID to be attached to an operationDeprecated.Read buffer size in byte.Deprecated.Method to rename response columns.Deprecated.Whether to repeat execution when session is locked, until timed out(according toSESSION_TIMEOUTorCONNECTION_TIMEOUT).Deprecated.Request buffering mode.Deprecated.Maximum request chunk size in byte.Deprecated.Response buffering mode.Deprecated.Deprecated.Maximum number of times retry can happen for a request.Deprecated.Whether to reuse wrapper of value(e.g.Deprecated.Server revision.Deprecated.Server timezone.Deprecated.Server version.Deprecated.Whether to check if session id is validate.Deprecated.Session id.Deprecated.Session timeout in seconds.Deprecated.Type-of-service(TOS) or traffic class field in the IP header for a socket.Deprecated.Whether to enable keep-alive packets for a socket connection.Deprecated.Seconds to wait while data is being transmitted before closing the socket.Deprecated.Size of the socket receive buffer in bytes.Deprecated.Whether allows for the reuse of local addresses and ports.Deprecated.Size of the socket send buffer in bytes.Deprecated.Deprecated.Socket timeout in milliseconds.Deprecated.Whether to enable SSL for the connection.Deprecated.SSL certificiate.Deprecated.SSL key.Deprecated.SSL mode.Deprecated.SSL root certificiate.Deprecated.Transaction timeout in seconds.Deprecated.Trust Store.Deprecated.Whether to support binary string.Deprecated.Whether to use blocking queue for buffering.Deprecated.Whether to use compilation(generated byte code) in object mapping and serialization.Deprecated.Whether Object[] should be used instead of primitive arrays.Deprecated.Whether to use server time zone.Deprecated.Whether to use time zone from server for Date.Deprecated.Custom time zone.Deprecated.Whether to convert unsigned types to the next widest type(e.g.Deprecated.Write buffer size in byte. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Client host name.static final StringDeprecated.Client JVM information in format of<jvm name>/<jvm version>.static final StringDeprecated.Client O/S information in format of<o/s name>/<o/s version>.static final StringDeprecated.Client user name.static final StringDeprecated.static final StringDeprecated.Revision(shortened git commit hash) of the product.static final StringDeprecated.Semantic version of the product. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildUserAgent(String productName, String additionalProperty) Deprecated.Builds user-agent based on given product name.static ClickHouseClientOptionDeprecated.Gets client option by key.Deprecated.Deprecated.getKey()Deprecated.static StringgetSystemConfig(String propertyName, String defaultValue) Deprecated.Gets system property and fall back to the given value as needed.Class<? extends Serializable>Deprecated.booleanDeprecated.static StringreadVersionFromResource(String resourceFilePath) Deprecated.static ClickHouseClientOptionDeprecated.Returns the enum constant of this type with the specified name.static ClickHouseClientOption[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.clickhouse.config.ClickHouseOption
getDefaultValueFromEnvVar, getDefaultValueFromSysProp, getEffectiveDefaultValue, getEffectiveValue, getEnvironmentVariable, getPrefix, getSystemProperty, name
-
Enum Constant Details
-
ASYNC
Deprecated.Whether the client should run in async mode(e.g.ClickHouseClient.execute(com.clickhouse.client.ClickHouseRequest)in a separate thread). -
AUTO_DISCOVERY
Deprecated.Whether the client should discover more nodes from system tables and/or clickhouse-keeper/zookeeper. -
CUSTOM_SETTINGS
Deprecated.Custom server settings for all queries. -
CUSTOM_SOCKET_FACTORY
Deprecated.Custom socket factory. -
CUSTOM_SOCKET_FACTORY_OPTIONS
Deprecated.Additional socket factory options. Only useful only whenCUSTOM_SOCKET_FACTORYis set. -
LOAD_BALANCING_POLICY
Deprecated.Load balancing policy. -
LOAD_BALANCING_TAGS
Deprecated.Load balancing tags for filtering out nodes. -
HEALTH_CHECK_INTERVAL
Deprecated.Health check interval in milliseconds. -
HEALTH_CHECK_METHOD
Deprecated.Health check method. -
NODE_DISCOVERY_INTERVAL
Deprecated.Node discovery interval in milliseconds. -
NODE_DISCOVERY_LIMIT
Deprecated.Maximum number of nodes can be discovered at a time. -
NODE_CHECK_INTERVAL
Deprecated.Node check interval in milliseconds. -
NODE_GROUP_SIZE
Deprecated.Maximum number of nodes can be used for operation at a time. -
CHECK_ALL_NODES
Deprecated.Whether to perform health check against all nodes or just faulty ones. -
BUFFER_SIZE
Deprecated.Default buffer size in byte for both request and response. It will be reset toMAX_BUFFER_SIZEif it's too large. -
BUFFER_QUEUE_VARIATION
Deprecated.Number of times the buffer queue is filled up before increasing capacity of buffer queue. Zero or negative value means the queue length is fixed. -
READ_BUFFER_SIZE
Deprecated.Read buffer size in byte. It's mainly for input stream(e.g. reading data from server response). Its value defaults toBUFFER_SIZE, and it will be reset toMAX_BUFFER_SIZEwhen it's too large. -
WRITE_BUFFER_SIZE
Deprecated.Write buffer size in byte. It's mainly for output stream(e.g. writing data into request). Its value defaults toBUFFER_SIZE, and it will be reset toMAX_BUFFER_SIZEwhen it's too large. -
REQUEST_CHUNK_SIZE
Deprecated.Maximum request chunk size in byte. -
REQUEST_BUFFERING
Deprecated.Request buffering mode. -
RESPONSE_BUFFERING
Deprecated.Response buffering mode. -
CLIENT_NAME
Deprecated.Client name. -
COMPRESS
Deprecated.Whether server will compress response to client or not. -
DECOMPRESS
Deprecated.Whether server will decompress request from client or not. -
COMPRESS_ALGORITHM
Deprecated.Compression algorithm server will use to compress response, whenCOMPRESSistrue. -
DECOMPRESS_ALGORITHM
Deprecated.Compression algorithm server will use to decompress request, whenDECOMPRESSistrue. -
COMPRESS_LEVEL
Deprecated.Compression level for compressing server response. -
DECOMPRESS_LEVEL
Deprecated.Compression level for decompress client request. -
CONNECTION_TIMEOUT
Deprecated.Connection timeout in milliseconds. -
DATABASE
Deprecated.Default database. -
FAILOVER
Deprecated.Maximum number of times failover can happen for a request. -
FORMAT
Deprecated.Default format. -
LOG_LEADING_COMMENT
Deprecated.Whether to log leading comment(as log_comment in system.query_log) of the query. -
MAX_BUFFER_SIZE
Deprecated.Maximum buffer size in byte can be used for streaming. It's not supposed to be larger thanInteger.MAX_VALUE - 8. -
MAX_MAPPER_CACHE
Deprecated.Maximum number of mappers can be cached. -
MAX_EXECUTION_TIME
Deprecated.Maximum query execution time in seconds. -
MAX_QUEUED_BUFFERS
Deprecated.Maximum queued in-memory buffers. -
MAX_QUEUED_REQUESTS
Deprecated.Maxium queued requests. WhenMAX_THREADS_PER_CLIENTis greater than zero, this will also be applied to client's thread pool as well. -
MAX_RESULT_ROWS
Deprecated.Maximum rows allowed in the result. -
RESULT_OVERFLOW_MODE
Deprecated. -
MAX_THREADS_PER_CLIENT
Deprecated.Maximum size of thread pool for each client. -
MAX_CORE_THREAD_TTL
Deprecated. -
PRODUCT_NAME
Deprecated.Product name usered in user agent. -
RENAME_RESPONSE_COLUMN
Deprecated.Method to rename response columns. -
RETRY
Deprecated.Maximum number of times retry can happen for a request. -
REPEAT_ON_SESSION_LOCK
Deprecated.Whether to repeat execution when session is locked, until timed out(according toSESSION_TIMEOUTorCONNECTION_TIMEOUT). -
REUSE_VALUE_WRAPPER
Deprecated.Whether to reuse wrapper of value(e.g. ClickHouseValue or ClickHouseRecord) for memory efficiency. -
SERVER_REVISION
Deprecated.Server revision. -
SERVER_TIME_ZONE
Deprecated.Server timezone. -
SERVER_VERSION
Deprecated.Server version. -
SESSION_ID
Deprecated.Session id. -
SESSION_CHECK
Deprecated.Whether to check if session id is validate. -
SESSION_TIMEOUT
Deprecated.Session timeout in seconds. -
SOCKET_TIMEOUT
Deprecated.Socket timeout in milliseconds. -
SOCKET_REUSEADDR
Deprecated.Whether allows for the reuse of local addresses and ports. SeeStandardSocketOptions.SO_REUSEADDR. -
SOCKET_KEEPALIVE
Deprecated.Whether to enable keep-alive packets for a socket connection. SeeStandardSocketOptions.SO_KEEPALIVE. -
SOCKET_LINGER
Deprecated.Seconds to wait while data is being transmitted before closing the socket. Use negative number to disable the option. SeeStandardSocketOptions.SO_LINGER. -
SOCKET_IP_TOS
Deprecated.Type-of-service(TOS) or traffic class field in the IP header for a socket. SeeStandardSocketOptions.IP_TOS. -
SOCKET_TCP_NODELAY
Deprecated. -
SOCKET_RCVBUF
Deprecated.Size of the socket receive buffer in bytes. SeeStandardSocketOptions.SO_RCVBUF. -
SOCKET_SNDBUF
Deprecated.Size of the socket send buffer in bytes. SeeStandardSocketOptions.SO_SNDBUF. -
SSL
Deprecated.Whether to enable SSL for the connection. -
SSL_MODE
Deprecated.SSL mode. -
SSL_ROOT_CERTIFICATE
Deprecated.SSL root certificiate. -
SSL_CERTIFICATE
Deprecated.SSL certificiate. -
SSL_KEY
Deprecated.SSL key. -
KEY_STORE_TYPE
Deprecated.Key Store type. -
TRUST_STORE
Deprecated.Trust Store. -
KEY_STORE_PASSWORD
Deprecated.Trust Store password. -
TRANSACTION_TIMEOUT
Deprecated.Transaction timeout in seconds. -
WIDEN_UNSIGNED_TYPES
Deprecated.Whether to convert unsigned types to the next widest type(e.g. useshortfor UInt8 instead ofbyte, andUnsignedLongfor UInt64). -
USE_BINARY_STRING
Deprecated.Whether to support binary string. Enable this option to treatFixedStringandStringas byte array. -
USE_BLOCKING_QUEUE
Deprecated.Whether to use blocking queue for buffering. -
USE_COMPILATION
Deprecated.Whether to use compilation(generated byte code) in object mapping and serialization. -
USE_OBJECTS_IN_ARRAYS
Deprecated.Whether Object[] should be used instead of primitive arrays. -
PROXY_TYPE
Deprecated.Type of proxy can be used to access ClickHouse server. To use an HTTP/SOCKS proxy, you must specify thePROXY_HOSTandPROXY_PORT. -
PROXY_HOST
Deprecated.Set Clickhouse proxy hostname. -
PROXY_PORT
Deprecated.Set ClickHouse proxy port. -
PROXY_USERNAME
Deprecated.Set Clickhouse proxy username. -
PROXY_PASSWORD
Deprecated.Set ClickHouse proxy password. -
USE_SERVER_TIME_ZONE
Deprecated.Whether to use server time zone. -
USE_SERVER_TIME_ZONE_FOR_DATES
Deprecated.Whether to use time zone from server for Date. -
USE_TIME_ZONE
Deprecated.Custom time zone. Only works whenuse_server_time_zoneis set to false. -
QUERY_ID
Deprecated.Query ID to be attached to an operation -
CONNECTION_TTL
Deprecated.Connection time to live in milliseconds. 0 or negative number means no limit. Can be used to override keep-alive time suggested by a server. -
MEASURE_REQUEST_TIME
Deprecated.
-
-
Field Details
-
LATEST_KNOWN_VERSION
Deprecated.- See Also:
-
PRODUCT_VERSION
Deprecated.Semantic version of the product. -
PRODUCT_REVISION
Deprecated.Revision(shortened git commit hash) of the product. -
CLIENT_OS_INFO
Deprecated.Client O/S information in format of<o/s name>/<o/s version>. -
CLIENT_JVM_INFO
Deprecated.Client JVM information in format of<jvm name>/<jvm version>. -
CLIENT_USER
Deprecated.Client user name. -
CLIENT_HOST
Deprecated.Client host name.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
readVersionFromResource
Deprecated. -
buildUserAgent
Deprecated.Builds user-agent based on given product name. The user-agent will be something look like<product name>/<product version> (<o/s name>/<o/s version>; <jvm name>/<jvm version>[; <additionalProperty>]; rv:<product revision>).- Parameters:
productName- product name, null or blank string is treated asClickHouse Java ClientadditionalProperty- additional property if any- Returns:
- non-empty user-agent
-
getSystemConfig
Deprecated.Gets system property and fall back to the given value as needed.- Parameters:
propertyName- non-null property namedefaultValue- default value, only useful if it's not null- Returns:
- property value
-
fromKey
Deprecated.Gets client option by key.- Parameters:
key- key of the option- Returns:
- client option object, or null if not found
-
getDefaultValue
Deprecated.- Specified by:
getDefaultValuein interfaceClickHouseOption
-
getDescription
Deprecated.- Specified by:
getDescriptionin interfaceClickHouseOption
-
getKey
Deprecated.- Specified by:
getKeyin interfaceClickHouseOption
-
getValueType
Deprecated.- Specified by:
getValueTypein interfaceClickHouseOption
-
isSensitive
public boolean isSensitive()Deprecated.- Specified by:
isSensitivein interfaceClickHouseOption
-