Restore SearchStat to retain backward compatibility with older Blitz's particularly for Dashboard.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/org/dancres/blitz/stats/SearchStat.java Fri Aug 28 21:01:53 2009 +0100
1.3 @@ -0,0 +1,40 @@
1.4 +package org.dancres.blitz.stats;
1.5 +
1.6 +/**
1.7 + */
1.8 +public class SearchStat implements Stat {
1.9 + private long _id;
1.10 + private String _type;
1.11 + private String[] _titles;
1.12 + private long[] _missed;
1.13 + private long[] _deleted;
1.14 +
1.15 + public SearchStat(long anId, String aType,
1.16 + String[] aTitles,
1.17 + long[] aMisses, long[] aDeld) {
1.18 + _id = anId;
1.19 + _type = aType;
1.20 + _titles = aTitles;
1.21 + _missed = aMisses;
1.22 + _deleted = aDeld;
1.23 + }
1.24 +
1.25 + public long getId() {
1.26 + return _id;
1.27 + }
1.28 +
1.29 + public String toString() {
1.30 + StringBuffer myBuffer = new StringBuffer("Search: " + _type);
1.31 +
1.32 + for (int i = 0; i < _titles.length; i++) {
1.33 + myBuffer.append(" ");
1.34 + myBuffer.append(_titles[i]);
1.35 + myBuffer.append(" miss: ");
1.36 + myBuffer.append(_missed[i]);
1.37 + myBuffer.append(" deld: ");
1.38 + myBuffer.append(_deleted[i]);
1.39 + }
1.40 +
1.41 + return myBuffer.toString();
1.42 + }
1.43 +}