通过 Thrift(在 Ruby 中)在 Hbase 扫描器中通过正则表达式选择列
文档建议我应该能够传递正则表达式作为列限定符。
我在列族“C”中有一个名为“F1:I”和“F2:I”的列。请考虑以下情况:
columns = ['C:F1:I']
scanner = hbase.scannerOpen('myTable', startKey, columns)
返回所有“F1”行。我本来希望能够传递正则表达式。我尝试过以下变体:
columns = ['C:F.*']
scanner = hbase.scannerOpen('myTable', startKey, columns)
什么也没有。
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 in a regex. I've tried variations of the following:
columns = ['C:F.*']
scanner = hbase.scannerOpen('myTable', startKey, columns)
Nothing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 HBase 提交者 Lars George 的说法,当前版本的 thrift 服务不支持此功能。上面引用的文档具有误导性。
thrift 的下一个版本预计将更好地支持这些场景。
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.