public class PageRankMapReduce extends StaticMapReduce<java.lang.Object,java.lang.Double,java.lang.Object,java.lang.Double,java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>>>
| Modifier and Type | Class and Description |
|---|---|
static class |
PageRankMapReduce.Builder |
MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.Stage| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_MEMORY_KEY |
static java.lang.String |
PAGE_RANK_MEMORY_KEY |
MAP_REDUCE| Modifier and Type | Method and Description |
|---|---|
static PageRankMapReduce.Builder |
build() |
boolean |
doStage(MapReduce.Stage stage)
A MapReduce job can be map-only, map-reduce-only, or map-combine-reduce.
|
java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>> |
generateFinalResult(java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>> 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.
|
java.lang.String |
getMemoryKey()
The results of the MapReduce job are associated with a memory-key to ultimately be stored in
Memory. |
void |
loadState(org.apache.commons.configuration.Configuration configuration)
When it is necessary to load the state of a MapReduce job, this method is called.
|
void |
map(Vertex vertex,
MapReduce.MapEmitter<java.lang.Object,java.lang.Double> emitter)
The map() method is logically executed at all vertices in the graph in parallel.
|
void |
storeState(org.apache.commons.configuration.Configuration configuration)
When it is necessary to store the state of a MapReduce job, this method is called.
|
java.lang.String |
toString() |
cloneequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddResultToMemory, combine, createMapReduce, getMapKeySort, getReduceKeySort, reducepublic static final java.lang.String PAGE_RANK_MEMORY_KEY
public static final java.lang.String DEFAULT_MEMORY_KEY
public void storeState(org.apache.commons.configuration.Configuration configuration)
MapReducestoreState in interface MapReduce<java.lang.Object,java.lang.Double,java.lang.Object,java.lang.Double,java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>>>storeState in class StaticMapReduce<java.lang.Object,java.lang.Double,java.lang.Object,java.lang.Double,java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>>>configuration - the configuration to store the state of the MapReduce job in.public void loadState(org.apache.commons.configuration.Configuration configuration)
MapReduceconfiguration - the configuration to load the state of the MapReduce job from.public boolean doStage(MapReduce.Stage stage)
MapReducestage - the stage to check for definition.public void map(Vertex vertex, MapReduce.MapEmitter<java.lang.Object,java.lang.Double> 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 java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>> generateFinalResult(java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>> keyValues)
MapReducekeyValues - the key/value pairs that were emitted from reduce() (or map() in a map-only job)public java.lang.String getMemoryKey()
MapReduceMemory.public java.lang.String toString()
toString in class StaticMapReduce<java.lang.Object,java.lang.Double,java.lang.Object,java.lang.Double,java.util.Iterator<KeyValue<java.lang.Object,java.lang.Double>>>public static PageRankMapReduce.Builder build()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.