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 -
Method Summary
Modifier and TypeMethodDescriptionclone()When multiple workers on a single machine need MapReduce instances, it is possible to use clone.booleaninthashCode()voidstoreState(org.apache.commons.configuration2.Configuration configuration) When it is necessary to store the state of a MapReduce job, this method is called.toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce
addResultToMemory, combine, doStage, generateFinalResult, getMapKeySort, getMemoryKey, getReduceKeySort, loadState, map, reduce, workerEnd, workerStart
-
Constructor Details
-
StaticMapReduce
public StaticMapReduce()
-
-
Method Details
-
clone
Description copied from interface:MapReduceWhen 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:MapReduceWhen 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. -
toString
-
equals
-
hashCode
public int hashCode()
-