python 带有行过滤器的happybase连接池演示

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 带有行过滤器的happybase连接池演示相关的知识,希望对你有一定的参考价值。

# -*- coding: utf-8 -*-
import happybase

pool = happybase.ConnectionPool(size=10, host='xxx')

if __name__ == '__main__':
    with pool.connection() as conn:
        table = conn.table('table')
        # row filter demo
        row_filter = "RowFilter(=, 'regexstring:1234')"
        for key, value in table.scan(filter=row_filter):
            print key, value
        

以上是关于python 带有行过滤器的happybase连接池演示的主要内容,如果未能解决你的问题,请参考以下文章