Skip to content
Browse files

Moving from Thrift to Avro.

  • Loading branch information...
1 parent 08c4f97 commit 9b0f66c105ad5266bdae3e0dc9e0819d005ad250 @hammer committed
Showing with 52 additions and 0 deletions.
  1. +3 −0 MANIFEST.in
  2. +49 −0 pyhbase/schema/hbase.avpr
View
3 MANIFEST.in
@@ -0,0 +1,3 @@
+recursive-include examples hbase-cli
+recursive-include pyhbase *.py
+recursive-include pyhbase/schema *.avpr
View
49 pyhbase/schema/hbase.avpr
@@ -0,0 +1,49 @@
+{"namespace": "org.apache.hadoop.hbase.avro.generated",
+ "protocol": "HBase",
+
+ "types": [
+ {"name": "TCell", "type": "record",
+ "fields": [
+ {"name": "value", "type": "bytes"},
+ {"name": "timestamp", "type": "long"}
+ ]
+ },
+ {"name": "IOError", "type": "error",
+ "fields": [
+ {"name": "message", "type": "string"}
+ ]
+ }
+ ],
+
+ "messages": {
+ "enableTable": {
+ "request": [{"name": "tableName", "type": "bytes"}],
+ "response": "null",
+ "errors": ["IOError"]
+ },
+ "disableTable": {
+ "request": [{"name": "tableName", "type": "bytes"}],
+ "response": "null",
+ "errors": ["IOError"]
+ },
+ "isTableEnabled": {
+ "request": [{"name": "tableName", "type": "bytes"}],
+ "response": "boolean",
+ "errors": ["IOError"]
+ },
+ "getTableNames": {
+ "request": [],
+ "response": {"type": "array", "items": "bytes"},
+ "errors": ["IOError"]
+ },
+ "get": {
+ "request": [{"name": "tableName", "type": "bytes"},
+ {"name": "row", "type": "bytes"},
+ {"name": "family", "type": "bytes"},
+ {"name": "qualifier", "type": "bytes"}
+ ],
+ "response": {"type": "array", "items": "TCell"},
+ "errors": ["IOError"]
+ }
+ }
+}

0 comments on commit 9b0f66c

Please sign in to comment.
Something went wrong with that request. Please try again.