while (itCol.hasNext()) {
String id = itCol.next().getName();
long lenResult = CountID(id);
- if (lenResult <= 30)
+ if (lenResult <= 30)
timeResult.set(0, timeResult.get(0) + 1);
else if (lenResult > 30 && lenResult <= 60)
timeResult.set(1, timeResult.get(1) + 1);
timeResult.set(3, timeResult.get(3) + 1);
}
}
+ for (int i = 0; i < 4; i++)
+ totalTime.set(i, totalTime.get(i) + timeResult.get(i));
DataBase db = new DataBase();
db.setTimeRez(timeResult);
db.setDate(DateFormat(dateStart));
}
dateStart += MILLISECONDS_PER_DAY;
}
+ DataBase db = new DataBase();
+ db.setTimeTotalExec(totalTime);
+ query.add(db);
System.out.println("StatisticsProt.readLength: total number of dates = " + query.size());
return query;
}
}
// query by a protein sequence
- public List<DataBase> readProtID() {
+ public List<DataBase> readProtID(int counter) {
query = new ArrayList<DataBase>();
int row_count = 100000000;
RangeSlicesQuery<String, String, String> result = HFactory.createRangeSlicesQuery(cc.GetKeyspace(), StringSerializer.get(),
++npred;
}
}
- if (npred > 3) {
+ if (npred >= counter) {
DataBase db = new DataBase();
db.setProt(last_key);
db.setTotalId(npred);