A MapReduce job can be map-only, map-reduce-only, or map-combine-reduce.
Before executing the particular stage, this method is called to determine if the respective stage is defined.
This method should return true if the respective stage as a non-default method implementation.
The map() method is logically executed at all vertices in the graph in parallel.
The map() method emits key/value pairs given some analysis of the data in the vertices (and/or its incident edges).
All MapReduce classes must at least provide an implementation of MapReduce#map(Vertex, MapEmitter).
Parameters:
vertex - the current vertex being map() processed.
emitter - the component that allows for key/value pairs to be emitted to the next stage.
The reduce() method is logically on the "machine" the respective key hashes to.
The reduce() method combines all the values associated with the key and emits key/value pairs.
Parameters:
key - the key that has aggregated values
values - the aggregated values associated with the key
emitter - the component that allows for key/value pairs to be emitted as the final result.