Enum ClickHouseClientOption

    • Enum Constant Detail

      • AUTO_DISCOVERY

        public static final ClickHouseClientOption AUTO_DISCOVERY
        Whether the client should discover more nodes from system tables and/or clickhouse-keeper/zookeeper.
      • LOAD_BALANCING_POLICY

        public static final ClickHouseClientOption LOAD_BALANCING_POLICY
        Load balancing policy.
      • LOAD_BALANCING_TAGS

        public static final ClickHouseClientOption LOAD_BALANCING_TAGS
        Load balancing tags for filtering out nodes.
      • HEALTH_CHECK_INTERVAL

        public static final ClickHouseClientOption HEALTH_CHECK_INTERVAL
        Health check interval in milliseconds.
      • NODE_DISCOVERY_INTERVAL

        public static final ClickHouseClientOption NODE_DISCOVERY_INTERVAL
        Node discovery interval in milliseconds.
      • NODE_DISCOVERY_LIMIT

        public static final ClickHouseClientOption NODE_DISCOVERY_LIMIT
        Maximum number of nodes can be discovered at a time.
      • NODE_CHECK_INTERVAL

        public static final ClickHouseClientOption NODE_CHECK_INTERVAL
        Node check interval in milliseconds.
      • NODE_GROUP_SIZE

        public static final ClickHouseClientOption NODE_GROUP_SIZE
        Maximum number of nodes can be used for operation at a time.
      • CHECK_ALL_NODES

        public static final ClickHouseClientOption CHECK_ALL_NODES
        Whether to perform health check against all nodes or just faulty ones.
      • BUFFER_QUEUE_VARIATION

        public static final ClickHouseClientOption BUFFER_QUEUE_VARIATION
        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

        public static final ClickHouseClientOption READ_BUFFER_SIZE
        Read buffer size in byte. It's mainly for input stream(e.g. reading data from server response). Its value defaults to BUFFER_SIZE, and it will be reset to MAX_BUFFER_SIZE when it's too large.
      • WRITE_BUFFER_SIZE

        public static final ClickHouseClientOption WRITE_BUFFER_SIZE
        Write buffer size in byte. It's mainly for output stream(e.g. writing data into request). Its value defaults to BUFFER_SIZE, and it will be reset to MAX_BUFFER_SIZE when it's too large.
      • REQUEST_CHUNK_SIZE

        public static final ClickHouseClientOption REQUEST_CHUNK_SIZE
        Maximum request chunk size in byte.
      • COMPRESS

        public static final ClickHouseClientOption COMPRESS
        Whether server will compress response to client or not.
      • DECOMPRESS

        public static final ClickHouseClientOption DECOMPRESS
        Whether server will decompress request from client or not.
      • COMPRESS_ALGORITHM

        public static final ClickHouseClientOption COMPRESS_ALGORITHM
        Compression algorithm server will use to compress response, when COMPRESS is true.
      • DECOMPRESS_ALGORITHM

        public static final ClickHouseClientOption DECOMPRESS_ALGORITHM
        Compression algorithm server will use to decompress request, when DECOMPRESS is true.
      • COMPRESS_LEVEL

        public static final ClickHouseClientOption COMPRESS_LEVEL
        Compression level for compressing server response.
      • DECOMPRESS_LEVEL

        public static final ClickHouseClientOption DECOMPRESS_LEVEL
        Compression level for decompress client request.
      • CONNECTION_TIMEOUT

        public static final ClickHouseClientOption CONNECTION_TIMEOUT
        Connection timeout in milliseconds.
      • FAILOVER

        public static final ClickHouseClientOption FAILOVER
        Maximum number of times failover can happen for a request.
      • LOG_LEADING_COMMENT

        public static final ClickHouseClientOption LOG_LEADING_COMMENT
        Whether to log leading comment(as log_comment in system.query_log) of the query.
      • MAX_BUFFER_SIZE

        public static final ClickHouseClientOption MAX_BUFFER_SIZE
        Maximum buffer size in byte can be used for streaming. It's not supposed to be larger than Integer.MAX_VALUE - 8.
      • MAX_COMPRESS_BLOCK_SIZE

        @Deprecated
        public static final ClickHouseClientOption MAX_COMPRESS_BLOCK_SIZE
        Deprecated.
        will be removed in v0.3.3
        Maximum comression block size in byte, only useful when DECOMPRESS is true.
      • MAX_EXECUTION_TIME

        public static final ClickHouseClientOption MAX_EXECUTION_TIME
        Maximum query execution time in seconds.
      • MAX_QUEUED_BUFFERS

        public static final ClickHouseClientOption MAX_QUEUED_BUFFERS
        Maximum queued in-memory buffers.
      • MAX_RESULT_ROWS

        public static final ClickHouseClientOption MAX_RESULT_ROWS
        Maximum rows allowed in the result.
      • MAX_THREADS_PER_CLIENT

        public static final ClickHouseClientOption MAX_THREADS_PER_CLIENT
        Maximum size of thread pool for each client.
      • RENAME_RESPONSE_COLUMN

        public static final ClickHouseClientOption RENAME_RESPONSE_COLUMN
        Method to rename response columns.
      • RETRY

        public static final ClickHouseClientOption RETRY
        Maximum number of times retry can happen for a request.
      • REUSE_VALUE_WRAPPER

        public static final ClickHouseClientOption REUSE_VALUE_WRAPPER
        Whether to reuse wrapper of value(e.g. ClickHouseValue or ClickHouseRecord) for memory efficiency.
      • SESSION_CHECK

        public static final ClickHouseClientOption SESSION_CHECK
        Whether to check if session id is validate.
      • SSL_ROOT_CERTIFICATE

        public static final ClickHouseClientOption SSL_ROOT_CERTIFICATE
        SSL root certificiate.
      • TRANSACTION_TIMEOUT

        public static final ClickHouseClientOption TRANSACTION_TIMEOUT
        Transaction timeout in seconds.
      • USE_BLOCKING_QUEUE

        public static final ClickHouseClientOption USE_BLOCKING_QUEUE
        Whether to use blocking queue for buffering.
      • USE_OBJECTS_IN_ARRAYS

        public static final ClickHouseClientOption USE_OBJECTS_IN_ARRAYS
        Whether to use objects in array or not.
      • USE_NO_PROXY

        public static final ClickHouseClientOption USE_NO_PROXY
        Whether to access ClickHouse server directly without using system wide proxy including the one defined in JVM system properties.
      • USE_SERVER_TIME_ZONE

        public static final ClickHouseClientOption USE_SERVER_TIME_ZONE
        Whether to use server time zone.
      • USE_SERVER_TIME_ZONE_FOR_DATES

        public static final ClickHouseClientOption USE_SERVER_TIME_ZONE_FOR_DATES
        Whether to use time zone from server for Date.
      • USE_TIME_ZONE

        public static final ClickHouseClientOption USE_TIME_ZONE
        Custom time zone. Only works when use_server_time_zone is set to false.
    • Method Detail

      • values

        public static ClickHouseClientOption[] 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 (ClickHouseClientOption c : ClickHouseClientOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClickHouseClientOption 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
      • fromKey

        public static ClickHouseClientOption fromKey​(String key)
        Gets client option by key.
        Parameters:
        key - key of the option
        Returns:
        client option object, or null if not found