From 5db0a06b3f970765c51cad931b9c9778d33f6dce Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 27 Jul 2009 18:25:10 +0000 Subject: [PATCH] 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 --- src/java/org/apache/hadoop/hbase/client/Get.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/hadoop/hbase/client/Get.java b/src/java/org/apache/hadoop/hbase/client/Get.java index 293a6fe4f66..769f7a9b340 100644 --- a/src/java/org/apache/hadoop/hbase/client/Get.java +++ b/src/java/org/apache/hadoop/hbase/client/Get.java @@ -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; }