Take a look at http://hbase.apache.org/0.94/apidocs/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.html#rowCount(byte[],%20org.apache.hadoop.hbase.coprocessor.ColumnInterpreter,%20org.apache.hadoop.hbase.client.Scan)
You can pass custom filter through Scan parameter. Cheers On Jan 16, 2014, at 11:58 PM, "[email protected]" <[email protected]> wrote: > Hi, > > I know that hbase copocessor provides a quick way to count the rows of a > table. > But how can i count the rows that meet several conditions. > > Take this for example. > I have a hbase table with one column family, several columns. I want to > caculate the number of rows that meet 3 conditions: > has column1 > has column2 > has column3 and the value of column3 satisfy a regular expression > > Thans, > Lei > > > > [email protected]
