public static class RMATGenerator.RMATGeneratorMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,pegasus.mapreduce.graphgen.RMATGenerator.RegionSlot,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
Constructor and Description |
---|
RMATGeneratorMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
map(org.apache.hadoop.io.IntWritable key,
pegasus.mapreduce.graphgen.RMATGenerator.RegionSlot rs,
org.apache.hadoop.mapreduce.Mapper.Context context)
The map function of the RMAT graph generator.
|
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Setup before execution.
|
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,pegasus.mapreduce.graphgen.RMATGenerator.RegionSlot,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
context
- of hadoopjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoopprotected void map(org.apache.hadoop.io.IntWritable key, pegasus.mapreduce.graphgen.RMATGenerator.RegionSlot rs, org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,pegasus.mapreduce.graphgen.RMATGenerator.RegionSlot,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
key
- task idrs
- a region slot that contains regions to process here.context
- of hadoopjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoop