Class MutableRegionInfo

java.lang.Object
org.apache.hadoop.hbase.client.MutableRegionInfo
All Implemented Interfaces:
Comparable<RegionInfo>, RegionInfo

@Private class MutableRegionInfo extends Object implements RegionInfo
An implementation of RegionInfo that adds mutable methods so can build a RegionInfo instance. Package private. Use RegionInfoBuilder creating instances of RegionInfos.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • MAX_REPLICA_ID

      private static final int MAX_REPLICA_ID
      See Also:
    • offLine

      private boolean offLine
      The new format for a region name contains its encodedName at the end. The encoded name also serves as the directory name for the region in the filesystem. New region name format: <tablename>,,<startkey>,<regionIdTimestamp>.<encodedName>. where, <encodedName> is a hex version of the MD5 hash of <tablename>,<startkey>,<regionIdTimestamp> The old region name format: <tablename>,<startkey>,<regionIdTimestamp> For region names in the old format, the encoded name is a 32-bit JenkinsHash integer value (in its decimal notation, string form).

      **NOTE** The first hbase:meta region, and regions created by an older version of HBase (0.20 or prior) will continue to use the old region name format.

    • split

      private boolean split
    • regionId

      private final long regionId
    • replicaId

      private final int replicaId
    • regionName

      private final byte[] regionName
    • startKey

      private final byte[] startKey
    • endKey

      private final byte[] endKey
    • hashCode

      private final int hashCode
    • encodedName

      private final String encodedName
    • encodedNameAsBytes

      private final byte[] encodedNameAsBytes
    • nameAsString

    • tableName

      private final TableName tableName
  • Constructor Details

    • MutableRegionInfo

      MutableRegionInfo(long regionId, TableName tableName, int replicaId)
      Package private constructor used constructing MutableRegionInfo for the first meta regions
    • MutableRegionInfo

      MutableRegionInfo(TableName tableName, byte[] startKey, byte[] endKey, boolean split, long regionId, int replicaId, boolean offLine)
  • Method Details