Class CellCounter.CellCounterMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,KEYOUT,VALUEOUT>
org.apache.hadoop.hbase.mapreduce.TableMapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
org.apache.hadoop.hbase.mapreduce.CellCounter.CellCounterMapper
- Enclosing class:
- CellCounter
static class CellCounter.CellCounterMapper
extends TableMapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
Mapper that runs the count.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Counter enumeration to count the actual rows.Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
map
(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Maps the data.protected void
setup
(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run
-
Field Details
-
conf
-
separator
-
lastRow
-
currentRowKey
-
currentFamily
byte[] currentFamily -
currentFamilyName
-
currentQualifier
byte[] currentQualifier -
currentQualifierName
-
currentRowQualifierName
-
-
Constructor Details
-
CellCounterMapper
-
-
Method Details
-
setup
protected void setup(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, throws IOException, InterruptedExceptionorg.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,
Result, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable> - Throws:
IOException
InterruptedException
-
map
public void map(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, throws IOExceptionorg.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Maps the data.- Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,
Result, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable> - Parameters:
row
- The current table row key.values
- The columns.context
- The current context.- Throws:
IOException
- When something is broken with the data.
-