Package com.clickhouse.data
Class ClickHouseDataConfig.Wrapped
java.lang.Object
com.clickhouse.data.ClickHouseDataConfig.Wrapped
- All Implemented Interfaces:
ClickHouseDataConfig,Serializable
- Direct Known Subclasses:
ClickHouseDataProcessor.UseObjectConfig
- Enclosing interface:
- ClickHouseDataConfig
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.clickhouse.data.ClickHouseDataConfig
ClickHouseDataConfig.Wrapped -
Field Summary
Fields inherited from interface com.clickhouse.data.ClickHouseDataConfig
DEFAULT_ASYNC, DEFAULT_BUFFER_QUEUE_VARIATION, DEFAULT_BUFFER_SIZE, DEFAULT_BUFFERING_MODE, DEFAULT_COLUMN_RENAME_METHOD, DEFAULT_COMPRESS_LEVEL, DEFAULT_FORMAT, DEFAULT_MAX_BUFFER_SIZE, DEFAULT_MAX_MAPPER_CACHE, DEFAULT_MAX_QUEUED_BUFFERS, DEFAULT_READ_BUFFER_SIZE, DEFAULT_READ_COMPRESS_LEVEL, DEFAULT_REUSE_VALUE_WRAPPER, DEFAULT_ROUNDING_MODE, DEFAULT_TIMEOUT, DEFAULT_USE_BINARY_STRING, DEFAULT_USE_BLOCKING_QUEUE, DEFAULT_USE_COMPILATION, DEFAULT_USE_OBJECT_IN_ARRAY, DEFAULT_WIDEN_UNSIGNED_TYPE, DEFAULT_WRITE_BUFFER_SIZE, DEFAULT_WRITE_COMPRESS_LEVEL, TYPE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets number of times the buffer queue is filled up before increasing capacity of buffer queue.intGets buffer size in byte can be used for streaming.Gets column rename method.Gets data format.intGets max buffer size in byte can be used for streaming.intGets maximum number of mappers can be cached.intGets maximum number of buffers can be queued for processing.Gets buffering mode for reading.intGets read buffer size in byte.intGets read timeout in milliseconds.Gets time zone for date values.Gets preferred time zone.Gets buffering mode for writing.intGets write buffer size in byte.intGets write timeout in milliseconds.booleanisAsync()Checks whether async call is used.booleanChecks whether value wrapperClickHouseValueshould be reused.booleanChecks whether binary string is supported.booleanChecks whether blocking queue(mainly for piped stream) is used or not.booleanChecks whether compilation is used in object mapping and serialization.booleanChecks whether object(instead of primitive) is used in array.booleanChecks whether widening is enabled for unsigned types, for instance: uselong(instead ofint) in Java to representUInt32in ClickHouse.
-
Constructor Details
-
Wrapped
-
-
Method Details
-
isAsync
public boolean isAsync()Description copied from interface:ClickHouseDataConfigChecks whether async call is used.- Specified by:
isAsyncin interfaceClickHouseDataConfig- Returns:
- true if async call is used; false otherwise
-
getFormat
Description copied from interface:ClickHouseDataConfigGets data format.- Specified by:
getFormatin interfaceClickHouseDataConfig- Returns:
- non-null data format
-
getBufferQueueVariation
public int getBufferQueueVariation()Description copied from interface:ClickHouseDataConfigGets 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.- Specified by:
getBufferQueueVariationin interfaceClickHouseDataConfig- Returns:
- variation
-
getBufferSize
public int getBufferSize()Description copied from interface:ClickHouseDataConfigGets buffer size in byte can be used for streaming.- Specified by:
getBufferSizein interfaceClickHouseDataConfig- Returns:
- buffer size in byte
-
getMaxBufferSize
public int getMaxBufferSize()Description copied from interface:ClickHouseDataConfigGets max buffer size in byte can be used for streaming.- Specified by:
getMaxBufferSizein interfaceClickHouseDataConfig- Returns:
- max buffer size in byte
-
getReadBufferSize
public int getReadBufferSize()Description copied from interface:ClickHouseDataConfigGets read buffer size in byte.- Specified by:
getReadBufferSizein interfaceClickHouseDataConfig- Returns:
- read buffer size in byte
-
getWriteBufferSize
public int getWriteBufferSize()Description copied from interface:ClickHouseDataConfigGets write buffer size in byte.- Specified by:
getWriteBufferSizein interfaceClickHouseDataConfig- Returns:
- write buffer size in byte
-
getReadTimeout
public int getReadTimeout()Description copied from interface:ClickHouseDataConfigGets read timeout in milliseconds.- Specified by:
getReadTimeoutin interfaceClickHouseDataConfig- Returns:
- read time out in milliseconds
-
getWriteTimeout
public int getWriteTimeout()Description copied from interface:ClickHouseDataConfigGets write timeout in milliseconds.- Specified by:
getWriteTimeoutin interfaceClickHouseDataConfig- Returns:
- write time out in milliseconds
-
getReadBufferingMode
Description copied from interface:ClickHouseDataConfigGets buffering mode for reading.- Specified by:
getReadBufferingModein interfaceClickHouseDataConfig- Returns:
- non-null buffering mode for reading
-
getWriteBufferingMode
Description copied from interface:ClickHouseDataConfigGets buffering mode for writing.- Specified by:
getWriteBufferingModein interfaceClickHouseDataConfig- Returns:
- non-null buffering mode for writing
-
getColumnRenameMethod
Description copied from interface:ClickHouseDataConfigGets column rename method.- Specified by:
getColumnRenameMethodin interfaceClickHouseDataConfig- Returns:
- non-null column rename method
-
getMaxMapperCache
public int getMaxMapperCache()Description copied from interface:ClickHouseDataConfigGets maximum number of mappers can be cached.- Specified by:
getMaxMapperCachein interfaceClickHouseDataConfig- Returns:
- maximum number of mappers can be cached
-
getMaxQueuedBuffers
public int getMaxQueuedBuffers()Description copied from interface:ClickHouseDataConfigGets maximum number of buffers can be queued for processing.- Specified by:
getMaxQueuedBuffersin interfaceClickHouseDataConfig- Returns:
- maximum number of buffers can be queued
-
getTimeZoneForDate
Description copied from interface:ClickHouseDataConfigGets time zone for date values.- Specified by:
getTimeZoneForDatein interfaceClickHouseDataConfig- Returns:
- time zone, could be null
-
getUseTimeZone
Description copied from interface:ClickHouseDataConfigGets preferred time zone.- Specified by:
getUseTimeZonein interfaceClickHouseDataConfig- Returns:
- non-null preferred time zone
-
isReuseValueWrapper
public boolean isReuseValueWrapper()Description copied from interface:ClickHouseDataConfigChecks whether value wrapperClickHouseValueshould be reused.- Specified by:
isReuseValueWrapperin interfaceClickHouseDataConfig- Returns:
- true if value wrapper will be reused; false otherwise
-
isUseBinaryString
public boolean isUseBinaryString()Description copied from interface:ClickHouseDataConfigChecks whether binary string is supported.- Specified by:
isUseBinaryStringin interfaceClickHouseDataConfig- Returns:
- true if binary string is supported; false otherwise
-
isUseBlockingQueue
public boolean isUseBlockingQueue()Description copied from interface:ClickHouseDataConfigChecks whether blocking queue(mainly for piped stream) is used or not.- Specified by:
isUseBlockingQueuein interfaceClickHouseDataConfig- Returns:
- true if blocking queue is used; false indicates that non-blocking queue is used(faster but consumed more CPU)
-
isUseCompilation
public boolean isUseCompilation()Description copied from interface:ClickHouseDataConfigChecks whether compilation is used in object mapping and serialization.- Specified by:
isUseCompilationin interfaceClickHouseDataConfig- Returns:
- true if compilation is used; false otherwise
-
isUseObjectsInArray
public boolean isUseObjectsInArray()Description copied from interface:ClickHouseDataConfigChecks whether object(instead of primitive) is used in array.- Specified by:
isUseObjectsInArrayin interfaceClickHouseDataConfig- Returns:
- true if object is used in array; false indicates that primitive type is used(no auto-boxing and less memory footprint)
-
isWidenUnsignedTypes
public boolean isWidenUnsignedTypes()Description copied from interface:ClickHouseDataConfigChecks whether widening is enabled for unsigned types, for instance: uselong(instead ofint) in Java to representUInt32in ClickHouse.- Specified by:
isWidenUnsignedTypesin interfaceClickHouseDataConfig- Returns:
- true if widening is enabled; false indicates that same type is shared
by signed and unsigned types(e.g.
intfor bothInt32andUInt32)
-