Class InsertSettings

java.lang.Object
com.clickhouse.client.api.insert.InsertSettings

public class InsertSettings extends Object
  • Constructor Details

    • InsertSettings

      public InsertSettings()
    • InsertSettings

      public InsertSettings(Map<String,Object> settings)
  • Method Details

    • getOption

      public Object getOption(String option)
      Gets a configuration option.
      Parameters:
      option - - configuration option name
      Returns:
      configuration option value
    • setOption

      public void setOption(String option, Object value)
      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 name
      value - - configuration option value
    • getAllSettings

      public Map<String,Object> getAllSettings()
      Get all settings as an unmodifiable map.
      Returns:
      all settings
    • setDeduplicationToken

      public InsertSettings setDeduplicationToken(String token)
      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

      public String getQueryId()
    • setQueryId

      public InsertSettings setQueryId(String queryId)
      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

      public InsertSettings setInputStreamCopyBufferSize(int size)
      Copy buffer size. The buffer is used while write operation to copy data from user provided input stream to an output stream.
    • getOperationId

      public String getOperationId()
      Operation id. Used internally to register new operation. Should not be called directly.
    • setOperationId

      public InsertSettings setOperationId(String operationId)
      Operation id. Used internally to register new operation. Should not be called directly.
      Parameters:
      operationId - - operation id
    • setDatabase

      public InsertSettings setDatabase(String database)
      Sets database to be used for a request.
    • getDatabase

      public String getDatabase()
    • compressClientRequest

      public InsertSettings compressClientRequest(boolean enabled)
      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()