comparison src/org/dancres/blitz/stats/SearchStat.java @ 24:c3e40ba8250a

Restore SearchStat to retain backward compatibility with older Blitz's particularly for Dashboard.
author Dan Creswell <dan.creswell@gmail.com>
date Fri, 28 Aug 2009 21:01:53 +0100
parents 3dc0c5604566
children
comparison
equal deleted inserted replaced
23:28c84687bdb8 24:c3e40ba8250a
1 package org.dancres.blitz.stats;
2
3 /**
4 */
5 public class SearchStat implements Stat {
6 private long _id;
7 private String _type;
8 private String[] _titles;
9 private long[] _missed;
10 private long[] _deleted;
11
12 public SearchStat(long anId, String aType,
13 String[] aTitles,
14 long[] aMisses, long[] aDeld) {
15 _id = anId;
16 _type = aType;
17 _titles = aTitles;
18 _missed = aMisses;
19 _deleted = aDeld;
20 }
21
22 public long getId() {
23 return _id;
24 }
25
26 public String toString() {
27 StringBuffer myBuffer = new StringBuffer("Search: " + _type);
28
29 for (int i = 0; i < _titles.length; i++) {
30 myBuffer.append(" ");
31 myBuffer.append(_titles[i]);
32 myBuffer.append(" miss: ");
33 myBuffer.append(_missed[i]);
34 myBuffer.append(" deld: ");
35 myBuffer.append(_deleted[i]);
36 }
37
38 return myBuffer.toString();
39 }
40 }