Ejemplo n.º 1
0
def reducer(stream):
    dow_mean_delay = mapred.mean_accumulator_reducer(stream)

    for dow, mean_count in dow_mean_delay.iteritems():
        mapred.send(dow, mean_count)
Ejemplo n.º 2
0
def reducer(stream):
    depdest_carr_mean_delay = mapred.mean_accumulator_reducer(stream)

    for (origin, dest,
         carrier), mean_count in depdest_carr_mean_delay.iteritems():
        mapred.send((origin, dest, carrier), mean_count)
Ejemplo n.º 3
0
def reducer(stream):
    carrier_mean_delay = mapred.mean_accumulator_reducer(stream)

    for carrier, mean_count in carrier_mean_delay.iteritems():
        mapred.send(carrier, mean_count)