code: private void updateTable(KsDef ksDef, TableInfo tableInfo) throws Exception
      {
          for (CfDef cfDef : ksDef.getCf_defs())
          {
              if (cfDef.getName().equals(tableInfo.getTableName())
                      && cfDef.getColumn_type().equals(ColumnFamilyType.getInstanceOf(tableInfo.getType()).name()))
              {
                  boolean toUpdate = false;
                  if (cfDef.getColumn_type().equals(STANDARDCOLUMNFAMILY))
                  {
                      for (ColumnInfo columnInfo : tableInfo.getColumnMetadatas())
                      {
                          toUpdate = isCfDefUpdated(columnInfo, cfDef, isCql3Enabled(tableInfo),
                                  isCounterColumnType(tableInfo, null), tableInfo) ? true : toUpdate;
                      }
                  }
                  if (toUpdate)
                  {
                      cassandra_client.system_update_column_family(cfDef);
                  }
                  createIndexUsingThrift(tableInfo, cfDef);
                  break;
              }
          }
      }
docs: Update table.
  
  @param ksDef
  the ks def
  @param tableInfo
  the table info
  @throws Exception
  the exception