X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=datadb%2Fcompbio%2Fcassandra%2FJpredParserLocalFile.java;fp=datadb%2Fcompbio%2Fcassandra%2FJpredParserLocalFile.java;h=4b254ae98d04e1c314d9d79f6dc32d90e32b1f5a;hb=91de317f0e7f8697c3b2d036c7f22a5d6df6cabc;hp=54e50ab2ee94addb6deacc68d3ec5e9e4a0d5e07;hpb=d17dcb8a42c165a7bdd284bd5a59edb69710b414;p=proteocache.git diff --git a/datadb/compbio/cassandra/JpredParserLocalFile.java b/datadb/compbio/cassandra/JpredParserLocalFile.java index 54e50ab..4b254ae 100644 --- a/datadb/compbio/cassandra/JpredParserLocalFile.java +++ b/datadb/compbio/cassandra/JpredParserLocalFile.java @@ -58,7 +58,7 @@ public class JpredParserLocalFile implements JpredParser { System.out.println("Execution Time = " + execTime + " ms"); } - private int ParsingForDate(List input, String date) { + private void ParsingForDate(List input, String date) { int totalcount = 0; int countNoData = 0; int countUnclearFASTAid = 0; @@ -66,11 +66,10 @@ public class JpredParserLocalFile implements JpredParser { int countinserted = 0; int counAlignments = 0; int countStrange = 0; - int njobs = 0; System.out.println("Inserting jobs for " + date); for (String in : input) { - if (in.matches(date + "(.*)jp_[^\\s]+")) { + if (in.matches(date + ":(.*)jp_[^\\s]+")) { String[] table = in.split("\\s+"); String starttime = table[0]; String finishtime = table[1]; @@ -104,9 +103,7 @@ public class JpredParserLocalFile implements JpredParser { } catch (ParseException e) { e.printStackTrace(); } - cc.FormQueryTables(insertdate, starttime, finishtime, ip, id, "OK", "OK", newprotein, seqs); - ++countinsertions; - ++njobs; + countinsertions += cc.FormQueryTables(insertdate, starttime, finishtime, ip, id, "OK", "OK", newprotein, seqs); } fr.close(); } catch (IOException e) { @@ -132,7 +129,6 @@ public class JpredParserLocalFile implements JpredParser { System.out.println(" " + countUnclearFASTAid + " jobs with unclear FASTA protein id in *.concise.fasta"); System.out.println(" " + countinsertions + " new job insertions\n"); } - return njobs; } }