I - Vertex idV - Vertex valueE - Edge valuepublic abstract class EdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends DefaultImmutableClassesGiraphConfigurable<I,V,E>
| Constructor and Description |
|---|
EdgeWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Close this
EdgeWriter to future operations. |
abstract void |
initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the context to setup writing the edges.
|
abstract void |
writeEdge(I sourceId,
V sourceValue,
Edge<I,E> edge)
Writes the next vertex and associated data
|
getConf, setConfpublic abstract void writeEdge(I sourceId, V sourceValue, Edge<I,E> edge) throws IOException, InterruptedException
sourceId - the vertex ID from which the edge originatessourceValue - the vertex value; the vertex is the one from which
the edge originatesedge - edge to be writtenIOExceptionInterruptedExceptionpublic abstract void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
context - Context used to write the vertices.IOExceptionInterruptedExceptionpublic abstract void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
EdgeWriter to future operations.context - the context of the taskIOExceptionInterruptedExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.