Class GraphComputerTest.MapReduceB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
MapReduce.MapEmitter<K extends Object,V extends Object>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK extends Object,OV extends Object>, MapReduce.Stage
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
MAP_REDUCE
-
-
Constructor Summary
Constructors Constructor Description MapReduceB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doStage(MapReduce.Stage stage)
List<Integer>
generateFinalResult(Iterator<KeyValue<Integer,Integer>> keyValues)
String
getMemoryKey()
Optional<Comparator<Integer>>
getReduceKeySort()
void
map(Vertex vertex, MapReduce.MapEmitter<Integer,Integer> emitter)
void
reduce(Integer key, Iterator<Integer> values, MapReduce.ReduceEmitter<Integer,Integer> emitter)
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.computer.util.StaticMapReduce
clone, equals, hashCode, storeState, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
addResultToMemory, combine, getMapKeySort, loadState, workerEnd, workerStart
-
-
-
-
Method Detail
-
doStage
public boolean doStage(MapReduce.Stage stage)
-
map
public void map(Vertex vertex, MapReduce.MapEmitter<Integer,Integer> emitter)
-
reduce
public void reduce(Integer key, Iterator<Integer> values, MapReduce.ReduceEmitter<Integer,Integer> emitter)
-
getReduceKeySort
public Optional<Comparator<Integer>> getReduceKeySort()
-
getMemoryKey
public String getMemoryKey()
-
-