public static ClickHouseRecord of(Map<String, Integer> columnsIndex, ClickHouseValue[] values) {
        if (columnsIndex == null || values == null) {
            throw new IllegalArgumentException("Non-null columns and values are required");
        } else if (columnsIndex.size() != values.length) {
            throw new IllegalArgumentException(ClickHouseUtils.format(
                    "Mismatched count: we have %d columns but we got %d values", columnsIndex.size(), values.length));
        } else if (values.length == 0) {
            return EMPTY;
        }

        return new ClickHouseSimpleRecord(columnsIndex, values);
    }
Creates a record object to wrap given values.

@param columnsIndex index of columns ord numbers
@param values  non-null array of values
@return record
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseSimpleRecord.java