HBASE-16969 RegionCoprocessorServiceExec should override the toString() for debugging (ChiaPing Tsai)

This commit is contained in:
Michael Stack 2016-10-31 14:37:51 -07:00
parent ea5b0a05d6
commit a969f8d790
2 changed files with 15 additions and 1 deletions

View File

@ -101,4 +101,18 @@ public class RegionCoprocessorServiceExec implements Row {
Row other = (Row) obj;
return compareTo(other) == 0;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("region:")
.append(Bytes.toStringBinary(region))
.append(", startKey:")
.append(Bytes.toStringBinary(startKey))
.append(", method:")
.append(method.getFullName())
.append(", request:")
.append(request);
return builder.toString();
}
}