public void calcDataBetween(Object type, long start, long end) {
SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end); // automatically also adds a generator to limit range
AssignmentFieldFunctor dataFunctor = getDataSelect(type,clause,false);
RangeIntervalGenerator dailyInRange = RangeIntervalGenerator.getInstance(start, end, 1000*60*60*24);
PrintValueFunctor print = PrintValueFunctor.getInstance(dataFunctor);
Query.getInstance().selectFrom(clause)
.groupBy(dailyInRange)
.action(print)
.execute();
}