src/java/org/apache/cassandra/cli/CliClient.java
/**
     * Update existing column family identified by name
     * @param statement - tree represeting statement
     */
Update existing column family identified by name
@param statement - tree represeting statement
Update existing column family identified by name @param statement - tree represeting statement
private void executeUpdateColumnFamily(Tree statement)
    {
        if (!CliMain.isConnected() || !hasKeySpace())
            return;
        String cfName = CliCompiler.getColumnFamily(statement, keyspacesMap.get(keySpace).cf_defs);
        try
        {
            CfDef cfDef = getCfDef(thriftClient.describe_keyspace(this.keySpace), cfName);
            if (cfDef == null)
                throw new RuntimeException("Column Family " + cfName + " was not found in the current keyspace.");
            String mySchemaVersion = thriftClient.system_update_column_family(updateCfDefAttributes(statement, cfDef));
            sessionState.out.println(mySchemaVersion);
            validateSchemaIsSettled(mySchemaVersion);
            keyspacesMap.put(keySpace, thriftClient.describe_keyspace(keySpace));
        }
        catch (InvalidRequestException e)
        {
            throw new RuntimeException(e);
        }
        catch (Exception e)
        {
            throw new RuntimeException(e);
        }
    }
private void executeUpdateColumnFamily ( Tree statement ) { if ( ! CliMain . isConnected ( ) || ! hasKeySpace ( ) ) return ; String cfName = CliCompiler . getColumnFamily ( statement , keyspacesMap . get ( keySpace ) . cf_defs ) ; try { CfDef cfDef = getCfDef ( thriftClient . describe_keyspace ( this . keySpace ) , cfName ) ; if ( cfDef == null ) throw new RuntimeException ( "Column Family " + cfName + " was not found in the current keyspace." ) ; String mySchemaVersion = thriftClient . system_update_column_family ( updateCfDefAttributes ( statement , cfDef ) ) ; sessionState . out . println ( mySchemaVersion ) ; validateSchemaIsSettled ( mySchemaVersion ) ; keyspacesMap . put ( keySpace , thriftClient . describe_keyspace ( keySpace ) ) ; } catch ( InvalidRequestException e ) { throw new RuntimeException ( e ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Update existing column family identified by name
 @param statement - tree represeting statement
Update existing column family identified by name @param statement - tree represeting statement
// request correct cfDef from the server