python-happybase / happybase

A developer-friendly Python library to interact with Apache HBase
https://happybase.readthedocs.io/
Other
612 stars 163 forks source link

How does happyhbase fuzzy query rowkey #236

Closed UmfintechWtc closed 4 years ago

UmfintechWtc commented 4 years ago

eg data: (b'www.test2.com', {b'info:data': b'22222wwwww'}) (b'www.test3.com', {b'info:data': b'33333wwwww'})

How to fuzzy query rowkey by happyhbase filter regexstringcomparator

wbolster commented 4 years ago

this is the happybase issue tracker. this is not a happybase issue, but a generic hbase question. you're likely better off on stack overflow or on a mailing list.

wbolster commented 4 years ago

the docs at https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/RegexStringComparator.html have an example it seems

UmfintechWtc commented 4 years ago

the docs at https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/RegexStringComparator.html have an example it seems

I need to implement it in Python. You give an example of Java. You can filter out some data from the hundred million level data of Hadoop. The prefix, row start and row end of rowkey can't meet my existing needs. What's the best way for you;