HBASE-1709 Thrift getRowWithColumns doesn't accept column-family only

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@798245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-07-27 18:25:10 +00:00
parent 01a60aa374
commit 5db0a06b3f
1 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,11 @@ public class Get implements Writable {
public Get addColumn(final byte [] column) {
if (column == null) return this;
byte [][] split = KeyValue.parseColumn(column);
addColumn(split[0], split[1]);
if (split.length > 1 && split[1] != null && split[1].length > 0) {
addColumn(split[0], split[1]);
} else {
addFamily(split[0]);
}
return this;
}