protected void setColumnIndex(int index, int count) {
        this.columnCount = count < 2 ? 1 : count;
        this.columnIndex = index < 1 ? 0 : (index < count ? index : count - 1);
    }
Sets zero-based column index and column count.

@param index zero-based column index, negative number is treated as zero
@param count column count, should be always greater than one
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseColumn.java