-
- if (results1.isExhausted()) {
- String com3 = "INSERT INTO ProteinKeyspace.ProteinRow " + "(Protein, " + jobid + ")" + " VALUES ('" + protein + "'," + "{"
- + final_prediction + "}" + ");";
- System.out.println(com3);
- session.execute(com3);
- } else {
- String com4 = "ALTER TABLE ProteinKeyspace.ProteinRow ADD " + jobid + ");";
- System.out.println(com4);
- session.execute(com4);
- String com3 = "INSERT INTO ProteinKeyspace.ProteinRow " + "(" + jobid + ")" + " VALUES ({" + final_prediction + "}" + ")"
- + " WHERE Protein = '" + protein + "';";
- System.out.println(com3);
+ if (results2.isExhausted()) {
+ String com3 = "INSERT INTO ProteinKeyspace.ProteinRow " + "(Protein, JobID, Predictions)" + " VALUES ('"
+ + protein + "','" + jobid + "',{" + final_prediction + "});";
+ //System.out.println(com3);