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 ; }
getColumnMetadata use for getting column metadata for specific columnInfo .