Class TextVertexOutputFormat.TextVertexWriterToEachLine

  • All Implemented Interfaces:
    org.apache.giraph.conf.GiraphConfigurationSettable<I,​V,​E>, org.apache.giraph.conf.ImmutableClassesGiraphConfigurable<I,​V,​E>, org.apache.giraph.io.SimpleVertexWriter<I,​V,​E>
    Enclosing class:
    TextVertexOutputFormat<I extends org.apache.hadoop.io.WritableComparable,​V extends org.apache.hadoop.io.Writable,​E extends org.apache.hadoop.io.Writable>

    protected abstract class TextVertexOutputFormat.TextVertexWriterToEachLine
    extends TextVertexOutputFormat.TextVertexWriter
    Abstract class to be implemented by the user to write a line for each vertex.
    • Constructor Detail

      • TextVertexWriterToEachLine

        protected TextVertexWriterToEachLine()
    • Method Detail

      • convertVertexToLine

        protected abstract org.apache.hadoop.io.Text convertVertexToLine​(org.apache.giraph.graph.Vertex<I,​V,​E> vertex)
                                                                  throws IOException
        Writes a line for the given vertex.
        Parameters:
        vertex - the current vertex for writing
        Returns:
        the text line to be written
        Throws:
        IOException - exception that can be thrown while writing