简体   繁体   English

Thrift HBase客户端-支持过滤器和协处理器

[英]thrift hbase client - support filters and coprocessors

Sadly, My hbase client language is Python, I am using happybase for now which is based on thrift AFAIK. 不幸的是,我的hbase客户端语言是Python,我现在使用的是基于节俭AFAIK的happybase。 I know thrift so far is still not supporting filters, coprocessors (correct me if I am wrong here). 我知道到目前为止,节俭还不支持过滤器,协处理器(如果我在这里错了,请纠正我)。 Can some one point me any Jira items I can track the plan/progress if there is one? 有人可以指出我可以跟踪计划/进度的任何Jira项目吗? The only ones I can find is from "Hbase in Action": 我只能在“ Hbase in Action”中找到:

The 1st one doesn't seem covering filters and the 2nd one hasn't been updated for a long while. 第一个似乎没有覆盖过滤器,第二个很久没有更新。

Filters are supported through Thrift. Thrift支持过滤器。 Here's a HappyBase example: 这是一个HappyBase示例:

table = connection.table("mytable")
g = table.scan(filter="SingleColumnValueFilter ('f', 'column1', =, 'substring:text')")
for key, data in g:
    print data

Also check out Thrift book for information on various filters and their configuration. 还可以查看Thrift手册以获取有关各种过滤器及其配置的信息。

Family Filter 家庭过滤器

Description: This filter takes a compare operator and a comparator. 说明:该过滤器带有一个比较运算符和一个比较器。 It compares each qualifier name with the comparator using the compare operator and if the comparison returns true, it returns all the key-values in that column 它将使用compare运算符将每个限定符名称与比较器进行比较,如果比较返回true,则将返回该列中的所有键值

Syntax: QualifierFilter (, '') 语法:QualifierFilter(,'')

Example: "QualifierFilter (=, 'Column1')" 示例:“ QualifierFilter(=,'Column1')”

I think it is a mistake in it 我认为这是一个错误

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

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