Class ClickHouseConfig

    • Constructor Detail

      • ClickHouseConfig

        public ClickHouseConfig​(ClickHouseConfig... configs)
        Construct a new configuration by consolidating given ones.
        Parameters:
        configs - list of configuration
      • ClickHouseConfig

        public ClickHouseConfig​(List<ClickHouseConfig> configs)
        Construct a new configuration by consolidating given ones.
        Parameters:
        configs - list of configuration
    • Method Detail

      • isAsync

        public boolean isAsync()
      • getClientName

        public String getClientName()
      • isCompressServerResponse

        public boolean isCompressServerResponse()
      • getCompressAlgorithmForServerResponse

        public ClickHouseCompression getCompressAlgorithmForServerResponse()
      • getCompressLevelForServerResponse

        public int getCompressLevelForServerResponse()
      • isDecompressClientRequet

        public boolean isDecompressClientRequet()
      • getDecompressAlgorithmForClientRequest

        public ClickHouseCompression getDecompressAlgorithmForClientRequest()
      • getDecompressLevelForClientRequest

        public int getDecompressLevelForClientRequest()
      • getConnectionTimeout

        public int getConnectionTimeout()
      • getDatabase

        public String getDatabase()
      • getMaxBufferSize

        public int getMaxBufferSize()
      • getMaxExecutionTime

        public int getMaxExecutionTime()
      • getMaxQueuedBuffers

        public int getMaxQueuedBuffers()
      • getMaxQueuedRequests

        public int getMaxQueuedRequests()
      • getMaxResultRows

        public int getMaxResultRows()
      • getMaxThreadsPerClient

        public int getMaxThreadsPerClient()
      • isRetry

        public boolean isRetry()
      • isReuseValueWrapper

        public boolean isReuseValueWrapper()
      • hasServerInfo

        public boolean hasServerInfo()
        Checks whether we got all server information(e.g. timezone and version).
        Returns:
        true if we got all server information; false otherwise
      • getServerTimeZone

        public TimeZone getServerTimeZone()
      • getSessionTimeout

        public int getSessionTimeout()
      • isSessionCheck

        public boolean isSessionCheck()
      • getSocketTimeout

        public int getSocketTimeout()
      • isSsl

        public boolean isSsl()
      • getSslRootCert

        public String getSslRootCert()
      • getSslCert

        public String getSslCert()
      • getSslKey

        public String getSslKey()
      • isUseObjectsInArray

        public boolean isUseObjectsInArray()
      • isUseServerTimeZone

        public boolean isUseServerTimeZone()
      • isUseServerTimeZoneForDates

        public boolean isUseServerTimeZoneForDates()
      • getTimeZoneForDate

        public TimeZone getTimeZoneForDate()
        Gets time zone for date values.
        Returns:
        time zone, could be null when use_server_time_zone_for_date is set to false.
      • getPreferredTags

        public Set<String> getPreferredTags()
      • hasOption

        public boolean hasOption​(ClickHouseOption option)
        Test whether a given option is configured or not.
        Parameters:
        option - option to test
        Returns:
        true if the option is configured; false otherwise