protected class SrcIdDstIdEdgeValueTextOutputFormat.SrcIdDstIdEdgeValueEdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends TextEdgeOutputFormat.TextEdgeWriterToEachLine<I,V,E>
SrcIdDstIdEdgeValueTextOutputFormat.| Modifier | Constructor and Description |
|---|---|
protected |
SrcIdDstIdEdgeValueEdgeWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.io.Text |
convertEdgeToLine(I sourceId,
V sourceValue,
Edge<I,E> edge)
Writes a line for the given edge.
|
void |
initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the context to setup writing the edges.
|
writeEdgeclose, createLineRecordWriter, getContext, getRecordWritergetConf, setConfpublic void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
EdgeWriterinitialize in class TextEdgeOutputFormat.TextEdgeWriter<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - Context used to write the vertices.IOExceptionInterruptedExceptionprotected org.apache.hadoop.io.Text convertEdgeToLine(I sourceId, V sourceValue, Edge<I,E> edge) throws IOException
TextEdgeOutputFormat.TextEdgeWriterToEachLineconvertEdgeToLine in class TextEdgeOutputFormat.TextEdgeWriterToEachLine<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>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.