src/java/org/apache/cassandra/cli/CliClient.java
/**
     * Update existing keyspace identified by name
     * @param statement - tree represeting statement
     */
Update existing keyspace identified by name
@param statement - tree represeting statement
Update existing keyspace identified by name @param statement - tree represeting statement
private void executeUpdateKeySpace(Tree statement)
    {
        if (!CliMain.isConnected())
            return;
        try
        {
            String keyspaceName = CliCompiler.getKeySpace(statement, thriftClient.describe_keyspaces());
            KsDef currentKsDef = getKSMetaData(keyspaceName);
            KsDef updatedKsDef = updateKsDefAttributes(statement, currentKsDef);
            String mySchemaVersion = thriftClient.system_update_keyspace(updatedKsDef);
            sessionState.out.println(mySchemaVersion);
            validateSchemaIsSettled(mySchemaVersion);
            keyspacesMap.put(keyspaceName, thriftClient.describe_keyspace(keyspaceName));
        }
        catch (InvalidRequestException e)
        {
            throw new RuntimeException(e);
        }
        catch (Exception e)
        {
            throw new RuntimeException(e);
        }
    }
private void executeUpdateKeySpace ( Tree statement ) { if ( ! CliMain . isConnected ( ) ) return ; try { String keyspaceName = CliCompiler . getKeySpace ( statement , thriftClient . describe_keyspaces ( ) ) ; KsDef currentKsDef = getKSMetaData ( keyspaceName ) ; KsDef updatedKsDef = updateKsDefAttributes ( statement , currentKsDef ) ; String mySchemaVersion = thriftClient . system_update_keyspace ( updatedKsDef ) ; sessionState . out . println ( mySchemaVersion ) ; validateSchemaIsSettled ( mySchemaVersion ) ; keyspacesMap . put ( keyspaceName , thriftClient . describe_keyspace ( keyspaceName ) ) ; } catch ( InvalidRequestException e ) { throw new RuntimeException ( e ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Update existing keyspace identified by name
 @param statement - tree represeting statement
Update existing keyspace identified by name @param statement - tree represeting statement