@Test public void testDay() throws Exception { Date from = testData.toDate("2010-08-23T15:26:44"); Date to = testData.toDate("2010-08-24T00:00:00"); TimeAggregator agg = new TimeAggregator(from, to, View.DAILY); Query q = new Query().between(from, to); monitor.query(q, agg); long[] data = agg.getData(); assertEquals(10, data.length); assertEquals(4, data[0]); assertEquals(6, data[1]); assertEquals(0, data[2]); }
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();  }