* This constructor is meant to be used when we are using the CQL3 table but still in the legacy thrift mode
* @param rows
*/
public CqlColumnListImpl(List<Row> rows, ColumnFamily<?, ?> cf) {
CqlColumnFamilyDefinitionImpl cfDef = (CqlColumnFamilyDefinitionImpl) cf.getColumnFamilyDefinition();
int columnNameIndex = cfDef.getPartitionKeyColumnDefinitionList().size();
for (Row row : rows) {
Object columnName = CqlTypeMapping.getDynamicColumn(row, cf.getColumnSerializer(), columnNameIndex, cf);
int valueIndex = cfDef.getPartitionKeyColumnDefinitionList().size() + cfDef.getClusteringKeyColumnDefinitionList().size();
CqlColumnImpl<C> cqlCol = new CqlColumnImpl<C>((C) columnName, row, valueIndex);
columnList.add(cqlCol);
map.put((C) columnName, cqlCol);
}