Package com.clickhouse.client.config
Enum ClickHouseDefaults
- All Implemented Interfaces:
ClickHouseOption,Serializable,Comparable<ClickHouseDefaults>,java.lang.constant.Constable
System-wide default options. System properties and environment variables can
be set to change default value.
For example, by default ASYNC is set to true. However, you
can change it to false by either specifying
-Ddefault_async=false on the Java command line, or setting
environment variable DEFAULT_ASYNC=false.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault execution mode.Whether to create session automatically when there are multiple queries.Default buffering mode.Default database.Default format.Default server host.Max requests.Maximum number of threads that the scheduler(shared by all client instances) can use to run the adhoc/scheduled tasks like discovery and health check.Max threads.Default password.Default protocol.Rounding mode for type conversion.Server time zone, defaults toUTC.Server version, defaults tolatest.Whether to resolve DNS SRV name usingSrvResolver(e.g.SSL certificiate type.SSL key algorithm.SSL key.Thread keep alive timeout in milliseconds.Default user. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Class<? extends Serializable>booleanstatic ClickHouseDefaultsReturns the enum constant of this type with the specified name.static ClickHouseDefaults[]values()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, getSystemProperty, name
-
Enum Constant Details
-
ASYNC
Default execution mode. -
AUTO_SESSION
Whether to create session automatically when there are multiple queries. -
BUFFERING
Default buffering mode. -
HOST
Default server host. -
PROTOCOL
Default protocol. -
DATABASE
Default database. -
USER
Default user. -
PASSWORD
Default password. -
FORMAT
Default format. -
MAX_SCHEDULER_THREADS
Maximum number of threads that the scheduler(shared by all client instances) can use to run the adhoc/scheduled tasks like discovery and health check. -
MAX_THREADS
Max threads. -
MAX_REQUESTS
Max requests. -
ROUNDING_MODE
Rounding mode for type conversion. -
THREAD_KEEPALIVE_TIMEOUT
Thread keep alive timeout in milliseconds. -
SERVER_TIME_ZONE
Server time zone, defaults toUTC. -
SERVER_VERSION
Server version, defaults tolatest. -
SSL_CERTIFICATE_TYPE
SSL certificiate type. -
SSL_KEY_ALGORITHM
SSL key algorithm. -
SSL_PROTOCOL
SSL key. -
SRV_RESOLVE
Whether to resolve DNS SRV name usingSrvResolver(e.g. resolve SRV record to extract both host and port from a given name).
-
-
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
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceClickHouseOption
-
getDescription
- Specified by:
getDescriptionin interfaceClickHouseOption
-
getKey
- Specified by:
getKeyin interfaceClickHouseOption
-
getPrefix
- Specified by:
getPrefixin interfaceClickHouseOption
-
getValueType
- Specified by:
getValueTypein interfaceClickHouseOption
-
isSensitive
public boolean isSensitive()- Specified by:
isSensitivein interfaceClickHouseOption
-