ColumnFamily<Locator, Long> destCF = CassandraModel.getColumnFamily(BasicRollup.class, destGranularity);
ArrayList<SingleRollupWriteContext> writeContexts = new ArrayList<SingleRollupWriteContext>();
for (Range range : Range.rangesForInterval(destGranularity, from, to)) {
Points<SimpleNumber> input = AstyanaxReader.getInstance().getDataToRoll(SimpleNumber.class, locator, range, CassandraModel.CF_METRICS_FULL);
Rollup basicRollup = BasicRollup.buildRollupFromRawSamples(input);
writeContexts.add(new SingleRollupWriteContext(basicRollup, locator, destGranularity, destCF, range.getStart()));
}
AstyanaxWriter.getInstance().insertRollups(writeContexts);
}