code: private void createColumnFamilies(List<TableInfo> tableInfos, KsDef ksDef) throws Exception
      {
          for (TableInfo tableInfo : tableInfos)
          {
              if (isCql3Enabled(tableInfo))
              {
                  createOrUpdateUsingCQL3(tableInfo, ksDef);
                  createIndexUsingCql(tableInfo);
              }
              else
              {
                  createOrUpdateColumnFamily(tableInfo, ksDef);
              }
  
              // Create Inverted Indexed Table if required.
              createInvertedIndexTable(tableInfo, ksDef);
          }
      }
docs: Creates the column families.
  
  @param tableInfos
  the table infos
  @param ksDef
  the ks def
  @throws Exception
  the exception