Class TextVertexInputFormat<I extends org.apache.hadoop.io.WritableComparable,​V extends org.apache.hadoop.io.Writable,​E extends org.apache.hadoop.io.Writable>

    • Constructor Detail

      • TextVertexInputFormat

        public TextVertexInputFormat()
    • Method Detail

      • checkInputSpecs

        public void checkInputSpecs​(org.apache.hadoop.conf.Configuration conf)
        Specified by:
        checkInputSpecs in class org.apache.giraph.io.GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,​V extends org.apache.hadoop.io.Writable,​E extends org.apache.hadoop.io.Writable>
      • getSplits

        public List<org.apache.hadoop.mapreduce.InputSplit> getSplits​(org.apache.hadoop.mapreduce.JobContext context,
                                                                      int minSplitCountHint)
                                                               throws IOException,
                                                                      InterruptedException
        Specified by:
        getSplits in class org.apache.giraph.io.GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,​V extends org.apache.hadoop.io.Writable,​E extends org.apache.hadoop.io.Writable>
        Throws:
        IOException
        InterruptedException
      • createVertexReader

        public abstract TextVertexInputFormat.TextVertexReader createVertexReader​(org.apache.hadoop.mapreduce.InputSplit split,
                                                                                  org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                           throws IOException
        The factory method which produces the TextVertexInputFormat.TextVertexReader used by this input format.
        Specified by:
        createVertexReader in class org.apache.giraph.io.VertexInputFormat<I extends org.apache.hadoop.io.WritableComparable,​V extends org.apache.hadoop.io.Writable,​E extends org.apache.hadoop.io.Writable>
        Parameters:
        split - the split to be read
        context - the information about the task
        Returns:
        the text vertex reader to be used
        Throws:
        IOException