/** * Convert a list of {@link com.rackspacecloud.blueflood.types.Points} into a list of {@link * com.rackspacecloud.blueflood.service.SingleRollupWriteContext} for the given Granularity and * Locator. * * @param locator * @param points * @param gran * @return */ protected List<SingleRollupWriteContext> toWriteContext( Locator locator, Points<Rollup> points, Granularity gran) { List<SingleRollupWriteContext> resultList = new ArrayList<SingleRollupWriteContext>(); for (Map.Entry<Long, Points.Point<Rollup>> entry : points.getPoints().entrySet()) { resultList.add( new SingleRollupWriteContext( entry.getValue().getData(), locator, gran, CassandraModel.getBasicColumnFamily(gran), entry.getKey())); } return resultList; }
public int getPoint() { return point.getPoints(); }