Package org.apache.hadoop.hbase.mapred
Class RowCounter.RowCounterMapper
java.lang.Object
org.apache.hadoop.hbase.mapred.RowCounter.RowCounterMapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TableMap<ImmutableBytesWritable,
,Result> org.apache.hadoop.io.Closeable
,org.apache.hadoop.mapred.JobConfigurable
,org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,
Result, ImmutableBytesWritable, Result>
- Enclosing class:
- RowCounter
static class RowCounter.RowCounterMapper
extends Object
implements TableMap<ImmutableBytesWritable,Result>
Mapper that runs the count.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
configure
(org.apache.hadoop.mapred.JobConf jc) void
map
(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable, Result> output, org.apache.hadoop.mapred.Reporter reporter)
-
Constructor Details
-
RowCounterMapper
-
-
Method Details
-
map
public void map(ImmutableBytesWritable row, Result values, org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable, Result> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException- Specified by:
map
in interfaceorg.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,
Result, ImmutableBytesWritable, Result> - Throws:
IOException
-
configure
- Specified by:
configure
in interfaceorg.apache.hadoop.mapred.JobConfigurable
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-