def get_summary(name)
      counts = {}
      @cassandra.get_range(:totals, {:start => '', :finish => '', :count => @max_classes}).each do |key_slice|
        # keyslice is a clunky thrift object, map into a ruby hash
        row = key_slice.columns.inject({}){|hsh, c| hsh[c.column.name] = c.column.value; hsh}
        counts[key_slice.key.to_sym] = row[name].to_f
      end
      counts
    end
def get_summary(name)
      counts = {}
      @cassandra.get_range(:totals, {:start => '', :finish => '', :count => @max_classes}).each do |key_slice|
        # keyslice is a clunky thrift object, map into a ruby hash
        row = key_slice.columns.inject({}){|hsh, c| hsh[c.column.name] = c.column.value; hsh}
        counts[key_slice.key.to_sym] = row[name].to_f
      end
      counts
    end
def get_summary ( name ) counts = { } @cassandra . get_range ( :totals , { :start => '' , :finish => '' , :count => @max_classes } ) . each do | key_slice | # keyslice is a clunky thrift object, map into a ruby hash row = key_slice . columns . inject ( { } ) { | hsh , c | hsh [ c . column . name ] = c . column . value ; hsh } counts [ key_slice . key . to_sym ] = row [ name ] . to_f end counts end
Fetch 100 rows from summary table, yes, increase if necessary
Fetch 100 rows from summary table yes increase if necessary