I
- Vertex idV
- Vertex dataE
- Edge datapublic class GraphMapper<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends org.apache.hadoop.mapreduce.Mapper<Object,Object,Object,Object>
Object
type.Constructor and Description |
---|
GraphMapper() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
map(Object key,
Object value,
org.apache.hadoop.mapreduce.Mapper.Context context)
GraphMapper is designed to host the compute node in a Hadoop
Mapper task.
|
void |
run(org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,Object,Object>
IOException
InterruptedException
public void map(Object key, Object value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,Object,Object>
key
- unused arg required by Mapper APIvalue
- unused arg required by Mapper APIcontext
- the Mapper#Context required to report progress
to the underlying clusterIOException
InterruptedException
public void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
cleanup
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,Object,Object>
IOException
InterruptedException
public void run(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
run
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,Object,Object>
IOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.