public void apply(StringBuilder builder, String[] values) {
        int len = values == null ? 0 : values.length;
        if (len == 0) {
            apply(builder, Collections.emptyMap());
            return;
        }

        Map<String, String> map = new HashMap<>();
        int index = 0;
        for (String n : names.keySet()) {
            if (index < len) {
                map.put(n, values[index]);
            } else {
                break;
            }
            index++;
        }

        apply(builder, map);
    }
Applies stringified parameters to the given string builder.

@param builder non-null string builder
@param values  stringified parameters
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseParameterizedQuery.java