开发者

Selecting columns by regex in Hbase scanner via Thrift (in Ruby)

开发者 https://www.devze.com 2023-03-27 02:36 出处:网络
The docs suggest I should be able to pass a regex as a column qualifier. I have a columns named \"F1:I\" and \"F2:I\" in the column family \"C\".Consider the following:

The docs suggest I should be able to pass a regex as a column qualifier.

I have a columns named "F1:I" and "F2:I" in the column family "C". Consider the following:

columns = ['C:F1:I']
scanner = hbase.scannerOpen('myTable', startKey, columns)

All the "F1" rows are returned. I had hoped to be able to pass i开发者_如何学Pythonn a regex. I've tried variations of the following:

columns = ['C:F.*']
scanner = hbase.scannerOpen('myTable', startKey, columns)

Nothing.


According to HBase committer Lars George, the current version of the thrift service does not support this. The documentation referenced above is misleading.

The next version of thrift is expected to support these scenarios better.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号