V - the vertexID type.E - the edge value type.M - the vertex value type.public class DefaultVertexOutputWriter<V extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> extends Object implements VertexOutputWriter<V,M,V,E,M>
| Constructor and Description |
|---|
DefaultVertexOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup(org.apache.hadoop.conf.Configuration conf)
Used to setup this output writer.
|
void |
write(Vertex<V,E,M> vertex,
BSPPeer<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,V,M,GraphJobMessage> peer)
Write is called for every vertex in the list.
|
public void setup(org.apache.hadoop.conf.Configuration conf)
VertexOutputWriterpublic void write(Vertex<V,E,M> vertex, BSPPeer<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,V,M,GraphJobMessage> peer) throws IOException
VertexOutputWriterwrite in interface VertexOutputWriter<V extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>vertex - the user defined vertex.peer - the peer that has methods to write to the output sink.IOExceptionCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.