public class IntNullReverseTextEdgeInputFormat extends IntNullTextEdgeInputFormat
EdgeInputFormat
for
unweighted graphs with int ids.
Each line consists of: source_vertex, target_vertex
This version also creates the reverse edges.IntNullTextEdgeInputFormat.IntNullTextEdgeReader
TextEdgeInputFormat.TextEdgeReader, TextEdgeInputFormat.TextEdgeReaderFromEachLine, TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<T>
textInputFormat
Constructor and Description |
---|
IntNullReverseTextEdgeInputFormat() |
Modifier and Type | Method and Description |
---|---|
EdgeReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.NullWritable> |
createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create an edge reader for a given split.
|
checkInputSpecs, getSplits
readInputSplit, writeInputSplit
getConf, setConf
public EdgeReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.NullWritable> createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
EdgeInputFormat
EdgeReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createEdgeReader
in class IntNullTextEdgeInputFormat
split
- the split to be readcontext
- the information about the taskIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.