Package com.clickhouse.client.api.insert
Class InsertSettings
java.lang.Object
com.clickhouse.client.api.insert.InsertSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompressClientRequest(boolean enabled) Client request compression.Get all settings as an unmodifiable map.intOperation id.Gets a configuration option.booleansetDatabase(String database) Sets database to be used for a request.setDeduplicationToken(String token) Sets the deduplication token.setInputStreamCopyBufferSize(int size) Copy buffer size.setOperationId(String operationId) Operation id.voidSets a configuration option.setQueryId(String queryId) Sets the query id.
-
Constructor Details
-
InsertSettings
public InsertSettings() -
InsertSettings
-
-
Method Details
-
getOption
Gets a configuration option.- Parameters:
option- - configuration option name- Returns:
- configuration option value
-
setOption
Sets a configuration option. This method can be used to set any configuration option. There is no specific validation is done on the key or value.- Parameters:
option- - configuration option namevalue- - configuration option value
-
getAllSettings
Get all settings as an unmodifiable map.- Returns:
- all settings
-
setDeduplicationToken
Sets the deduplication token. This token will be sent to the server and can be used to identify the query.- Parameters:
token- - deduplication token- Returns:
-
getQueryId
-
setQueryId
Sets the query id. This id will be sent to the server and can be used to identify the query. -
getInputStreamCopyBufferSize
public int getInputStreamCopyBufferSize() -
setInputStreamCopyBufferSize
Copy buffer size. The buffer is used while write operation to copy data from user provided input stream to an output stream. -
getOperationId
Operation id. Used internally to register new operation. Should not be called directly. -
setOperationId
Operation id. Used internally to register new operation. Should not be called directly.- Parameters:
operationId- - operation id
-
setDatabase
Sets database to be used for a request. -
getDatabase
-
compressClientRequest
Client request compression. If set to true client will compress the request.- Parameters:
enabled- - indicates if client request compression is enabled
-
isClientRequestEnabled
public boolean isClientRequestEnabled()
-