![JAR search and dependency download from the Maven repository](/logo.png)
com.clickhouse.client.api.ClientSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-v2 Show documentation
Show all versions of client-v2 Show documentation
New client api for ClickHouse
package com.clickhouse.client.api;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
/**
* All known client settings at current version.
*
*/
public class ClientSettings {
public static final String HTTP_HEADER_PREFIX = "http_header_";
public static final String SERVER_SETTING_PREFIX = "clickhouse_setting_";
public static String commaSeparated(Collection> values) {
StringBuilder sb = new StringBuilder();
for (Object value : values) {
sb.append(value.toString().replaceAll(",", "\\,")).append(",");
}
sb.setLength(sb.length() - 1);
return sb.toString();
}
public static List valuesFromCommaSeparated(String value) {
return Arrays.stream(value.split(",")).map(s -> s.replaceAll("\\\\,", ","))
.collect(Collectors.toList());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy