summaryrefslogtreecommitdiff
path: root/happybase/hbase/Hbase-remote
diff options
context:
space:
mode:
Diffstat (limited to 'happybase/hbase/Hbase-remote')
-rwxr-xr-xhappybase/hbase/Hbase-remote14
1 files changed, 14 insertions, 0 deletions
diff --git a/happybase/hbase/Hbase-remote b/happybase/hbase/Hbase-remote
index 7f48849..34ea020 100755
--- a/happybase/hbase/Hbase-remote
+++ b/happybase/hbase/Hbase-remote
@@ -66,6 +66,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' void scannerClose(ScannerID id)'
print ' getRowOrBefore(Text tableName, Text row, Text family)'
print ' TRegionInfo getRegionInfo(Text row)'
+ print ' append(TAppend append)'
+ print ' bool checkAndPut(Text tableName, Text row, Text column, Text value, Mutation mput, attributes)'
print ''
sys.exit(0)
@@ -375,6 +377,18 @@ elif cmd == 'getRegionInfo':
sys.exit(1)
pp.pprint(client.getRegionInfo(eval(args[0]),))
+elif cmd == 'append':
+ if len(args) != 1:
+ print 'append requires 1 args'
+ sys.exit(1)
+ pp.pprint(client.append(eval(args[0]),))
+
+elif cmd == 'checkAndPut':
+ if len(args) != 6:
+ print 'checkAndPut requires 6 args'
+ sys.exit(1)
+ pp.pprint(client.checkAndPut(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
+
else:
print 'Unrecognized method %s' % cmd
sys.exit(1)