org.apache.hadoop.hbase.client.Admin.getCompactionStateForRegion()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(125)

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

Admin.getCompactionStateForRegion介绍

[英]Get the current compaction state of region. It could be in a major compaction, a minor compaction, both, or none.
[中]获取区域的当前压缩状态。它可能是在一个主要的压实,一个次要的压实,两者,或没有。

代码示例

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

private boolean isCompacting(MajorCompactionRequest request) throws Exception {
 CompactionState compactionState = connection.getAdmin()
   .getCompactionStateForRegion(request.getRegion().getEncodedNameAsBytes());
 return compactionState.equals(CompactionState.MAJOR) || compactionState
   .equals(CompactionState.MAJOR_AND_MINOR);
}

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

.getCompactionStateForRegion(region.getRegionInfo().getRegionName())
 && retrier.shouldRetry()) {
retrier.sleepUntilNextRetry();

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

while (CompactionState.NONE != admin.getCompactionStateForRegion(daughter.getRegionName())
  && retrier.shouldRetry()) {
 retrier.sleepUntilNextRetry();

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

RetryCounter retrier = new RetryCounter(30, 1, TimeUnit.SECONDS);
while (CompactionState.NONE != admin
  .getCompactionStateForRegion(daughter.getRegionInfo().getRegionName())
  && retrier.shouldRetry()) {
 retrier.sleepUntilNextRetry();

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

.getCompactionStateForRegion(region.getRegionInfo().getRegionName())
 && retrier.shouldRetry()) {
retrier.sleepUntilNextRetry();

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

while (CompactionState.NONE != admin.getCompactionStateForRegion(daughter.getRegionName())
  && retrier.shouldRetry()) {
 retrier.sleepUntilNextRetry();

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

RetryCounter retrier = new RetryCounter(30, 1, TimeUnit.SECONDS);
while (CompactionState.NONE != admin
  .getCompactionStateForRegion(daughter.getRegionInfo().getRegionName())
  && retrier.shouldRetry()) {
 retrier.sleepUntilNextRetry();

相关文章

Admin类方法