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

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(131)

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

HStore.close介绍

[英]Close all the readers We don't need to worry about subsequent requests because the Region holds a write lock that will prevent any more reads or writes.
[中]关闭所有读卡器我们不需要担心后续的请求,因为该区域拥有一个写锁,将阻止更多的读或写操作。

代码示例

代码示例来源:origin: apache/hbase

@Override
 public Pair<byte[], Collection<HStoreFile>> call() throws IOException {
  return new Pair<>(store.getColumnFamilyDescriptor().getName(), store.close());
 }
});

代码示例来源:origin: apache/hbase

for (HStore store : this.stores.values()) {
 try {
  store.close();
 } catch (IOException e) {
  LOG.warn("close store failed", e);

代码示例来源:origin: apache/hbase

@After
public void tearDown() throws Exception {
 EnvironmentEdgeManagerTestHelper.reset();
 if (store != null) {
  try {
   store.close();
  } catch (IOException e) {
  }
  store = null;
 }
 if (region != null) {
  region.close();
  region = null;
 }
}

代码示例来源:origin: apache/hbase

w.appendMetadata(seqid + 1, false);
w.close();
this.store.close();

代码示例来源:origin: org.apache.hbase/hbase-server

@After
public void tearDown() throws Exception {
 EnvironmentEdgeManagerTestHelper.reset();
 if (store != null) {
  try {
   store.close();
  } catch (IOException e) {
  }
  store = null;
 }
 if (region != null) {
  region.close();
  region = null;
 }
}

代码示例来源:origin: org.apache.hbase/hbase-server

w.appendMetadata(seqid + 1, false);
w.close();
this.store.close();

相关文章

HStore类方法