protected class AdjacencyListTextVertexOutputFormat.AdjacencyListTextVertexWriter extends TextVertexOutputFormat.TextVertexWriterToEachLine
AdjacencyListTextVertexOutputFormat.| Modifier | Constructor and Description |
|---|---|
protected |
AdjacencyListTextVertexWriter() |
| Modifier and Type | Method and Description |
|---|---|
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.IOExceptionInterruptedExceptionpublic 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.