I - Vertex index valueV - Vertex valueE - Edge valueM - Message valuepublic class IdentityComputation<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> extends BasicComputation<I,V,E,M>
| Constructor and Description |
|---|
IdentityComputation() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(Vertex<I,V,E> vertex,
Iterable<M> messages)
Must be defined by user to do computation on a single Vertex.
|
addEdgeRequest, addVertexRequest, addVertexRequest, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerContext, getWorkerCount, getWorkerForVertex, initialize, postSuperstep, preSuperstep, removeEdgesRequest, removeVertexRequest, sendMessage, sendMessageToAllEdges, sendMessageToMultipleEdgesaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfsetConfgetBroadcastreduce, reduceMergeaggregategetAggregatedValuepublic void compute(Vertex<I,V,E> vertex, Iterable<M> messages) throws IOException
AbstractComputationcompute in interface Computation<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>compute in class AbstractComputation<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>vertex - Vertexmessages - Messages that were sent to this vertex in the previous
superstep. Each message is only guaranteed to have
a life expectancy as long as next() is not called.IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.