code: private ColumnDef getColumnMetadata(ColumnInfo columnInfo, TableInfo tableInfo)
      {
          ColumnDef columnDef = new ColumnDef();
          columnDef.setName(columnInfo.getColumnName().getBytes());
          columnDef.setValidation_class(CassandraValidationClassMapper.getValidationClass(columnInfo.getType(),
                  isCql3Enabled(tableInfo)));
  
          if (columnInfo.isIndexable())
          {
              IndexInfo indexInfo = tableInfo.getColumnToBeIndexed(columnInfo.getColumnName());
              columnDef.setIndex_type(CassandraIndexHelper.getIndexType(indexInfo.getIndexType()));
              // if (!indexInfo.getIndexName().equals(indexInfo.getColumnName()))
              // {
              // columnDef.setIndex_name(indexInfo.getIndexName());
              // }
          }
          return columnDef;
      }
docs: getColumnMetadata use for getting column metadata for specific
  columnInfo.
  
  @param columnInfo
  the column info
  @param tableInfo
  the table info
  @return the column metadata