code: private void createOrUpdateKeyspace(List<TableInfo> tableInfos) throws Exception
      {
          KsDef ksDef = onCreateKeyspace(); // create keyspace event.
          createColumnFamilies(tableInfos, ksDef); // create column family event.
      }
docs: Creates schema and table for the list of tableInfos.
  
  @param tableInfos
  list of TableInfos.
  @throws Exception
  the exception