public class MigrationWorkerContext extends DefaultImmutableClassesGiraphConfigurable implements org.apache.hadoop.io.Writable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MigrationWorkerContext.MigrationFullWorkerContextDrop-in replacement for WorkerContext when migrating to
 Blocks Framework. | 
| Constructor and Description | 
|---|
| MigrationWorkerContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<org.apache.hadoop.io.Writable> | getAndClearMessagesFromOtherWorkers() | 
| int | getMyWorkerIndex() | 
| long | getTotalNumEdges() | 
| long | getTotalNumVertices() | 
| int | getWorkerCount() | 
| void | postSuperstep() | 
| void | preSuperstep() | 
| void | readFields(DataInput in) | 
| void | sendMessageToWorker(org.apache.hadoop.io.Writable message,
                   int workerIndex) | 
| void | setApi(BlockWorkerContextApi api) | 
| void | setReceivedMessages(List<org.apache.hadoop.io.Writable> receivedMessages) | 
| void | write(DataOutput out) | 
getConf, setConfpublic void setApi(BlockWorkerContextApi api)
public void setReceivedMessages(List<org.apache.hadoop.io.Writable> receivedMessages)
public void preSuperstep()
public void postSuperstep()
public long getTotalNumVertices()
public long getTotalNumEdges()
public 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 final int getWorkerCount()
public final int getMyWorkerIndex()
public final List<org.apache.hadoop.io.Writable> getAndClearMessagesFromOtherWorkers()
public final void sendMessageToWorker(org.apache.hadoop.io.Writable message,
                                      int workerIndex)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.