HBASE-25210 RegionInfo.isOffline is now a duplication with RegionInfo.isSplit (#2580)
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
04293ad6dd
commit
770098128a
|
@ -254,8 +254,11 @@ class MutableRegionInfo implements RegionInfo {
|
|||
|
||||
/**
|
||||
* @return True if this region is offline.
|
||||
* @deprecated since 3.0.0 and will be removed in 4.0.0
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOffline() {
|
||||
return this.offLine;
|
||||
}
|
||||
|
@ -273,8 +276,11 @@ class MutableRegionInfo implements RegionInfo {
|
|||
|
||||
/**
|
||||
* @return True if this is a split parent region.
|
||||
* @deprecated since 3.0.0 and will be removed in 4.0.0, Use {@link #isSplit()} instead.
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSplitParent() {
|
||||
if (!isSplit()) {
|
||||
return false;
|
||||
|
|
|
@ -218,12 +218,18 @@ public interface RegionInfo extends Comparable<RegionInfo> {
|
|||
|
||||
/**
|
||||
* @return True if this region is offline.
|
||||
* @deprecated since 3.0.0 and will be removed in 4.0.0
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
|
||||
*/
|
||||
@Deprecated
|
||||
boolean isOffline();
|
||||
|
||||
/**
|
||||
* @return True if this is a split parent region.
|
||||
* @deprecated since 3.0.0 and will be removed in 4.0.0, Use {@link #isSplit()} instead.
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
|
||||
*/
|
||||
@Deprecated
|
||||
boolean isSplitParent();
|
||||
|
||||
/**
|
||||
|
|
|
@ -100,6 +100,7 @@ public class RegionInfoBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public RegionInfoBuilder setOffline(boolean offLine) {
|
||||
this.offLine = offLine;
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue