@InterfaceAudience.Public @InterfaceStability.Stable public class CellCounter extends Object
1. Total number of rows in the table 2. Total number of CFs across all rows 3. Total qualifiers across all rows 4. Total occurrence of each CF 5. Total occurrence of each qualifier 6. Total number of versions of each qualifier.The cellcounter takes two optional parameters one to use a user supplied row/family/qualifier string to use in the report and second a regex based or prefix based row filter to restrict the count operation to a limited subset of rows from the table.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CellCounter.CellCounterMapper
Mapper that runs the count.
|
(package private) static class |
CellCounter.IntSumReducer<Key> |
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
(package private) static String |
NAME
Name of this 'program'.
|
Constructor and Description |
---|
CellCounter() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.mapreduce.Job |
createSubmittableJob(org.apache.hadoop.conf.Configuration conf,
String[] args)
Sets up the actual job.
|
private static Scan |
getConfiguredScanForJob(org.apache.hadoop.conf.Configuration conf,
String[] args) |
private static Filter |
getRowFilter(String[] args) |
private static long[] |
getTimeRange(String[] args) |
static void |
main(String[] args)
Main entry point.
|
private static final org.apache.commons.logging.Log LOG
static final String NAME
public static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException
conf
- The current configuration.args
- The command line parameters.IOException
- When setting up the job fails.private static Scan getConfiguredScanForJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException
IOException
private static long[] getTimeRange(String[] args) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.