本文整理了Java中org.apache.hadoop.hbase.client.Get.setCacheBlocks()
方法的一些代码示例,展示了Get.setCacheBlocks()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Get.setCacheBlocks()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Get
类名称:Get
方法名:setCacheBlocks
[英]Set whether blocks should be cached for this Get.
This is true by default. When true, default settings of the table and family are used (this will never override caching blocks if the block cache is disabled for that family or entirely).
[中]设置是否应为此Get缓存块。
这在默认情况下是正确的。如果为true,则使用表和族的默认设置(如果该族禁用或完全禁用了块缓存,则不会覆盖缓存块)。
代码示例来源:origin: apache/hbase
if (startKey.length > 0) {
get = new Get(startKey);
get.setCacheBlocks(false);
get.setFilter(new FirstKeyOnlyFilter());
stopWatch.start();
代码示例来源:origin: apache/hbase
get.setFilter(filter);
get.setCacheBlocks(cacheBlocks);
Result result = table.get(get);
if (result != null && !result.isEmpty()) {
代码示例来源:origin: apache/hbase
get.setCacheBlocks(false);
get.setFilter(new FirstKeyOnlyFilter());
get.addFamily(column.getName());
代码示例来源:origin: apache/hbase
Get get = new Get(row);
if (proto.hasCacheBlocks()) {
get.setCacheBlocks(proto.getCacheBlocks());
代码示例来源:origin: apache/hbase
@Test
public void testGetToScan() throws Exception {
Get get = new Get(Bytes.toBytes(1));
get.setCacheBlocks(true)
.setConsistency(Consistency.TIMELINE)
.setFilter(new FilterList())
代码示例来源:origin: apache/hbase
out.setCacheBlocks(in.isCacheBlocks());
代码示例来源:origin: apache/hbase
get.setMaxResultsPerColumnFamily(10);
get.setRowOffsetPerColumnFamily(11);
get.setCacheBlocks(true);
代码示例来源:origin: apache/hbase
Get get = new Get(row);
if (proto.hasCacheBlocks()) {
get.setCacheBlocks(proto.getCacheBlocks());
代码示例来源:origin: cdapio/cdap
@Override
public GetBuilder setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
return this;
}
代码示例来源:origin: cdapio/cdap
@Override
public GetBuilder setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
return this;
}
代码示例来源:origin: cdapio/cdap
@Override
public GetBuilder setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
return this;
}
代码示例来源:origin: caskdata/cdap
@Override
public GetBuilder setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
return this;
}
代码示例来源:origin: co.cask.cdap/cdap-hbase-compat-base
@Override
public GetBuilder setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
return this;
}
代码示例来源:origin: XiaoMi/themis
@Override
public void setCacheBlocks(boolean cacheBlocks) {
get.setCacheBlocks(cacheBlocks);
}
代码示例来源:origin: org.apache.hbase/hbase-client
Get get = new Get(row);
if (proto.hasCacheBlocks()) {
get.setCacheBlocks(proto.getCacheBlocks());
代码示例来源:origin: org.apache.hbase/hbase-client
@Test
public void testGetToScan() throws Exception {
Get get = new Get(Bytes.toBytes(1));
get.setCacheBlocks(true)
.setConsistency(Consistency.TIMELINE)
.setFilter(new FilterList())
代码示例来源:origin: org.apache.hbase/hbase-client
get.setMaxResultsPerColumnFamily(10);
get.setRowOffsetPerColumnFamily(11);
get.setCacheBlocks(true);
代码示例来源:origin: org.apache.hbase/hbase-client
Get get = new Get(row);
if (proto.hasCacheBlocks()) {
get.setCacheBlocks(proto.getCacheBlocks());
代码示例来源:origin: org.apache.hbase/hbase-rest
get.setFilter(filter);
get.setCacheBlocks(cacheBlocks);
Result result = table.get(get);
if (result != null && !result.isEmpty()) {
代码示例来源:origin: com.aliyun.hbase/alihbase-rest
get.setFilter(filter);
get.setCacheBlocks(cacheBlocks);
Result result = table.get(get);
if (result != null && !result.isEmpty()) {
内容来源于网络,如有侵权,请联系作者删除!