简体   繁体   English

Hbase中的行数,其中列具有特定值

[英]Row count in Hbase where a column has certain value

I am using hbase to store my data in hdfs, I have a column family with user_details in my table where I am storing user values like- 我正在使用hbase将我的数据存储在hdfs中,我在我的表中有一个带有user_details的列族,我在这里存储用户值,如:

userdetails-> userid ->"ui011"
userdetails-> userName->"John"
userdetails-> emailid->"john@xyz.com"

Now is it possible to count the rows which have particular value in username and email id, both through java and hbase shell. 现在可以通过java和hbase shell计算在用户名和电子邮件ID中具有特定值的行。 I am kind of new to hbase and any help will be appreciated. 我是hbase的新手,任何帮助都将不胜感激。

Take a look at Hbase coprocessor AggregationClient . 看一下Hbase协处理器AggregationClient。 AggregationClient docs AggregationClient文档

Example usage: row-count-hbase-aggregation-example 用法示例: row-count-hbase-aggregation-example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM