I - Vertex id typeV - Vertex value typeE - Edge value typeM - Message typepublic interface BlockWorkerSendApi<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 BlockWorkerApi<I>, WorkerAggregatorUsage, WorkerReduceUsage
| Modifier and Type | Method and Description |
|---|---|
void |
addEdgeRequest(I sourceVertexId,
Edge<I,E> edge)
Request to add an edge of a vertex in the graph
(processed just prior to the next receive phase)
|
void |
addVertexRequest(I id,
V value)
Sends a request to create a vertex that will be available
in the receive phase.
|
void |
addVertexRequest(I id,
V value,
OutEdges<I,E> edges)
Sends a request to create a vertex that will be available
in the receive phase.
|
ImmutableClassesGiraphConfiguration<I,V,E> |
getConf()
Return the configuration used by this object.
|
void |
removeEdgesRequest(I sourceVertexId,
I targetVertexId)
Request to remove all edges from a given source vertex to a given target
vertex (processed just prior to the next receive phase).
|
void |
removeVertexRequest(I vertexId)
Request to remove a vertex from the graph
(applied just prior to the next receive phase).
|
void |
sendMessage(I id,
M message)
Send a message to a vertex id.
|
void |
sendMessageToAllEdges(Vertex<I,V,E> vertex,
M message)
Send a message to all edges.
|
void |
sendMessageToMultipleEdges(Iterator<I> vertexIdIterator,
M message)
Send a message to multiple target vertex ids in the iterator.
|
getTotalNumEdges, getTotalNumVertices, getWorkerCountgetOutputDesc, getWritergetMyWorkerIndex, getWorkerCount, getWorkerForVertexgetCounter, progress, setStatusaggregategetAggregatedValuereduce, reduceMergeImmutableClassesGiraphConfiguration<I,V,E> getConf()
BlockConfApigetConf in interface BlockConfApigetConf in interface BlockWorkerApi<I extends org.apache.hadoop.io.WritableComparable>void sendMessage(I id, M message)
id - Vertex id to send the message tomessage - Message data to sendvoid sendMessageToAllEdges(Vertex<I,V,E> vertex, M message)
vertex - Vertex whose edges to send the message to.message - Message sent to all edges.void sendMessageToMultipleEdges(Iterator<I> vertexIdIterator, M message)
vertexIdIterator - An iterator to multiple target vertex ids.message - Message sent to all targets in the iterator.void addVertexRequest(I id, V value, OutEdges<I,E> edges)
id - Vertex idvalue - Vertex valueedges - Initial edgesvoid addVertexRequest(I id, V value)
id - Vertex idvalue - Vertex valuevoid removeVertexRequest(I vertexId)
vertexId - Id of the vertex to be removed.void addEdgeRequest(I sourceVertexId, Edge<I,E> edge)
sourceVertexId - Source vertex id of edgeedge - Edge to addCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.