summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Hu <rhu@hearsaycorp.com>2013-06-04 20:22:45 +0000
committerWouter Bolsterlee <uws@xs4all.nl>2013-06-04 22:54:45 +0200
commit2830fc668855d5011c47d59366918f665ad58b21 (patch)
tree9af07ca49a743f0cae0514706656eed497b1e90c
parent615e2ebf2b2fcca1b4aabc256deccba3f615761f (diff)
downloadhappybase-2830fc668855d5011c47d59366918f665ad58b21.tar.gz
Update to use Thrift v0.9.0 and new style classes.
-rwxr-xr-xhappybase/hbase/Hbase-remote4
-rw-r--r--happybase/hbase/Hbase.py262
-rw-r--r--happybase/hbase/constants.py6
-rw-r--r--happybase/hbase/ttypes.py20
4 files changed, 146 insertions, 146 deletions
diff --git a/happybase/hbase/Hbase-remote b/happybase/hbase/Hbase-remote
index b283051..f4176c6 100755
--- a/happybase/hbase/Hbase-remote
+++ b/happybase/hbase/Hbase-remote
@@ -1,10 +1,10 @@
#!/usr/bin/env python
#
-# Autogenerated by Thrift Compiler (0.8.0)
+# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
-# options string: py
+# options string: py:new_style
#
import sys
diff --git a/happybase/hbase/Hbase.py b/happybase/hbase/Hbase.py
index 08a2ec9..5cc7132 100644
--- a/happybase/hbase/Hbase.py
+++ b/happybase/hbase/Hbase.py
@@ -1,23 +1,23 @@
#
-# Autogenerated by Thrift Compiler (0.8.0)
+# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
-# options string: py
+# options string: py:new_style
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
-from thrift.protocol import TBinaryProtocol
+from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
-class Iface:
+class Iface(object):
def enableTable(self, tableName):
"""
Brings a table on-line (enables it)
@@ -2166,7 +2166,7 @@ class Processor(Iface, TProcessor):
result = enableTable_result()
try:
self._handler.enableTable(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("enableTable", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2180,7 +2180,7 @@ class Processor(Iface, TProcessor):
result = disableTable_result()
try:
self._handler.disableTable(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("disableTable", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2194,7 +2194,7 @@ class Processor(Iface, TProcessor):
result = isTableEnabled_result()
try:
result.success = self._handler.isTableEnabled(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("isTableEnabled", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2208,7 +2208,7 @@ class Processor(Iface, TProcessor):
result = compact_result()
try:
self._handler.compact(args.tableNameOrRegionName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("compact", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2222,7 +2222,7 @@ class Processor(Iface, TProcessor):
result = majorCompact_result()
try:
self._handler.majorCompact(args.tableNameOrRegionName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("majorCompact", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2236,7 +2236,7 @@ class Processor(Iface, TProcessor):
result = getTableNames_result()
try:
result.success = self._handler.getTableNames()
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getTableNames", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2250,7 +2250,7 @@ class Processor(Iface, TProcessor):
result = getColumnDescriptors_result()
try:
result.success = self._handler.getColumnDescriptors(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getColumnDescriptors", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2264,7 +2264,7 @@ class Processor(Iface, TProcessor):
result = getTableRegions_result()
try:
result.success = self._handler.getTableRegions(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getTableRegions", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2278,11 +2278,11 @@ class Processor(Iface, TProcessor):
result = createTable_result()
try:
self._handler.createTable(args.tableName, args.columnFamilies)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
- except AlreadyExists, exist:
+ except AlreadyExists as exist:
result.exist = exist
oprot.writeMessageBegin("createTable", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2296,7 +2296,7 @@ class Processor(Iface, TProcessor):
result = deleteTable_result()
try:
self._handler.deleteTable(args.tableName)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("deleteTable", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2310,7 +2310,7 @@ class Processor(Iface, TProcessor):
result = get_result()
try:
result.success = self._handler.get(args.tableName, args.row, args.column)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("get", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2324,7 +2324,7 @@ class Processor(Iface, TProcessor):
result = getVer_result()
try:
result.success = self._handler.getVer(args.tableName, args.row, args.column, args.numVersions)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getVer", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2338,7 +2338,7 @@ class Processor(Iface, TProcessor):
result = getVerTs_result()
try:
result.success = self._handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getVerTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2352,7 +2352,7 @@ class Processor(Iface, TProcessor):
result = getRow_result()
try:
result.success = self._handler.getRow(args.tableName, args.row)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRow", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2366,7 +2366,7 @@ class Processor(Iface, TProcessor):
result = getRowWithColumns_result()
try:
result.success = self._handler.getRowWithColumns(args.tableName, args.row, args.columns)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowWithColumns", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2380,7 +2380,7 @@ class Processor(Iface, TProcessor):
result = getRowTs_result()
try:
result.success = self._handler.getRowTs(args.tableName, args.row, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2394,7 +2394,7 @@ class Processor(Iface, TProcessor):
result = getRowWithColumnsTs_result()
try:
result.success = self._handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowWithColumnsTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2408,7 +2408,7 @@ class Processor(Iface, TProcessor):
result = getRows_result()
try:
result.success = self._handler.getRows(args.tableName, args.rows)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRows", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2422,7 +2422,7 @@ class Processor(Iface, TProcessor):
result = getRowsWithColumns_result()
try:
result.success = self._handler.getRowsWithColumns(args.tableName, args.rows, args.columns)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowsWithColumns", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2436,7 +2436,7 @@ class Processor(Iface, TProcessor):
result = getRowsTs_result()
try:
result.success = self._handler.getRowsTs(args.tableName, args.rows, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowsTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2450,7 +2450,7 @@ class Processor(Iface, TProcessor):
result = getRowsWithColumnsTs_result()
try:
result.success = self._handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("getRowsWithColumnsTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2464,9 +2464,9 @@ class Processor(Iface, TProcessor):
result = mutateRow_result()
try:
self._handler.mutateRow(args.tableName, args.row, args.mutations)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("mutateRow", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2480,9 +2480,9 @@ class Processor(Iface, TProcessor):
result = mutateRowTs_result()
try:
self._handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("mutateRowTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2496,9 +2496,9 @@ class Processor(Iface, TProcessor):
result = mutateRows_result()
try:
self._handler.mutateRows(args.tableName, args.rowBatches)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("mutateRows", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2512,9 +2512,9 @@ class Processor(Iface, TProcessor):
result = mutateRowsTs_result()
try:
self._handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("mutateRowsTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2528,9 +2528,9 @@ class Processor(Iface, TProcessor):
result = atomicIncrement_result()
try:
result.success = self._handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("atomicIncrement", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2544,7 +2544,7 @@ class Processor(Iface, TProcessor):
result = deleteAll_result()
try:
self._handler.deleteAll(args.tableName, args.row, args.column)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("deleteAll", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2558,7 +2558,7 @@ class Processor(Iface, TProcessor):
result = deleteAllTs_result()
try:
self._handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("deleteAllTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2572,7 +2572,7 @@ class Processor(Iface, TProcessor):
result = deleteAllRow_result()
try:
self._handler.deleteAllRow(args.tableName, args.row)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("deleteAllRow", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2586,7 +2586,7 @@ class Processor(Iface, TProcessor):
result = deleteAllRowTs_result()
try:
self._handler.deleteAllRowTs(args.tableName, args.row, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("deleteAllRowTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2600,7 +2600,7 @@ class Processor(Iface, TProcessor):
result = scannerOpenWithScan_result()
try:
result.success = self._handler.scannerOpenWithScan(args.tableName, args.scan)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpenWithScan", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2614,7 +2614,7 @@ class Processor(Iface, TProcessor):
result = scannerOpen_result()
try:
result.success = self._handler.scannerOpen(args.tableName, args.startRow, args.columns)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpen", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2628,7 +2628,7 @@ class Processor(Iface, TProcessor):
result = scannerOpenWithStop_result()
try:
result.success = self._handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpenWithStop", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2642,7 +2642,7 @@ class Processor(Iface, TProcessor):
result = scannerOpenWithPrefix_result()
try:
result.success = self._handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpenWithPrefix", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2656,7 +2656,7 @@ class Processor(Iface, TProcessor):
result = scannerOpenTs_result()
try:
result.success = self._handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpenTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2670,7 +2670,7 @@ class Processor(Iface, TProcessor):
result = scannerOpenWithStopTs_result()
try:
result.success = self._handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp)
- except IOError, io:
+ except IOError as io:
result.io = io
oprot.writeMessageBegin("scannerOpenWithStopTs", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2684,9 +2684,9 @@ class Processor(Iface, TProcessor):
result = scannerGet_result()
try:
result.success = self._handler.scannerGet(args.id)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("scannerGet", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2700,9 +2700,9 @@ class Processor(Iface, TProcessor):
result = scannerGetList_result()
try:
result.success = self._handler.scannerGetList(args.id, args.nbRows)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("scannerGetList", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2716,9 +2716,9 @@ class Processor(Iface, TProcessor):
result = scannerClose_result()
try:
self._handler.scannerClose(args.id)
- except IOError, io:
+ except IOError as io:
result.io = io
- except IllegalArgument, ia:
+ except IllegalArgument as ia:
result.ia = ia
oprot.writeMessageBegin("scannerClose", TMessageType.REPLY, seqid)
result.write(oprot)
@@ -2728,7 +2728,7 @@ class Processor(Iface, TProcessor):
# HELPER FUNCTIONS AND STRUCTURES
-class enableTable_args:
+class enableTable_args(object):
"""
Attributes:
- tableName: name of the table
@@ -2788,7 +2788,7 @@ class enableTable_args:
def __ne__(self, other):
return not (self == other)
-class enableTable_result:
+class enableTable_result(object):
"""
Attributes:
- io
@@ -2849,7 +2849,7 @@ class enableTable_result:
def __ne__(self, other):
return not (self == other)
-class disableTable_args:
+class disableTable_args(object):
"""
Attributes:
- tableName: name of the table
@@ -2909,7 +2909,7 @@ class disableTable_args:
def __ne__(self, other):
return not (self == other)
-class disableTable_result:
+class disableTable_result(object):
"""
Attributes:
- io
@@ -2970,7 +2970,7 @@ class disableTable_result:
def __ne__(self, other):
return not (self == other)
-class isTableEnabled_args:
+class isTableEnabled_args(object):
"""
Attributes:
- tableName: name of the table to check
@@ -3030,7 +3030,7 @@ class isTableEnabled_args:
def __ne__(self, other):
return not (self == other)
-class isTableEnabled_result:
+class isTableEnabled_result(object):
"""
Attributes:
- success
@@ -3102,7 +3102,7 @@ class isTableEnabled_result:
def __ne__(self, other):
return not (self == other)
-class compact_args:
+class compact_args(object):
"""
Attributes:
- tableNameOrRegionName
@@ -3162,7 +3162,7 @@ class compact_args:
def __ne__(self, other):
return not (self == other)
-class compact_result:
+class compact_result(object):
"""
Attributes:
- io
@@ -3223,7 +3223,7 @@ class compact_result:
def __ne__(self, other):
return not (self == other)
-class majorCompact_args:
+class majorCompact_args(object):
"""
Attributes:
- tableNameOrRegionName
@@ -3283,7 +3283,7 @@ class majorCompact_args:
def __ne__(self, other):
return not (self == other)
-class majorCompact_result:
+class majorCompact_result(object):
"""
Attributes:
- io
@@ -3344,7 +3344,7 @@ class majorCompact_result:
def __ne__(self, other):
return not (self == other)
-class getTableNames_args:
+class getTableNames_args(object):
thrift_spec = (
)
@@ -3386,7 +3386,7 @@ class getTableNames_args:
def __ne__(self, other):
return not (self == other)
-class getTableNames_result:
+class getTableNames_result(object):
"""
Attributes:
- success
@@ -3466,7 +3466,7 @@ class getTableNames_result:
def __ne__(self, other):
return not (self == other)
-class getColumnDescriptors_args:
+class getColumnDescriptors_args(object):
"""
Attributes:
- tableName: table name
@@ -3526,7 +3526,7 @@ class getColumnDescriptors_args:
def __ne__(self, other):
return not (self == other)
-class getColumnDescriptors_result:
+class getColumnDescriptors_result(object):
"""
Attributes:
- success
@@ -3609,7 +3609,7 @@ class getColumnDescriptors_result:
def __ne__(self, other):
return not (self == other)
-class getTableRegions_args:
+class getTableRegions_args(object):
"""
Attributes:
- tableName: table name
@@ -3669,7 +3669,7 @@ class getTableRegions_args:
def __ne__(self, other):
return not (self == other)
-class getTableRegions_result:
+class getTableRegions_result(object):
"""
Attributes:
- success
@@ -3750,7 +3750,7 @@ class getTableRegions_result:
def __ne__(self, other):
return not (self == other)
-class createTable_args:
+class createTable_args(object):
"""
Attributes:
- tableName: name of table to create
@@ -3831,7 +3831,7 @@ class createTable_args:
def __ne__(self, other):
return not (self == other)
-class createTable_result:
+class createTable_result(object):
"""
Attributes:
- io
@@ -3918,7 +3918,7 @@ class createTable_result:
def __ne__(self, other):
return not (self == other)
-class deleteTable_args:
+class deleteTable_args(object):
"""
Attributes:
- tableName: name of table to delete
@@ -3978,7 +3978,7 @@ class deleteTable_args:
def __ne__(self, other):
return not (self == other)
-class deleteTable_result:
+class deleteTable_result(object):
"""
Attributes:
- io
@@ -4039,7 +4039,7 @@ class deleteTable_result:
def __ne__(self, other):
return not (self == other)
-class get_args:
+class get_args(object):
"""
Attributes:
- tableName: name of table
@@ -4123,7 +4123,7 @@ class get_args:
def __ne__(self, other):
return not (self == other)
-class get_result:
+class get_result(object):
"""
Attributes:
- success
@@ -4204,7 +4204,7 @@ class get_result:
def __ne__(self, other):
return not (self == other)
-class getVer_args:
+class getVer_args(object):
"""
Attributes:
- tableName: name of table
@@ -4300,7 +4300,7 @@ class getVer_args:
def __ne__(self, other):
return not (self == other)
-class getVer_result:
+class getVer_result(object):
"""
Attributes:
- success
@@ -4381,7 +4381,7 @@ class getVer_result:
def __ne__(self, other):
return not (self == other)
-class getVerTs_args:
+class getVerTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -4489,7 +4489,7 @@ class getVerTs_args:
def __ne__(self, other):
return not (self == other)
-class getVerTs_result:
+class getVerTs_result(object):
"""
Attributes:
- success
@@ -4570,7 +4570,7 @@ class getVerTs_result:
def __ne__(self, other):
return not (self == other)
-class getRow_args:
+class getRow_args(object):
"""
Attributes:
- tableName: name of table
@@ -4642,7 +4642,7 @@ class getRow_args:
def __ne__(self, other):
return not (self == other)
-class getRow_result:
+class getRow_result(object):
"""
Attributes:
- success
@@ -4723,7 +4723,7 @@ class getRow_result:
def __ne__(self, other):
return not (self == other)
-class getRowWithColumns_args:
+class getRowWithColumns_args(object):
"""
Attributes:
- tableName: name of table
@@ -4815,7 +4815,7 @@ class getRowWithColumns_args:
def __ne__(self, other):
return not (self == other)
-class getRowWithColumns_result:
+class getRowWithColumns_result(object):
"""
Attributes:
- success
@@ -4896,7 +4896,7 @@ class getRowWithColumns_result:
def __ne__(self, other):
return not (self == other)
-class getRowTs_args:
+class getRowTs_args(object):
"""
Attributes:
- tableName: name of the table
@@ -4980,7 +4980,7 @@ class getRowTs_args:
def __ne__(self, other):
return not (self == other)
-class getRowTs_result:
+class getRowTs_result(object):
"""
Attributes:
- success
@@ -5061,7 +5061,7 @@ class getRowTs_result:
def __ne__(self, other):
return not (self == other)
-class getRowWithColumnsTs_args:
+class getRowWithColumnsTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -5165,7 +5165,7 @@ class getRowWithColumnsTs_args:
def __ne__(self, other):
return not (self == other)
-class getRowWithColumnsTs_result:
+class getRowWithColumnsTs_result(object):
"""
Attributes:
- success
@@ -5246,7 +5246,7 @@ class getRowWithColumnsTs_result:
def __ne__(self, other):
return not (self == other)
-class getRows_args:
+class getRows_args(object):
"""
Attributes:
- tableName: name of table
@@ -5326,7 +5326,7 @@ class getRows_args:
def __ne__(self, other):
return not (self == other)
-class getRows_result:
+class getRows_result(object):
"""
Attributes:
- success
@@ -5407,7 +5407,7 @@ class getRows_result:
def __ne__(self, other):
return not (self == other)
-class getRowsWithColumns_args:
+class getRowsWithColumns_args(object):
"""
Attributes:
- tableName: name of table
@@ -5507,7 +5507,7 @@ class getRowsWithColumns_args:
def __ne__(self, other):
return not (self == other)
-class getRowsWithColumns_result:
+class getRowsWithColumns_result(object):
"""
Attributes:
- success
@@ -5588,7 +5588,7 @@ class getRowsWithColumns_result:
def __ne__(self, other):
return not (self == other)
-class getRowsTs_args:
+class getRowsTs_args(object):
"""
Attributes:
- tableName: name of the table
@@ -5680,7 +5680,7 @@ class getRowsTs_args:
def __ne__(self, other):
return not (self == other)
-class getRowsTs_result:
+class getRowsTs_result(object):
"""
Attributes:
- success
@@ -5761,7 +5761,7 @@ class getRowsTs_result:
def __ne__(self, other):
return not (self == other)
-class getRowsWithColumnsTs_args:
+class getRowsWithColumnsTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -5873,7 +5873,7 @@ class getRowsWithColumnsTs_args:
def __ne__(self, other):
return not (self == other)
-class getRowsWithColumnsTs_result:
+class getRowsWithColumnsTs_result(object):
"""
Attributes:
- success
@@ -5954,7 +5954,7 @@ class getRowsWithColumnsTs_result:
def __ne__(self, other):
return not (self == other)
-class mutateRow_args:
+class mutateRow_args(object):
"""
Attributes:
- tableName: name of table
@@ -6047,7 +6047,7 @@ class mutateRow_args:
def __ne__(self, other):
return not (self == other)
-class mutateRow_result:
+class mutateRow_result(object):
"""
Attributes:
- io
@@ -6121,7 +6121,7 @@ class mutateRow_result:
def __ne__(self, other):
return not (self == other)
-class mutateRowTs_args:
+class mutateRowTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -6226,7 +6226,7 @@ class mutateRowTs_args:
def __ne__(self, other):
return not (self == other)
-class mutateRowTs_result:
+class mutateRowTs_result(object):
"""
Attributes:
- io
@@ -6300,7 +6300,7 @@ class mutateRowTs_result:
def __ne__(self, other):
return not (self == other)
-class mutateRows_args:
+class mutateRows_args(object):
"""
Attributes:
- tableName: name of table
@@ -6381,7 +6381,7 @@ class mutateRows_args:
def __ne__(self, other):
return not (self == other)
-class mutateRows_result:
+class mutateRows_result(object):
"""
Attributes:
- io
@@ -6455,7 +6455,7 @@ class mutateRows_result:
def __ne__(self, other):
return not (self == other)
-class mutateRowsTs_args:
+class mutateRowsTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -6548,7 +6548,7 @@ class mutateRowsTs_args:
def __ne__(self, other):
return not (self == other)
-class mutateRowsTs_result:
+class mutateRowsTs_result(object):
"""
Attributes:
- io
@@ -6622,7 +6622,7 @@ class mutateRowsTs_result:
def __ne__(self, other):
return not (self == other)
-class atomicIncrement_args:
+class atomicIncrement_args(object):
"""
Attributes:
- tableName: name of table
@@ -6718,7 +6718,7 @@ class atomicIncrement_args:
def __ne__(self, other):
return not (self == other)
-class atomicIncrement_result:
+class atomicIncrement_result(object):
"""
Attributes:
- success
@@ -6803,7 +6803,7 @@ class atomicIncrement_result:
def __ne__(self, other):
return not (self == other)
-class deleteAll_args:
+class deleteAll_args(object):
"""
Attributes:
- tableName: name of table
@@ -6887,7 +6887,7 @@ class deleteAll_args:
def __ne__(self, other):
return not (self == other)
-class deleteAll_result:
+class deleteAll_result(object):
"""
Attributes:
- io
@@ -6948,7 +6948,7 @@ class deleteAll_result:
def __ne__(self, other):
return not (self == other)
-class deleteAllTs_args:
+class deleteAllTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -7044,7 +7044,7 @@ class deleteAllTs_args:
def __ne__(self, other):
return not (self == other)
-class deleteAllTs_result:
+class deleteAllTs_result(object):
"""
Attributes:
- io
@@ -7105,7 +7105,7 @@ class deleteAllTs_result:
def __ne__(self, other):
return not (self == other)
-class deleteAllRow_args:
+class deleteAllRow_args(object):
"""
Attributes:
- tableName: name of table
@@ -7177,7 +7177,7 @@ class deleteAllRow_args:
def __ne__(self, other):
return not (self == other)
-class deleteAllRow_result:
+class deleteAllRow_result(object):
"""
Attributes:
- io
@@ -7238,7 +7238,7 @@ class deleteAllRow_result:
def __ne__(self, other):
return not (self == other)
-class deleteAllRowTs_args:
+class deleteAllRowTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -7322,7 +7322,7 @@ class deleteAllRowTs_args:
def __ne__(self, other):
return not (self == other)
-class deleteAllRowTs_result:
+class deleteAllRowTs_result(object):
"""
Attributes:
- io
@@ -7383,7 +7383,7 @@ class deleteAllRowTs_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithScan_args:
+class scannerOpenWithScan_args(object):
"""
Attributes:
- tableName: name of table
@@ -7456,7 +7456,7 @@ class scannerOpenWithScan_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithScan_result:
+class scannerOpenWithScan_result(object):
"""
Attributes:
- success
@@ -7528,7 +7528,7 @@ class scannerOpenWithScan_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpen_args:
+class scannerOpen_args(object):
"""
Attributes:
- tableName: name of table
@@ -7623,7 +7623,7 @@ class scannerOpen_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpen_result:
+class scannerOpen_result(object):
"""
Attributes:
- success
@@ -7695,7 +7695,7 @@ class scannerOpen_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithStop_args:
+class scannerOpenWithStop_args(object):
"""
Attributes:
- tableName: name of table
@@ -7803,7 +7803,7 @@ class scannerOpenWithStop_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithStop_result:
+class scannerOpenWithStop_result(object):
"""
Attributes:
- success
@@ -7875,7 +7875,7 @@ class scannerOpenWithStop_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithPrefix_args:
+class scannerOpenWithPrefix_args(object):
"""
Attributes:
- tableName: name of table
@@ -7967,7 +7967,7 @@ class scannerOpenWithPrefix_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithPrefix_result:
+class scannerOpenWithPrefix_result(object):
"""
Attributes:
- success
@@ -8039,7 +8039,7 @@ class scannerOpenWithPrefix_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpenTs_args:
+class scannerOpenTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -8146,7 +8146,7 @@ class scannerOpenTs_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpenTs_result:
+class scannerOpenTs_result(object):
"""
Attributes:
- success
@@ -8218,7 +8218,7 @@ class scannerOpenTs_result:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithStopTs_args:
+class scannerOpenWithStopTs_args(object):
"""
Attributes:
- tableName: name of table
@@ -8338,7 +8338,7 @@ class scannerOpenWithStopTs_args:
def __ne__(self, other):
return not (self == other)
-class scannerOpenWithStopTs_result:
+class scannerOpenWithStopTs_result(object):
"""
Attributes:
- success
@@ -8410,7 +8410,7 @@ class scannerOpenWithStopTs_result:
def __ne__(self, other):
return not (self == other)
-class scannerGet_args:
+class scannerGet_args(object):
"""
Attributes:
- id: id of a scanner returned by scannerOpen
@@ -8470,7 +8470,7 @@ class scannerGet_args:
def __ne__(self, other):
return not (self == other)
-class scannerGet_result:
+class scannerGet_result(object):
"""
Attributes:
- success
@@ -8564,7 +8564,7 @@ class scannerGet_result:
def __ne__(self, other):
return not (self == other)
-class scannerGetList_args:
+class scannerGetList_args(object):
"""
Attributes:
- id: id of a scanner returned by scannerOpen
@@ -8636,7 +8636,7 @@ class scannerGetList_args:
def __ne__(self, other):
return not (self == other)
-class scannerGetList_result:
+class scannerGetList_result(object):
"""
Attributes:
- success
@@ -8730,7 +8730,7 @@ class scannerGetList_result:
def __ne__(self, other):
return not (self == other)
-class scannerClose_args:
+class scannerClose_args(object):
"""
Attributes:
- id: id of a scanner returned by scannerOpen
@@ -8790,7 +8790,7 @@ class scannerClose_args:
def __ne__(self, other):
return not (self == other)
-class scannerClose_result:
+class scannerClose_result(object):
"""
Attributes:
- io
diff --git a/happybase/hbase/constants.py b/happybase/hbase/constants.py
index 73f07fe..63313cd 100644
--- a/happybase/hbase/constants.py
+++ b/happybase/hbase/constants.py
@@ -1,11 +1,11 @@
#
-# Autogenerated by Thrift Compiler (0.8.0)
+# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
-# options string: py
+# options string: py:new_style
#
-from thrift.Thrift import TType, TMessageType, TException
+from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
diff --git a/happybase/hbase/ttypes.py b/happybase/hbase/ttypes.py
index 406b598..7d13c31 100644
--- a/happybase/hbase/ttypes.py
+++ b/happybase/hbase/ttypes.py
@@ -1,12 +1,12 @@
#
-# Autogenerated by Thrift Compiler (0.8.0)
+# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
-# options string: py
+# options string: py:new_style
#
-from thrift.Thrift import TType, TMessageType, TException
+from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
@@ -17,7 +17,7 @@ except:
-class TCell:
+class TCell(object):
"""
TCell - Used to transport a cell value (byte[]) and the timestamp it was
stored with together as a result for get and getRow methods. This promotes
@@ -94,7 +94,7 @@ class TCell:
def __ne__(self, other):
return not (self == other)
-class ColumnDescriptor:
+class ColumnDescriptor(object):
"""
An HColumnDescriptor contains information about a column family
such as the number of versions, compression settings, etc. It is
@@ -254,7 +254,7 @@ class ColumnDescriptor:
def __ne__(self, other):
return not (self == other)
-class TRegionInfo:
+class TRegionInfo(object):
"""
A TRegionInfo contains information about an HTable region.
@@ -364,7 +364,7 @@ class TRegionInfo:
def __ne__(self, other):
return not (self == other)
-class Mutation:
+class Mutation(object):
"""
A Mutation object is used to either update or delete a column-value.
@@ -450,7 +450,7 @@ class Mutation:
def __ne__(self, other):
return not (self == other)
-class BatchMutation:
+class BatchMutation(object):
"""
A BatchMutation object is used to apply a number of Mutations to a single row.
@@ -533,7 +533,7 @@ class BatchMutation:
def __ne__(self, other):
return not (self == other)
-class TRowResult:
+class TRowResult(object):
"""
Holds row name and then a map of columns to cells.
@@ -618,7 +618,7 @@ class TRowResult:
def __ne__(self, other):
return not (self == other)
-class TScan:
+class TScan(object):
"""
A Scan object is used to specify scanner parameters when opening a scanner.