HBASE-24693 regioninfo#isLast() should point to EMPTY_END_ROW (readability improvement)
Closes #2051 Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
3bd54217a0
commit
d132c4b53d
|
@ -768,7 +768,7 @@ public interface RegionInfo extends Comparable<RegionInfo> {
|
|||
* @return True if this is last Region in Table
|
||||
*/
|
||||
default boolean isLast() {
|
||||
return Bytes.equals(getEndKey(), HConstants.EMPTY_START_ROW);
|
||||
return Bytes.equals(getEndKey(), HConstants.EMPTY_END_ROW);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -615,7 +615,7 @@ public final class HConstants {
|
|||
/**
|
||||
* Last row in a table.
|
||||
*/
|
||||
public static final byte [] EMPTY_END_ROW = EMPTY_START_ROW;
|
||||
public static final byte [] EMPTY_END_ROW = EMPTY_BYTE_ARRAY;
|
||||
|
||||
/**
|
||||
* Used by scanners and others when they're trying to detect the end of a
|
||||
|
|
Loading…
Reference in New Issue