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

Jean-Marc Spaggiari commented on HBASE-9086:
--------------------------------------------

What you are looking for is to replace

{code}
scan.setFilter(new FirstKeyOnlyFilter());
{code}

by

{code}
scan.setFilter(new KeyOnlyFilter());
{code}

This need to be done in 2 places in 0.94 and only one in trunk.

Might be good to have an option to specify which filter you want to use.
                
> Add some options to improve count performance
> ---------------------------------------------
>
>                 Key: HBASE-9086
>                 URL: https://issues.apache.org/jira/browse/HBASE-9086
>             Project: HBase
>          Issue Type: Wish
>          Components: shell
>    Affects Versions: 0.94.2
>            Reporter: Cheney Sun
>
> The current count command in HBase shell is quite slow if the row size is 
> very big (100+kB each). It would be helpful to provide some option to specify 
> the column to count, which could give user a chance to reduce the data volume 
> to scan. 
> IMHO, only count the row key would be the ideal solution. Not sure how 
> difficult to implement it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to