[
https://issues.apache.org/jira/browse/HBASE-18001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010120#comment-16010120
]
Guangxu Cheng commented on HBASE-18001:
---------------------------------------
bq.Are users still able to pass on the size of cache to scan?
{code}
params = {
'INTERVAL' => 1000,
'CACHE' => 10
}.merge(params)
scan = table._hash_to_scan(params)
{code}
{code}
- count = table._count_internal(params['INTERVAL'].to_i,
params['CACHE'].to_i) do |cnt, row|
+ count = table._count_internal(params['INTERVAL'].to_i, scan) do |cnt,
row|
{code}
sure, parameter CACHE will be set to the scan by _hash_to_scan(params) in
couter.rb
> 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)