summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2014-06-20 23:02:45 +0200
committerWouter Bolsterlee <uws@xs4all.nl>2014-06-20 23:02:45 +0200
commit3565b2b43b377b3e539315570d3e51d053d7a8a1 (patch)
tree21a74f4b5696336a823546b70492e545a78db8f7
parent1a45d9cd389cd735044bf7f4124a6dbe795b5ada (diff)
downloadhappybase-3565b2b43b377b3e539315570d3e51d053d7a8a1.tar.gz
Update .thrift file from upstream HBase git repo
-rw-r--r--happybase/Hbase.thrift52
1 files changed, 51 insertions, 1 deletions
diff --git a/happybase/Hbase.thrift b/happybase/Hbase.thrift
index 2f1f4bc..e9836cd 100644
--- a/happybase/Hbase.thrift
+++ b/happybase/Hbase.thrift
@@ -149,7 +149,18 @@ struct TScan {
5:optional i32 caching,
6:optional Text filterString,
7:optional i32 batchSize,
- 8:optional bool sortColumns
+ 8:optional bool sortColumns,
+ 9:optional bool reversed
+}
+
+/**
+ * An Append object is used to specify the parameters for performing the append operation.
+ */
+struct TAppend {
+ 1:Text table,
+ 2:Text row,
+ 3:list<Text> columns,
+ 4:list<Text> values
}
//
@@ -922,4 +933,43 @@ service Hbase {
1:Text row,
) throws (1:IOError io)
+
+ /**
+ * Appends values to one or more columns within a single row.
+ *
+ * @return values of columns after the append operation.
+ */
+ list<TCell> append(
+ /** The single append operation to apply */
+ 1:TAppend append,
+
+ ) throws (1:IOError io)
+
+ /**
+ * Atomically checks if a row/family/qualifier value matches the expected
+ * value. If it does, it adds the corresponding mutation operation for put.
+ *
+ * @return true if the new put was executed, false otherwise
+ */
+ bool checkAndPut(
+ /** name of table */
+ 1:Text tableName,
+
+ /** row key */
+ 2:Text row,
+
+ /** column name */
+ 3:Text column,
+
+ /** the expected value for the column parameter, if not
+ provided the check is for the non-existence of the
+ column in question */
+ 5:Text value
+
+ /** mutation for the put */
+ 6:Mutation mput,
+
+ /** Mutation attributes */
+ 7:map<Text, Text> attributes
+ ) throws (1:IOError io, 2:IllegalArgument ia)
}