I - Vertex IDV - Vertex ValueE - Edge ValueM1 - Incoming Message ValueM2 - Outgoing Message Valuepublic class MigrationAbstractComputation<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M1 extends org.apache.hadoop.io.Writable,M2 extends org.apache.hadoop.io.Writable> extends WorkerAggregatorDelegator<I,V,E> implements TypesHolder<I,V,E,M1,M2>, org.apache.hadoop.io.Writable
| Modifier and Type | Class and Description |
|---|---|
static class |
MigrationAbstractComputation.MigrationBasicComputation<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>
Drop-in replacement for BasicComputation when migrating to
Blocks Framework, disallowing functions that are tied to
execution order.
|
static class |
MigrationAbstractComputation.MigrationFullAbstractComputation<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M1 extends org.apache.hadoop.io.Writable,M2 extends org.apache.hadoop.io.Writable>
Drop-in replacement for AbstractComputation when migrating to
Blocks Framework.
|
static class |
MigrationAbstractComputation.MigrationFullBasicComputation<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>
Drop-in replacement for BasicComputation when migrating to
Blocks Framework.
|
| Constructor and Description |
|---|
MigrationAbstractComputation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdgeRequest(I sourceVertexId,
Edge<I,E> edge) |
void |
addVertexRequest(I id,
V value) |
void |
addVertexRequest(I id,
V value,
OutEdges<I,E> edges) |
void |
compute(Vertex<I,V,E> vertex,
Iterable<M1> messages) |
long |
getTotalNumEdges() |
long |
getTotalNumVertices() |
<W extends MigrationWorkerContext> |
getWorkerContext() |
void |
postSuperstep() |
void |
preSuperstep() |
void |
readFields(DataInput in) |
void |
removeEdgesRequest(I sourceVertexId,
I targetVertexId) |
void |
removeVertexRequest(I vertexId) |
void |
sendMessage(I id,
M2 message) |
void |
sendMessageToAllEdges(Vertex<I,V,E> vertex,
M2 message) |
void |
sendMessageToMultipleEdges(Iterator<I> vertexIdIterator,
M2 message) |
void |
write(DataOutput out) |
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic void compute(Vertex<I,V,E> vertex, Iterable<M1> messages) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void preSuperstep()
public void postSuperstep()
public long getTotalNumVertices()
public long getTotalNumEdges()
public final void sendMessageToMultipleEdges(Iterator<I> vertexIdIterator, M2 message)
public final void addVertexRequest(I id, V value, OutEdges<I,E> edges) throws IOException
IOExceptionpublic final void addVertexRequest(I id, V value) throws IOException
IOExceptionpublic final void removeVertexRequest(I vertexId) throws IOException
IOExceptionpublic final void addEdgeRequest(I sourceVertexId, Edge<I,E> edge) throws IOException
IOExceptionpublic final void removeEdgesRequest(I sourceVertexId, I targetVertexId) throws IOException
IOExceptionpublic <W extends MigrationWorkerContext> W getWorkerContext()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.