public static final class TreeStep.TreeMapReduce extends StaticMapReduce<MapReduce.NullObject,Tree,MapReduce.NullObject,Tree,Tree>
MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.StageMAP_REDUCE| Modifier and Type | Method and Description | 
|---|---|
| void | combine(MapReduce.NullObject key,
       Iterator<Tree> values,
       MapReduce.ReduceEmitter<MapReduce.NullObject,Tree> 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. | 
| Tree | generateFinalResult(Iterator<KeyValue<MapReduce.NullObject,Tree>> 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. | 
| static TreeStep.TreeMapReduce | instance() | 
| void | map(Vertex vertex,
   MapReduce.MapEmitter<MapReduce.NullObject,Tree> emitter)The map() method is logically executed at all vertices in the graph in parallel. | 
| void | reduce(MapReduce.NullObject key,
      Iterator<Tree> values,
      MapReduce.ReduceEmitter<MapReduce.NullObject,Tree> emitter)The reduce() method is logically on the "machine" the respective key hashes to. | 
clone, equals, hashCode, storeState, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddResultToMemory, createMapReduce, getMapKeySort, getReduceKeySort, loadState, workerEnd, workerStartpublic boolean doStage(MapReduce.Stage stage)
MapReducestage - the stage to check for definition.public void map(Vertex vertex, MapReduce.MapEmitter<MapReduce.NullObject,Tree> 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 combine(MapReduce.NullObject key, Iterator<Tree> values, MapReduce.ReduceEmitter<MapReduce.NullObject,Tree> 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 void reduce(MapReduce.NullObject key, Iterator<Tree> values, MapReduce.ReduceEmitter<MapReduce.NullObject,Tree> 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 Tree generateFinalResult(Iterator<KeyValue<MapReduce.NullObject,Tree>> keyValues)
MapReducekeyValues - the key/value pairs that were emitted from reduce() (or map() in a map-only job)public String getMemoryKey()
MapReduceMemory.public static final TreeStep.TreeMapReduce instance()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.