code: private List<ColumnDefinition> getColumns(CFMetaData cfm)
      {
          List<ColumnDefinition> columnDefs = new ArrayList<>(columns.size());
          Integer componentIndex = comparator.isCompound() ? comparator.clusteringPrefixSize() : null;
          for (Map.Entry<ColumnIdentifier, AbstractType> col : columns.entrySet())
          {
              ColumnIdentifier id = col.getKey();
              columnDefs.add(staticColumns.contains(id)
                             ? ColumnDefinition.staticDef(cfm, col.getKey().bytes, col.getValue(), componentIndex)
                             : ColumnDefinition.regularDef(cfm, col.getKey().bytes, col.getValue(), componentIndex));
          }
  
          return columnDefs;
      }
docs: Column definitions