HBASE-3105 Scan.toString fails to escape binary start/stop rows

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-10-12 20:18:12 +00:00
parent c189e8e967
commit 8dc8fea2f3
1 changed files with 4 additions and 4 deletions

View File

@ -440,9 +440,9 @@ public class Scan implements Writable {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("startRow="); sb.append("startRow=");
sb.append(Bytes.toString(this.startRow)); sb.append(Bytes.toStringBinary(this.startRow));
sb.append(", stopRow="); sb.append(", stopRow=");
sb.append(Bytes.toString(this.stopRow)); sb.append(Bytes.toStringBinary(this.stopRow));
sb.append(", maxVersions="); sb.append(", maxVersions=");
sb.append(this.maxVersions); sb.append(this.maxVersions);
sb.append(", batch="); sb.append(", batch=");
@ -468,7 +468,7 @@ public class Scan implements Writable {
sb.append("{"); sb.append("{");
} }
sb.append("(family="); sb.append("(family=");
sb.append(Bytes.toString(entry.getKey())); sb.append(Bytes.toStringBinary(entry.getKey()));
sb.append(", columns="); sb.append(", columns=");
if(entry.getValue() == null) { if(entry.getValue() == null) {
sb.append("ALL"); sb.append("ALL");
@ -481,7 +481,7 @@ public class Scan implements Writable {
} else { } else {
moreThanOneB = true; moreThanOneB = true;
} }
sb.append(Bytes.toString(column)); sb.append(Bytes.toStringBinary(column));
} }
sb.append("}"); sb.append("}");
} }