static class CellCounter.CellCounterMapper extends TableMapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
Modifier and Type | Class and Description |
---|---|
static class |
CellCounter.CellCounterMapper.Counters
Counter enumeration to count the actual rows.
|
Constructor and Description |
---|
CellCounter.CellCounterMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(ImmutableBytesWritable row,
Result values,
org.apache.hadoop.mapreduce.Mapper.Context context)
Maps the data.
|
public void map(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
map
in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
row
- The current table row key.values
- The columns.context
- The current context.IOException
- When something is broken with the data.org.apache.hadoop.mapreduce.Mapper#map(KEYIN, VALUEIN,
org.apache.hadoop.mapreduce.Mapper.Context)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.