@Test public void testWeek() throws Exception { Date from = testData.toDate("2010-08-29T15:00:00"); Date to = testData.toDate("2010-09-10T17:00:00"); TimeAggregator agg = new TimeAggregator(from, to, View.WEEKLY); Query q = new Query().between(from, to); monitor.query(q, agg); long[] data = agg.getData(); assertEquals(13, data.length); assertEquals(1, data[0]); assertEquals(1, data[6]); assertEquals(1, data[11]); assertEquals(1, data[12]); }
public long[] getData() { return data; }
TimeAggregator extends RequestDataAggregator { public long[] getData() { return data; } }
TimeAggregator extends RequestDataAggregator { public long[] getData() { return data; } TimeAggregator(Date from, Date to, View view); }
TimeAggregator extends RequestDataAggregator { public long[] getData() { return data; } TimeAggregator(Date from, Date to, View view); void visit(RequestData r, Object... aggregates); long[] getData(); }
TimeAggregator extends RequestDataAggregator { public long[] getData() { return data; } TimeAggregator(Date from, Date to, View view); void visit(RequestData r, Object... aggregates); long[] getData();  }