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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconfigure(org.apache.hadoop.mapred.JobConf jc) voidmap(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:
mapin interfaceorg.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,Result, ImmutableBytesWritable, Result> - Throws:
IOException
-
configure
- Specified by:
configurein interfaceorg.apache.hadoop.mapred.JobConfigurable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-