MapReduce.MapEmitter<K,V>, MapReduce.NullObject, MapReduce.ReduceEmitter<OK,OV>, MapReduce.Stage| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TREE_STEP_SIDE_EFFECT_KEY |
MAP_REDUCE| Constructor and Description |
|---|
TreeMapReduce(TreeStep step) |
| Modifier and Type | Method and Description |
|---|---|
TreeMapReduce |
clone()
When multiple workers on a single machine need MapReduce instances, it is possible to use clone.
|
boolean |
doStage(MapReduce.Stage stage)
A MapReduce job can be map-only, map-reduce-only, or map-combine-reduce.
|
boolean |
equals(java.lang.Object object) |
Tree |
generateFinalResult(java.util.Iterator<KeyValue<java.lang.Object,Tree>> 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. |
int |
hashCode() |
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,Tree> 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() |
finalize, getClass, notify, notifyAll, wait, wait, waitaddResultToMemory, combine, createMapReduce, getMapKeySort, getReduceKeySort, reducepublic static final java.lang.String TREE_STEP_SIDE_EFFECT_KEY
public TreeMapReduce(TreeStep step)
public void storeState(org.apache.commons.configuration.Configuration configuration)
MapReducestoreState in interface MapReduce<java.lang.Object,Tree,java.lang.Object,Tree,Tree>configuration - the configuration to store the state of the MapReduce job in.public void loadState(org.apache.commons.configuration.Configuration configuration)
MapReducepublic boolean doStage(MapReduce.Stage stage)
MapReducepublic void map(Vertex vertex, MapReduce.MapEmitter<java.lang.Object,Tree> emitter)
MapReducepublic Tree generateFinalResult(java.util.Iterator<KeyValue<java.lang.Object,Tree>> keyValues)
MapReducegenerateFinalResult in interface MapReduce<java.lang.Object,Tree,java.lang.Object,Tree,Tree>keyValues - the key/value pairs that were emitted from reduce() (or map() in a map-only job)public java.lang.String getMemoryKey()
MapReduceMemory.getMemoryKey in interface MapReduce<java.lang.Object,Tree,java.lang.Object,Tree,Tree>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic TreeMapReduce clone() throws java.lang.CloneNotSupportedException
MapReduceMapReduce.storeState(org.apache.commons.configuration.Configuration) and MapReduce.loadState(org.apache.commons.configuration.Configuration) model.
The default implementation simply returns the object as it assumes that the MapReduce instance is a stateless singleton.Copyright © 2013-2015 TinkerPop. All Rights Reserved.