8 lines
275 B
Python
8 lines
275 B
Python
def haystackreducer(emissions):
|
|
"""
|
|
haystackreducer is a class responsible for reducing emissions
|
|
from multiple map processes. It tallies the number of matches
|
|
from key-value pairs emitted from each mapper
|
|
"""
|
|
return len(emissions)
|
|
|