RegionInfoBuilder to build RegionInfo.@Deprecated @InterfaceAudience.Public public class HRegionInfo extends Object implements RegionInfo, Comparable<HRegionInfo>
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ENCODED_REGION_NAME_REGEX
已过时。
A non-capture group so that this can be embedded.
|
static HRegionInfo |
FIRST_META_REGIONINFO
已过时。
HRegionInfo for first meta region
|
static byte[] |
HIDDEN_END_KEY
已过时。
|
static byte[] |
HIDDEN_START_KEY
已过时。
|
static String |
NO_HASH
已过时。
|
COMPARATOR, DEFAULT_REPLICA_ID, ENC_SEPARATOR, INVALID_REGION_NAME_FORMAT_MESSAGE, MD5_HEX_LENGTH, REPLICA_ID_DELIMITER, REPLICA_ID_FORMAT, UNDEFINED| 构造器和说明 |
|---|
HRegionInfo(HRegionInfo other,
int replicaId)
已过时。
|
HRegionInfo(long regionId,
TableName tableName,
int replicaId)
已过时。
|
HRegionInfo(RegionInfo other)
已过时。
Costruct a copy of another HRegionInfo
|
HRegionInfo(TableName tableName)
已过时。
|
HRegionInfo(TableName tableName,
byte[] startKey,
byte[] endKey)
已过时。
Construct HRegionInfo with explicit parameters
|
HRegionInfo(TableName tableName,
byte[] startKey,
byte[] endKey,
boolean split)
已过时。
Construct HRegionInfo with explicit parameters
|
HRegionInfo(TableName tableName,
byte[] startKey,
byte[] endKey,
boolean split,
long regionid)
已过时。
Construct HRegionInfo with explicit parameters
|
HRegionInfo(TableName tableName,
byte[] startKey,
byte[] endKey,
boolean split,
long regionid,
int replicaId)
已过时。
Construct HRegionInfo with explicit parameters
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
areAdjacent(HRegionInfo regionA,
HRegionInfo regionB)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.areAdjacent(RegionInfo, RegionInfo). |
int |
compareTo(HRegionInfo o)
已过时。
|
boolean |
containsRange(byte[] rangeStartKey,
byte[] rangeEndKey)
已过时。
Returns true if the given inclusive range of rows is fully contained
by this region.
|
boolean |
containsRow(byte[] row)
已过时。
|
static HRegionInfo |
convert(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo proto)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use toRegionInfo(HBaseProtos.RegionInfo)
in org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo |
convert(HRegionInfo info)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use toRegionInfo(org.apache.hadoop.hbase.client.RegionInfo)
in org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.
|
static byte[] |
createRegionName(TableName tableName,
byte[] startKey,
byte[] id,
boolean newFormat)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.createRegionName(TableName, byte[], byte[], boolean). |
static byte[] |
createRegionName(TableName tableName,
byte[] startKey,
byte[] id,
int replicaId,
boolean newFormat)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.createRegionName(TableName, byte[], byte[], int, boolean). |
static byte[] |
createRegionName(TableName tableName,
byte[] startKey,
long regionid,
boolean newFormat)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.createRegionName(TableName, byte[], long, boolean). |
static byte[] |
createRegionName(TableName tableName,
byte[] startKey,
long regionid,
int replicaId,
boolean newFormat)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.createRegionName(TableName, byte[], long, int, boolean). |
static byte[] |
createRegionName(TableName tableName,
byte[] startKey,
String id,
boolean newFormat)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.createRegionName(TableName, byte[], String, boolean). |
static String |
encodeRegionName(byte[] regionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.encodeRegionName(byte[]). |
boolean |
equals(Object o)
已过时。
|
KeyValue.KVComparator |
getComparator()
已过时。
Use Region#getCellComparator(). deprecated for hbase 2.0, remove for hbase 3.0
|
static String |
getDescriptiveNameFromRegionStateForDisplay(RegionState state,
org.apache.hadoop.conf.Configuration conf)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use RegionInfoDisplay#getDescriptiveNameFromRegionStateForDisplay(RegionState, Configuration)
over in hbase-server module.
|
String |
getEncodedName()
已过时。
|
byte[] |
getEncodedNameAsBytes()
已过时。
|
byte[] |
getEndKey()
已过时。
|
static byte[] |
getEndKeyForDisplay(HRegionInfo hri,
org.apache.hadoop.conf.Configuration conf)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use RegionInfoDisplay#getEndKeyForDisplay(RegionInfo, Configuration)
over in hbase-server module.
|
long |
getRegionId()
已过时。
|
byte[] |
getRegionName()
已过时。
|
String |
getRegionNameAsString()
已过时。
|
static String |
getRegionNameAsStringForDisplay(HRegionInfo hri,
org.apache.hadoop.conf.Configuration conf)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use RegionInfoDisplay#getRegionNameAsStringForDisplay(RegionInfo, Configuration)
over in hbase-server module.
|
static byte[] |
getRegionNameForDisplay(HRegionInfo hri,
org.apache.hadoop.conf.Configuration conf)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use RegionInfoDisplay#getRegionNameForDisplay(RegionInfo, Configuration)
over in hbase-server module.
|
int |
getReplicaId()
已过时。
Returns the region replica id
|
String |
getShortNameToLog()
已过时。
|
static String |
getShortNameToLog(HRegionInfo... hris)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.getShortNameToLog(RegionInfo...). |
static String |
getShortNameToLog(List<HRegionInfo> hris)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.getShortNameToLog(List))}. |
byte[] |
getStartKey()
已过时。
|
static byte[] |
getStartKey(byte[] regionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.getStartKey(byte[]). |
static byte[] |
getStartKeyForDisplay(HRegionInfo hri,
org.apache.hadoop.conf.Configuration conf)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use RegionInfoDisplay#getStartKeyForDisplay(RegionInfo, Configuration)
over in hbase-server module.
|
TableName |
getTable()
已过时。
Get current table name of the region
|
static TableName |
getTable(byte[] regionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.getTable(byte[]). |
int |
hashCode()
已过时。
|
static boolean |
isEncodedRegionName(byte[] regionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.isEncodedRegionName(byte[]). |
boolean |
isMetaRegion()
已过时。
|
boolean |
isMetaTable()
已过时。
|
boolean |
isOffline()
已过时。
|
boolean |
isSplit()
已过时。
|
boolean |
isSplitParent()
已过时。
|
boolean |
isSystemTable()
已过时。
|
static List<HRegionInfo> |
parseDelimitedFrom(byte[] bytes,
int offset,
int length)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseDelimitedFrom(byte[], int, int). |
static HRegionInfo |
parseFrom(byte[] bytes)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseFrom(byte[]). |
static HRegionInfo |
parseFrom(byte[] bytes,
int offset,
int len)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseFrom(byte[], int, int). |
static HRegionInfo |
parseFrom(DataInputStream in)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseFrom(DataInputStream). |
static HRegionInfo |
parseFromOrNull(byte[] bytes)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseFromOrNull(byte[]). |
static HRegionInfo |
parseFromOrNull(byte[] bytes,
int offset,
int len)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseFromOrNull(byte[], int, int). |
static byte[][] |
parseRegionName(byte[] regionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.parseRegionName(byte[]). |
static String |
prettyPrint(String encodedRegionName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.prettyPrint(String). |
void |
setOffline(boolean offLine)
已过时。
The parent of a region split is offline while split daughters hold
references to the parent.
|
void |
setSplit(boolean split)
已过时。
|
byte[] |
toByteArray()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.toByteArray(RegionInfo). |
byte[] |
toDelimitedByteArray()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.toDelimitedByteArray(RegionInfo). |
static byte[] |
toDelimitedByteArray(HRegionInfo... infos)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
RegionInfo.toDelimitedByteArray(RegionInfo...). |
String |
toString()
已过时。
|
areAdjacent, createMobRegionInfo, getRegionNameAsString, getRegionNameAsString, getShortNameToLog, getShortNameToLog, hasEncodedName, isAdjacent, isDegenerate, isFirst, isLast, isNext, isOverlap, parseRegionNameOrReturnNull, toByteArray, toDelimitedByteArray, toDelimitedByteArraypublic static final String ENCODED_REGION_NAME_REGEX
public static final String NO_HASH
public static final byte[] HIDDEN_END_KEY
public static final byte[] HIDDEN_START_KEY
public static final HRegionInfo FIRST_META_REGIONINFO
public HRegionInfo(long regionId,
TableName tableName,
int replicaId)
public HRegionInfo(TableName tableName)
public HRegionInfo(TableName tableName, byte[] startKey, byte[] endKey) throws IllegalArgumentException
tableName - the table namestartKey - first key in regionendKey - end of key rangeIllegalArgumentExceptionpublic HRegionInfo(TableName tableName, byte[] startKey, byte[] endKey, boolean split) throws IllegalArgumentException
tableName - the table descriptorstartKey - first key in regionendKey - end of key rangesplit - true if this region has split and we have daughter regions
regions that may or may not hold references to this region.IllegalArgumentExceptionpublic HRegionInfo(TableName tableName, byte[] startKey, byte[] endKey, boolean split, long regionid) throws IllegalArgumentException
tableName - the table descriptorstartKey - first key in regionendKey - end of key rangesplit - true if this region has split and we have daughter regions
regions that may or may not hold references to this region.regionid - Region id to use.IllegalArgumentExceptionpublic HRegionInfo(TableName tableName, byte[] startKey, byte[] endKey, boolean split, long regionid, int replicaId) throws IllegalArgumentException
tableName - the table descriptorstartKey - first key in regionendKey - end of key rangesplit - true if this region has split and we have daughter regions
regions that may or may not hold references to this region.regionid - Region id to use.replicaId - the replicaId to useIllegalArgumentExceptionpublic HRegionInfo(RegionInfo other)
other - public HRegionInfo(HRegionInfo other, int replicaId)
@Deprecated public static String encodeRegionName(byte[] regionName)
RegionInfo.encodeRegionName(byte[]).encodeRegionName 在接口中 RegionInforegionName - public String getShortNameToLog()
getShortNameToLog 在接口中 RegionInfo@Deprecated public static String getShortNameToLog(HRegionInfo... hris)
RegionInfo.getShortNameToLog(RegionInfo...).@Deprecated public static String getShortNameToLog(List<HRegionInfo> hris)
RegionInfo.getShortNameToLog(List))}.hris
(usually encoded name) for us logging.@Deprecated @InterfaceAudience.Private public static String prettyPrint(String encodedRegionName)
RegionInfo.prettyPrint(String).prettyPrint 在接口中 RegionInfoencodedRegionName - The encoded regionname.hbase:meta if passed 1028785192 else returns
encodedRegionName@Deprecated @InterfaceAudience.Private public static byte[] createRegionName(TableName tableName, byte[] startKey, long regionid, boolean newFormat)
RegionInfo.createRegionName(TableName, byte[], long, boolean).createRegionName 在接口中 RegionInfotableName - startKey - Can be nullregionid - Region id (Usually timestamp from when region was created).newFormat - should we create the region name in the new format
(such that it contains its encoded name?).@Deprecated @InterfaceAudience.Private public static byte[] createRegionName(TableName tableName, byte[] startKey, String id, boolean newFormat)
RegionInfo.createRegionName(TableName, byte[], String, boolean).createRegionName 在接口中 RegionInfotableName - startKey - Can be nullid - Region id (Usually timestamp from when region was created).newFormat - should we create the region name in the new format
(such that it contains its encoded name?).@Deprecated @InterfaceAudience.Private public static byte[] createRegionName(TableName tableName, byte[] startKey, long regionid, int replicaId, boolean newFormat)
RegionInfo.createRegionName(TableName, byte[], long, int, boolean).createRegionName 在接口中 RegionInfotableName - startKey - Can be nullregionid - Region id (Usually timestamp from when region was created).replicaId - newFormat - should we create the region name in the new format
(such that it contains its encoded name?).@Deprecated @InterfaceAudience.Private public static byte[] createRegionName(TableName tableName, byte[] startKey, byte[] id, boolean newFormat)
RegionInfo.createRegionName(TableName, byte[], byte[], boolean).createRegionName 在接口中 RegionInfotableName - startKey - Can be nullid - Region id (Usually timestamp from when region was created).newFormat - should we create the region name in the new format
(such that it contains its encoded name?).@Deprecated @InterfaceAudience.Private public static byte[] createRegionName(TableName tableName, byte[] startKey, byte[] id, int replicaId, boolean newFormat)
RegionInfo.createRegionName(TableName, byte[], byte[], int, boolean).createRegionName 在接口中 RegionInfotableName - startKey - Can be nullid - Region id (Usually timestamp from when region was created).replicaId - newFormat - should we create the region name in the new format@Deprecated public static TableName getTable(byte[] regionName)
RegionInfo.getTable(byte[]).getTable 在接口中 RegionInforegionName - to extract the table name from@Deprecated public static byte[] getStartKey(byte[] regionName) throws IOException
RegionInfo.getStartKey(byte[]).getStartKey 在接口中 RegionInforegionName - IOException@Deprecated @InterfaceAudience.Private public static byte[][] parseRegionName(byte[] regionName) throws IOException
RegionInfo.parseRegionName(byte[]).parseRegionName 在接口中 RegionInforegionName - IOException@Deprecated public static boolean isEncodedRegionName(byte[] regionName) throws IOException
RegionInfo.isEncodedRegionName(byte[]).RegionInfoisEncodedRegionName 在接口中 RegionInforegionName - IOExceptionpublic long getRegionId()
getRegionId 在接口中 RegionInfopublic byte[] getRegionName()
getRegionName 在接口中 RegionInfogetRegionNameAsString()public String getRegionNameAsString()
getRegionNameAsString 在接口中 RegionInfopublic String getEncodedName()
getEncodedName 在接口中 RegionInfopublic byte[] getEncodedNameAsBytes()
getEncodedNameAsBytes 在接口中 RegionInfopublic byte[] getStartKey()
getStartKey 在接口中 RegionInfopublic byte[] getEndKey()
getEndKey 在接口中 RegionInfopublic TableName getTable()
getTable 在接口中 RegionInfopublic boolean containsRange(byte[] rangeStartKey,
byte[] rangeEndKey)
containsRange 在接口中 RegionInfoIllegalArgumentException - if the range passed is invalid (ie. end < start)public boolean containsRow(byte[] row)
containsRow 在接口中 RegionInfopublic boolean isMetaTable()
public boolean isMetaRegion()
isMetaRegion 在接口中 RegionInfopublic boolean isSystemTable()
public boolean isSplit()
isSplit 在接口中 RegionInfopublic void setSplit(boolean split)
split - set split statuspublic boolean isOffline()
isOffline 在接口中 RegionInfopublic void setOffline(boolean offLine)
offLine - Set online/offline status.public boolean isSplitParent()
isSplitParent 在接口中 RegionInfopublic int getReplicaId()
getReplicaId 在接口中 RegionInfopublic String toString()
toString 在类中 ObjectObject.toString()public boolean equals(Object o)
equals 在类中 ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode 在类中 ObjectObject.hashCode()public int compareTo(HRegionInfo o)
compareTo 在接口中 Comparable<HRegionInfo>@Deprecated public KeyValue.KVComparator getComparator()
KeyValues.@Deprecated @InterfaceAudience.Private public static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo convert(HRegionInfo info)
info - the HRegionInfo to convert@Deprecated @InterfaceAudience.Private public static HRegionInfo convert(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo proto)
proto - the RegionInfo to convert@Deprecated public byte[] toByteArray()
RegionInfo.toByteArray(RegionInfo).parseFrom(byte[])@Deprecated public static HRegionInfo parseFromOrNull(byte[] bytes)
RegionInfo.parseFromOrNull(byte[]).parseFromOrNull 在接口中 RegionInfoHRegionInfo
or null if we failed deserialize or passed bytes nulltoByteArray()@Deprecated public static HRegionInfo parseFromOrNull(byte[] bytes, int offset, int len)
RegionInfo.parseFromOrNull(byte[], int, int).parseFromOrNull 在接口中 RegionInfoHRegionInfo or null
if we failed deserialize or passed bytes nulltoByteArray()public static HRegionInfo parseFrom(byte[] bytes) throws DeserializationException
RegionInfo.parseFrom(byte[]).parseFrom 在接口中 RegionInfobytes - A pb RegionInfo serialized with a pb magic prefix.HRegionInfoDeserializationExceptiontoByteArray()@Deprecated public static HRegionInfo parseFrom(byte[] bytes, int offset, int len) throws DeserializationException
RegionInfo.parseFrom(byte[], int, int).parseFrom 在接口中 RegionInfobytes - A pb RegionInfo serialized with a pb magic prefix.offset - starting point in the byte arraylen - length to read on the byte arrayHRegionInfoDeserializationExceptiontoByteArray()@Deprecated public byte[] toDelimitedByteArray() throws IOException
RegionInfo.toDelimitedByteArray(RegionInfo).toByteArray() when writing to a stream and you want to use
the pb mergeDelimitedFrom (w/o the delimiter, pb reads to EOF which may not be what you want).IOExceptiontoByteArray()@Deprecated @InterfaceAudience.Private public static String getDescriptiveNameFromRegionStateForDisplay(RegionState state, org.apache.hadoop.conf.Configuration conf)
RegionState does it but with hidden
startkey optionallystate - conf - @Deprecated @InterfaceAudience.Private public static byte[] getEndKeyForDisplay(HRegionInfo hri, org.apache.hadoop.conf.Configuration conf)
hri - conf - @Deprecated @InterfaceAudience.Private public static byte[] getStartKeyForDisplay(HRegionInfo hri, org.apache.hadoop.conf.Configuration conf)
hri - conf - @Deprecated @InterfaceAudience.Private public static String getRegionNameAsStringForDisplay(HRegionInfo hri, org.apache.hadoop.conf.Configuration conf)
hri - conf - @Deprecated @InterfaceAudience.Private public static byte[] getRegionNameForDisplay(HRegionInfo hri, org.apache.hadoop.conf.Configuration conf)
hri - conf - @Deprecated @InterfaceAudience.Private public static HRegionInfo parseFrom(DataInputStream in) throws IOException
RegionInfo.parseFrom(DataInputStream).toDelimitedByteArray()parseFrom 在接口中 RegionInfoin - IOException@Deprecated @InterfaceAudience.Private public static byte[] toDelimitedByteArray(HRegionInfo... infos) throws IOException
RegionInfo.toDelimitedByteArray(RegionInfo...).toByteArray() when
writing to a stream and you want to use the pb mergeDelimitedFrom (w/o the delimiter, pb reads
to EOF which may not be what you want). parseDelimitedFrom(byte[], int, int) can
be used to read back the instances.infos - HRegionInfo objects to serializeIOExceptiontoByteArray()@Deprecated public static List<HRegionInfo> parseDelimitedFrom(byte[] bytes, int offset, int length) throws IOException
RegionInfo.parseDelimitedFrom(byte[], int, int).toDelimitedByteArray()parseDelimitedFrom 在接口中 RegionInfobytes - serialized bytesoffset - the start offset into the byte[] bufferlength - how far we should read into the byte[] bufferIOException@Deprecated public static boolean areAdjacent(HRegionInfo regionA, HRegionInfo regionB)
RegionInfo.areAdjacent(RegionInfo, RegionInfo).regionA - regionB - Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.