@InterfaceAudience.Public @InterfaceStability.Stable public class ValueAggregatorMapper<K1 extends WritableComparable<?>,V1 extends Writable> extends Mapper<K1,V1,Text,Text>
Constructor and Description |
---|
ValueAggregatorMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(K1 key,
V1 value,
org.apache.hadoop.mapreduce.Mapper.Context context)
the map function.
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Called once at the beginning of the task.
|
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
Mapper
setup
in class Mapper<K1 extends WritableComparable<?>,V1 extends Writable,Text,Text>
IOException
InterruptedException
public void map(K1 key, V1 value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class Mapper<K1 extends WritableComparable<?>,V1 extends Writable,Text,Text>
IOException
InterruptedException
Copyright © 2022 Apache Software Foundation. All rights reserved.