You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/language-clients/java/client/client.mdx
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ Configuration is defined during client creation. See `com.clickhouse.client.api.
167
167
|`setConnectionRequestTimeout(long timeout, ChronoUnit unit)`|`timeout` - timeout value<br/>`unit` - time unit | Sets connection request timeout. This take effect only for getting connection from a pool. |`10000`|`connection_request_timeout`|
168
168
|`setSocketTimeout(long timeout, ChronoUnit unit)`|`timeout` - timeout value<br/>`unit` - time unit | Sets socket timeout that affects read and write operations |`0`|`socket_timeout`|
169
169
|`setExecutionTimeout(long timeout, ChronoUnit timeUnit)`|`timeout` - timeout value<br/>`timeUnit` - time unit | Sets maximum execution timeout for queries |`0`|`max_execution_time`|
|`setMaxRetries(int maxRetries)`|`maxRetries` - number of retries | Sets maximum number of retries for failures defined by `retryOnFailures`|`3`|`retry`|
172
172
173
173
</TabItem>
@@ -293,7 +293,7 @@ Server side settings can be set on the client level once while creation (see `se
293
293
...
294
294
}
295
295
```
296
-
When options are set via `setOption` method (either the `Client.Builder` or operation settings class) then server settings name should be prefixed with `clickhouse_setting_`. The `com.clickhouse.client.api.ClientConfigProperties#serverSetting()` may be handy in this case.
296
+
⚠️ When options are set via `setOption` method (either the `Client.Builder` or operation settings class) then server settings name should be prefixed with `clickhouse_setting_`. The `com.clickhouse.client.api.ClientConfigProperties#serverSetting()` may be handy in this case.
297
297
298
298
### Custom HTTP Header
299
299
@@ -760,7 +760,7 @@ Complete examples code is stored in the repo in a 'example` [folder](https://git
760
760
-[demo-service](https://github.com/ClickHouse/clickhouse-java/tree/main/examples/demo-service) - example of how to use the client in a Spring Boot application.
761
761
-[demo-kotlin-service](https://github.com/ClickHouse/clickhouse-java/tree/main/examples/demo-kotlin-service) - example of how to use the client in Ktor (Kotlin) application.
762
762
763
-
## Migration From V1 ( =< 0.7.x ) {#migration_from_v1}
763
+
## Migration Guide {#migration_guide}
764
764
765
765
766
766
Old client (V1) was using `com.clickhouse.client.ClickHouseClient#builder` as start point. The new client (V2) uses similar pattern with `com.clickhouse.client.api.Client.Builder`. Main
@@ -1006,9 +1006,36 @@ executor (see `com.clickhouse.client.api.Client.Builder#setSharedOperationExecut
1006
1006
- use any implementation of `java.io.InputStream`. V1 `com.clickhouse.data.ClickHouseInputStream` is supported but NOT recommended.
1007
1007
- once end of input stream is detected it handled accordingly. Previously output stream of a request should be closed.
- there is a single method to call. No need to create an additional request object.
1050
+
- request body stream is closed automatically when all data is copied.
1023
1051
- new low-level API is available `com.clickhouse.client.api.Client#insert(java.lang.String, java.util.List<java.lang.String>, com.clickhouse.client.api.DataStreamWriter, com.clickhouse.data.ClickHouseFormat, com.clickhouse.client.api.insert.InsertSettings)`. `com.clickhouse.client.api.DataStreamWriter` is designed to implement custom data writing logic. For instance, reading data from a
Copy file name to clipboardExpand all lines: docs/integrations/language-clients/java/jdbc/jdbc.mdx
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,11 +108,23 @@ Where possible methods will return an `SQLFeatureNotSupportedException` if the f
108
108
:::note Server Settings
109
109
110
110
All server settings should be prefixed with `clickhouse_setting_` (same as for the client [configuration](/integrations/language-clients/java/client#server-settings)).
0 commit comments