Class RowCounter.RowCounterMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,KEYOUT,VALUEOUT>
org.apache.hadoop.hbase.mapreduce.TableMapper<ImmutableBytesWritable,Result>
org.apache.hadoop.hbase.mapreduce.RowCounter.RowCounterMapper
- Enclosing class:
- RowCounter
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
map
(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Result>.org.apache.hadoop.mapreduce.Mapper.Context context) Maps the data.Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run, setup
-
Constructor Details
-
RowCounterMapper
-
-
Method Details
-
map
public void map(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, throws IOExceptionImmutableBytesWritable, Result>.org.apache.hadoop.mapreduce.Mapper.Context context) Maps the data.- Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,
Result, ImmutableBytesWritable, Result> - Parameters:
row
- The current table row key.values
- The columns.context
- The current context.- Throws:
IOException
- When something is broken with the data.- See Also:
-
org.apache.hadoop.mapreduce.Mapper#map(Object, Object, Context)
-