@Override
    public String toString() {
        return "TableSchema{" +
                "tableName='" + tableName + '\'' +
                ", databaseName='" + databaseName + '\'' +
                ", columns=" + columns +
                ", colIndex=" + colIndex +
                ", hasDefaults=" + hasDefaults +
                '}';
    }
Takes column name and return corresponding index (starting from 0).

@param name - column name
@return - column index starting from 0
client-v2/src/main/java/com/clickhouse/client/api/metadata/TableSchema.java