org.apache.hadoop.hbase.regionserver.Store.getRowKeyAtOrBefore()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.apache.hadoop.hbase.regionserver.Store.getRowKeyAtOrBefore()方法的一些代码示例,展示了Store.getRowKeyAtOrBefore()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.getRowKeyAtOrBefore()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.regionserver.Store
类名称:Store
方法名:getRowKeyAtOrBefore

Store.getRowKeyAtOrBefore介绍

[英]Find the key that matches row exactly, or the one that immediately precedes it. WARNING: Only use this method on a table where writes occur with strictly increasing timestamps. This method assumes this pattern of writes in order to make it reasonably performant. Also our search is dependent on the axiom that deletes are for cells that are in the container that follows whether a memstore snapshot or a storefile, not for the current container: i.e. we'll see deletes before we come across cells we are to delete. Presumption is that the memstore#kvset is processed before memstore#snapshot and so on.
[中]找到与行完全匹配的键,或紧跟在它前面的键。警告:仅在写入时间戳严格增加的表上使用此方法。此方法假定这种写入模式,以使其具有合理的性能。此外,我们的搜索依赖于这样一条公理:删除是针对memstore快照或storefile之后的容器中的单元格,而不是针对当前容器:也就是说,在遇到要删除的单元格之前,我们会看到删除。假定memstore#kvset是在memstore#snapshot等之前处理的。

代码示例

代码示例来源:origin: harbby/presto-connectors

Store store = getStore(family);
Cell key = store.getRowKeyAtOrBefore(row);
Result result = null;
if (key != null) {

代码示例来源:origin: co.cask.hbase/hbase

Store store = getStore(family);
KeyValue key = store.getRowKeyAtOrBefore(row);
Result result = null;
if (key != null) {

相关文章

微信公众号

最新文章

更多