gpt4 book ai didi

hadoop - 是否可以将hbase行键设置在何处?

转载 作者:行者123 更新时间:2023-12-02 21:58:25 25 4
gpt4 key购买 nike

是否可以将hbase行键设置在何处?假设我有行键1,2,3,4,5 ...
我需要查询“where row-key <4”?

最佳答案

我认为您想要一个InclusiveStopFilter

s = new Scan(Bytes.toBytes("startRow"));
s.setFilter(new InclusiveStopFilter(Bytes.toBytes("stopRow")));

http://svn.apache.org/repos/asf/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/filter/InclusiveStopFilter.java

关于hadoop - 是否可以将hbase行键设置在何处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5325313/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com