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:
parent
01a60aa374
commit
5db0a06b3f
|
@ -151,7 +151,11 @@ public class Get implements Writable {
|
||||||
public Get addColumn(final byte [] column) {
|
public Get addColumn(final byte [] column) {
|
||||||
if (column == null) return this;
|
if (column == null) return this;
|
||||||
byte [][] split = KeyValue.parseColumn(column);
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue