Class StaticMapReduce<MK,MV,RK,RV,R>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.computer.util.StaticMapReduce<MK,MV,RK,RV,R>
-
- Direct Known Subclasses:
ClusterCountMapReduce
,ClusterPopulationMapReduce
,GraphComputerTest.MapReduceB
,GraphComputerTest.MapReduceBB
,GraphComputerTest.MapReduceC
,GraphComputerTest.MapReduceK
,PageRankMapReduce
public abstract class StaticMapReduce<MK,MV,RK,RV,R> extends Object implements MapReduce<MK,MV,RK,RV,R>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.Stage
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
MAP_REDUCE
-
-
Constructor Summary
Constructors Constructor Description StaticMapReduce()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapReduce<MK,MV,RK,RV,R>
clone()
When multiple workers on a single machine need MapReduce instances, it is possible to use clone.boolean
equals(Object object)
int
hashCode()
void
storeState(org.apache.commons.configuration2.Configuration configuration)
When it is necessary to store the state of a MapReduce job, this method is called.String
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, doStage, generateFinalResult, getMapKeySort, getMemoryKey, getReduceKeySort, loadState, map, reduce, workerEnd, workerStart
-
-
-
-
Method Detail
-
clone
public MapReduce<MK,MV,RK,RV,R> clone()
Description copied from interface:MapReduce
When multiple workers on a single machine need MapReduce instances, it is possible to use clone. This will provide a speedier way of generating instances, over theMapReduce.storeState(org.apache.commons.configuration2.Configuration)
andMapReduce.loadState(org.apache.tinkerpop.gremlin.structure.Graph, org.apache.commons.configuration2.Configuration)
model. The default implementation simply returns the object as it assumes that the MapReduce instance is a stateless singleton.
-
storeState
public void storeState(org.apache.commons.configuration2.Configuration configuration)
Description copied from interface:MapReduce
When it is necessary to store the state of a MapReduce job, this method is called. This is typically required when the MapReduce job needs to be serialized to another machine. Note that what is stored is simply the instance state, not any processed data.
-
-