HBASE-682 Regularize toString

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@667296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-06-12 23:54:56 +00:00
parent 4a04330d7f
commit 43841d04f0
1 changed files with 7 additions and 5 deletions

View File

@ -339,12 +339,14 @@ public class HRegionInfo implements WritableComparable {
*/
@Override
public String toString() {
return "regionname: " + this.regionNameStr + ", startKey: <" +
Bytes.toString(this.startKey) + ">, endKey: <" +
return "REGION => {" + HColumnDescriptor.NAME + " => '" +
this.regionNameStr +
"', STARTKEY => '" +
Bytes.toString(this.startKey) + "', ENDKEY => '" +
Bytes.toString(this.endKey) +
">, encodedName: " + getEncodedName() + "," +
(isOffline()? " offline: true,": "") + (isSplit()? " split: true,": "") +
" tableDesc: {" + this.tableDesc.toString() + "}";
"', ENCODED => " + getEncodedName() + "," +
(isOffline()? " OFFLINE => true,": "") + (isSplit()? " SPLIT => true,": "") +
" TABLE => {" + this.tableDesc.toString() + "}";
}
/**