[ 
https://issues.apache.org/jira/browse/HBASE-18001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010541#comment-16010541
 ] 

Chia-Ping Tsai commented on HBASE-18001:
----------------------------------------

{code}
+        else
+          scan.setFilter(org.apache.hadoop.hbase.filter.FilterList.new(
+              
org.apache.hadoop.hbase.filter.FilterList::Operator.valueOf('MUST_PASS_ALL'),
+              filter,
+              org.apache.hadoop.hbase.filter.FirstKeyOnlyFilter.new))
+        end
{code}
We need to ensure that all filters have the same value of parameter "reversed". 
Otherwise, we may fail to build the new FilterList. (Although it doesn't make 
sense to specify the parameter "reversed" for counting.)

> Extend the "count" shell command to support specified conditions
> ----------------------------------------------------------------
>
>                 Key: HBASE-18001
>                 URL: https://issues.apache.org/jira/browse/HBASE-18001
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>    Affects Versions: 2.0.0
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>            Priority: Minor
>              Labels: beginner
>             Fix For: 2.0.0
>
>         Attachments: HBASE-18001-v1.patch
>
>
> shell command "count" can only count the number of rows in a table.
> And, it could not count the number of the specified conditions.
> Can we allow users to specified conditions like command "scan"?
> In that case, we can count the number of rows under any conditions.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to