MyCassandra-0.2.1/src/java/org/apache/cassandra/cli/CliClient.java
/**
     * Used to locally update column family definition with new column metadata
     * @param columnFamily    - CfDef record
     * @param columnName      - column name represented as byte[]
     * @param validationClass - value validation class
     */
Used to locally update column family definition with new column metadata
@param columnFamily    - CfDef record
@param columnName      - column name represented as byte[]
@param validationClass - value validation class
Used to locally update column family definition with new column metadata @param columnFamily - CfDef record @param columnName - column name represented as byte [] @param validationClass - value validation class
private void updateColumnMetaData(CfDef columnFamily, ByteBuffer columnName, String validationClass)
    {
        List<ColumnDef> columnMetaData = columnFamily.getColumn_metadata();
        ColumnDef column = getColumnDefByName(columnFamily, columnName);
        if (column != null)
        {
            if (column.getValidation_class().equals(validationClass))
                return;
            column.setValidation_class(validationClass);
        }
        else
        {
            columnMetaData.add(new ColumnDef(columnName, validationClass));
        }
    }
private void updateColumnMetaData ( CfDef columnFamily , ByteBuffer columnName , String validationClass ) { List < ColumnDef > columnMetaData = columnFamily . getColumn_metadata ( ) ; ColumnDef column = getColumnDefByName ( columnFamily , columnName ) ; if ( column != null ) { if ( column . getValidation_class ( ) . equals ( validationClass ) ) return ; column . setValidation_class ( validationClass ) ; } else { columnMetaData . add ( new ColumnDef ( columnName , validationClass ) ) ; } }
Used to locally update column family definition with new column metadata
 @param columnFamily    - CfDef record
 @param columnName      - column name represented as byte[]
 @param validationClass - value validation class
Used to locally update column family definition with new column metadata @param columnFamily - CfDef record @param columnName - column name represented as byte [] @param validationClass - value validation class
// if validation class is the same - no need to modify it // updating column definition with new validation_class