title: Spark / Scala - Is there a way to keep track of a map per partition?
body: <p>Is there a way to hold a data structure per partition that you can access? For example, word count, keep track of a dictionary of counts per partition, that you incr / decr keys as you do a second read based on the state of other keys in the dictionary?</p>