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
Nested ClassesModifier and TypeClassDescription(package private) static classMapper that runs the count. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapred.JobConfcreateSubmittableJob(String[] args) Returns the JobConfstatic void(package private) static intintMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
main
- Throws:
Exception
-