public static String convertToString(short[] value) {
        int len;
        if (value == null) { // should not happen
            return NULL_EXPR;
        } else if ((len = value.length) == 0) {
            return EMPTY_ARRAY_EXPR;
        }

        StringBuilder builder = new StringBuilder(len < 3 ? 16 : 6 * len).append('[').append(value[0]);
        for (int i = 1; i < len; i++) {
            builder.append(',').append(value[i]);
        }
        return builder.append(']').toString();
    }
Converts short array to compact string. Similar as {@code Arrays.toString()}
but without any whitespace.

@param value short array
@return string
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseValues.java