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, setConf
public 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 writtenIOException
InterruptedException
public abstract void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
context
- Context used to write the vertices.IOException
InterruptedException
public abstract void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
EdgeWriter
to future operations.context
- the context of the taskIOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.