Package com.clickhouse.client.api
Enum ClientConfigProperties
- All Implemented Interfaces:
Serializable,Comparable<ClientConfigProperties>,java.lang.constant.Constable
Enumerates all client properties that are known at release.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that data provided for write operation is compressed by application.HTTP keep-alive timeout override.Maximum number of active connection in internal connection pool.Name of the group under which client metrics appearDeprecated.SNI SSL parameter that will be set for each outbound SSL socket.Defines mapping between ClickHouse data type and target Java type Used by binary readers to convert values into desired Java type. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> voidapplyIfSet(Map<String, Object> configMap, Consumer<T> consumer) static StringcommaSeparated(Collection<?> values) <T> TgetKey()<T> TgetOrDefault(Map<String, Object> configMap) static StringhttpHeader(String key) static StringmapToString(Map<?, ?> map, Function<Object, String> valueConverter) parseConfigMap(Map<String, String> configMap) parseValue(String value) static StringserverSetting(String key) toKeyValuePairs(String str) Converts given string to key value pairs.static Map<ClickHouseDataType,Class<?>> translateTypeHintMapping(String mappingStr) static ClientConfigPropertiesReturns the enum constant of this type with the specified name.static ClientConfigProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.valuesFromCommaSeparated(String value)
-
Enum Constant Details
-
SESSION_DB_ROLES
-
SETTING_LOG_COMMENT
-
HTTP_USE_BASIC_AUTH
-
USER
-
PASSWORD
-
HTTP_MAX_OPEN_CONNECTIONS
Maximum number of active connection in internal connection pool. -
HTTP_KEEP_ALIVE_TIMEOUT
HTTP keep-alive timeout override. -
USE_SERVER_TIMEZONE
-
USE_TIMEZONE
-
SERVER_VERSION
-
SERVER_TIMEZONE
-
ASYNC_OPERATIONS
-
CONNECTION_TTL
-
CONNECTION_TIMEOUT
-
CONNECTION_REUSE_STRATEGY
-
SOCKET_OPERATION_TIMEOUT
-
SOCKET_RCVBUF_OPT
-
SOCKET_SNDBUF_OPT
-
SOCKET_REUSEADDR_OPT
-
SOCKET_KEEPALIVE_OPT
-
SOCKET_TCP_NO_DELAY_OPT
-
SOCKET_LINGER_OPT
-
DATABASE
-
COMPRESS_SERVER_RESPONSE
-
COMPRESS_CLIENT_REQUEST
-
USE_HTTP_COMPRESSION
-
COMPRESSION_LZ4_UNCOMPRESSED_BUF_SIZE
-
DISABLE_NATIVE_COMPRESSION
-
PROXY_TYPE
-
PROXY_HOST
-
PROXY_PORT
-
PROXY_USER
-
PROXY_PASSWORD
-
MAX_EXECUTION_TIME
-
SSL_TRUST_STORE
-
SSL_KEYSTORE_TYPE
-
SSL_KEY_STORE
-
SSL_KEY_STORE_PASSWORD
-
SSL_KEY
-
CA_CERTIFICATE
-
SSL_CERTIFICATE
-
RETRY_ON_FAILURE
-
INPUT_OUTPUT_FORMAT
-
MAX_THREADS_PER_CLIENT
-
QUERY_ID
-
CLIENT_NETWORK_BUFFER_SIZE
-
ACCESS_TOKEN
-
SSL_AUTH
-
CONNECTION_POOL_ENABLED
-
CONNECTION_REQUEST_TIMEOUT
-
CLIENT_RETRY_ON_FAILURE
-
CLIENT_NAME
-
PRODUCT_NAME
Deprecated.An old alias toCLIENT_NAME. Using the last one is preferred. -
BEARERTOKEN_AUTH
-
APP_COMPRESSED_DATA
Indicates that data provided for write operation is compressed by application. -
METRICS_GROUP_NAME
Name of the group under which client metrics appear -
HTTP_SAVE_COOKIES
-
BINARY_READER_USE_PREALLOCATED_BUFFERS
-
TYPE_HINT_MAPPING
Defines mapping between ClickHouse data type and target Java type Used by binary readers to convert values into desired Java type. -
SSL_SOCKET_SNI
SNI SSL parameter that will be set for each outbound SSL socket.
-
-
Field Details
-
HTTP_HEADER_PREFIX
- See Also:
-
SERVER_SETTING_PREFIX
- See Also:
-
DEFAULT_KEY
- See Also:
-
-
Method Details
-
values
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
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
-
getKey
-
getDefaultValue
-
getDefObjVal
public <T> T getDefObjVal() -
serverSetting
-
httpHeader
-
commaSeparated
-
valuesFromCommaSeparated
-
parseValue
-
getOrDefault
-
applyIfSet
-
parseConfigMap
-
toKeyValuePairs
Converts given string to key value pairs. This is very simple implementation that do not handle edge cases likek1=v1, ,k2=v2- Parameters:
str- string- Returns:
- non-null key value pairs
-
mapToString
-
translateTypeHintMapping
-