PROT-4 updated structure ProteinData (change primary key, add column ExecTime), Jpred...
[proteocache.git] / datadb / compbio / cassandra / CassandraReader.java
index af697a0..941ad1c 100644 (file)
@@ -127,7 +127,7 @@ public class CassandraReader {
         */
        public Map<String, Integer> ReadProteinSequenceByCounter() {
                final long startTime = System.currentTimeMillis();
-               String com = "SELECT Protein FROM ProteinRow;";
+               String com = "SELECT Protein, JobID FROM ProteinRow;";
                System.out.println("Command: " + com);
                ResultSet results = session.execute(com);
                if (results.isExhausted())
@@ -140,6 +140,8 @@ public class CassandraReader {
                int c = 0;
                for (Row r : rows) {
                        String protein = r.getString("Protein");
+                       String id = r.getString("JobID");
+                       System.out.println(id + ", " + protein);
                        if (res.containsKey(protein))
                                res.put(protein, res.get(protein) + 1);
                        else