Browse Source

HUE-1962 [hbase] Support int row key from Hive table

Romain Rigaux 11 years ago
parent
commit
f208e4ecbe
1 changed files with 4 additions and 0 deletions
  1. 4 0
      apps/hbase/src/hbase/api.py

+ 4 - 0
apps/hbase/src/hbase/api.py

@@ -161,6 +161,10 @@ class HbaseApi(object):
   def deleteColumn(self, cluster, tableName, row, column):
   def deleteColumn(self, cluster, tableName, row, column):
     return self.deleteColumns(cluster, tableName, smart_str(row), [smart_str(column)])
     return self.deleteColumns(cluster, tableName, smart_str(row), [smart_str(column)])
 
 
+  def deleteAllRow(self, cluster, tableName, row, attributes):
+    client = self.connectCluster(cluster)
+    return client.deleteAllRow(tableName, smart_str(row), attributes)
+
   def putRow(self, cluster, tableName, row, data):
   def putRow(self, cluster, tableName, row, data):
     client = self.connectCluster(cluster)
     client = self.connectCluster(cluster)
     mutations = []
     mutations = []