public static byte[] getStateColumn(int replicaId) {
    return replicaId == 0
      ? HConstants.STATE_QUALIFIER
      : Bytes.toBytes(HConstants.STATE_QUALIFIER_STR + META_REPLICA_ID_DELIMITER
        + String.format(RegionInfo.REPLICA_ID_FORMAT, replicaId));
  }
Pull the region state from a catalog table {@link Result}.
@return the region state, or null if unknown.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateStore.java