Package org.apache.hadoop.hbase.mapred
Class RowCounter
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.mapred.RowCounter
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@Public
public class RowCounter
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
A job with a map to count rows. Map outputs table rows IF the input row has columns that have
content. Uses a org.apache.hadoop.mapred.lib.IdentityReducer
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Mapper that runs the count. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapred.JobConf
createSubmittableJob
(String[] args) Returns the JobConfstatic void
(package private) static int
int
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
RowCounter
public RowCounter()
-
-
Method Details
-
createSubmittableJob
Returns the JobConf- Throws:
IOException
-
printUsage
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-
main
- Throws:
Exception
-