added new method to downsample rows returned from cassandra.