protected class IdWithValueTextOutputFormat.IdWithValueVertexWriter extends TextVertexOutputFormat.TextVertexWriterToEachLine
IdWithValueTextOutputFormat.| Modifier | Constructor and Description | 
|---|---|
| protected  | IdWithValueVertexWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected org.apache.hadoop.io.Text | convertVertexToLine(Vertex<I,V,E> vertex)Writes a line for the given vertex. | 
| void | initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)Use the context to setup writing the vertices. | 
writeVertexclose, createLineRecordWriter, getContext, getRecordWritergetConf, setConfpublic void initialize(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
VertexWriterinitialize in class TextVertexOutputFormat.TextVertexWritercontext - Context used to write the vertices.IOExceptionInterruptedExceptionprotected org.apache.hadoop.io.Text convertVertexToLine(Vertex<I,V,E> vertex) throws IOException
TextVertexOutputFormat.TextVertexWriterToEachLineconvertVertexToLine in class TextVertexOutputFormat.TextVertexWriterToEachLinevertex - the current vertex for writingIOException - exception that can be thrown while writingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.