MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.Stage| Modifier and Type | Field and Description | 
|---|---|
| static String | GROUP_COUNT_SIDE_EFFECT_STEP_SIDE_EFFECT_KEY | 
MAP_REDUCE| Constructor and Description | 
|---|
| GroupCountSideEffectMapReduce(GroupCountSideEffectStep step) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | combine(E key,
       Iterator<Long> values,
       MapReduce.ReduceEmitter<E,Long> emitter)The combine() method is logically executed at all "machines" in parallel. | 
| boolean | doStage(MapReduce.Stage stage)A MapReduce job can be map-only, map-reduce-only, or map-combine-reduce. | 
| Map<E,Long> | generateFinalResult(Iterator<KeyValue<E,Long>> keyValues)The key/value pairs emitted by reduce() (or map() in a map-only job) can be iterated to generate a local JVM Java object. | 
| String | getMemoryKey()The results of the MapReduce job are associated with a memory-key to ultimately be stored in  Memory. | 
| void | loadState(Graph graph,
         Configuration configuration)When it is necessary to load the state of a MapReduce job, this method is called. | 
| void | map(Vertex vertex,
   MapReduce.MapEmitter<E,Long> emitter)The map() method is logically executed at all vertices in the graph in parallel. | 
| void | reduce(E key,
      Iterator<Long> values,
      MapReduce.ReduceEmitter<E,Long> emitter)The reduce() method is logically on the "machine" the respective key hashes to. | 
| void | storeState(Configuration configuration)When it is necessary to store the state of a MapReduce job, this method is called. | 
clone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddResultToMemory, createMapReduce, getMapKeySort, getReduceKeySort, workerEnd, workerStartpublic static final String GROUP_COUNT_SIDE_EFFECT_STEP_SIDE_EFFECT_KEY
public GroupCountSideEffectMapReduce(GroupCountSideEffectStep step)
public void storeState(Configuration configuration)
MapReducepublic void loadState(Graph graph, Configuration configuration)
MapReducegraph - the graph the MapReduce job will run againstconfiguration - the configuration to load the state of the MapReduce job from.public boolean doStage(MapReduce.Stage stage)
MapReducestage - the stage to check for definition.public void map(Vertex vertex, MapReduce.MapEmitter<E,Long> emitter)
MapReducevertex - the current vertex being map() processed.emitter - the component that allows for key/value pairs to be emitted to the next stage.public void reduce(E key, Iterator<Long> values, MapReduce.ReduceEmitter<E,Long> emitter)
MapReducekey - the key that has aggregated valuesvalues - the aggregated values associated with the keyemitter - the component that allows for key/value pairs to be emitted as the final result.public void combine(E key, Iterator<Long> values, MapReduce.ReduceEmitter<E,Long> emitter)
MapReducekey - the key that has aggregated valuesvalues - the aggregated values associated with the keyemitter - the component that allows for key/value pairs to be emitted to the reduce stage.public Map<E,Long> generateFinalResult(Iterator<KeyValue<E,Long>> keyValues)
MapReducekeyValues - the key/value pairs that were emitted from reduce() (or map() in a map-only job)Copyright © 2013–2015 Apache Software Foundation. All rights reserved.