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