V - Vertex ID object typeE - Edge cost object typeM - Vertex value object typepublic interface VerticesInfo<V extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(Vertex<V,E,M> vertex)
Add a vertex to the underlying structure.
|
void |
cleanup(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID attempt)
Cleanup of internal structures.
|
void |
finishAdditions()
Finish the additions, from this point on the implementations should close
the adds and throw exceptions in case something is added after this call.
|
void |
finishRemovals()
Finish the removals, from this point on the implementations should close
the removes and throw exceptions in case something is removed after this call.
|
void |
finishSuperstep()
Called once completed a superstep.
|
void |
finishVertexComputation(Vertex<V,E,M> vertex)
Must be called once a vertex is guaranteed not to change any more and can
safely be persisted to a secondary storage.
|
void |
init(GraphJobRunner<V,E,M> runner,
org.apache.hadoop.conf.Configuration conf,
TaskAttemptID attempt)
Initialization of internal structures.
|
void |
removeVertex(V vertexID)
Remove a vertex to the underlying structure.
|
int |
size() |
IDSkippingIterator<V,E,M> |
skippingIterator() |
void |
startSuperstep()
Called once a superstep starts.
|
void init(GraphJobRunner<V,E,M> runner, org.apache.hadoop.conf.Configuration conf, TaskAttemptID attempt) throws IOException
IOExceptionvoid cleanup(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID attempt)
throws IOException
IOExceptionvoid addVertex(Vertex<V,E,M> vertex) throws IOException
IOExceptionvoid removeVertex(V vertexID) throws UnsupportedOperationException
UnsupportedOperationExceptionvoid finishAdditions()
void finishRemovals()
void startSuperstep()
throws IOException
IOExceptionvoid finishSuperstep()
throws IOException
IOExceptionvoid finishVertexComputation(Vertex<V,E,M> vertex) throws IOException
IOExceptionint size()
IDSkippingIterator<V,E,M> skippingIterator()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.