Enum ClickHouseDefaults

  • All Implemented Interfaces:
    ClickHouseOption, Serializable, Comparable<ClickHouseDefaults>

    public enum ClickHouseDefaults
    extends Enum<ClickHouseDefaults>
    implements ClickHouseOption
    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.

    • Enum Constant Detail

      • AUTO_SESSION

        public static final ClickHouseDefaults AUTO_SESSION
        Whether to create session automatically when there are multiple queries.
      • MAX_SCHEDULER_THREADS

        public static final ClickHouseDefaults 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.
      • ROUNDING_MODE

        public static final ClickHouseDefaults ROUNDING_MODE
        Rounding mode for type conversion.
      • THREAD_KEEPALIVE_TIMEOUT

        public static final ClickHouseDefaults THREAD_KEEPALIVE_TIMEOUT
        Thread keep alive timeout in milliseconds.
      • SERVER_TIME_ZONE

        public static final ClickHouseDefaults SERVER_TIME_ZONE
        Server time zone, defaults to UTC.
      • SERVER_VERSION

        public static final ClickHouseDefaults SERVER_VERSION
        Server version, defaults to latest.
      • SSL_CERTIFICATE_TYPE

        public static final ClickHouseDefaults SSL_CERTIFICATE_TYPE
        SSL certificiate type.
      • SSL_KEY_ALGORITHM

        public static final ClickHouseDefaults SSL_KEY_ALGORITHM
        SSL key algorithm.
      • SRV_RESOLVE

        public static final ClickHouseDefaults SRV_RESOLVE
        Whether to resolve DNS SRV name using SrvResolver(e.g. resolve SRV record to extract both host and port from a given name).
    • Method Detail

      • values

        public static ClickHouseDefaults[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClickHouseDefaults c : ClickHouseDefaults.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClickHouseDefaults valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • getPrefix

        public String getPrefix()
        Description copied from interface: ClickHouseOption
        Gets prefix of environment variable and system property.
        Specified by:
        getPrefix in interface ClickHouseOption
        Returns:
        prefix of environment variable and system property