protected abstract class TextEdgeOutputFormat.TextEdgeWriterToEachLine<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends TextEdgeOutputFormat.TextEdgeWriter<I,V,E>
| Modifier | Constructor and Description |
|---|---|
protected |
TextEdgeWriterToEachLine() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.hadoop.io.Text |
convertEdgeToLine(I sourceId,
V sourceValue,
Edge<I,E> edge)
Writes a line for the given edge.
|
void |
writeEdge(I sourceId,
V sourceValue,
Edge<I,E> edge)
Writes the next vertex and associated data
|
close, createLineRecordWriter, getContext, getRecordWriter, initializegetConf, setConfpublic final void writeEdge(I sourceId, V sourceValue, Edge<I,E> edge) throws IOException, InterruptedException
EdgeWriterwriteEdge in class EdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>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 writtenIOExceptionInterruptedExceptionprotected abstract org.apache.hadoop.io.Text convertEdgeToLine(I sourceId, V sourceValue, Edge<I,E> edge) throws IOException
sourceId - the current id of the source vertexsourceValue - the current value of the source vertexedge - the current vertex for writingIOException - exception that can be thrown while writingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.