public static class GraphComputerTest.MapReduceK extends StaticMapReduce
MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.StageMAP_REDUCE| Constructor and Description |
|---|
MapReduceK() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doStage(MapReduce.Stage stage)
A MapReduce job can be map-only, map-reduce-only, or map-combine-reduce.
|
Object |
generateFinalResult(Iterator 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 |
map(Vertex vertex,
MapReduce.MapEmitter emitter)
The map() method is logically executed at all vertices in the graph in parallel.
|
clone, equals, hashCode, storeState, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddResultToMemory, combine, createMapReduce, getMapKeySort, getReduceKeySort, loadState, reduce, workerEnd, workerStartpublic boolean doStage(MapReduce.Stage stage)
MapReducestage - the stage to check for definition.public void map(Vertex vertex, MapReduce.MapEmitter emitter)
MapReduceMapReduce classes must at least provide an implementation of MapReduce#map(Vertex, MapEmitter).vertex - the current vertex being map() processed.emitter - the component that allows for key/value pairs to be emitted to the next stage.public String getMemoryKey()
MapReduceMemory.public Object generateFinalResult(Iterator keyValues)
MapReducekeyValues - the key/value pairs that were emitted from reduce() (or map() in a map-only job)Copyright © 2013–2016 Apache Software Foundation. All rights reserved.