Class LiveJournalEdgeInputFormat
- java.lang.Object
-
- org.apache.giraph.conf.DefaultImmutableClassesGiraphConfigurable<I,V,E>
-
- org.apache.giraph.io.GiraphInputFormat<I,org.apache.hadoop.io.Writable,E>
-
- org.apache.giraph.io.EdgeInputFormat<I,E>
-
- org.apache.giraph.io.formats.TextEdgeInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
-
- com.alibaba.graphscope.example.giraph.format.LiveJournalEdgeInputFormat
-
- All Implemented Interfaces:
org.apache.giraph.conf.GiraphConfigurationSettable<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.LongWritable>
,org.apache.giraph.conf.ImmutableClassesGiraphConfigurable<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.LongWritable>
public class LiveJournalEdgeInputFormat extends TextEdgeInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LiveJournalEdgeInputFormat.LiveJournalEdgeReader
-
Nested classes/interfaces inherited from class org.apache.giraph.io.formats.TextEdgeInputFormat
TextEdgeInputFormat.TextEdgeReader, TextEdgeInputFormat.TextEdgeReaderFromEachLine, TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<T>
-
-
Constructor Summary
Constructors Constructor Description LiveJournalEdgeInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.giraph.io.EdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create an edge reader for a given split.-
Methods inherited from class org.apache.giraph.io.formats.TextEdgeInputFormat
checkInputSpecs, getSplits
-
-
-
-
Method Detail
-
createEdgeReader
public org.apache.giraph.io.EdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable> createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
Create an edge reader for a given split. The framework will callEdgeReader.initialize(InputSplit, TaskAttemptContext)
before the split is used.- Specified by:
createEdgeReader
in classorg.apache.giraph.io.EdgeInputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
- Parameters:
split
- the split to be readcontext
- the information about the task- Returns:
- a new record reader
- Throws:
IOException
-
-