1#
2# Autogenerated by Thrift Compiler (0.9.0)
3#
4# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5#
6#  options string: py
7#
8
9from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10from ttypes import *
11from thrift.Thrift import TProcessor
12from thrift.transport import TTransport
13from thrift.protocol import TBinaryProtocol, TProtocol
14try:
15  from thrift.protocol import fastbinary
16except:
17  fastbinary = None
18
19
20class Iface:
21  def enableTable(self, tableName):
22    """
23    Brings a table on-line (enables it)
24
25    Parameters:
26     - tableName: name of the table
27    """
28    pass
29
30  def disableTable(self, tableName):
31    """
32    Disables a table (takes it off-line) If it is being served, the master
33    will tell the servers to stop serving it.
34
35    Parameters:
36     - tableName: name of the table
37    """
38    pass
39
40  def isTableEnabled(self, tableName):
41    """
42    @return true if table is on-line
43
44    Parameters:
45     - tableName: name of the table to check
46    """
47    pass
48
49  def compact(self, tableNameOrRegionName):
50    """
51    Parameters:
52     - tableNameOrRegionName
53    """
54    pass
55
56  def majorCompact(self, tableNameOrRegionName):
57    """
58    Parameters:
59     - tableNameOrRegionName
60    """
61    pass
62
63  def getTableNames(self, ):
64    """
65    List all the userspace tables.
66
67    @return returns a list of names
68    """
69    pass
70
71  def getColumnDescriptors(self, tableName):
72    """
73    List all the column families assoicated with a table.
74
75    @return list of column family descriptors
76
77    Parameters:
78     - tableName: table name
79    """
80    pass
81
82  def getTableRegions(self, tableName):
83    """
84    List the regions associated with a table.
85
86    @return list of region descriptors
87
88    Parameters:
89     - tableName: table name
90    """
91    pass
92
93  def createTable(self, tableName, columnFamilies):
94    """
95    Create a table with the specified column families.  The name
96    field for each ColumnDescriptor must be set and must end in a
97    colon (:). All other fields are optional and will get default
98    values if not explicitly specified.
99
100    @throws IllegalArgument if an input parameter is invalid
101
102    @throws AlreadyExists if the table name already exists
103
104    Parameters:
105     - tableName: name of table to create
106     - columnFamilies: list of column family descriptors
107    """
108    pass
109
110  def deleteTable(self, tableName):
111    """
112    Deletes a table
113
114    @throws IOError if table doesn't exist on server or there was some other
115    problem
116
117    Parameters:
118     - tableName: name of table to delete
119    """
120    pass
121
122  def get(self, tableName, row, column, attributes):
123    """
124    Get a single TCell for the specified table, row, and column at the
125    latest timestamp. Returns an empty list if no such value exists.
126
127    @return value for specified row/column
128
129    Parameters:
130     - tableName: name of table
131     - row: row key
132     - column: column name
133     - attributes: Get attributes
134    """
135    pass
136
137  def getVer(self, tableName, row, column, numVersions, attributes):
138    """
139    Get the specified number of versions for the specified table,
140    row, and column.
141
142    @return list of cells for specified row/column
143
144    Parameters:
145     - tableName: name of table
146     - row: row key
147     - column: column name
148     - numVersions: number of versions to retrieve
149     - attributes: Get attributes
150    """
151    pass
152
153  def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
154    """
155    Get the specified number of versions for the specified table,
156    row, and column.  Only versions less than or equal to the specified
157    timestamp will be returned.
158
159    @return list of cells for specified row/column
160
161    Parameters:
162     - tableName: name of table
163     - row: row key
164     - column: column name
165     - timestamp: timestamp
166     - numVersions: number of versions to retrieve
167     - attributes: Get attributes
168    """
169    pass
170
171  def getRow(self, tableName, row, attributes):
172    """
173    Get all the data for the specified table and row at the latest
174    timestamp. Returns an empty list if the row does not exist.
175
176    @return TRowResult containing the row and map of columns to TCells
177
178    Parameters:
179     - tableName: name of table
180     - row: row key
181     - attributes: Get attributes
182    """
183    pass
184
185  def getRowWithColumns(self, tableName, row, columns, attributes):
186    """
187    Get the specified columns for the specified table and row at the latest
188    timestamp. Returns an empty list if the row does not exist.
189
190    @return TRowResult containing the row and map of columns to TCells
191
192    Parameters:
193     - tableName: name of table
194     - row: row key
195     - columns: List of columns to return, null for all columns
196     - attributes: Get attributes
197    """
198    pass
199
200  def getRowTs(self, tableName, row, timestamp, attributes):
201    """
202    Get all the data for the specified table and row at the specified
203    timestamp. Returns an empty list if the row does not exist.
204
205    @return TRowResult containing the row and map of columns to TCells
206
207    Parameters:
208     - tableName: name of the table
209     - row: row key
210     - timestamp: timestamp
211     - attributes: Get attributes
212    """
213    pass
214
215  def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
216    """
217    Get the specified columns for the specified table and row at the specified
218    timestamp. Returns an empty list if the row does not exist.
219
220    @return TRowResult containing the row and map of columns to TCells
221
222    Parameters:
223     - tableName: name of table
224     - row: row key
225     - columns: List of columns to return, null for all columns
226     - timestamp
227     - attributes: Get attributes
228    """
229    pass
230
231  def getRows(self, tableName, rows, attributes):
232    """
233    Get all the data for the specified table and rows at the latest
234    timestamp. Returns an empty list if no rows exist.
235
236    @return TRowResult containing the rows and map of columns to TCells
237
238    Parameters:
239     - tableName: name of table
240     - rows: row keys
241     - attributes: Get attributes
242    """
243    pass
244
245  def getRowsWithColumns(self, tableName, rows, columns, attributes):
246    """
247    Get the specified columns for the specified table and rows at the latest
248    timestamp. Returns an empty list if no rows exist.
249
250    @return TRowResult containing the rows and map of columns to TCells
251
252    Parameters:
253     - tableName: name of table
254     - rows: row keys
255     - columns: List of columns to return, null for all columns
256     - attributes: Get attributes
257    """
258    pass
259
260  def getRowsTs(self, tableName, rows, timestamp, attributes):
261    """
262    Get all the data for the specified table and rows at the specified
263    timestamp. Returns an empty list if no rows exist.
264
265    @return TRowResult containing the rows and map of columns to TCells
266
267    Parameters:
268     - tableName: name of the table
269     - rows: row keys
270     - timestamp: timestamp
271     - attributes: Get attributes
272    """
273    pass
274
275  def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
276    """
277    Get the specified columns for the specified table and rows at the specified
278    timestamp. Returns an empty list if no rows exist.
279
280    @return TRowResult containing the rows and map of columns to TCells
281
282    Parameters:
283     - tableName: name of table
284     - rows: row keys
285     - columns: List of columns to return, null for all columns
286     - timestamp
287     - attributes: Get attributes
288    """
289    pass
290
291  def mutateRow(self, tableName, row, mutations, attributes):
292    """
293    Apply a series of mutations (updates/deletes) to a row in a
294    single transaction.  If an exception is thrown, then the
295    transaction is aborted.  Default current timestamp is used, and
296    all entries will have an identical timestamp.
297
298    Parameters:
299     - tableName: name of table
300     - row: row key
301     - mutations: list of mutation commands
302     - attributes: Mutation attributes
303    """
304    pass
305
306  def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
307    """
308    Apply a series of mutations (updates/deletes) to a row in a
309    single transaction.  If an exception is thrown, then the
310    transaction is aborted.  The specified timestamp is used, and
311    all entries will have an identical timestamp.
312
313    Parameters:
314     - tableName: name of table
315     - row: row key
316     - mutations: list of mutation commands
317     - timestamp: timestamp
318     - attributes: Mutation attributes
319    """
320    pass
321
322  def mutateRows(self, tableName, rowBatches, attributes):
323    """
324    Apply a series of batches (each a series of mutations on a single row)
325    in a single transaction.  If an exception is thrown, then the
326    transaction is aborted.  Default current timestamp is used, and
327    all entries will have an identical timestamp.
328
329    Parameters:
330     - tableName: name of table
331     - rowBatches: list of row batches
332     - attributes: Mutation attributes
333    """
334    pass
335
336  def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
337    """
338    Apply a series of batches (each a series of mutations on a single row)
339    in a single transaction.  If an exception is thrown, then the
340    transaction is aborted.  The specified timestamp is used, and
341    all entries will have an identical timestamp.
342
343    Parameters:
344     - tableName: name of table
345     - rowBatches: list of row batches
346     - timestamp: timestamp
347     - attributes: Mutation attributes
348    """
349    pass
350
351  def atomicIncrement(self, tableName, row, column, value):
352    """
353    Atomically increment the column value specified.  Returns the next value post increment.
354
355    Parameters:
356     - tableName: name of table
357     - row: row to increment
358     - column: name of column
359     - value: amount to increment by
360    """
361    pass
362
363  def deleteAll(self, tableName, row, column, attributes):
364    """
365    Delete all cells that match the passed row and column.
366
367    Parameters:
368     - tableName: name of table
369     - row: Row to update
370     - column: name of column whose value is to be deleted
371     - attributes: Delete attributes
372    """
373    pass
374
375  def deleteAllTs(self, tableName, row, column, timestamp, attributes):
376    """
377    Delete all cells that match the passed row and column and whose
378    timestamp is equal-to or older than the passed timestamp.
379
380    Parameters:
381     - tableName: name of table
382     - row: Row to update
383     - column: name of column whose value is to be deleted
384     - timestamp: timestamp
385     - attributes: Delete attributes
386    """
387    pass
388
389  def deleteAllRow(self, tableName, row, attributes):
390    """
391    Completely delete the row's cells.
392
393    Parameters:
394     - tableName: name of table
395     - row: key of the row to be completely deleted.
396     - attributes: Delete attributes
397    """
398    pass
399
400  def increment(self, increment):
401    """
402    Increment a cell by the ammount.
403    Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
404    False is the default.  Turn to true if you need the extra performance and can accept some
405    data loss if a thrift server dies with increments still in the queue.
406
407    Parameters:
408     - increment: The single increment to apply
409    """
410    pass
411
412  def incrementRows(self, increments):
413    """
414    Parameters:
415     - increments: The list of increments
416    """
417    pass
418
419  def deleteAllRowTs(self, tableName, row, timestamp, attributes):
420    """
421    Completely delete the row's cells marked with a timestamp
422    equal-to or older than the passed timestamp.
423
424    Parameters:
425     - tableName: name of table
426     - row: key of the row to be completely deleted.
427     - timestamp: timestamp
428     - attributes: Delete attributes
429    """
430    pass
431
432  def scannerOpenWithScan(self, tableName, scan, attributes):
433    """
434    Get a scanner on the current table, using the Scan instance
435    for the scan parameters.
436
437    Parameters:
438     - tableName: name of table
439     - scan: Scan instance
440     - attributes: Scan attributes
441    """
442    pass
443
444  def scannerOpen(self, tableName, startRow, columns, attributes):
445    """
446    Get a scanner on the current table starting at the specified row and
447    ending at the last row in the table.  Return the specified columns.
448
449    @return scanner id to be used with other scanner procedures
450
451    Parameters:
452     - tableName: name of table
453     - startRow: Starting row in table to scan.
454    Send "" (empty string) to start at the first row.
455     - columns: columns to scan. If column name is a column family, all
456    columns of the specified column family are returned. It's also possible
457    to pass a regex in the column qualifier.
458     - attributes: Scan attributes
459    """
460    pass
461
462  def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
463    """
464    Get a scanner on the current table starting and stopping at the
465    specified rows.  ending at the last row in the table.  Return the
466    specified columns.
467
468    @return scanner id to be used with other scanner procedures
469
470    Parameters:
471     - tableName: name of table
472     - startRow: Starting row in table to scan.
473    Send "" (empty string) to start at the first row.
474     - stopRow: row to stop scanning on. This row is *not* included in the
475    scanner's results
476     - columns: columns to scan. If column name is a column family, all
477    columns of the specified column family are returned. It's also possible
478    to pass a regex in the column qualifier.
479     - attributes: Scan attributes
480    """
481    pass
482
483  def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
484    """
485    Open a scanner for a given prefix.  That is all rows will have the specified
486    prefix. No other rows will be returned.
487
488    @return scanner id to use with other scanner calls
489
490    Parameters:
491     - tableName: name of table
492     - startAndPrefix: the prefix (and thus start row) of the keys you want
493     - columns: the columns you want returned
494     - attributes: Scan attributes
495    """
496    pass
497
498  def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
499    """
500    Get a scanner on the current table starting at the specified row and
501    ending at the last row in the table.  Return the specified columns.
502    Only values with the specified timestamp are returned.
503
504    @return scanner id to be used with other scanner procedures
505
506    Parameters:
507     - tableName: name of table
508     - startRow: Starting row in table to scan.
509    Send "" (empty string) to start at the first row.
510     - columns: columns to scan. If column name is a column family, all
511    columns of the specified column family are returned. It's also possible
512    to pass a regex in the column qualifier.
513     - timestamp: timestamp
514     - attributes: Scan attributes
515    """
516    pass
517
518  def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
519    """
520    Get a scanner on the current table starting and stopping at the
521    specified rows.  ending at the last row in the table.  Return the
522    specified columns.  Only values with the specified timestamp are
523    returned.
524
525    @return scanner id to be used with other scanner procedures
526
527    Parameters:
528     - tableName: name of table
529     - startRow: Starting row in table to scan.
530    Send "" (empty string) to start at the first row.
531     - stopRow: row to stop scanning on. This row is *not* included in the
532    scanner's results
533     - columns: columns to scan. If column name is a column family, all
534    columns of the specified column family are returned. It's also possible
535    to pass a regex in the column qualifier.
536     - timestamp: timestamp
537     - attributes: Scan attributes
538    """
539    pass
540
541  def scannerGet(self, id):
542    """
543    Returns the scanner's current row value and advances to the next
544    row in the table.  When there are no more rows in the table, or a key
545    greater-than-or-equal-to the scanner's specified stopRow is reached,
546    an empty list is returned.
547
548    @return a TRowResult containing the current row and a map of the columns to TCells.
549
550    @throws IllegalArgument if ScannerID is invalid
551
552    @throws NotFound when the scanner reaches the end
553
554    Parameters:
555     - id: id of a scanner returned by scannerOpen
556    """
557    pass
558
559  def scannerGetList(self, id, nbRows):
560    """
561    Returns, starting at the scanner's current row value nbRows worth of
562    rows and advances to the next row in the table.  When there are no more
563    rows in the table, or a key greater-than-or-equal-to the scanner's
564    specified stopRow is reached,  an empty list is returned.
565
566    @return a TRowResult containing the current row and a map of the columns to TCells.
567
568    @throws IllegalArgument if ScannerID is invalid
569
570    @throws NotFound when the scanner reaches the end
571
572    Parameters:
573     - id: id of a scanner returned by scannerOpen
574     - nbRows: number of results to return
575    """
576    pass
577
578  def scannerClose(self, id):
579    """
580    Closes the server-state associated with an open scanner.
581
582    @throws IllegalArgument if ScannerID is invalid
583
584    Parameters:
585     - id: id of a scanner returned by scannerOpen
586    """
587    pass
588
589  def getRowOrBefore(self, tableName, row, family):
590    """
591    Get the row just before the specified one.
592
593    @return value for specified row/column
594
595    Parameters:
596     - tableName: name of table
597     - row: row key
598     - family: column name
599    """
600    pass
601
602  def getRegionInfo(self, row):
603    """
604    Get the regininfo for the specified row. It scans
605    the metatable to find region's start and end keys.
606
607    @return value for specified row/column
608
609    Parameters:
610     - row: row key
611    """
612    pass
613
614
615class Client(Iface):
616  def __init__(self, iprot, oprot=None):
617    self._iprot = self._oprot = iprot
618    if oprot is not None:
619      self._oprot = oprot
620    self._seqid = 0
621
622  def enableTable(self, tableName):
623    """
624    Brings a table on-line (enables it)
625
626    Parameters:
627     - tableName: name of the table
628    """
629    self.send_enableTable(tableName)
630    self.recv_enableTable()
631
632  def send_enableTable(self, tableName):
633    self._oprot.writeMessageBegin('enableTable', TMessageType.CALL, self._seqid)
634    args = enableTable_args()
635    args.tableName = tableName
636    args.write(self._oprot)
637    self._oprot.writeMessageEnd()
638    self._oprot.trans.flush()
639
640  def recv_enableTable(self, ):
641    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642    if mtype == TMessageType.EXCEPTION:
643      x = TApplicationException()
644      x.read(self._iprot)
645      self._iprot.readMessageEnd()
646      raise x
647    result = enableTable_result()
648    result.read(self._iprot)
649    self._iprot.readMessageEnd()
650    if result.io is not None:
651      raise result.io
652    return
653
654  def disableTable(self, tableName):
655    """
656    Disables a table (takes it off-line) If it is being served, the master
657    will tell the servers to stop serving it.
658
659    Parameters:
660     - tableName: name of the table
661    """
662    self.send_disableTable(tableName)
663    self.recv_disableTable()
664
665  def send_disableTable(self, tableName):
666    self._oprot.writeMessageBegin('disableTable', TMessageType.CALL, self._seqid)
667    args = disableTable_args()
668    args.tableName = tableName
669    args.write(self._oprot)
670    self._oprot.writeMessageEnd()
671    self._oprot.trans.flush()
672
673  def recv_disableTable(self, ):
674    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
675    if mtype == TMessageType.EXCEPTION:
676      x = TApplicationException()
677      x.read(self._iprot)
678      self._iprot.readMessageEnd()
679      raise x
680    result = disableTable_result()
681    result.read(self._iprot)
682    self._iprot.readMessageEnd()
683    if result.io is not None:
684      raise result.io
685    return
686
687  def isTableEnabled(self, tableName):
688    """
689    @return true if table is on-line
690
691    Parameters:
692     - tableName: name of the table to check
693    """
694    self.send_isTableEnabled(tableName)
695    return self.recv_isTableEnabled()
696
697  def send_isTableEnabled(self, tableName):
698    self._oprot.writeMessageBegin('isTableEnabled', TMessageType.CALL, self._seqid)
699    args = isTableEnabled_args()
700    args.tableName = tableName
701    args.write(self._oprot)
702    self._oprot.writeMessageEnd()
703    self._oprot.trans.flush()
704
705  def recv_isTableEnabled(self, ):
706    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
707    if mtype == TMessageType.EXCEPTION:
708      x = TApplicationException()
709      x.read(self._iprot)
710      self._iprot.readMessageEnd()
711      raise x
712    result = isTableEnabled_result()
713    result.read(self._iprot)
714    self._iprot.readMessageEnd()
715    if result.success is not None:
716      return result.success
717    if result.io is not None:
718      raise result.io
719    raise TApplicationException(TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result");
720
721  def compact(self, tableNameOrRegionName):
722    """
723    Parameters:
724     - tableNameOrRegionName
725    """
726    self.send_compact(tableNameOrRegionName)
727    self.recv_compact()
728
729  def send_compact(self, tableNameOrRegionName):
730    self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid)
731    args = compact_args()
732    args.tableNameOrRegionName = tableNameOrRegionName
733    args.write(self._oprot)
734    self._oprot.writeMessageEnd()
735    self._oprot.trans.flush()
736
737  def recv_compact(self, ):
738    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
739    if mtype == TMessageType.EXCEPTION:
740      x = TApplicationException()
741      x.read(self._iprot)
742      self._iprot.readMessageEnd()
743      raise x
744    result = compact_result()
745    result.read(self._iprot)
746    self._iprot.readMessageEnd()
747    if result.io is not None:
748      raise result.io
749    return
750
751  def majorCompact(self, tableNameOrRegionName):
752    """
753    Parameters:
754     - tableNameOrRegionName
755    """
756    self.send_majorCompact(tableNameOrRegionName)
757    self.recv_majorCompact()
758
759  def send_majorCompact(self, tableNameOrRegionName):
760    self._oprot.writeMessageBegin('majorCompact', TMessageType.CALL, self._seqid)
761    args = majorCompact_args()
762    args.tableNameOrRegionName = tableNameOrRegionName
763    args.write(self._oprot)
764    self._oprot.writeMessageEnd()
765    self._oprot.trans.flush()
766
767  def recv_majorCompact(self, ):
768    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
769    if mtype == TMessageType.EXCEPTION:
770      x = TApplicationException()
771      x.read(self._iprot)
772      self._iprot.readMessageEnd()
773      raise x
774    result = majorCompact_result()
775    result.read(self._iprot)
776    self._iprot.readMessageEnd()
777    if result.io is not None:
778      raise result.io
779    return
780
781  def getTableNames(self, ):
782    """
783    List all the userspace tables.
784
785    @return returns a list of names
786    """
787    self.send_getTableNames()
788    return self.recv_getTableNames()
789
790  def send_getTableNames(self, ):
791    self._oprot.writeMessageBegin('getTableNames', TMessageType.CALL, self._seqid)
792    args = getTableNames_args()
793    args.write(self._oprot)
794    self._oprot.writeMessageEnd()
795    self._oprot.trans.flush()
796
797  def recv_getTableNames(self, ):
798    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
799    if mtype == TMessageType.EXCEPTION:
800      x = TApplicationException()
801      x.read(self._iprot)
802      self._iprot.readMessageEnd()
803      raise x
804    result = getTableNames_result()
805    result.read(self._iprot)
806    self._iprot.readMessageEnd()
807    if result.success is not None:
808      return result.success
809    if result.io is not None:
810      raise result.io
811    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result");
812
813  def getColumnDescriptors(self, tableName):
814    """
815    List all the column families assoicated with a table.
816
817    @return list of column family descriptors
818
819    Parameters:
820     - tableName: table name
821    """
822    self.send_getColumnDescriptors(tableName)
823    return self.recv_getColumnDescriptors()
824
825  def send_getColumnDescriptors(self, tableName):
826    self._oprot.writeMessageBegin('getColumnDescriptors', TMessageType.CALL, self._seqid)
827    args = getColumnDescriptors_args()
828    args.tableName = tableName
829    args.write(self._oprot)
830    self._oprot.writeMessageEnd()
831    self._oprot.trans.flush()
832
833  def recv_getColumnDescriptors(self, ):
834    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
835    if mtype == TMessageType.EXCEPTION:
836      x = TApplicationException()
837      x.read(self._iprot)
838      self._iprot.readMessageEnd()
839      raise x
840    result = getColumnDescriptors_result()
841    result.read(self._iprot)
842    self._iprot.readMessageEnd()
843    if result.success is not None:
844      return result.success
845    if result.io is not None:
846      raise result.io
847    raise TApplicationException(TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result");
848
849  def getTableRegions(self, tableName):
850    """
851    List the regions associated with a table.
852
853    @return list of region descriptors
854
855    Parameters:
856     - tableName: table name
857    """
858    self.send_getTableRegions(tableName)
859    return self.recv_getTableRegions()
860
861  def send_getTableRegions(self, tableName):
862    self._oprot.writeMessageBegin('getTableRegions', TMessageType.CALL, self._seqid)
863    args = getTableRegions_args()
864    args.tableName = tableName
865    args.write(self._oprot)
866    self._oprot.writeMessageEnd()
867    self._oprot.trans.flush()
868
869  def recv_getTableRegions(self, ):
870    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
871    if mtype == TMessageType.EXCEPTION:
872      x = TApplicationException()
873      x.read(self._iprot)
874      self._iprot.readMessageEnd()
875      raise x
876    result = getTableRegions_result()
877    result.read(self._iprot)
878    self._iprot.readMessageEnd()
879    if result.success is not None:
880      return result.success
881    if result.io is not None:
882      raise result.io
883    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result");
884
885  def createTable(self, tableName, columnFamilies):
886    """
887    Create a table with the specified column families.  The name
888    field for each ColumnDescriptor must be set and must end in a
889    colon (:). All other fields are optional and will get default
890    values if not explicitly specified.
891
892    @throws IllegalArgument if an input parameter is invalid
893
894    @throws AlreadyExists if the table name already exists
895
896    Parameters:
897     - tableName: name of table to create
898     - columnFamilies: list of column family descriptors
899    """
900    self.send_createTable(tableName, columnFamilies)
901    self.recv_createTable()
902
903  def send_createTable(self, tableName, columnFamilies):
904    self._oprot.writeMessageBegin('createTable', TMessageType.CALL, self._seqid)
905    args = createTable_args()
906    args.tableName = tableName
907    args.columnFamilies = columnFamilies
908    args.write(self._oprot)
909    self._oprot.writeMessageEnd()
910    self._oprot.trans.flush()
911
912  def recv_createTable(self, ):
913    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
914    if mtype == TMessageType.EXCEPTION:
915      x = TApplicationException()
916      x.read(self._iprot)
917      self._iprot.readMessageEnd()
918      raise x
919    result = createTable_result()
920    result.read(self._iprot)
921    self._iprot.readMessageEnd()
922    if result.io is not None:
923      raise result.io
924    if result.ia is not None:
925      raise result.ia
926    if result.exist is not None:
927      raise result.exist
928    return
929
930  def deleteTable(self, tableName):
931    """
932    Deletes a table
933
934    @throws IOError if table doesn't exist on server or there was some other
935    problem
936
937    Parameters:
938     - tableName: name of table to delete
939    """
940    self.send_deleteTable(tableName)
941    self.recv_deleteTable()
942
943  def send_deleteTable(self, tableName):
944    self._oprot.writeMessageBegin('deleteTable', TMessageType.CALL, self._seqid)
945    args = deleteTable_args()
946    args.tableName = tableName
947    args.write(self._oprot)
948    self._oprot.writeMessageEnd()
949    self._oprot.trans.flush()
950
951  def recv_deleteTable(self, ):
952    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
953    if mtype == TMessageType.EXCEPTION:
954      x = TApplicationException()
955      x.read(self._iprot)
956      self._iprot.readMessageEnd()
957      raise x
958    result = deleteTable_result()
959    result.read(self._iprot)
960    self._iprot.readMessageEnd()
961    if result.io is not None:
962      raise result.io
963    return
964
965  def get(self, tableName, row, column, attributes):
966    """
967    Get a single TCell for the specified table, row, and column at the
968    latest timestamp. Returns an empty list if no such value exists.
969
970    @return value for specified row/column
971
972    Parameters:
973     - tableName: name of table
974     - row: row key
975     - column: column name
976     - attributes: Get attributes
977    """
978    self.send_get(tableName, row, column, attributes)
979    return self.recv_get()
980
981  def send_get(self, tableName, row, column, attributes):
982    self._oprot.writeMessageBegin('get', TMessageType.CALL, self._seqid)
983    args = get_args()
984    args.tableName = tableName
985    args.row = row
986    args.column = column
987    args.attributes = attributes
988    args.write(self._oprot)
989    self._oprot.writeMessageEnd()
990    self._oprot.trans.flush()
991
992  def recv_get(self, ):
993    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
994    if mtype == TMessageType.EXCEPTION:
995      x = TApplicationException()
996      x.read(self._iprot)
997      self._iprot.readMessageEnd()
998      raise x
999    result = get_result()
1000    result.read(self._iprot)
1001    self._iprot.readMessageEnd()
1002    if result.success is not None:
1003      return result.success
1004    if result.io is not None:
1005      raise result.io
1006    raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
1007
1008  def getVer(self, tableName, row, column, numVersions, attributes):
1009    """
1010    Get the specified number of versions for the specified table,
1011    row, and column.
1012
1013    @return list of cells for specified row/column
1014
1015    Parameters:
1016     - tableName: name of table
1017     - row: row key
1018     - column: column name
1019     - numVersions: number of versions to retrieve
1020     - attributes: Get attributes
1021    """
1022    self.send_getVer(tableName, row, column, numVersions, attributes)
1023    return self.recv_getVer()
1024
1025  def send_getVer(self, tableName, row, column, numVersions, attributes):
1026    self._oprot.writeMessageBegin('getVer', TMessageType.CALL, self._seqid)
1027    args = getVer_args()
1028    args.tableName = tableName
1029    args.row = row
1030    args.column = column
1031    args.numVersions = numVersions
1032    args.attributes = attributes
1033    args.write(self._oprot)
1034    self._oprot.writeMessageEnd()
1035    self._oprot.trans.flush()
1036
1037  def recv_getVer(self, ):
1038    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1039    if mtype == TMessageType.EXCEPTION:
1040      x = TApplicationException()
1041      x.read(self._iprot)
1042      self._iprot.readMessageEnd()
1043      raise x
1044    result = getVer_result()
1045    result.read(self._iprot)
1046    self._iprot.readMessageEnd()
1047    if result.success is not None:
1048      return result.success
1049    if result.io is not None:
1050      raise result.io
1051    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVer failed: unknown result");
1052
1053  def getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
1054    """
1055    Get the specified number of versions for the specified table,
1056    row, and column.  Only versions less than or equal to the specified
1057    timestamp will be returned.
1058
1059    @return list of cells for specified row/column
1060
1061    Parameters:
1062     - tableName: name of table
1063     - row: row key
1064     - column: column name
1065     - timestamp: timestamp
1066     - numVersions: number of versions to retrieve
1067     - attributes: Get attributes
1068    """
1069    self.send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
1070    return self.recv_getVerTs()
1071
1072  def send_getVerTs(self, tableName, row, column, timestamp, numVersions, attributes):
1073    self._oprot.writeMessageBegin('getVerTs', TMessageType.CALL, self._seqid)
1074    args = getVerTs_args()
1075    args.tableName = tableName
1076    args.row = row
1077    args.column = column
1078    args.timestamp = timestamp
1079    args.numVersions = numVersions
1080    args.attributes = attributes
1081    args.write(self._oprot)
1082    self._oprot.writeMessageEnd()
1083    self._oprot.trans.flush()
1084
1085  def recv_getVerTs(self, ):
1086    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1087    if mtype == TMessageType.EXCEPTION:
1088      x = TApplicationException()
1089      x.read(self._iprot)
1090      self._iprot.readMessageEnd()
1091      raise x
1092    result = getVerTs_result()
1093    result.read(self._iprot)
1094    self._iprot.readMessageEnd()
1095    if result.success is not None:
1096      return result.success
1097    if result.io is not None:
1098      raise result.io
1099    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result");
1100
1101  def getRow(self, tableName, row, attributes):
1102    """
1103    Get all the data for the specified table and row at the latest
1104    timestamp. Returns an empty list if the row does not exist.
1105
1106    @return TRowResult containing the row and map of columns to TCells
1107
1108    Parameters:
1109     - tableName: name of table
1110     - row: row key
1111     - attributes: Get attributes
1112    """
1113    self.send_getRow(tableName, row, attributes)
1114    return self.recv_getRow()
1115
1116  def send_getRow(self, tableName, row, attributes):
1117    self._oprot.writeMessageBegin('getRow', TMessageType.CALL, self._seqid)
1118    args = getRow_args()
1119    args.tableName = tableName
1120    args.row = row
1121    args.attributes = attributes
1122    args.write(self._oprot)
1123    self._oprot.writeMessageEnd()
1124    self._oprot.trans.flush()
1125
1126  def recv_getRow(self, ):
1127    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1128    if mtype == TMessageType.EXCEPTION:
1129      x = TApplicationException()
1130      x.read(self._iprot)
1131      self._iprot.readMessageEnd()
1132      raise x
1133    result = getRow_result()
1134    result.read(self._iprot)
1135    self._iprot.readMessageEnd()
1136    if result.success is not None:
1137      return result.success
1138    if result.io is not None:
1139      raise result.io
1140    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRow failed: unknown result");
1141
1142  def getRowWithColumns(self, tableName, row, columns, attributes):
1143    """
1144    Get the specified columns for the specified table and row at the latest
1145    timestamp. Returns an empty list if the row does not exist.
1146
1147    @return TRowResult containing the row and map of columns to TCells
1148
1149    Parameters:
1150     - tableName: name of table
1151     - row: row key
1152     - columns: List of columns to return, null for all columns
1153     - attributes: Get attributes
1154    """
1155    self.send_getRowWithColumns(tableName, row, columns, attributes)
1156    return self.recv_getRowWithColumns()
1157
1158  def send_getRowWithColumns(self, tableName, row, columns, attributes):
1159    self._oprot.writeMessageBegin('getRowWithColumns', TMessageType.CALL, self._seqid)
1160    args = getRowWithColumns_args()
1161    args.tableName = tableName
1162    args.row = row
1163    args.columns = columns
1164    args.attributes = attributes
1165    args.write(self._oprot)
1166    self._oprot.writeMessageEnd()
1167    self._oprot.trans.flush()
1168
1169  def recv_getRowWithColumns(self, ):
1170    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1171    if mtype == TMessageType.EXCEPTION:
1172      x = TApplicationException()
1173      x.read(self._iprot)
1174      self._iprot.readMessageEnd()
1175      raise x
1176    result = getRowWithColumns_result()
1177    result.read(self._iprot)
1178    self._iprot.readMessageEnd()
1179    if result.success is not None:
1180      return result.success
1181    if result.io is not None:
1182      raise result.io
1183    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result");
1184
1185  def getRowTs(self, tableName, row, timestamp, attributes):
1186    """
1187    Get all the data for the specified table and row at the specified
1188    timestamp. Returns an empty list if the row does not exist.
1189
1190    @return TRowResult containing the row and map of columns to TCells
1191
1192    Parameters:
1193     - tableName: name of the table
1194     - row: row key
1195     - timestamp: timestamp
1196     - attributes: Get attributes
1197    """
1198    self.send_getRowTs(tableName, row, timestamp, attributes)
1199    return self.recv_getRowTs()
1200
1201  def send_getRowTs(self, tableName, row, timestamp, attributes):
1202    self._oprot.writeMessageBegin('getRowTs', TMessageType.CALL, self._seqid)
1203    args = getRowTs_args()
1204    args.tableName = tableName
1205    args.row = row
1206    args.timestamp = timestamp
1207    args.attributes = attributes
1208    args.write(self._oprot)
1209    self._oprot.writeMessageEnd()
1210    self._oprot.trans.flush()
1211
1212  def recv_getRowTs(self, ):
1213    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1214    if mtype == TMessageType.EXCEPTION:
1215      x = TApplicationException()
1216      x.read(self._iprot)
1217      self._iprot.readMessageEnd()
1218      raise x
1219    result = getRowTs_result()
1220    result.read(self._iprot)
1221    self._iprot.readMessageEnd()
1222    if result.success is not None:
1223      return result.success
1224    if result.io is not None:
1225      raise result.io
1226    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result");
1227
1228  def getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
1229    """
1230    Get the specified columns for the specified table and row at the specified
1231    timestamp. Returns an empty list if the row does not exist.
1232
1233    @return TRowResult containing the row and map of columns to TCells
1234
1235    Parameters:
1236     - tableName: name of table
1237     - row: row key
1238     - columns: List of columns to return, null for all columns
1239     - timestamp
1240     - attributes: Get attributes
1241    """
1242    self.send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
1243    return self.recv_getRowWithColumnsTs()
1244
1245  def send_getRowWithColumnsTs(self, tableName, row, columns, timestamp, attributes):
1246    self._oprot.writeMessageBegin('getRowWithColumnsTs', TMessageType.CALL, self._seqid)
1247    args = getRowWithColumnsTs_args()
1248    args.tableName = tableName
1249    args.row = row
1250    args.columns = columns
1251    args.timestamp = timestamp
1252    args.attributes = attributes
1253    args.write(self._oprot)
1254    self._oprot.writeMessageEnd()
1255    self._oprot.trans.flush()
1256
1257  def recv_getRowWithColumnsTs(self, ):
1258    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1259    if mtype == TMessageType.EXCEPTION:
1260      x = TApplicationException()
1261      x.read(self._iprot)
1262      self._iprot.readMessageEnd()
1263      raise x
1264    result = getRowWithColumnsTs_result()
1265    result.read(self._iprot)
1266    self._iprot.readMessageEnd()
1267    if result.success is not None:
1268      return result.success
1269    if result.io is not None:
1270      raise result.io
1271    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result");
1272
1273  def getRows(self, tableName, rows, attributes):
1274    """
1275    Get all the data for the specified table and rows at the latest
1276    timestamp. Returns an empty list if no rows exist.
1277
1278    @return TRowResult containing the rows and map of columns to TCells
1279
1280    Parameters:
1281     - tableName: name of table
1282     - rows: row keys
1283     - attributes: Get attributes
1284    """
1285    self.send_getRows(tableName, rows, attributes)
1286    return self.recv_getRows()
1287
1288  def send_getRows(self, tableName, rows, attributes):
1289    self._oprot.writeMessageBegin('getRows', TMessageType.CALL, self._seqid)
1290    args = getRows_args()
1291    args.tableName = tableName
1292    args.rows = rows
1293    args.attributes = attributes
1294    args.write(self._oprot)
1295    self._oprot.writeMessageEnd()
1296    self._oprot.trans.flush()
1297
1298  def recv_getRows(self, ):
1299    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1300    if mtype == TMessageType.EXCEPTION:
1301      x = TApplicationException()
1302      x.read(self._iprot)
1303      self._iprot.readMessageEnd()
1304      raise x
1305    result = getRows_result()
1306    result.read(self._iprot)
1307    self._iprot.readMessageEnd()
1308    if result.success is not None:
1309      return result.success
1310    if result.io is not None:
1311      raise result.io
1312    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRows failed: unknown result");
1313
1314  def getRowsWithColumns(self, tableName, rows, columns, attributes):
1315    """
1316    Get the specified columns for the specified table and rows at the latest
1317    timestamp. Returns an empty list if no rows exist.
1318
1319    @return TRowResult containing the rows and map of columns to TCells
1320
1321    Parameters:
1322     - tableName: name of table
1323     - rows: row keys
1324     - columns: List of columns to return, null for all columns
1325     - attributes: Get attributes
1326    """
1327    self.send_getRowsWithColumns(tableName, rows, columns, attributes)
1328    return self.recv_getRowsWithColumns()
1329
1330  def send_getRowsWithColumns(self, tableName, rows, columns, attributes):
1331    self._oprot.writeMessageBegin('getRowsWithColumns', TMessageType.CALL, self._seqid)
1332    args = getRowsWithColumns_args()
1333    args.tableName = tableName
1334    args.rows = rows
1335    args.columns = columns
1336    args.attributes = attributes
1337    args.write(self._oprot)
1338    self._oprot.writeMessageEnd()
1339    self._oprot.trans.flush()
1340
1341  def recv_getRowsWithColumns(self, ):
1342    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1343    if mtype == TMessageType.EXCEPTION:
1344      x = TApplicationException()
1345      x.read(self._iprot)
1346      self._iprot.readMessageEnd()
1347      raise x
1348    result = getRowsWithColumns_result()
1349    result.read(self._iprot)
1350    self._iprot.readMessageEnd()
1351    if result.success is not None:
1352      return result.success
1353    if result.io is not None:
1354      raise result.io
1355    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result");
1356
1357  def getRowsTs(self, tableName, rows, timestamp, attributes):
1358    """
1359    Get all the data for the specified table and rows at the specified
1360    timestamp. Returns an empty list if no rows exist.
1361
1362    @return TRowResult containing the rows and map of columns to TCells
1363
1364    Parameters:
1365     - tableName: name of the table
1366     - rows: row keys
1367     - timestamp: timestamp
1368     - attributes: Get attributes
1369    """
1370    self.send_getRowsTs(tableName, rows, timestamp, attributes)
1371    return self.recv_getRowsTs()
1372
1373  def send_getRowsTs(self, tableName, rows, timestamp, attributes):
1374    self._oprot.writeMessageBegin('getRowsTs', TMessageType.CALL, self._seqid)
1375    args = getRowsTs_args()
1376    args.tableName = tableName
1377    args.rows = rows
1378    args.timestamp = timestamp
1379    args.attributes = attributes
1380    args.write(self._oprot)
1381    self._oprot.writeMessageEnd()
1382    self._oprot.trans.flush()
1383
1384  def recv_getRowsTs(self, ):
1385    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1386    if mtype == TMessageType.EXCEPTION:
1387      x = TApplicationException()
1388      x.read(self._iprot)
1389      self._iprot.readMessageEnd()
1390      raise x
1391    result = getRowsTs_result()
1392    result.read(self._iprot)
1393    self._iprot.readMessageEnd()
1394    if result.success is not None:
1395      return result.success
1396    if result.io is not None:
1397      raise result.io
1398    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result");
1399
1400  def getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
1401    """
1402    Get the specified columns for the specified table and rows at the specified
1403    timestamp. Returns an empty list if no rows exist.
1404
1405    @return TRowResult containing the rows and map of columns to TCells
1406
1407    Parameters:
1408     - tableName: name of table
1409     - rows: row keys
1410     - columns: List of columns to return, null for all columns
1411     - timestamp
1412     - attributes: Get attributes
1413    """
1414    self.send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
1415    return self.recv_getRowsWithColumnsTs()
1416
1417  def send_getRowsWithColumnsTs(self, tableName, rows, columns, timestamp, attributes):
1418    self._oprot.writeMessageBegin('getRowsWithColumnsTs', TMessageType.CALL, self._seqid)
1419    args = getRowsWithColumnsTs_args()
1420    args.tableName = tableName
1421    args.rows = rows
1422    args.columns = columns
1423    args.timestamp = timestamp
1424    args.attributes = attributes
1425    args.write(self._oprot)
1426    self._oprot.writeMessageEnd()
1427    self._oprot.trans.flush()
1428
1429  def recv_getRowsWithColumnsTs(self, ):
1430    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1431    if mtype == TMessageType.EXCEPTION:
1432      x = TApplicationException()
1433      x.read(self._iprot)
1434      self._iprot.readMessageEnd()
1435      raise x
1436    result = getRowsWithColumnsTs_result()
1437    result.read(self._iprot)
1438    self._iprot.readMessageEnd()
1439    if result.success is not None:
1440      return result.success
1441    if result.io is not None:
1442      raise result.io
1443    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result");
1444
1445  def mutateRow(self, tableName, row, mutations, attributes):
1446    """
1447    Apply a series of mutations (updates/deletes) to a row in a
1448    single transaction.  If an exception is thrown, then the
1449    transaction is aborted.  Default current timestamp is used, and
1450    all entries will have an identical timestamp.
1451
1452    Parameters:
1453     - tableName: name of table
1454     - row: row key
1455     - mutations: list of mutation commands
1456     - attributes: Mutation attributes
1457    """
1458    self.send_mutateRow(tableName, row, mutations, attributes)
1459    self.recv_mutateRow()
1460
1461  def send_mutateRow(self, tableName, row, mutations, attributes):
1462    self._oprot.writeMessageBegin('mutateRow', TMessageType.CALL, self._seqid)
1463    args = mutateRow_args()
1464    args.tableName = tableName
1465    args.row = row
1466    args.mutations = mutations
1467    args.attributes = attributes
1468    args.write(self._oprot)
1469    self._oprot.writeMessageEnd()
1470    self._oprot.trans.flush()
1471
1472  def recv_mutateRow(self, ):
1473    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1474    if mtype == TMessageType.EXCEPTION:
1475      x = TApplicationException()
1476      x.read(self._iprot)
1477      self._iprot.readMessageEnd()
1478      raise x
1479    result = mutateRow_result()
1480    result.read(self._iprot)
1481    self._iprot.readMessageEnd()
1482    if result.io is not None:
1483      raise result.io
1484    if result.ia is not None:
1485      raise result.ia
1486    return
1487
1488  def mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
1489    """
1490    Apply a series of mutations (updates/deletes) to a row in a
1491    single transaction.  If an exception is thrown, then the
1492    transaction is aborted.  The specified timestamp is used, and
1493    all entries will have an identical timestamp.
1494
1495    Parameters:
1496     - tableName: name of table
1497     - row: row key
1498     - mutations: list of mutation commands
1499     - timestamp: timestamp
1500     - attributes: Mutation attributes
1501    """
1502    self.send_mutateRowTs(tableName, row, mutations, timestamp, attributes)
1503    self.recv_mutateRowTs()
1504
1505  def send_mutateRowTs(self, tableName, row, mutations, timestamp, attributes):
1506    self._oprot.writeMessageBegin('mutateRowTs', TMessageType.CALL, self._seqid)
1507    args = mutateRowTs_args()
1508    args.tableName = tableName
1509    args.row = row
1510    args.mutations = mutations
1511    args.timestamp = timestamp
1512    args.attributes = attributes
1513    args.write(self._oprot)
1514    self._oprot.writeMessageEnd()
1515    self._oprot.trans.flush()
1516
1517  def recv_mutateRowTs(self, ):
1518    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1519    if mtype == TMessageType.EXCEPTION:
1520      x = TApplicationException()
1521      x.read(self._iprot)
1522      self._iprot.readMessageEnd()
1523      raise x
1524    result = mutateRowTs_result()
1525    result.read(self._iprot)
1526    self._iprot.readMessageEnd()
1527    if result.io is not None:
1528      raise result.io
1529    if result.ia is not None:
1530      raise result.ia
1531    return
1532
1533  def mutateRows(self, tableName, rowBatches, attributes):
1534    """
1535    Apply a series of batches (each a series of mutations on a single row)
1536    in a single transaction.  If an exception is thrown, then the
1537    transaction is aborted.  Default current timestamp is used, and
1538    all entries will have an identical timestamp.
1539
1540    Parameters:
1541     - tableName: name of table
1542     - rowBatches: list of row batches
1543     - attributes: Mutation attributes
1544    """
1545    self.send_mutateRows(tableName, rowBatches, attributes)
1546    self.recv_mutateRows()
1547
1548  def send_mutateRows(self, tableName, rowBatches, attributes):
1549    self._oprot.writeMessageBegin('mutateRows', TMessageType.CALL, self._seqid)
1550    args = mutateRows_args()
1551    args.tableName = tableName
1552    args.rowBatches = rowBatches
1553    args.attributes = attributes
1554    args.write(self._oprot)
1555    self._oprot.writeMessageEnd()
1556    self._oprot.trans.flush()
1557
1558  def recv_mutateRows(self, ):
1559    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1560    if mtype == TMessageType.EXCEPTION:
1561      x = TApplicationException()
1562      x.read(self._iprot)
1563      self._iprot.readMessageEnd()
1564      raise x
1565    result = mutateRows_result()
1566    result.read(self._iprot)
1567    self._iprot.readMessageEnd()
1568    if result.io is not None:
1569      raise result.io
1570    if result.ia is not None:
1571      raise result.ia
1572    return
1573
1574  def mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
1575    """
1576    Apply a series of batches (each a series of mutations on a single row)
1577    in a single transaction.  If an exception is thrown, then the
1578    transaction is aborted.  The specified timestamp is used, and
1579    all entries will have an identical timestamp.
1580
1581    Parameters:
1582     - tableName: name of table
1583     - rowBatches: list of row batches
1584     - timestamp: timestamp
1585     - attributes: Mutation attributes
1586    """
1587    self.send_mutateRowsTs(tableName, rowBatches, timestamp, attributes)
1588    self.recv_mutateRowsTs()
1589
1590  def send_mutateRowsTs(self, tableName, rowBatches, timestamp, attributes):
1591    self._oprot.writeMessageBegin('mutateRowsTs', TMessageType.CALL, self._seqid)
1592    args = mutateRowsTs_args()
1593    args.tableName = tableName
1594    args.rowBatches = rowBatches
1595    args.timestamp = timestamp
1596    args.attributes = attributes
1597    args.write(self._oprot)
1598    self._oprot.writeMessageEnd()
1599    self._oprot.trans.flush()
1600
1601  def recv_mutateRowsTs(self, ):
1602    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1603    if mtype == TMessageType.EXCEPTION:
1604      x = TApplicationException()
1605      x.read(self._iprot)
1606      self._iprot.readMessageEnd()
1607      raise x
1608    result = mutateRowsTs_result()
1609    result.read(self._iprot)
1610    self._iprot.readMessageEnd()
1611    if result.io is not None:
1612      raise result.io
1613    if result.ia is not None:
1614      raise result.ia
1615    return
1616
1617  def atomicIncrement(self, tableName, row, column, value):
1618    """
1619    Atomically increment the column value specified.  Returns the next value post increment.
1620
1621    Parameters:
1622     - tableName: name of table
1623     - row: row to increment
1624     - column: name of column
1625     - value: amount to increment by
1626    """
1627    self.send_atomicIncrement(tableName, row, column, value)
1628    return self.recv_atomicIncrement()
1629
1630  def send_atomicIncrement(self, tableName, row, column, value):
1631    self._oprot.writeMessageBegin('atomicIncrement', TMessageType.CALL, self._seqid)
1632    args = atomicIncrement_args()
1633    args.tableName = tableName
1634    args.row = row
1635    args.column = column
1636    args.value = value
1637    args.write(self._oprot)
1638    self._oprot.writeMessageEnd()
1639    self._oprot.trans.flush()
1640
1641  def recv_atomicIncrement(self, ):
1642    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1643    if mtype == TMessageType.EXCEPTION:
1644      x = TApplicationException()
1645      x.read(self._iprot)
1646      self._iprot.readMessageEnd()
1647      raise x
1648    result = atomicIncrement_result()
1649    result.read(self._iprot)
1650    self._iprot.readMessageEnd()
1651    if result.success is not None:
1652      return result.success
1653    if result.io is not None:
1654      raise result.io
1655    if result.ia is not None:
1656      raise result.ia
1657    raise TApplicationException(TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result");
1658
1659  def deleteAll(self, tableName, row, column, attributes):
1660    """
1661    Delete all cells that match the passed row and column.
1662
1663    Parameters:
1664     - tableName: name of table
1665     - row: Row to update
1666     - column: name of column whose value is to be deleted
1667     - attributes: Delete attributes
1668    """
1669    self.send_deleteAll(tableName, row, column, attributes)
1670    self.recv_deleteAll()
1671
1672  def send_deleteAll(self, tableName, row, column, attributes):
1673    self._oprot.writeMessageBegin('deleteAll', TMessageType.CALL, self._seqid)
1674    args = deleteAll_args()
1675    args.tableName = tableName
1676    args.row = row
1677    args.column = column
1678    args.attributes = attributes
1679    args.write(self._oprot)
1680    self._oprot.writeMessageEnd()
1681    self._oprot.trans.flush()
1682
1683  def recv_deleteAll(self, ):
1684    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1685    if mtype == TMessageType.EXCEPTION:
1686      x = TApplicationException()
1687      x.read(self._iprot)
1688      self._iprot.readMessageEnd()
1689      raise x
1690    result = deleteAll_result()
1691    result.read(self._iprot)
1692    self._iprot.readMessageEnd()
1693    if result.io is not None:
1694      raise result.io
1695    return
1696
1697  def deleteAllTs(self, tableName, row, column, timestamp, attributes):
1698    """
1699    Delete all cells that match the passed row and column and whose
1700    timestamp is equal-to or older than the passed timestamp.
1701
1702    Parameters:
1703     - tableName: name of table
1704     - row: Row to update
1705     - column: name of column whose value is to be deleted
1706     - timestamp: timestamp
1707     - attributes: Delete attributes
1708    """
1709    self.send_deleteAllTs(tableName, row, column, timestamp, attributes)
1710    self.recv_deleteAllTs()
1711
1712  def send_deleteAllTs(self, tableName, row, column, timestamp, attributes):
1713    self._oprot.writeMessageBegin('deleteAllTs', TMessageType.CALL, self._seqid)
1714    args = deleteAllTs_args()
1715    args.tableName = tableName
1716    args.row = row
1717    args.column = column
1718    args.timestamp = timestamp
1719    args.attributes = attributes
1720    args.write(self._oprot)
1721    self._oprot.writeMessageEnd()
1722    self._oprot.trans.flush()
1723
1724  def recv_deleteAllTs(self, ):
1725    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1726    if mtype == TMessageType.EXCEPTION:
1727      x = TApplicationException()
1728      x.read(self._iprot)
1729      self._iprot.readMessageEnd()
1730      raise x
1731    result = deleteAllTs_result()
1732    result.read(self._iprot)
1733    self._iprot.readMessageEnd()
1734    if result.io is not None:
1735      raise result.io
1736    return
1737
1738  def deleteAllRow(self, tableName, row, attributes):
1739    """
1740    Completely delete the row's cells.
1741
1742    Parameters:
1743     - tableName: name of table
1744     - row: key of the row to be completely deleted.
1745     - attributes: Delete attributes
1746    """
1747    self.send_deleteAllRow(tableName, row, attributes)
1748    self.recv_deleteAllRow()
1749
1750  def send_deleteAllRow(self, tableName, row, attributes):
1751    self._oprot.writeMessageBegin('deleteAllRow', TMessageType.CALL, self._seqid)
1752    args = deleteAllRow_args()
1753    args.tableName = tableName
1754    args.row = row
1755    args.attributes = attributes
1756    args.write(self._oprot)
1757    self._oprot.writeMessageEnd()
1758    self._oprot.trans.flush()
1759
1760  def recv_deleteAllRow(self, ):
1761    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1762    if mtype == TMessageType.EXCEPTION:
1763      x = TApplicationException()
1764      x.read(self._iprot)
1765      self._iprot.readMessageEnd()
1766      raise x
1767    result = deleteAllRow_result()
1768    result.read(self._iprot)
1769    self._iprot.readMessageEnd()
1770    if result.io is not None:
1771      raise result.io
1772    return
1773
1774  def increment(self, increment):
1775    """
1776    Increment a cell by the ammount.
1777    Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
1778    False is the default.  Turn to true if you need the extra performance and can accept some
1779    data loss if a thrift server dies with increments still in the queue.
1780
1781    Parameters:
1782     - increment: The single increment to apply
1783    """
1784    self.send_increment(increment)
1785    self.recv_increment()
1786
1787  def send_increment(self, increment):
1788    self._oprot.writeMessageBegin('increment', TMessageType.CALL, self._seqid)
1789    args = increment_args()
1790    args.increment = increment
1791    args.write(self._oprot)
1792    self._oprot.writeMessageEnd()
1793    self._oprot.trans.flush()
1794
1795  def recv_increment(self, ):
1796    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797    if mtype == TMessageType.EXCEPTION:
1798      x = TApplicationException()
1799      x.read(self._iprot)
1800      self._iprot.readMessageEnd()
1801      raise x
1802    result = increment_result()
1803    result.read(self._iprot)
1804    self._iprot.readMessageEnd()
1805    if result.io is not None:
1806      raise result.io
1807    return
1808
1809  def incrementRows(self, increments):
1810    """
1811    Parameters:
1812     - increments: The list of increments
1813    """
1814    self.send_incrementRows(increments)
1815    self.recv_incrementRows()
1816
1817  def send_incrementRows(self, increments):
1818    self._oprot.writeMessageBegin('incrementRows', TMessageType.CALL, self._seqid)
1819    args = incrementRows_args()
1820    args.increments = increments
1821    args.write(self._oprot)
1822    self._oprot.writeMessageEnd()
1823    self._oprot.trans.flush()
1824
1825  def recv_incrementRows(self, ):
1826    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1827    if mtype == TMessageType.EXCEPTION:
1828      x = TApplicationException()
1829      x.read(self._iprot)
1830      self._iprot.readMessageEnd()
1831      raise x
1832    result = incrementRows_result()
1833    result.read(self._iprot)
1834    self._iprot.readMessageEnd()
1835    if result.io is not None:
1836      raise result.io
1837    return
1838
1839  def deleteAllRowTs(self, tableName, row, timestamp, attributes):
1840    """
1841    Completely delete the row's cells marked with a timestamp
1842    equal-to or older than the passed timestamp.
1843
1844    Parameters:
1845     - tableName: name of table
1846     - row: key of the row to be completely deleted.
1847     - timestamp: timestamp
1848     - attributes: Delete attributes
1849    """
1850    self.send_deleteAllRowTs(tableName, row, timestamp, attributes)
1851    self.recv_deleteAllRowTs()
1852
1853  def send_deleteAllRowTs(self, tableName, row, timestamp, attributes):
1854    self._oprot.writeMessageBegin('deleteAllRowTs', TMessageType.CALL, self._seqid)
1855    args = deleteAllRowTs_args()
1856    args.tableName = tableName
1857    args.row = row
1858    args.timestamp = timestamp
1859    args.attributes = attributes
1860    args.write(self._oprot)
1861    self._oprot.writeMessageEnd()
1862    self._oprot.trans.flush()
1863
1864  def recv_deleteAllRowTs(self, ):
1865    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1866    if mtype == TMessageType.EXCEPTION:
1867      x = TApplicationException()
1868      x.read(self._iprot)
1869      self._iprot.readMessageEnd()
1870      raise x
1871    result = deleteAllRowTs_result()
1872    result.read(self._iprot)
1873    self._iprot.readMessageEnd()
1874    if result.io is not None:
1875      raise result.io
1876    return
1877
1878  def scannerOpenWithScan(self, tableName, scan, attributes):
1879    """
1880    Get a scanner on the current table, using the Scan instance
1881    for the scan parameters.
1882
1883    Parameters:
1884     - tableName: name of table
1885     - scan: Scan instance
1886     - attributes: Scan attributes
1887    """
1888    self.send_scannerOpenWithScan(tableName, scan, attributes)
1889    return self.recv_scannerOpenWithScan()
1890
1891  def send_scannerOpenWithScan(self, tableName, scan, attributes):
1892    self._oprot.writeMessageBegin('scannerOpenWithScan', TMessageType.CALL, self._seqid)
1893    args = scannerOpenWithScan_args()
1894    args.tableName = tableName
1895    args.scan = scan
1896    args.attributes = attributes
1897    args.write(self._oprot)
1898    self._oprot.writeMessageEnd()
1899    self._oprot.trans.flush()
1900
1901  def recv_scannerOpenWithScan(self, ):
1902    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1903    if mtype == TMessageType.EXCEPTION:
1904      x = TApplicationException()
1905      x.read(self._iprot)
1906      self._iprot.readMessageEnd()
1907      raise x
1908    result = scannerOpenWithScan_result()
1909    result.read(self._iprot)
1910    self._iprot.readMessageEnd()
1911    if result.success is not None:
1912      return result.success
1913    if result.io is not None:
1914      raise result.io
1915    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result");
1916
1917  def scannerOpen(self, tableName, startRow, columns, attributes):
1918    """
1919    Get a scanner on the current table starting at the specified row and
1920    ending at the last row in the table.  Return the specified columns.
1921
1922    @return scanner id to be used with other scanner procedures
1923
1924    Parameters:
1925     - tableName: name of table
1926     - startRow: Starting row in table to scan.
1927    Send "" (empty string) to start at the first row.
1928     - columns: columns to scan. If column name is a column family, all
1929    columns of the specified column family are returned. It's also possible
1930    to pass a regex in the column qualifier.
1931     - attributes: Scan attributes
1932    """
1933    self.send_scannerOpen(tableName, startRow, columns, attributes)
1934    return self.recv_scannerOpen()
1935
1936  def send_scannerOpen(self, tableName, startRow, columns, attributes):
1937    self._oprot.writeMessageBegin('scannerOpen', TMessageType.CALL, self._seqid)
1938    args = scannerOpen_args()
1939    args.tableName = tableName
1940    args.startRow = startRow
1941    args.columns = columns
1942    args.attributes = attributes
1943    args.write(self._oprot)
1944    self._oprot.writeMessageEnd()
1945    self._oprot.trans.flush()
1946
1947  def recv_scannerOpen(self, ):
1948    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1949    if mtype == TMessageType.EXCEPTION:
1950      x = TApplicationException()
1951      x.read(self._iprot)
1952      self._iprot.readMessageEnd()
1953      raise x
1954    result = scannerOpen_result()
1955    result.read(self._iprot)
1956    self._iprot.readMessageEnd()
1957    if result.success is not None:
1958      return result.success
1959    if result.io is not None:
1960      raise result.io
1961    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result");
1962
1963  def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
1964    """
1965    Get a scanner on the current table starting and stopping at the
1966    specified rows.  ending at the last row in the table.  Return the
1967    specified columns.
1968
1969    @return scanner id to be used with other scanner procedures
1970
1971    Parameters:
1972     - tableName: name of table
1973     - startRow: Starting row in table to scan.
1974    Send "" (empty string) to start at the first row.
1975     - stopRow: row to stop scanning on. This row is *not* included in the
1976    scanner's results
1977     - columns: columns to scan. If column name is a column family, all
1978    columns of the specified column family are returned. It's also possible
1979    to pass a regex in the column qualifier.
1980     - attributes: Scan attributes
1981    """
1982    self.send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
1983    return self.recv_scannerOpenWithStop()
1984
1985  def send_scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes):
1986    self._oprot.writeMessageBegin('scannerOpenWithStop', TMessageType.CALL, self._seqid)
1987    args = scannerOpenWithStop_args()
1988    args.tableName = tableName
1989    args.startRow = startRow
1990    args.stopRow = stopRow
1991    args.columns = columns
1992    args.attributes = attributes
1993    args.write(self._oprot)
1994    self._oprot.writeMessageEnd()
1995    self._oprot.trans.flush()
1996
1997  def recv_scannerOpenWithStop(self, ):
1998    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1999    if mtype == TMessageType.EXCEPTION:
2000      x = TApplicationException()
2001      x.read(self._iprot)
2002      self._iprot.readMessageEnd()
2003      raise x
2004    result = scannerOpenWithStop_result()
2005    result.read(self._iprot)
2006    self._iprot.readMessageEnd()
2007    if result.success is not None:
2008      return result.success
2009    if result.io is not None:
2010      raise result.io
2011    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result");
2012
2013  def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
2014    """
2015    Open a scanner for a given prefix.  That is all rows will have the specified
2016    prefix. No other rows will be returned.
2017
2018    @return scanner id to use with other scanner calls
2019
2020    Parameters:
2021     - tableName: name of table
2022     - startAndPrefix: the prefix (and thus start row) of the keys you want
2023     - columns: the columns you want returned
2024     - attributes: Scan attributes
2025    """
2026    self.send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
2027    return self.recv_scannerOpenWithPrefix()
2028
2029  def send_scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes):
2030    self._oprot.writeMessageBegin('scannerOpenWithPrefix', TMessageType.CALL, self._seqid)
2031    args = scannerOpenWithPrefix_args()
2032    args.tableName = tableName
2033    args.startAndPrefix = startAndPrefix
2034    args.columns = columns
2035    args.attributes = attributes
2036    args.write(self._oprot)
2037    self._oprot.writeMessageEnd()
2038    self._oprot.trans.flush()
2039
2040  def recv_scannerOpenWithPrefix(self, ):
2041    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2042    if mtype == TMessageType.EXCEPTION:
2043      x = TApplicationException()
2044      x.read(self._iprot)
2045      self._iprot.readMessageEnd()
2046      raise x
2047    result = scannerOpenWithPrefix_result()
2048    result.read(self._iprot)
2049    self._iprot.readMessageEnd()
2050    if result.success is not None:
2051      return result.success
2052    if result.io is not None:
2053      raise result.io
2054    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result");
2055
2056  def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
2057    """
2058    Get a scanner on the current table starting at the specified row and
2059    ending at the last row in the table.  Return the specified columns.
2060    Only values with the specified timestamp are returned.
2061
2062    @return scanner id to be used with other scanner procedures
2063
2064    Parameters:
2065     - tableName: name of table
2066     - startRow: Starting row in table to scan.
2067    Send "" (empty string) to start at the first row.
2068     - columns: columns to scan. If column name is a column family, all
2069    columns of the specified column family are returned. It's also possible
2070    to pass a regex in the column qualifier.
2071     - timestamp: timestamp
2072     - attributes: Scan attributes
2073    """
2074    self.send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
2075    return self.recv_scannerOpenTs()
2076
2077  def send_scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes):
2078    self._oprot.writeMessageBegin('scannerOpenTs', TMessageType.CALL, self._seqid)
2079    args = scannerOpenTs_args()
2080    args.tableName = tableName
2081    args.startRow = startRow
2082    args.columns = columns
2083    args.timestamp = timestamp
2084    args.attributes = attributes
2085    args.write(self._oprot)
2086    self._oprot.writeMessageEnd()
2087    self._oprot.trans.flush()
2088
2089  def recv_scannerOpenTs(self, ):
2090    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2091    if mtype == TMessageType.EXCEPTION:
2092      x = TApplicationException()
2093      x.read(self._iprot)
2094      self._iprot.readMessageEnd()
2095      raise x
2096    result = scannerOpenTs_result()
2097    result.read(self._iprot)
2098    self._iprot.readMessageEnd()
2099    if result.success is not None:
2100      return result.success
2101    if result.io is not None:
2102      raise result.io
2103    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result");
2104
2105  def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
2106    """
2107    Get a scanner on the current table starting and stopping at the
2108    specified rows.  ending at the last row in the table.  Return the
2109    specified columns.  Only values with the specified timestamp are
2110    returned.
2111
2112    @return scanner id to be used with other scanner procedures
2113
2114    Parameters:
2115     - tableName: name of table
2116     - startRow: Starting row in table to scan.
2117    Send "" (empty string) to start at the first row.
2118     - stopRow: row to stop scanning on. This row is *not* included in the
2119    scanner's results
2120     - columns: columns to scan. If column name is a column family, all
2121    columns of the specified column family are returned. It's also possible
2122    to pass a regex in the column qualifier.
2123     - timestamp: timestamp
2124     - attributes: Scan attributes
2125    """
2126    self.send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
2127    return self.recv_scannerOpenWithStopTs()
2128
2129  def send_scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes):
2130    self._oprot.writeMessageBegin('scannerOpenWithStopTs', TMessageType.CALL, self._seqid)
2131    args = scannerOpenWithStopTs_args()
2132    args.tableName = tableName
2133    args.startRow = startRow
2134    args.stopRow = stopRow
2135    args.columns = columns
2136    args.timestamp = timestamp
2137    args.attributes = attributes
2138    args.write(self._oprot)
2139    self._oprot.writeMessageEnd()
2140    self._oprot.trans.flush()
2141
2142  def recv_scannerOpenWithStopTs(self, ):
2143    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144    if mtype == TMessageType.EXCEPTION:
2145      x = TApplicationException()
2146      x.read(self._iprot)
2147      self._iprot.readMessageEnd()
2148      raise x
2149    result = scannerOpenWithStopTs_result()
2150    result.read(self._iprot)
2151    self._iprot.readMessageEnd()
2152    if result.success is not None:
2153      return result.success
2154    if result.io is not None:
2155      raise result.io
2156    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result");
2157
2158  def scannerGet(self, id):
2159    """
2160    Returns the scanner's current row value and advances to the next
2161    row in the table.  When there are no more rows in the table, or a key
2162    greater-than-or-equal-to the scanner's specified stopRow is reached,
2163    an empty list is returned.
2164
2165    @return a TRowResult containing the current row and a map of the columns to TCells.
2166
2167    @throws IllegalArgument if ScannerID is invalid
2168
2169    @throws NotFound when the scanner reaches the end
2170
2171    Parameters:
2172     - id: id of a scanner returned by scannerOpen
2173    """
2174    self.send_scannerGet(id)
2175    return self.recv_scannerGet()
2176
2177  def send_scannerGet(self, id):
2178    self._oprot.writeMessageBegin('scannerGet', TMessageType.CALL, self._seqid)
2179    args = scannerGet_args()
2180    args.id = id
2181    args.write(self._oprot)
2182    self._oprot.writeMessageEnd()
2183    self._oprot.trans.flush()
2184
2185  def recv_scannerGet(self, ):
2186    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2187    if mtype == TMessageType.EXCEPTION:
2188      x = TApplicationException()
2189      x.read(self._iprot)
2190      self._iprot.readMessageEnd()
2191      raise x
2192    result = scannerGet_result()
2193    result.read(self._iprot)
2194    self._iprot.readMessageEnd()
2195    if result.success is not None:
2196      return result.success
2197    if result.io is not None:
2198      raise result.io
2199    if result.ia is not None:
2200      raise result.ia
2201    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result");
2202
2203  def scannerGetList(self, id, nbRows):
2204    """
2205    Returns, starting at the scanner's current row value nbRows worth of
2206    rows and advances to the next row in the table.  When there are no more
2207    rows in the table, or a key greater-than-or-equal-to the scanner's
2208    specified stopRow is reached,  an empty list is returned.
2209
2210    @return a TRowResult containing the current row and a map of the columns to TCells.
2211
2212    @throws IllegalArgument if ScannerID is invalid
2213
2214    @throws NotFound when the scanner reaches the end
2215
2216    Parameters:
2217     - id: id of a scanner returned by scannerOpen
2218     - nbRows: number of results to return
2219    """
2220    self.send_scannerGetList(id, nbRows)
2221    return self.recv_scannerGetList()
2222
2223  def send_scannerGetList(self, id, nbRows):
2224    self._oprot.writeMessageBegin('scannerGetList', TMessageType.CALL, self._seqid)
2225    args = scannerGetList_args()
2226    args.id = id
2227    args.nbRows = nbRows
2228    args.write(self._oprot)
2229    self._oprot.writeMessageEnd()
2230    self._oprot.trans.flush()
2231
2232  def recv_scannerGetList(self, ):
2233    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2234    if mtype == TMessageType.EXCEPTION:
2235      x = TApplicationException()
2236      x.read(self._iprot)
2237      self._iprot.readMessageEnd()
2238      raise x
2239    result = scannerGetList_result()
2240    result.read(self._iprot)
2241    self._iprot.readMessageEnd()
2242    if result.success is not None:
2243      return result.success
2244    if result.io is not None:
2245      raise result.io
2246    if result.ia is not None:
2247      raise result.ia
2248    raise TApplicationException(TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result");
2249
2250  def scannerClose(self, id):
2251    """
2252    Closes the server-state associated with an open scanner.
2253
2254    @throws IllegalArgument if ScannerID is invalid
2255
2256    Parameters:
2257     - id: id of a scanner returned by scannerOpen
2258    """
2259    self.send_scannerClose(id)
2260    self.recv_scannerClose()
2261
2262  def send_scannerClose(self, id):
2263    self._oprot.writeMessageBegin('scannerClose', TMessageType.CALL, self._seqid)
2264    args = scannerClose_args()
2265    args.id = id
2266    args.write(self._oprot)
2267    self._oprot.writeMessageEnd()
2268    self._oprot.trans.flush()
2269
2270  def recv_scannerClose(self, ):
2271    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2272    if mtype == TMessageType.EXCEPTION:
2273      x = TApplicationException()
2274      x.read(self._iprot)
2275      self._iprot.readMessageEnd()
2276      raise x
2277    result = scannerClose_result()
2278    result.read(self._iprot)
2279    self._iprot.readMessageEnd()
2280    if result.io is not None:
2281      raise result.io
2282    if result.ia is not None:
2283      raise result.ia
2284    return
2285
2286  def getRowOrBefore(self, tableName, row, family):
2287    """
2288    Get the row just before the specified one.
2289
2290    @return value for specified row/column
2291
2292    Parameters:
2293     - tableName: name of table
2294     - row: row key
2295     - family: column name
2296    """
2297    self.send_getRowOrBefore(tableName, row, family)
2298    return self.recv_getRowOrBefore()
2299
2300  def send_getRowOrBefore(self, tableName, row, family):
2301    self._oprot.writeMessageBegin('getRowOrBefore', TMessageType.CALL, self._seqid)
2302    args = getRowOrBefore_args()
2303    args.tableName = tableName
2304    args.row = row
2305    args.family = family
2306    args.write(self._oprot)
2307    self._oprot.writeMessageEnd()
2308    self._oprot.trans.flush()
2309
2310  def recv_getRowOrBefore(self, ):
2311    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2312    if mtype == TMessageType.EXCEPTION:
2313      x = TApplicationException()
2314      x.read(self._iprot)
2315      self._iprot.readMessageEnd()
2316      raise x
2317    result = getRowOrBefore_result()
2318    result.read(self._iprot)
2319    self._iprot.readMessageEnd()
2320    if result.success is not None:
2321      return result.success
2322    if result.io is not None:
2323      raise result.io
2324    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result");
2325
2326  def getRegionInfo(self, row):
2327    """
2328    Get the regininfo for the specified row. It scans
2329    the metatable to find region's start and end keys.
2330
2331    @return value for specified row/column
2332
2333    Parameters:
2334     - row: row key
2335    """
2336    self.send_getRegionInfo(row)
2337    return self.recv_getRegionInfo()
2338
2339  def send_getRegionInfo(self, row):
2340    self._oprot.writeMessageBegin('getRegionInfo', TMessageType.CALL, self._seqid)
2341    args = getRegionInfo_args()
2342    args.row = row
2343    args.write(self._oprot)
2344    self._oprot.writeMessageEnd()
2345    self._oprot.trans.flush()
2346
2347  def recv_getRegionInfo(self, ):
2348    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2349    if mtype == TMessageType.EXCEPTION:
2350      x = TApplicationException()
2351      x.read(self._iprot)
2352      self._iprot.readMessageEnd()
2353      raise x
2354    result = getRegionInfo_result()
2355    result.read(self._iprot)
2356    self._iprot.readMessageEnd()
2357    if result.success is not None:
2358      return result.success
2359    if result.io is not None:
2360      raise result.io
2361    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result");
2362
2363
2364class Processor(Iface, TProcessor):
2365  def __init__(self, handler):
2366    self._handler = handler
2367    self._processMap = {}
2368    self._processMap["enableTable"] = Processor.process_enableTable
2369    self._processMap["disableTable"] = Processor.process_disableTable
2370    self._processMap["isTableEnabled"] = Processor.process_isTableEnabled
2371    self._processMap["compact"] = Processor.process_compact
2372    self._processMap["majorCompact"] = Processor.process_majorCompact
2373    self._processMap["getTableNames"] = Processor.process_getTableNames
2374    self._processMap["getColumnDescriptors"] = Processor.process_getColumnDescriptors
2375    self._processMap["getTableRegions"] = Processor.process_getTableRegions
2376    self._processMap["createTable"] = Processor.process_createTable
2377    self._processMap["deleteTable"] = Processor.process_deleteTable
2378    self._processMap["get"] = Processor.process_get
2379    self._processMap["getVer"] = Processor.process_getVer
2380    self._processMap["getVerTs"] = Processor.process_getVerTs
2381    self._processMap["getRow"] = Processor.process_getRow
2382    self._processMap["getRowWithColumns"] = Processor.process_getRowWithColumns
2383    self._processMap["getRowTs"] = Processor.process_getRowTs
2384    self._processMap["getRowWithColumnsTs"] = Processor.process_getRowWithColumnsTs
2385    self._processMap["getRows"] = Processor.process_getRows
2386    self._processMap["getRowsWithColumns"] = Processor.process_getRowsWithColumns
2387    self._processMap["getRowsTs"] = Processor.process_getRowsTs
2388    self._processMap["getRowsWithColumnsTs"] = Processor.process_getRowsWithColumnsTs
2389    self._processMap["mutateRow"] = Processor.process_mutateRow
2390    self._processMap["mutateRowTs"] = Processor.process_mutateRowTs
2391    self._processMap["mutateRows"] = Processor.process_mutateRows
2392    self._processMap["mutateRowsTs"] = Processor.process_mutateRowsTs
2393    self._processMap["atomicIncrement"] = Processor.process_atomicIncrement
2394    self._processMap["deleteAll"] = Processor.process_deleteAll
2395    self._processMap["deleteAllTs"] = Processor.process_deleteAllTs
2396    self._processMap["deleteAllRow"] = Processor.process_deleteAllRow
2397    self._processMap["increment"] = Processor.process_increment
2398    self._processMap["incrementRows"] = Processor.process_incrementRows
2399    self._processMap["deleteAllRowTs"] = Processor.process_deleteAllRowTs
2400    self._processMap["scannerOpenWithScan"] = Processor.process_scannerOpenWithScan
2401    self._processMap["scannerOpen"] = Processor.process_scannerOpen
2402    self._processMap["scannerOpenWithStop"] = Processor.process_scannerOpenWithStop
2403    self._processMap["scannerOpenWithPrefix"] = Processor.process_scannerOpenWithPrefix
2404    self._processMap["scannerOpenTs"] = Processor.process_scannerOpenTs
2405    self._processMap["scannerOpenWithStopTs"] = Processor.process_scannerOpenWithStopTs
2406    self._processMap["scannerGet"] = Processor.process_scannerGet
2407    self._processMap["scannerGetList"] = Processor.process_scannerGetList
2408    self._processMap["scannerClose"] = Processor.process_scannerClose
2409    self._processMap["getRowOrBefore"] = Processor.process_getRowOrBefore
2410    self._processMap["getRegionInfo"] = Processor.process_getRegionInfo
2411
2412  def process(self, iprot, oprot):
2413    (name, type, seqid) = iprot.readMessageBegin()
2414    if name not in self._processMap:
2415      iprot.skip(TType.STRUCT)
2416      iprot.readMessageEnd()
2417      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2418      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2419      x.write(oprot)
2420      oprot.writeMessageEnd()
2421      oprot.trans.flush()
2422      return
2423    else:
2424      self._processMap[name](self, seqid, iprot, oprot)
2425    return True
2426
2427  def process_enableTable(self, seqid, iprot, oprot):
2428    args = enableTable_args()
2429    args.read(iprot)
2430    iprot.readMessageEnd()
2431    result = enableTable_result()
2432    try:
2433      self._handler.enableTable(args.tableName)
2434    except IOError as io:
2435      result.io = io
2436    oprot.writeMessageBegin("enableTable", TMessageType.REPLY, seqid)
2437    result.write(oprot)
2438    oprot.writeMessageEnd()
2439    oprot.trans.flush()
2440
2441  def process_disableTable(self, seqid, iprot, oprot):
2442    args = disableTable_args()
2443    args.read(iprot)
2444    iprot.readMessageEnd()
2445    result = disableTable_result()
2446    try:
2447      self._handler.disableTable(args.tableName)
2448    except IOError as io:
2449      result.io = io
2450    oprot.writeMessageBegin("disableTable", TMessageType.REPLY, seqid)
2451    result.write(oprot)
2452    oprot.writeMessageEnd()
2453    oprot.trans.flush()
2454
2455  def process_isTableEnabled(self, seqid, iprot, oprot):
2456    args = isTableEnabled_args()
2457    args.read(iprot)
2458    iprot.readMessageEnd()
2459    result = isTableEnabled_result()
2460    try:
2461      result.success = self._handler.isTableEnabled(args.tableName)
2462    except IOError as io:
2463      result.io = io
2464    oprot.writeMessageBegin("isTableEnabled", TMessageType.REPLY, seqid)
2465    result.write(oprot)
2466    oprot.writeMessageEnd()
2467    oprot.trans.flush()
2468
2469  def process_compact(self, seqid, iprot, oprot):
2470    args = compact_args()
2471    args.read(iprot)
2472    iprot.readMessageEnd()
2473    result = compact_result()
2474    try:
2475      self._handler.compact(args.tableNameOrRegionName)
2476    except IOError as io:
2477      result.io = io
2478    oprot.writeMessageBegin("compact", TMessageType.REPLY, seqid)
2479    result.write(oprot)
2480    oprot.writeMessageEnd()
2481    oprot.trans.flush()
2482
2483  def process_majorCompact(self, seqid, iprot, oprot):
2484    args = majorCompact_args()
2485    args.read(iprot)
2486    iprot.readMessageEnd()
2487    result = majorCompact_result()
2488    try:
2489      self._handler.majorCompact(args.tableNameOrRegionName)
2490    except IOError as io:
2491      result.io = io
2492    oprot.writeMessageBegin("majorCompact", TMessageType.REPLY, seqid)
2493    result.write(oprot)
2494    oprot.writeMessageEnd()
2495    oprot.trans.flush()
2496
2497  def process_getTableNames(self, seqid, iprot, oprot):
2498    args = getTableNames_args()
2499    args.read(iprot)
2500    iprot.readMessageEnd()
2501    result = getTableNames_result()
2502    try:
2503      result.success = self._handler.getTableNames()
2504    except IOError as io:
2505      result.io = io
2506    oprot.writeMessageBegin("getTableNames", TMessageType.REPLY, seqid)
2507    result.write(oprot)
2508    oprot.writeMessageEnd()
2509    oprot.trans.flush()
2510
2511  def process_getColumnDescriptors(self, seqid, iprot, oprot):
2512    args = getColumnDescriptors_args()
2513    args.read(iprot)
2514    iprot.readMessageEnd()
2515    result = getColumnDescriptors_result()
2516    try:
2517      result.success = self._handler.getColumnDescriptors(args.tableName)
2518    except IOError as io:
2519      result.io = io
2520    oprot.writeMessageBegin("getColumnDescriptors", TMessageType.REPLY, seqid)
2521    result.write(oprot)
2522    oprot.writeMessageEnd()
2523    oprot.trans.flush()
2524
2525  def process_getTableRegions(self, seqid, iprot, oprot):
2526    args = getTableRegions_args()
2527    args.read(iprot)
2528    iprot.readMessageEnd()
2529    result = getTableRegions_result()
2530    try:
2531      result.success = self._handler.getTableRegions(args.tableName)
2532    except IOError as io:
2533      result.io = io
2534    oprot.writeMessageBegin("getTableRegions", TMessageType.REPLY, seqid)
2535    result.write(oprot)
2536    oprot.writeMessageEnd()
2537    oprot.trans.flush()
2538
2539  def process_createTable(self, seqid, iprot, oprot):
2540    args = createTable_args()
2541    args.read(iprot)
2542    iprot.readMessageEnd()
2543    result = createTable_result()
2544    try:
2545      self._handler.createTable(args.tableName, args.columnFamilies)
2546    except IOError as io:
2547      result.io = io
2548    except IllegalArgument as ia:
2549      result.ia = ia
2550    except AlreadyExists as exist:
2551      result.exist = exist
2552    oprot.writeMessageBegin("createTable", TMessageType.REPLY, seqid)
2553    result.write(oprot)
2554    oprot.writeMessageEnd()
2555    oprot.trans.flush()
2556
2557  def process_deleteTable(self, seqid, iprot, oprot):
2558    args = deleteTable_args()
2559    args.read(iprot)
2560    iprot.readMessageEnd()
2561    result = deleteTable_result()
2562    try:
2563      self._handler.deleteTable(args.tableName)
2564    except IOError as io:
2565      result.io = io
2566    oprot.writeMessageBegin("deleteTable", TMessageType.REPLY, seqid)
2567    result.write(oprot)
2568    oprot.writeMessageEnd()
2569    oprot.trans.flush()
2570
2571  def process_get(self, seqid, iprot, oprot):
2572    args = get_args()
2573    args.read(iprot)
2574    iprot.readMessageEnd()
2575    result = get_result()
2576    try:
2577      result.success = self._handler.get(args.tableName, args.row, args.column, args.attributes)
2578    except IOError as io:
2579      result.io = io
2580    oprot.writeMessageBegin("get", TMessageType.REPLY, seqid)
2581    result.write(oprot)
2582    oprot.writeMessageEnd()
2583    oprot.trans.flush()
2584
2585  def process_getVer(self, seqid, iprot, oprot):
2586    args = getVer_args()
2587    args.read(iprot)
2588    iprot.readMessageEnd()
2589    result = getVer_result()
2590    try:
2591      result.success = self._handler.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes)
2592    except IOError as io:
2593      result.io = io
2594    oprot.writeMessageBegin("getVer", TMessageType.REPLY, seqid)
2595    result.write(oprot)
2596    oprot.writeMessageEnd()
2597    oprot.trans.flush()
2598
2599  def process_getVerTs(self, seqid, iprot, oprot):
2600    args = getVerTs_args()
2601    args.read(iprot)
2602    iprot.readMessageEnd()
2603    result = getVerTs_result()
2604    try:
2605      result.success = self._handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes)
2606    except IOError as io:
2607      result.io = io
2608    oprot.writeMessageBegin("getVerTs", TMessageType.REPLY, seqid)
2609    result.write(oprot)
2610    oprot.writeMessageEnd()
2611    oprot.trans.flush()
2612
2613  def process_getRow(self, seqid, iprot, oprot):
2614    args = getRow_args()
2615    args.read(iprot)
2616    iprot.readMessageEnd()
2617    result = getRow_result()
2618    try:
2619      result.success = self._handler.getRow(args.tableName, args.row, args.attributes)
2620    except IOError as io:
2621      result.io = io
2622    oprot.writeMessageBegin("getRow", TMessageType.REPLY, seqid)
2623    result.write(oprot)
2624    oprot.writeMessageEnd()
2625    oprot.trans.flush()
2626
2627  def process_getRowWithColumns(self, seqid, iprot, oprot):
2628    args = getRowWithColumns_args()
2629    args.read(iprot)
2630    iprot.readMessageEnd()
2631    result = getRowWithColumns_result()
2632    try:
2633      result.success = self._handler.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes)
2634    except IOError as io:
2635      result.io = io
2636    oprot.writeMessageBegin("getRowWithColumns", TMessageType.REPLY, seqid)
2637    result.write(oprot)
2638    oprot.writeMessageEnd()
2639    oprot.trans.flush()
2640
2641  def process_getRowTs(self, seqid, iprot, oprot):
2642    args = getRowTs_args()
2643    args.read(iprot)
2644    iprot.readMessageEnd()
2645    result = getRowTs_result()
2646    try:
2647      result.success = self._handler.getRowTs(args.tableName, args.row, args.timestamp, args.attributes)
2648    except IOError as io:
2649      result.io = io
2650    oprot.writeMessageBegin("getRowTs", TMessageType.REPLY, seqid)
2651    result.write(oprot)
2652    oprot.writeMessageEnd()
2653    oprot.trans.flush()
2654
2655  def process_getRowWithColumnsTs(self, seqid, iprot, oprot):
2656    args = getRowWithColumnsTs_args()
2657    args.read(iprot)
2658    iprot.readMessageEnd()
2659    result = getRowWithColumnsTs_result()
2660    try:
2661      result.success = self._handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes)
2662    except IOError as io:
2663      result.io = io
2664    oprot.writeMessageBegin("getRowWithColumnsTs", TMessageType.REPLY, seqid)
2665    result.write(oprot)
2666    oprot.writeMessageEnd()
2667    oprot.trans.flush()
2668
2669  def process_getRows(self, seqid, iprot, oprot):
2670    args = getRows_args()
2671    args.read(iprot)
2672    iprot.readMessageEnd()
2673    result = getRows_result()
2674    try:
2675      result.success = self._handler.getRows(args.tableName, args.rows, args.attributes)
2676    except IOError as io:
2677      result.io = io
2678    oprot.writeMessageBegin("getRows", TMessageType.REPLY, seqid)
2679    result.write(oprot)
2680    oprot.writeMessageEnd()
2681    oprot.trans.flush()
2682
2683  def process_getRowsWithColumns(self, seqid, iprot, oprot):
2684    args = getRowsWithColumns_args()
2685    args.read(iprot)
2686    iprot.readMessageEnd()
2687    result = getRowsWithColumns_result()
2688    try:
2689      result.success = self._handler.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes)
2690    except IOError as io:
2691      result.io = io
2692    oprot.writeMessageBegin("getRowsWithColumns", TMessageType.REPLY, seqid)
2693    result.write(oprot)
2694    oprot.writeMessageEnd()
2695    oprot.trans.flush()
2696
2697  def process_getRowsTs(self, seqid, iprot, oprot):
2698    args = getRowsTs_args()
2699    args.read(iprot)
2700    iprot.readMessageEnd()
2701    result = getRowsTs_result()
2702    try:
2703      result.success = self._handler.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes)
2704    except IOError as io:
2705      result.io = io
2706    oprot.writeMessageBegin("getRowsTs", TMessageType.REPLY, seqid)
2707    result.write(oprot)
2708    oprot.writeMessageEnd()
2709    oprot.trans.flush()
2710
2711  def process_getRowsWithColumnsTs(self, seqid, iprot, oprot):
2712    args = getRowsWithColumnsTs_args()
2713    args.read(iprot)
2714    iprot.readMessageEnd()
2715    result = getRowsWithColumnsTs_result()
2716    try:
2717      result.success = self._handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes)
2718    except IOError as io:
2719      result.io = io
2720    oprot.writeMessageBegin("getRowsWithColumnsTs", TMessageType.REPLY, seqid)
2721    result.write(oprot)
2722    oprot.writeMessageEnd()
2723    oprot.trans.flush()
2724
2725  def process_mutateRow(self, seqid, iprot, oprot):
2726    args = mutateRow_args()
2727    args.read(iprot)
2728    iprot.readMessageEnd()
2729    result = mutateRow_result()
2730    try:
2731      self._handler.mutateRow(args.tableName, args.row, args.mutations, args.attributes)
2732    except IOError as io:
2733      result.io = io
2734    except IllegalArgument as ia:
2735      result.ia = ia
2736    oprot.writeMessageBegin("mutateRow", TMessageType.REPLY, seqid)
2737    result.write(oprot)
2738    oprot.writeMessageEnd()
2739    oprot.trans.flush()
2740
2741  def process_mutateRowTs(self, seqid, iprot, oprot):
2742    args = mutateRowTs_args()
2743    args.read(iprot)
2744    iprot.readMessageEnd()
2745    result = mutateRowTs_result()
2746    try:
2747      self._handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes)
2748    except IOError as io:
2749      result.io = io
2750    except IllegalArgument as ia:
2751      result.ia = ia
2752    oprot.writeMessageBegin("mutateRowTs", TMessageType.REPLY, seqid)
2753    result.write(oprot)
2754    oprot.writeMessageEnd()
2755    oprot.trans.flush()
2756
2757  def process_mutateRows(self, seqid, iprot, oprot):
2758    args = mutateRows_args()
2759    args.read(iprot)
2760    iprot.readMessageEnd()
2761    result = mutateRows_result()
2762    try:
2763      self._handler.mutateRows(args.tableName, args.rowBatches, args.attributes)
2764    except IOError as io:
2765      result.io = io
2766    except IllegalArgument as ia:
2767      result.ia = ia
2768    oprot.writeMessageBegin("mutateRows", TMessageType.REPLY, seqid)
2769    result.write(oprot)
2770    oprot.writeMessageEnd()
2771    oprot.trans.flush()
2772
2773  def process_mutateRowsTs(self, seqid, iprot, oprot):
2774    args = mutateRowsTs_args()
2775    args.read(iprot)
2776    iprot.readMessageEnd()
2777    result = mutateRowsTs_result()
2778    try:
2779      self._handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes)
2780    except IOError as io:
2781      result.io = io
2782    except IllegalArgument as ia:
2783      result.ia = ia
2784    oprot.writeMessageBegin("mutateRowsTs", TMessageType.REPLY, seqid)
2785    result.write(oprot)
2786    oprot.writeMessageEnd()
2787    oprot.trans.flush()
2788
2789  def process_atomicIncrement(self, seqid, iprot, oprot):
2790    args = atomicIncrement_args()
2791    args.read(iprot)
2792    iprot.readMessageEnd()
2793    result = atomicIncrement_result()
2794    try:
2795      result.success = self._handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
2796    except IOError as io:
2797      result.io = io
2798    except IllegalArgument as ia:
2799      result.ia = ia
2800    oprot.writeMessageBegin("atomicIncrement", TMessageType.REPLY, seqid)
2801    result.write(oprot)
2802    oprot.writeMessageEnd()
2803    oprot.trans.flush()
2804
2805  def process_deleteAll(self, seqid, iprot, oprot):
2806    args = deleteAll_args()
2807    args.read(iprot)
2808    iprot.readMessageEnd()
2809    result = deleteAll_result()
2810    try:
2811      self._handler.deleteAll(args.tableName, args.row, args.column, args.attributes)
2812    except IOError as io:
2813      result.io = io
2814    oprot.writeMessageBegin("deleteAll", TMessageType.REPLY, seqid)
2815    result.write(oprot)
2816    oprot.writeMessageEnd()
2817    oprot.trans.flush()
2818
2819  def process_deleteAllTs(self, seqid, iprot, oprot):
2820    args = deleteAllTs_args()
2821    args.read(iprot)
2822    iprot.readMessageEnd()
2823    result = deleteAllTs_result()
2824    try:
2825      self._handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes)
2826    except IOError as io:
2827      result.io = io
2828    oprot.writeMessageBegin("deleteAllTs", TMessageType.REPLY, seqid)
2829    result.write(oprot)
2830    oprot.writeMessageEnd()
2831    oprot.trans.flush()
2832
2833  def process_deleteAllRow(self, seqid, iprot, oprot):
2834    args = deleteAllRow_args()
2835    args.read(iprot)
2836    iprot.readMessageEnd()
2837    result = deleteAllRow_result()
2838    try:
2839      self._handler.deleteAllRow(args.tableName, args.row, args.attributes)
2840    except IOError as io:
2841      result.io = io
2842    oprot.writeMessageBegin("deleteAllRow", TMessageType.REPLY, seqid)
2843    result.write(oprot)
2844    oprot.writeMessageEnd()
2845    oprot.trans.flush()
2846
2847  def process_increment(self, seqid, iprot, oprot):
2848    args = increment_args()
2849    args.read(iprot)
2850    iprot.readMessageEnd()
2851    result = increment_result()
2852    try:
2853      self._handler.increment(args.increment)
2854    except IOError as io:
2855      result.io = io
2856    oprot.writeMessageBegin("increment", TMessageType.REPLY, seqid)
2857    result.write(oprot)
2858    oprot.writeMessageEnd()
2859    oprot.trans.flush()
2860
2861  def process_incrementRows(self, seqid, iprot, oprot):
2862    args = incrementRows_args()
2863    args.read(iprot)
2864    iprot.readMessageEnd()
2865    result = incrementRows_result()
2866    try:
2867      self._handler.incrementRows(args.increments)
2868    except IOError as io:
2869      result.io = io
2870    oprot.writeMessageBegin("incrementRows", TMessageType.REPLY, seqid)
2871    result.write(oprot)
2872    oprot.writeMessageEnd()
2873    oprot.trans.flush()
2874
2875  def process_deleteAllRowTs(self, seqid, iprot, oprot):
2876    args = deleteAllRowTs_args()
2877    args.read(iprot)
2878    iprot.readMessageEnd()
2879    result = deleteAllRowTs_result()
2880    try:
2881      self._handler.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes)
2882    except IOError as io:
2883      result.io = io
2884    oprot.writeMessageBegin("deleteAllRowTs", TMessageType.REPLY, seqid)
2885    result.write(oprot)
2886    oprot.writeMessageEnd()
2887    oprot.trans.flush()
2888
2889  def process_scannerOpenWithScan(self, seqid, iprot, oprot):
2890    args = scannerOpenWithScan_args()
2891    args.read(iprot)
2892    iprot.readMessageEnd()
2893    result = scannerOpenWithScan_result()
2894    try:
2895      result.success = self._handler.scannerOpenWithScan(args.tableName, args.scan, args.attributes)
2896    except IOError as io:
2897      result.io = io
2898    oprot.writeMessageBegin("scannerOpenWithScan", TMessageType.REPLY, seqid)
2899    result.write(oprot)
2900    oprot.writeMessageEnd()
2901    oprot.trans.flush()
2902
2903  def process_scannerOpen(self, seqid, iprot, oprot):
2904    args = scannerOpen_args()
2905    args.read(iprot)
2906    iprot.readMessageEnd()
2907    result = scannerOpen_result()
2908    try:
2909      result.success = self._handler.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes)
2910    except IOError as io:
2911      result.io = io
2912    oprot.writeMessageBegin("scannerOpen", TMessageType.REPLY, seqid)
2913    result.write(oprot)
2914    oprot.writeMessageEnd()
2915    oprot.trans.flush()
2916
2917  def process_scannerOpenWithStop(self, seqid, iprot, oprot):
2918    args = scannerOpenWithStop_args()
2919    args.read(iprot)
2920    iprot.readMessageEnd()
2921    result = scannerOpenWithStop_result()
2922    try:
2923      result.success = self._handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes)
2924    except IOError as io:
2925      result.io = io
2926    oprot.writeMessageBegin("scannerOpenWithStop", TMessageType.REPLY, seqid)
2927    result.write(oprot)
2928    oprot.writeMessageEnd()
2929    oprot.trans.flush()
2930
2931  def process_scannerOpenWithPrefix(self, seqid, iprot, oprot):
2932    args = scannerOpenWithPrefix_args()
2933    args.read(iprot)
2934    iprot.readMessageEnd()
2935    result = scannerOpenWithPrefix_result()
2936    try:
2937      result.success = self._handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes)
2938    except IOError as io:
2939      result.io = io
2940    oprot.writeMessageBegin("scannerOpenWithPrefix", TMessageType.REPLY, seqid)
2941    result.write(oprot)
2942    oprot.writeMessageEnd()
2943    oprot.trans.flush()
2944
2945  def process_scannerOpenTs(self, seqid, iprot, oprot):
2946    args = scannerOpenTs_args()
2947    args.read(iprot)
2948    iprot.readMessageEnd()
2949    result = scannerOpenTs_result()
2950    try:
2951      result.success = self._handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes)
2952    except IOError as io:
2953      result.io = io
2954    oprot.writeMessageBegin("scannerOpenTs", TMessageType.REPLY, seqid)
2955    result.write(oprot)
2956    oprot.writeMessageEnd()
2957    oprot.trans.flush()
2958
2959  def process_scannerOpenWithStopTs(self, seqid, iprot, oprot):
2960    args = scannerOpenWithStopTs_args()
2961    args.read(iprot)
2962    iprot.readMessageEnd()
2963    result = scannerOpenWithStopTs_result()
2964    try:
2965      result.success = self._handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes)
2966    except IOError as io:
2967      result.io = io
2968    oprot.writeMessageBegin("scannerOpenWithStopTs", TMessageType.REPLY, seqid)
2969    result.write(oprot)
2970    oprot.writeMessageEnd()
2971    oprot.trans.flush()
2972
2973  def process_scannerGet(self, seqid, iprot, oprot):
2974    args = scannerGet_args()
2975    args.read(iprot)
2976    iprot.readMessageEnd()
2977    result = scannerGet_result()
2978    try:
2979      result.success = self._handler.scannerGet(args.id)
2980    except IOError as io:
2981      result.io = io
2982    except IllegalArgument as ia:
2983      result.ia = ia
2984    oprot.writeMessageBegin("scannerGet", TMessageType.REPLY, seqid)
2985    result.write(oprot)
2986    oprot.writeMessageEnd()
2987    oprot.trans.flush()
2988
2989  def process_scannerGetList(self, seqid, iprot, oprot):
2990    args = scannerGetList_args()
2991    args.read(iprot)
2992    iprot.readMessageEnd()
2993    result = scannerGetList_result()
2994    try:
2995      result.success = self._handler.scannerGetList(args.id, args.nbRows)
2996    except IOError as io:
2997      result.io = io
2998    except IllegalArgument as ia:
2999      result.ia = ia
3000    oprot.writeMessageBegin("scannerGetList", TMessageType.REPLY, seqid)
3001    result.write(oprot)
3002    oprot.writeMessageEnd()
3003    oprot.trans.flush()
3004
3005  def process_scannerClose(self, seqid, iprot, oprot):
3006    args = scannerClose_args()
3007    args.read(iprot)
3008    iprot.readMessageEnd()
3009    result = scannerClose_result()
3010    try:
3011      self._handler.scannerClose(args.id)
3012    except IOError as io:
3013      result.io = io
3014    except IllegalArgument as ia:
3015      result.ia = ia
3016    oprot.writeMessageBegin("scannerClose", TMessageType.REPLY, seqid)
3017    result.write(oprot)
3018    oprot.writeMessageEnd()
3019    oprot.trans.flush()
3020
3021  def process_getRowOrBefore(self, seqid, iprot, oprot):
3022    args = getRowOrBefore_args()
3023    args.read(iprot)
3024    iprot.readMessageEnd()
3025    result = getRowOrBefore_result()
3026    try:
3027      result.success = self._handler.getRowOrBefore(args.tableName, args.row, args.family)
3028    except IOError as io:
3029      result.io = io
3030    oprot.writeMessageBegin("getRowOrBefore", TMessageType.REPLY, seqid)
3031    result.write(oprot)
3032    oprot.writeMessageEnd()
3033    oprot.trans.flush()
3034
3035  def process_getRegionInfo(self, seqid, iprot, oprot):
3036    args = getRegionInfo_args()
3037    args.read(iprot)
3038    iprot.readMessageEnd()
3039    result = getRegionInfo_result()
3040    try:
3041      result.success = self._handler.getRegionInfo(args.row)
3042    except IOError as io:
3043      result.io = io
3044    oprot.writeMessageBegin("getRegionInfo", TMessageType.REPLY, seqid)
3045    result.write(oprot)
3046    oprot.writeMessageEnd()
3047    oprot.trans.flush()
3048
3049
3050# HELPER FUNCTIONS AND STRUCTURES
3051
3052class enableTable_args:
3053  """
3054  Attributes:
3055   - tableName: name of the table
3056  """
3057
3058  thrift_spec = (
3059    None, # 0
3060    (1, TType.STRING, 'tableName', None, None, ), # 1
3061  )
3062
3063  def __init__(self, tableName=None,):
3064    self.tableName = tableName
3065
3066  def read(self, iprot):
3067    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3068      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3069      return
3070    iprot.readStructBegin()
3071    while True:
3072      (fname, ftype, fid) = iprot.readFieldBegin()
3073      if ftype == TType.STOP:
3074        break
3075      if fid == 1:
3076        if ftype == TType.STRING:
3077          self.tableName = iprot.readString();
3078        else:
3079          iprot.skip(ftype)
3080      else:
3081        iprot.skip(ftype)
3082      iprot.readFieldEnd()
3083    iprot.readStructEnd()
3084
3085  def write(self, oprot):
3086    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3087      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3088      return
3089    oprot.writeStructBegin('enableTable_args')
3090    if self.tableName is not None:
3091      oprot.writeFieldBegin('tableName', TType.STRING, 1)
3092      oprot.writeString(self.tableName)
3093      oprot.writeFieldEnd()
3094    oprot.writeFieldStop()
3095    oprot.writeStructEnd()
3096
3097  def validate(self):
3098    return
3099
3100
3101  def __repr__(self):
3102    L = ['%s=%r' % (key, value)
3103      for key, value in self.__dict__.iteritems()]
3104    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3105
3106  def __eq__(self, other):
3107    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3108
3109  def __ne__(self, other):
3110    return not (self == other)
3111
3112class enableTable_result:
3113  """
3114  Attributes:
3115   - io
3116  """
3117
3118  thrift_spec = (
3119    None, # 0
3120    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3121  )
3122
3123  def __init__(self, io=None,):
3124    self.io = io
3125
3126  def read(self, iprot):
3127    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3128      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3129      return
3130    iprot.readStructBegin()
3131    while True:
3132      (fname, ftype, fid) = iprot.readFieldBegin()
3133      if ftype == TType.STOP:
3134        break
3135      if fid == 1:
3136        if ftype == TType.STRUCT:
3137          self.io = IOError()
3138          self.io.read(iprot)
3139        else:
3140          iprot.skip(ftype)
3141      else:
3142        iprot.skip(ftype)
3143      iprot.readFieldEnd()
3144    iprot.readStructEnd()
3145
3146  def write(self, oprot):
3147    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3148      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3149      return
3150    oprot.writeStructBegin('enableTable_result')
3151    if self.io is not None:
3152      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3153      self.io.write(oprot)
3154      oprot.writeFieldEnd()
3155    oprot.writeFieldStop()
3156    oprot.writeStructEnd()
3157
3158  def validate(self):
3159    return
3160
3161
3162  def __repr__(self):
3163    L = ['%s=%r' % (key, value)
3164      for key, value in self.__dict__.iteritems()]
3165    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3166
3167  def __eq__(self, other):
3168    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3169
3170  def __ne__(self, other):
3171    return not (self == other)
3172
3173class disableTable_args:
3174  """
3175  Attributes:
3176   - tableName: name of the table
3177  """
3178
3179  thrift_spec = (
3180    None, # 0
3181    (1, TType.STRING, 'tableName', None, None, ), # 1
3182  )
3183
3184  def __init__(self, tableName=None,):
3185    self.tableName = tableName
3186
3187  def read(self, iprot):
3188    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3189      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3190      return
3191    iprot.readStructBegin()
3192    while True:
3193      (fname, ftype, fid) = iprot.readFieldBegin()
3194      if ftype == TType.STOP:
3195        break
3196      if fid == 1:
3197        if ftype == TType.STRING:
3198          self.tableName = iprot.readString();
3199        else:
3200          iprot.skip(ftype)
3201      else:
3202        iprot.skip(ftype)
3203      iprot.readFieldEnd()
3204    iprot.readStructEnd()
3205
3206  def write(self, oprot):
3207    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3208      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3209      return
3210    oprot.writeStructBegin('disableTable_args')
3211    if self.tableName is not None:
3212      oprot.writeFieldBegin('tableName', TType.STRING, 1)
3213      oprot.writeString(self.tableName)
3214      oprot.writeFieldEnd()
3215    oprot.writeFieldStop()
3216    oprot.writeStructEnd()
3217
3218  def validate(self):
3219    return
3220
3221
3222  def __repr__(self):
3223    L = ['%s=%r' % (key, value)
3224      for key, value in self.__dict__.iteritems()]
3225    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3226
3227  def __eq__(self, other):
3228    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3229
3230  def __ne__(self, other):
3231    return not (self == other)
3232
3233class disableTable_result:
3234  """
3235  Attributes:
3236   - io
3237  """
3238
3239  thrift_spec = (
3240    None, # 0
3241    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3242  )
3243
3244  def __init__(self, io=None,):
3245    self.io = io
3246
3247  def read(self, iprot):
3248    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3249      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3250      return
3251    iprot.readStructBegin()
3252    while True:
3253      (fname, ftype, fid) = iprot.readFieldBegin()
3254      if ftype == TType.STOP:
3255        break
3256      if fid == 1:
3257        if ftype == TType.STRUCT:
3258          self.io = IOError()
3259          self.io.read(iprot)
3260        else:
3261          iprot.skip(ftype)
3262      else:
3263        iprot.skip(ftype)
3264      iprot.readFieldEnd()
3265    iprot.readStructEnd()
3266
3267  def write(self, oprot):
3268    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3269      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3270      return
3271    oprot.writeStructBegin('disableTable_result')
3272    if self.io is not None:
3273      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3274      self.io.write(oprot)
3275      oprot.writeFieldEnd()
3276    oprot.writeFieldStop()
3277    oprot.writeStructEnd()
3278
3279  def validate(self):
3280    return
3281
3282
3283  def __repr__(self):
3284    L = ['%s=%r' % (key, value)
3285      for key, value in self.__dict__.iteritems()]
3286    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3287
3288  def __eq__(self, other):
3289    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3290
3291  def __ne__(self, other):
3292    return not (self == other)
3293
3294class isTableEnabled_args:
3295  """
3296  Attributes:
3297   - tableName: name of the table to check
3298  """
3299
3300  thrift_spec = (
3301    None, # 0
3302    (1, TType.STRING, 'tableName', None, None, ), # 1
3303  )
3304
3305  def __init__(self, tableName=None,):
3306    self.tableName = tableName
3307
3308  def read(self, iprot):
3309    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3310      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3311      return
3312    iprot.readStructBegin()
3313    while True:
3314      (fname, ftype, fid) = iprot.readFieldBegin()
3315      if ftype == TType.STOP:
3316        break
3317      if fid == 1:
3318        if ftype == TType.STRING:
3319          self.tableName = iprot.readString();
3320        else:
3321          iprot.skip(ftype)
3322      else:
3323        iprot.skip(ftype)
3324      iprot.readFieldEnd()
3325    iprot.readStructEnd()
3326
3327  def write(self, oprot):
3328    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3329      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3330      return
3331    oprot.writeStructBegin('isTableEnabled_args')
3332    if self.tableName is not None:
3333      oprot.writeFieldBegin('tableName', TType.STRING, 1)
3334      oprot.writeString(self.tableName)
3335      oprot.writeFieldEnd()
3336    oprot.writeFieldStop()
3337    oprot.writeStructEnd()
3338
3339  def validate(self):
3340    return
3341
3342
3343  def __repr__(self):
3344    L = ['%s=%r' % (key, value)
3345      for key, value in self.__dict__.iteritems()]
3346    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3347
3348  def __eq__(self, other):
3349    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3350
3351  def __ne__(self, other):
3352    return not (self == other)
3353
3354class isTableEnabled_result:
3355  """
3356  Attributes:
3357   - success
3358   - io
3359  """
3360
3361  thrift_spec = (
3362    (0, TType.BOOL, 'success', None, None, ), # 0
3363    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3364  )
3365
3366  def __init__(self, success=None, io=None,):
3367    self.success = success
3368    self.io = io
3369
3370  def read(self, iprot):
3371    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3372      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3373      return
3374    iprot.readStructBegin()
3375    while True:
3376      (fname, ftype, fid) = iprot.readFieldBegin()
3377      if ftype == TType.STOP:
3378        break
3379      if fid == 0:
3380        if ftype == TType.BOOL:
3381          self.success = iprot.readBool();
3382        else:
3383          iprot.skip(ftype)
3384      elif fid == 1:
3385        if ftype == TType.STRUCT:
3386          self.io = IOError()
3387          self.io.read(iprot)
3388        else:
3389          iprot.skip(ftype)
3390      else:
3391        iprot.skip(ftype)
3392      iprot.readFieldEnd()
3393    iprot.readStructEnd()
3394
3395  def write(self, oprot):
3396    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3397      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3398      return
3399    oprot.writeStructBegin('isTableEnabled_result')
3400    if self.success is not None:
3401      oprot.writeFieldBegin('success', TType.BOOL, 0)
3402      oprot.writeBool(self.success)
3403      oprot.writeFieldEnd()
3404    if self.io is not None:
3405      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3406      self.io.write(oprot)
3407      oprot.writeFieldEnd()
3408    oprot.writeFieldStop()
3409    oprot.writeStructEnd()
3410
3411  def validate(self):
3412    return
3413
3414
3415  def __repr__(self):
3416    L = ['%s=%r' % (key, value)
3417      for key, value in self.__dict__.iteritems()]
3418    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3419
3420  def __eq__(self, other):
3421    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3422
3423  def __ne__(self, other):
3424    return not (self == other)
3425
3426class compact_args:
3427  """
3428  Attributes:
3429   - tableNameOrRegionName
3430  """
3431
3432  thrift_spec = (
3433    None, # 0
3434    (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
3435  )
3436
3437  def __init__(self, tableNameOrRegionName=None,):
3438    self.tableNameOrRegionName = tableNameOrRegionName
3439
3440  def read(self, iprot):
3441    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3442      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3443      return
3444    iprot.readStructBegin()
3445    while True:
3446      (fname, ftype, fid) = iprot.readFieldBegin()
3447      if ftype == TType.STOP:
3448        break
3449      if fid == 1:
3450        if ftype == TType.STRING:
3451          self.tableNameOrRegionName = iprot.readString();
3452        else:
3453          iprot.skip(ftype)
3454      else:
3455        iprot.skip(ftype)
3456      iprot.readFieldEnd()
3457    iprot.readStructEnd()
3458
3459  def write(self, oprot):
3460    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3461      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3462      return
3463    oprot.writeStructBegin('compact_args')
3464    if self.tableNameOrRegionName is not None:
3465      oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
3466      oprot.writeString(self.tableNameOrRegionName)
3467      oprot.writeFieldEnd()
3468    oprot.writeFieldStop()
3469    oprot.writeStructEnd()
3470
3471  def validate(self):
3472    return
3473
3474
3475  def __repr__(self):
3476    L = ['%s=%r' % (key, value)
3477      for key, value in self.__dict__.iteritems()]
3478    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3479
3480  def __eq__(self, other):
3481    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3482
3483  def __ne__(self, other):
3484    return not (self == other)
3485
3486class compact_result:
3487  """
3488  Attributes:
3489   - io
3490  """
3491
3492  thrift_spec = (
3493    None, # 0
3494    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3495  )
3496
3497  def __init__(self, io=None,):
3498    self.io = io
3499
3500  def read(self, iprot):
3501    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3502      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3503      return
3504    iprot.readStructBegin()
3505    while True:
3506      (fname, ftype, fid) = iprot.readFieldBegin()
3507      if ftype == TType.STOP:
3508        break
3509      if fid == 1:
3510        if ftype == TType.STRUCT:
3511          self.io = IOError()
3512          self.io.read(iprot)
3513        else:
3514          iprot.skip(ftype)
3515      else:
3516        iprot.skip(ftype)
3517      iprot.readFieldEnd()
3518    iprot.readStructEnd()
3519
3520  def write(self, oprot):
3521    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3522      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3523      return
3524    oprot.writeStructBegin('compact_result')
3525    if self.io is not None:
3526      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3527      self.io.write(oprot)
3528      oprot.writeFieldEnd()
3529    oprot.writeFieldStop()
3530    oprot.writeStructEnd()
3531
3532  def validate(self):
3533    return
3534
3535
3536  def __repr__(self):
3537    L = ['%s=%r' % (key, value)
3538      for key, value in self.__dict__.iteritems()]
3539    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3540
3541  def __eq__(self, other):
3542    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3543
3544  def __ne__(self, other):
3545    return not (self == other)
3546
3547class majorCompact_args:
3548  """
3549  Attributes:
3550   - tableNameOrRegionName
3551  """
3552
3553  thrift_spec = (
3554    None, # 0
3555    (1, TType.STRING, 'tableNameOrRegionName', None, None, ), # 1
3556  )
3557
3558  def __init__(self, tableNameOrRegionName=None,):
3559    self.tableNameOrRegionName = tableNameOrRegionName
3560
3561  def read(self, iprot):
3562    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3563      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3564      return
3565    iprot.readStructBegin()
3566    while True:
3567      (fname, ftype, fid) = iprot.readFieldBegin()
3568      if ftype == TType.STOP:
3569        break
3570      if fid == 1:
3571        if ftype == TType.STRING:
3572          self.tableNameOrRegionName = iprot.readString();
3573        else:
3574          iprot.skip(ftype)
3575      else:
3576        iprot.skip(ftype)
3577      iprot.readFieldEnd()
3578    iprot.readStructEnd()
3579
3580  def write(self, oprot):
3581    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3582      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3583      return
3584    oprot.writeStructBegin('majorCompact_args')
3585    if self.tableNameOrRegionName is not None:
3586      oprot.writeFieldBegin('tableNameOrRegionName', TType.STRING, 1)
3587      oprot.writeString(self.tableNameOrRegionName)
3588      oprot.writeFieldEnd()
3589    oprot.writeFieldStop()
3590    oprot.writeStructEnd()
3591
3592  def validate(self):
3593    return
3594
3595
3596  def __repr__(self):
3597    L = ['%s=%r' % (key, value)
3598      for key, value in self.__dict__.iteritems()]
3599    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3600
3601  def __eq__(self, other):
3602    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3603
3604  def __ne__(self, other):
3605    return not (self == other)
3606
3607class majorCompact_result:
3608  """
3609  Attributes:
3610   - io
3611  """
3612
3613  thrift_spec = (
3614    None, # 0
3615    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3616  )
3617
3618  def __init__(self, io=None,):
3619    self.io = io
3620
3621  def read(self, iprot):
3622    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3623      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3624      return
3625    iprot.readStructBegin()
3626    while True:
3627      (fname, ftype, fid) = iprot.readFieldBegin()
3628      if ftype == TType.STOP:
3629        break
3630      if fid == 1:
3631        if ftype == TType.STRUCT:
3632          self.io = IOError()
3633          self.io.read(iprot)
3634        else:
3635          iprot.skip(ftype)
3636      else:
3637        iprot.skip(ftype)
3638      iprot.readFieldEnd()
3639    iprot.readStructEnd()
3640
3641  def write(self, oprot):
3642    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3643      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3644      return
3645    oprot.writeStructBegin('majorCompact_result')
3646    if self.io is not None:
3647      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3648      self.io.write(oprot)
3649      oprot.writeFieldEnd()
3650    oprot.writeFieldStop()
3651    oprot.writeStructEnd()
3652
3653  def validate(self):
3654    return
3655
3656
3657  def __repr__(self):
3658    L = ['%s=%r' % (key, value)
3659      for key, value in self.__dict__.iteritems()]
3660    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3661
3662  def __eq__(self, other):
3663    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3664
3665  def __ne__(self, other):
3666    return not (self == other)
3667
3668class getTableNames_args:
3669
3670  thrift_spec = (
3671  )
3672
3673  def read(self, iprot):
3674    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3675      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3676      return
3677    iprot.readStructBegin()
3678    while True:
3679      (fname, ftype, fid) = iprot.readFieldBegin()
3680      if ftype == TType.STOP:
3681        break
3682      else:
3683        iprot.skip(ftype)
3684      iprot.readFieldEnd()
3685    iprot.readStructEnd()
3686
3687  def write(self, oprot):
3688    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3689      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3690      return
3691    oprot.writeStructBegin('getTableNames_args')
3692    oprot.writeFieldStop()
3693    oprot.writeStructEnd()
3694
3695  def validate(self):
3696    return
3697
3698
3699  def __repr__(self):
3700    L = ['%s=%r' % (key, value)
3701      for key, value in self.__dict__.iteritems()]
3702    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3703
3704  def __eq__(self, other):
3705    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3706
3707  def __ne__(self, other):
3708    return not (self == other)
3709
3710class getTableNames_result:
3711  """
3712  Attributes:
3713   - success
3714   - io
3715  """
3716
3717  thrift_spec = (
3718    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
3719    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3720  )
3721
3722  def __init__(self, success=None, io=None,):
3723    self.success = success
3724    self.io = io
3725
3726  def read(self, iprot):
3727    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3728      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3729      return
3730    iprot.readStructBegin()
3731    while True:
3732      (fname, ftype, fid) = iprot.readFieldBegin()
3733      if ftype == TType.STOP:
3734        break
3735      if fid == 0:
3736        if ftype == TType.LIST:
3737          self.success = []
3738          (_etype26, _size23) = iprot.readListBegin()
3739          for _i27 in xrange(_size23):
3740            _elem28 = iprot.readString();
3741            self.success.append(_elem28)
3742          iprot.readListEnd()
3743        else:
3744          iprot.skip(ftype)
3745      elif fid == 1:
3746        if ftype == TType.STRUCT:
3747          self.io = IOError()
3748          self.io.read(iprot)
3749        else:
3750          iprot.skip(ftype)
3751      else:
3752        iprot.skip(ftype)
3753      iprot.readFieldEnd()
3754    iprot.readStructEnd()
3755
3756  def write(self, oprot):
3757    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3758      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3759      return
3760    oprot.writeStructBegin('getTableNames_result')
3761    if self.success is not None:
3762      oprot.writeFieldBegin('success', TType.LIST, 0)
3763      oprot.writeListBegin(TType.STRING, len(self.success))
3764      for iter29 in self.success:
3765        oprot.writeString(iter29)
3766      oprot.writeListEnd()
3767      oprot.writeFieldEnd()
3768    if self.io is not None:
3769      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3770      self.io.write(oprot)
3771      oprot.writeFieldEnd()
3772    oprot.writeFieldStop()
3773    oprot.writeStructEnd()
3774
3775  def validate(self):
3776    return
3777
3778
3779  def __repr__(self):
3780    L = ['%s=%r' % (key, value)
3781      for key, value in self.__dict__.iteritems()]
3782    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3783
3784  def __eq__(self, other):
3785    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3786
3787  def __ne__(self, other):
3788    return not (self == other)
3789
3790class getColumnDescriptors_args:
3791  """
3792  Attributes:
3793   - tableName: table name
3794  """
3795
3796  thrift_spec = (
3797    None, # 0
3798    (1, TType.STRING, 'tableName', None, None, ), # 1
3799  )
3800
3801  def __init__(self, tableName=None,):
3802    self.tableName = tableName
3803
3804  def read(self, iprot):
3805    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3806      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3807      return
3808    iprot.readStructBegin()
3809    while True:
3810      (fname, ftype, fid) = iprot.readFieldBegin()
3811      if ftype == TType.STOP:
3812        break
3813      if fid == 1:
3814        if ftype == TType.STRING:
3815          self.tableName = iprot.readString();
3816        else:
3817          iprot.skip(ftype)
3818      else:
3819        iprot.skip(ftype)
3820      iprot.readFieldEnd()
3821    iprot.readStructEnd()
3822
3823  def write(self, oprot):
3824    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3825      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3826      return
3827    oprot.writeStructBegin('getColumnDescriptors_args')
3828    if self.tableName is not None:
3829      oprot.writeFieldBegin('tableName', TType.STRING, 1)
3830      oprot.writeString(self.tableName)
3831      oprot.writeFieldEnd()
3832    oprot.writeFieldStop()
3833    oprot.writeStructEnd()
3834
3835  def validate(self):
3836    return
3837
3838
3839  def __repr__(self):
3840    L = ['%s=%r' % (key, value)
3841      for key, value in self.__dict__.iteritems()]
3842    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3843
3844  def __eq__(self, other):
3845    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3846
3847  def __ne__(self, other):
3848    return not (self == other)
3849
3850class getColumnDescriptors_result:
3851  """
3852  Attributes:
3853   - success
3854   - io
3855  """
3856
3857  thrift_spec = (
3858    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 0
3859    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
3860  )
3861
3862  def __init__(self, success=None, io=None,):
3863    self.success = success
3864    self.io = io
3865
3866  def read(self, iprot):
3867    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3868      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3869      return
3870    iprot.readStructBegin()
3871    while True:
3872      (fname, ftype, fid) = iprot.readFieldBegin()
3873      if ftype == TType.STOP:
3874        break
3875      if fid == 0:
3876        if ftype == TType.MAP:
3877          self.success = {}
3878          (_ktype31, _vtype32, _size30 ) = iprot.readMapBegin()
3879          for _i34 in xrange(_size30):
3880            _key35 = iprot.readString();
3881            _val36 = ColumnDescriptor()
3882            _val36.read(iprot)
3883            self.success[_key35] = _val36
3884          iprot.readMapEnd()
3885        else:
3886          iprot.skip(ftype)
3887      elif fid == 1:
3888        if ftype == TType.STRUCT:
3889          self.io = IOError()
3890          self.io.read(iprot)
3891        else:
3892          iprot.skip(ftype)
3893      else:
3894        iprot.skip(ftype)
3895      iprot.readFieldEnd()
3896    iprot.readStructEnd()
3897
3898  def write(self, oprot):
3899    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3900      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3901      return
3902    oprot.writeStructBegin('getColumnDescriptors_result')
3903    if self.success is not None:
3904      oprot.writeFieldBegin('success', TType.MAP, 0)
3905      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
3906      for kiter37,viter38 in self.success.items():
3907        oprot.writeString(kiter37)
3908        viter38.write(oprot)
3909      oprot.writeMapEnd()
3910      oprot.writeFieldEnd()
3911    if self.io is not None:
3912      oprot.writeFieldBegin('io', TType.STRUCT, 1)
3913      self.io.write(oprot)
3914      oprot.writeFieldEnd()
3915    oprot.writeFieldStop()
3916    oprot.writeStructEnd()
3917
3918  def validate(self):
3919    return
3920
3921
3922  def __repr__(self):
3923    L = ['%s=%r' % (key, value)
3924      for key, value in self.__dict__.iteritems()]
3925    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3926
3927  def __eq__(self, other):
3928    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3929
3930  def __ne__(self, other):
3931    return not (self == other)
3932
3933class getTableRegions_args:
3934  """
3935  Attributes:
3936   - tableName: table name
3937  """
3938
3939  thrift_spec = (
3940    None, # 0
3941    (1, TType.STRING, 'tableName', None, None, ), # 1
3942  )
3943
3944  def __init__(self, tableName=None,):
3945    self.tableName = tableName
3946
3947  def read(self, iprot):
3948    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3949      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3950      return
3951    iprot.readStructBegin()
3952    while True:
3953      (fname, ftype, fid) = iprot.readFieldBegin()
3954      if ftype == TType.STOP:
3955        break
3956      if fid == 1:
3957        if ftype == TType.STRING:
3958          self.tableName = iprot.readString();
3959        else:
3960          iprot.skip(ftype)
3961      else:
3962        iprot.skip(ftype)
3963      iprot.readFieldEnd()
3964    iprot.readStructEnd()
3965
3966  def write(self, oprot):
3967    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3968      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3969      return
3970    oprot.writeStructBegin('getTableRegions_args')
3971    if self.tableName is not None:
3972      oprot.writeFieldBegin('tableName', TType.STRING, 1)
3973      oprot.writeString(self.tableName)
3974      oprot.writeFieldEnd()
3975    oprot.writeFieldStop()
3976    oprot.writeStructEnd()
3977
3978  def validate(self):
3979    return
3980
3981
3982  def __repr__(self):
3983    L = ['%s=%r' % (key, value)
3984      for key, value in self.__dict__.iteritems()]
3985    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3986
3987  def __eq__(self, other):
3988    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3989
3990  def __ne__(self, other):
3991    return not (self == other)
3992
3993class getTableRegions_result:
3994  """
3995  Attributes:
3996   - success
3997   - io
3998  """
3999
4000  thrift_spec = (
4001    (0, TType.LIST, 'success', (TType.STRUCT,(TRegionInfo, TRegionInfo.thrift_spec)), None, ), # 0
4002    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4003  )
4004
4005  def __init__(self, success=None, io=None,):
4006    self.success = success
4007    self.io = io
4008
4009  def read(self, iprot):
4010    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4011      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4012      return
4013    iprot.readStructBegin()
4014    while True:
4015      (fname, ftype, fid) = iprot.readFieldBegin()
4016      if ftype == TType.STOP:
4017        break
4018      if fid == 0:
4019        if ftype == TType.LIST:
4020          self.success = []
4021          (_etype42, _size39) = iprot.readListBegin()
4022          for _i43 in xrange(_size39):
4023            _elem44 = TRegionInfo()
4024            _elem44.read(iprot)
4025            self.success.append(_elem44)
4026          iprot.readListEnd()
4027        else:
4028          iprot.skip(ftype)
4029      elif fid == 1:
4030        if ftype == TType.STRUCT:
4031          self.io = IOError()
4032          self.io.read(iprot)
4033        else:
4034          iprot.skip(ftype)
4035      else:
4036        iprot.skip(ftype)
4037      iprot.readFieldEnd()
4038    iprot.readStructEnd()
4039
4040  def write(self, oprot):
4041    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4042      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4043      return
4044    oprot.writeStructBegin('getTableRegions_result')
4045    if self.success is not None:
4046      oprot.writeFieldBegin('success', TType.LIST, 0)
4047      oprot.writeListBegin(TType.STRUCT, len(self.success))
4048      for iter45 in self.success:
4049        iter45.write(oprot)
4050      oprot.writeListEnd()
4051      oprot.writeFieldEnd()
4052    if self.io is not None:
4053      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4054      self.io.write(oprot)
4055      oprot.writeFieldEnd()
4056    oprot.writeFieldStop()
4057    oprot.writeStructEnd()
4058
4059  def validate(self):
4060    return
4061
4062
4063  def __repr__(self):
4064    L = ['%s=%r' % (key, value)
4065      for key, value in self.__dict__.iteritems()]
4066    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4067
4068  def __eq__(self, other):
4069    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4070
4071  def __ne__(self, other):
4072    return not (self == other)
4073
4074class createTable_args:
4075  """
4076  Attributes:
4077   - tableName: name of table to create
4078   - columnFamilies: list of column family descriptors
4079  """
4080
4081  thrift_spec = (
4082    None, # 0
4083    (1, TType.STRING, 'tableName', None, None, ), # 1
4084    (2, TType.LIST, 'columnFamilies', (TType.STRUCT,(ColumnDescriptor, ColumnDescriptor.thrift_spec)), None, ), # 2
4085  )
4086
4087  def __init__(self, tableName=None, columnFamilies=None,):
4088    self.tableName = tableName
4089    self.columnFamilies = columnFamilies
4090
4091  def read(self, iprot):
4092    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4093      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4094      return
4095    iprot.readStructBegin()
4096    while True:
4097      (fname, ftype, fid) = iprot.readFieldBegin()
4098      if ftype == TType.STOP:
4099        break
4100      if fid == 1:
4101        if ftype == TType.STRING:
4102          self.tableName = iprot.readString();
4103        else:
4104          iprot.skip(ftype)
4105      elif fid == 2:
4106        if ftype == TType.LIST:
4107          self.columnFamilies = []
4108          (_etype49, _size46) = iprot.readListBegin()
4109          for _i50 in xrange(_size46):
4110            _elem51 = ColumnDescriptor()
4111            _elem51.read(iprot)
4112            self.columnFamilies.append(_elem51)
4113          iprot.readListEnd()
4114        else:
4115          iprot.skip(ftype)
4116      else:
4117        iprot.skip(ftype)
4118      iprot.readFieldEnd()
4119    iprot.readStructEnd()
4120
4121  def write(self, oprot):
4122    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4123      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4124      return
4125    oprot.writeStructBegin('createTable_args')
4126    if self.tableName is not None:
4127      oprot.writeFieldBegin('tableName', TType.STRING, 1)
4128      oprot.writeString(self.tableName)
4129      oprot.writeFieldEnd()
4130    if self.columnFamilies is not None:
4131      oprot.writeFieldBegin('columnFamilies', TType.LIST, 2)
4132      oprot.writeListBegin(TType.STRUCT, len(self.columnFamilies))
4133      for iter52 in self.columnFamilies:
4134        iter52.write(oprot)
4135      oprot.writeListEnd()
4136      oprot.writeFieldEnd()
4137    oprot.writeFieldStop()
4138    oprot.writeStructEnd()
4139
4140  def validate(self):
4141    return
4142
4143
4144  def __repr__(self):
4145    L = ['%s=%r' % (key, value)
4146      for key, value in self.__dict__.iteritems()]
4147    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4148
4149  def __eq__(self, other):
4150    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4151
4152  def __ne__(self, other):
4153    return not (self == other)
4154
4155class createTable_result:
4156  """
4157  Attributes:
4158   - io
4159   - ia
4160   - exist
4161  """
4162
4163  thrift_spec = (
4164    None, # 0
4165    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4166    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
4167    (3, TType.STRUCT, 'exist', (AlreadyExists, AlreadyExists.thrift_spec), None, ), # 3
4168  )
4169
4170  def __init__(self, io=None, ia=None, exist=None,):
4171    self.io = io
4172    self.ia = ia
4173    self.exist = exist
4174
4175  def read(self, iprot):
4176    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4177      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4178      return
4179    iprot.readStructBegin()
4180    while True:
4181      (fname, ftype, fid) = iprot.readFieldBegin()
4182      if ftype == TType.STOP:
4183        break
4184      if fid == 1:
4185        if ftype == TType.STRUCT:
4186          self.io = IOError()
4187          self.io.read(iprot)
4188        else:
4189          iprot.skip(ftype)
4190      elif fid == 2:
4191        if ftype == TType.STRUCT:
4192          self.ia = IllegalArgument()
4193          self.ia.read(iprot)
4194        else:
4195          iprot.skip(ftype)
4196      elif fid == 3:
4197        if ftype == TType.STRUCT:
4198          self.exist = AlreadyExists()
4199          self.exist.read(iprot)
4200        else:
4201          iprot.skip(ftype)
4202      else:
4203        iprot.skip(ftype)
4204      iprot.readFieldEnd()
4205    iprot.readStructEnd()
4206
4207  def write(self, oprot):
4208    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4209      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4210      return
4211    oprot.writeStructBegin('createTable_result')
4212    if self.io is not None:
4213      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4214      self.io.write(oprot)
4215      oprot.writeFieldEnd()
4216    if self.ia is not None:
4217      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
4218      self.ia.write(oprot)
4219      oprot.writeFieldEnd()
4220    if self.exist is not None:
4221      oprot.writeFieldBegin('exist', TType.STRUCT, 3)
4222      self.exist.write(oprot)
4223      oprot.writeFieldEnd()
4224    oprot.writeFieldStop()
4225    oprot.writeStructEnd()
4226
4227  def validate(self):
4228    return
4229
4230
4231  def __repr__(self):
4232    L = ['%s=%r' % (key, value)
4233      for key, value in self.__dict__.iteritems()]
4234    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4235
4236  def __eq__(self, other):
4237    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4238
4239  def __ne__(self, other):
4240    return not (self == other)
4241
4242class deleteTable_args:
4243  """
4244  Attributes:
4245   - tableName: name of table to delete
4246  """
4247
4248  thrift_spec = (
4249    None, # 0
4250    (1, TType.STRING, 'tableName', None, None, ), # 1
4251  )
4252
4253  def __init__(self, tableName=None,):
4254    self.tableName = tableName
4255
4256  def read(self, iprot):
4257    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4258      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4259      return
4260    iprot.readStructBegin()
4261    while True:
4262      (fname, ftype, fid) = iprot.readFieldBegin()
4263      if ftype == TType.STOP:
4264        break
4265      if fid == 1:
4266        if ftype == TType.STRING:
4267          self.tableName = iprot.readString();
4268        else:
4269          iprot.skip(ftype)
4270      else:
4271        iprot.skip(ftype)
4272      iprot.readFieldEnd()
4273    iprot.readStructEnd()
4274
4275  def write(self, oprot):
4276    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4277      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4278      return
4279    oprot.writeStructBegin('deleteTable_args')
4280    if self.tableName is not None:
4281      oprot.writeFieldBegin('tableName', TType.STRING, 1)
4282      oprot.writeString(self.tableName)
4283      oprot.writeFieldEnd()
4284    oprot.writeFieldStop()
4285    oprot.writeStructEnd()
4286
4287  def validate(self):
4288    return
4289
4290
4291  def __repr__(self):
4292    L = ['%s=%r' % (key, value)
4293      for key, value in self.__dict__.iteritems()]
4294    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4295
4296  def __eq__(self, other):
4297    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4298
4299  def __ne__(self, other):
4300    return not (self == other)
4301
4302class deleteTable_result:
4303  """
4304  Attributes:
4305   - io
4306  """
4307
4308  thrift_spec = (
4309    None, # 0
4310    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4311  )
4312
4313  def __init__(self, io=None,):
4314    self.io = io
4315
4316  def read(self, iprot):
4317    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4318      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4319      return
4320    iprot.readStructBegin()
4321    while True:
4322      (fname, ftype, fid) = iprot.readFieldBegin()
4323      if ftype == TType.STOP:
4324        break
4325      if fid == 1:
4326        if ftype == TType.STRUCT:
4327          self.io = IOError()
4328          self.io.read(iprot)
4329        else:
4330          iprot.skip(ftype)
4331      else:
4332        iprot.skip(ftype)
4333      iprot.readFieldEnd()
4334    iprot.readStructEnd()
4335
4336  def write(self, oprot):
4337    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4338      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4339      return
4340    oprot.writeStructBegin('deleteTable_result')
4341    if self.io is not None:
4342      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4343      self.io.write(oprot)
4344      oprot.writeFieldEnd()
4345    oprot.writeFieldStop()
4346    oprot.writeStructEnd()
4347
4348  def validate(self):
4349    return
4350
4351
4352  def __repr__(self):
4353    L = ['%s=%r' % (key, value)
4354      for key, value in self.__dict__.iteritems()]
4355    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4356
4357  def __eq__(self, other):
4358    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4359
4360  def __ne__(self, other):
4361    return not (self == other)
4362
4363class get_args:
4364  """
4365  Attributes:
4366   - tableName: name of table
4367   - row: row key
4368   - column: column name
4369   - attributes: Get attributes
4370  """
4371
4372  thrift_spec = (
4373    None, # 0
4374    (1, TType.STRING, 'tableName', None, None, ), # 1
4375    (2, TType.STRING, 'row', None, None, ), # 2
4376    (3, TType.STRING, 'column', None, None, ), # 3
4377    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
4378  )
4379
4380  def __init__(self, tableName=None, row=None, column=None, attributes=None,):
4381    self.tableName = tableName
4382    self.row = row
4383    self.column = column
4384    self.attributes = attributes
4385
4386  def read(self, iprot):
4387    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4388      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4389      return
4390    iprot.readStructBegin()
4391    while True:
4392      (fname, ftype, fid) = iprot.readFieldBegin()
4393      if ftype == TType.STOP:
4394        break
4395      if fid == 1:
4396        if ftype == TType.STRING:
4397          self.tableName = iprot.readString();
4398        else:
4399          iprot.skip(ftype)
4400      elif fid == 2:
4401        if ftype == TType.STRING:
4402          self.row = iprot.readString();
4403        else:
4404          iprot.skip(ftype)
4405      elif fid == 3:
4406        if ftype == TType.STRING:
4407          self.column = iprot.readString();
4408        else:
4409          iprot.skip(ftype)
4410      elif fid == 4:
4411        if ftype == TType.MAP:
4412          self.attributes = {}
4413          (_ktype54, _vtype55, _size53 ) = iprot.readMapBegin()
4414          for _i57 in xrange(_size53):
4415            _key58 = iprot.readString();
4416            _val59 = iprot.readString();
4417            self.attributes[_key58] = _val59
4418          iprot.readMapEnd()
4419        else:
4420          iprot.skip(ftype)
4421      else:
4422        iprot.skip(ftype)
4423      iprot.readFieldEnd()
4424    iprot.readStructEnd()
4425
4426  def write(self, oprot):
4427    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4428      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4429      return
4430    oprot.writeStructBegin('get_args')
4431    if self.tableName is not None:
4432      oprot.writeFieldBegin('tableName', TType.STRING, 1)
4433      oprot.writeString(self.tableName)
4434      oprot.writeFieldEnd()
4435    if self.row is not None:
4436      oprot.writeFieldBegin('row', TType.STRING, 2)
4437      oprot.writeString(self.row)
4438      oprot.writeFieldEnd()
4439    if self.column is not None:
4440      oprot.writeFieldBegin('column', TType.STRING, 3)
4441      oprot.writeString(self.column)
4442      oprot.writeFieldEnd()
4443    if self.attributes is not None:
4444      oprot.writeFieldBegin('attributes', TType.MAP, 4)
4445      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
4446      for kiter60,viter61 in self.attributes.items():
4447        oprot.writeString(kiter60)
4448        oprot.writeString(viter61)
4449      oprot.writeMapEnd()
4450      oprot.writeFieldEnd()
4451    oprot.writeFieldStop()
4452    oprot.writeStructEnd()
4453
4454  def validate(self):
4455    return
4456
4457
4458  def __repr__(self):
4459    L = ['%s=%r' % (key, value)
4460      for key, value in self.__dict__.iteritems()]
4461    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4462
4463  def __eq__(self, other):
4464    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4465
4466  def __ne__(self, other):
4467    return not (self == other)
4468
4469class get_result:
4470  """
4471  Attributes:
4472   - success
4473   - io
4474  """
4475
4476  thrift_spec = (
4477    (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
4478    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4479  )
4480
4481  def __init__(self, success=None, io=None,):
4482    self.success = success
4483    self.io = io
4484
4485  def read(self, iprot):
4486    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4487      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4488      return
4489    iprot.readStructBegin()
4490    while True:
4491      (fname, ftype, fid) = iprot.readFieldBegin()
4492      if ftype == TType.STOP:
4493        break
4494      if fid == 0:
4495        if ftype == TType.LIST:
4496          self.success = []
4497          (_etype65, _size62) = iprot.readListBegin()
4498          for _i66 in xrange(_size62):
4499            _elem67 = TCell()
4500            _elem67.read(iprot)
4501            self.success.append(_elem67)
4502          iprot.readListEnd()
4503        else:
4504          iprot.skip(ftype)
4505      elif fid == 1:
4506        if ftype == TType.STRUCT:
4507          self.io = IOError()
4508          self.io.read(iprot)
4509        else:
4510          iprot.skip(ftype)
4511      else:
4512        iprot.skip(ftype)
4513      iprot.readFieldEnd()
4514    iprot.readStructEnd()
4515
4516  def write(self, oprot):
4517    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4518      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4519      return
4520    oprot.writeStructBegin('get_result')
4521    if self.success is not None:
4522      oprot.writeFieldBegin('success', TType.LIST, 0)
4523      oprot.writeListBegin(TType.STRUCT, len(self.success))
4524      for iter68 in self.success:
4525        iter68.write(oprot)
4526      oprot.writeListEnd()
4527      oprot.writeFieldEnd()
4528    if self.io is not None:
4529      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4530      self.io.write(oprot)
4531      oprot.writeFieldEnd()
4532    oprot.writeFieldStop()
4533    oprot.writeStructEnd()
4534
4535  def validate(self):
4536    return
4537
4538
4539  def __repr__(self):
4540    L = ['%s=%r' % (key, value)
4541      for key, value in self.__dict__.iteritems()]
4542    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4543
4544  def __eq__(self, other):
4545    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4546
4547  def __ne__(self, other):
4548    return not (self == other)
4549
4550class getVer_args:
4551  """
4552  Attributes:
4553   - tableName: name of table
4554   - row: row key
4555   - column: column name
4556   - numVersions: number of versions to retrieve
4557   - attributes: Get attributes
4558  """
4559
4560  thrift_spec = (
4561    None, # 0
4562    (1, TType.STRING, 'tableName', None, None, ), # 1
4563    (2, TType.STRING, 'row', None, None, ), # 2
4564    (3, TType.STRING, 'column', None, None, ), # 3
4565    (4, TType.I32, 'numVersions', None, None, ), # 4
4566    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
4567  )
4568
4569  def __init__(self, tableName=None, row=None, column=None, numVersions=None, attributes=None,):
4570    self.tableName = tableName
4571    self.row = row
4572    self.column = column
4573    self.numVersions = numVersions
4574    self.attributes = attributes
4575
4576  def read(self, iprot):
4577    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4578      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4579      return
4580    iprot.readStructBegin()
4581    while True:
4582      (fname, ftype, fid) = iprot.readFieldBegin()
4583      if ftype == TType.STOP:
4584        break
4585      if fid == 1:
4586        if ftype == TType.STRING:
4587          self.tableName = iprot.readString();
4588        else:
4589          iprot.skip(ftype)
4590      elif fid == 2:
4591        if ftype == TType.STRING:
4592          self.row = iprot.readString();
4593        else:
4594          iprot.skip(ftype)
4595      elif fid == 3:
4596        if ftype == TType.STRING:
4597          self.column = iprot.readString();
4598        else:
4599          iprot.skip(ftype)
4600      elif fid == 4:
4601        if ftype == TType.I32:
4602          self.numVersions = iprot.readI32();
4603        else:
4604          iprot.skip(ftype)
4605      elif fid == 5:
4606        if ftype == TType.MAP:
4607          self.attributes = {}
4608          (_ktype70, _vtype71, _size69 ) = iprot.readMapBegin()
4609          for _i73 in xrange(_size69):
4610            _key74 = iprot.readString();
4611            _val75 = iprot.readString();
4612            self.attributes[_key74] = _val75
4613          iprot.readMapEnd()
4614        else:
4615          iprot.skip(ftype)
4616      else:
4617        iprot.skip(ftype)
4618      iprot.readFieldEnd()
4619    iprot.readStructEnd()
4620
4621  def write(self, oprot):
4622    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4623      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4624      return
4625    oprot.writeStructBegin('getVer_args')
4626    if self.tableName is not None:
4627      oprot.writeFieldBegin('tableName', TType.STRING, 1)
4628      oprot.writeString(self.tableName)
4629      oprot.writeFieldEnd()
4630    if self.row is not None:
4631      oprot.writeFieldBegin('row', TType.STRING, 2)
4632      oprot.writeString(self.row)
4633      oprot.writeFieldEnd()
4634    if self.column is not None:
4635      oprot.writeFieldBegin('column', TType.STRING, 3)
4636      oprot.writeString(self.column)
4637      oprot.writeFieldEnd()
4638    if self.numVersions is not None:
4639      oprot.writeFieldBegin('numVersions', TType.I32, 4)
4640      oprot.writeI32(self.numVersions)
4641      oprot.writeFieldEnd()
4642    if self.attributes is not None:
4643      oprot.writeFieldBegin('attributes', TType.MAP, 5)
4644      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
4645      for kiter76,viter77 in self.attributes.items():
4646        oprot.writeString(kiter76)
4647        oprot.writeString(viter77)
4648      oprot.writeMapEnd()
4649      oprot.writeFieldEnd()
4650    oprot.writeFieldStop()
4651    oprot.writeStructEnd()
4652
4653  def validate(self):
4654    return
4655
4656
4657  def __repr__(self):
4658    L = ['%s=%r' % (key, value)
4659      for key, value in self.__dict__.iteritems()]
4660    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4661
4662  def __eq__(self, other):
4663    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4664
4665  def __ne__(self, other):
4666    return not (self == other)
4667
4668class getVer_result:
4669  """
4670  Attributes:
4671   - success
4672   - io
4673  """
4674
4675  thrift_spec = (
4676    (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
4677    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4678  )
4679
4680  def __init__(self, success=None, io=None,):
4681    self.success = success
4682    self.io = io
4683
4684  def read(self, iprot):
4685    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4686      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4687      return
4688    iprot.readStructBegin()
4689    while True:
4690      (fname, ftype, fid) = iprot.readFieldBegin()
4691      if ftype == TType.STOP:
4692        break
4693      if fid == 0:
4694        if ftype == TType.LIST:
4695          self.success = []
4696          (_etype81, _size78) = iprot.readListBegin()
4697          for _i82 in xrange(_size78):
4698            _elem83 = TCell()
4699            _elem83.read(iprot)
4700            self.success.append(_elem83)
4701          iprot.readListEnd()
4702        else:
4703          iprot.skip(ftype)
4704      elif fid == 1:
4705        if ftype == TType.STRUCT:
4706          self.io = IOError()
4707          self.io.read(iprot)
4708        else:
4709          iprot.skip(ftype)
4710      else:
4711        iprot.skip(ftype)
4712      iprot.readFieldEnd()
4713    iprot.readStructEnd()
4714
4715  def write(self, oprot):
4716    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4717      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4718      return
4719    oprot.writeStructBegin('getVer_result')
4720    if self.success is not None:
4721      oprot.writeFieldBegin('success', TType.LIST, 0)
4722      oprot.writeListBegin(TType.STRUCT, len(self.success))
4723      for iter84 in self.success:
4724        iter84.write(oprot)
4725      oprot.writeListEnd()
4726      oprot.writeFieldEnd()
4727    if self.io is not None:
4728      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4729      self.io.write(oprot)
4730      oprot.writeFieldEnd()
4731    oprot.writeFieldStop()
4732    oprot.writeStructEnd()
4733
4734  def validate(self):
4735    return
4736
4737
4738  def __repr__(self):
4739    L = ['%s=%r' % (key, value)
4740      for key, value in self.__dict__.iteritems()]
4741    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4742
4743  def __eq__(self, other):
4744    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4745
4746  def __ne__(self, other):
4747    return not (self == other)
4748
4749class getVerTs_args:
4750  """
4751  Attributes:
4752   - tableName: name of table
4753   - row: row key
4754   - column: column name
4755   - timestamp: timestamp
4756   - numVersions: number of versions to retrieve
4757   - attributes: Get attributes
4758  """
4759
4760  thrift_spec = (
4761    None, # 0
4762    (1, TType.STRING, 'tableName', None, None, ), # 1
4763    (2, TType.STRING, 'row', None, None, ), # 2
4764    (3, TType.STRING, 'column', None, None, ), # 3
4765    (4, TType.I64, 'timestamp', None, None, ), # 4
4766    (5, TType.I32, 'numVersions', None, None, ), # 5
4767    (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
4768  )
4769
4770  def __init__(self, tableName=None, row=None, column=None, timestamp=None, numVersions=None, attributes=None,):
4771    self.tableName = tableName
4772    self.row = row
4773    self.column = column
4774    self.timestamp = timestamp
4775    self.numVersions = numVersions
4776    self.attributes = attributes
4777
4778  def read(self, iprot):
4779    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4780      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4781      return
4782    iprot.readStructBegin()
4783    while True:
4784      (fname, ftype, fid) = iprot.readFieldBegin()
4785      if ftype == TType.STOP:
4786        break
4787      if fid == 1:
4788        if ftype == TType.STRING:
4789          self.tableName = iprot.readString();
4790        else:
4791          iprot.skip(ftype)
4792      elif fid == 2:
4793        if ftype == TType.STRING:
4794          self.row = iprot.readString();
4795        else:
4796          iprot.skip(ftype)
4797      elif fid == 3:
4798        if ftype == TType.STRING:
4799          self.column = iprot.readString();
4800        else:
4801          iprot.skip(ftype)
4802      elif fid == 4:
4803        if ftype == TType.I64:
4804          self.timestamp = iprot.readI64();
4805        else:
4806          iprot.skip(ftype)
4807      elif fid == 5:
4808        if ftype == TType.I32:
4809          self.numVersions = iprot.readI32();
4810        else:
4811          iprot.skip(ftype)
4812      elif fid == 6:
4813        if ftype == TType.MAP:
4814          self.attributes = {}
4815          (_ktype86, _vtype87, _size85 ) = iprot.readMapBegin()
4816          for _i89 in xrange(_size85):
4817            _key90 = iprot.readString();
4818            _val91 = iprot.readString();
4819            self.attributes[_key90] = _val91
4820          iprot.readMapEnd()
4821        else:
4822          iprot.skip(ftype)
4823      else:
4824        iprot.skip(ftype)
4825      iprot.readFieldEnd()
4826    iprot.readStructEnd()
4827
4828  def write(self, oprot):
4829    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4830      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4831      return
4832    oprot.writeStructBegin('getVerTs_args')
4833    if self.tableName is not None:
4834      oprot.writeFieldBegin('tableName', TType.STRING, 1)
4835      oprot.writeString(self.tableName)
4836      oprot.writeFieldEnd()
4837    if self.row is not None:
4838      oprot.writeFieldBegin('row', TType.STRING, 2)
4839      oprot.writeString(self.row)
4840      oprot.writeFieldEnd()
4841    if self.column is not None:
4842      oprot.writeFieldBegin('column', TType.STRING, 3)
4843      oprot.writeString(self.column)
4844      oprot.writeFieldEnd()
4845    if self.timestamp is not None:
4846      oprot.writeFieldBegin('timestamp', TType.I64, 4)
4847      oprot.writeI64(self.timestamp)
4848      oprot.writeFieldEnd()
4849    if self.numVersions is not None:
4850      oprot.writeFieldBegin('numVersions', TType.I32, 5)
4851      oprot.writeI32(self.numVersions)
4852      oprot.writeFieldEnd()
4853    if self.attributes is not None:
4854      oprot.writeFieldBegin('attributes', TType.MAP, 6)
4855      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
4856      for kiter92,viter93 in self.attributes.items():
4857        oprot.writeString(kiter92)
4858        oprot.writeString(viter93)
4859      oprot.writeMapEnd()
4860      oprot.writeFieldEnd()
4861    oprot.writeFieldStop()
4862    oprot.writeStructEnd()
4863
4864  def validate(self):
4865    return
4866
4867
4868  def __repr__(self):
4869    L = ['%s=%r' % (key, value)
4870      for key, value in self.__dict__.iteritems()]
4871    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4872
4873  def __eq__(self, other):
4874    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4875
4876  def __ne__(self, other):
4877    return not (self == other)
4878
4879class getVerTs_result:
4880  """
4881  Attributes:
4882   - success
4883   - io
4884  """
4885
4886  thrift_spec = (
4887    (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
4888    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
4889  )
4890
4891  def __init__(self, success=None, io=None,):
4892    self.success = success
4893    self.io = io
4894
4895  def read(self, iprot):
4896    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4897      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4898      return
4899    iprot.readStructBegin()
4900    while True:
4901      (fname, ftype, fid) = iprot.readFieldBegin()
4902      if ftype == TType.STOP:
4903        break
4904      if fid == 0:
4905        if ftype == TType.LIST:
4906          self.success = []
4907          (_etype97, _size94) = iprot.readListBegin()
4908          for _i98 in xrange(_size94):
4909            _elem99 = TCell()
4910            _elem99.read(iprot)
4911            self.success.append(_elem99)
4912          iprot.readListEnd()
4913        else:
4914          iprot.skip(ftype)
4915      elif fid == 1:
4916        if ftype == TType.STRUCT:
4917          self.io = IOError()
4918          self.io.read(iprot)
4919        else:
4920          iprot.skip(ftype)
4921      else:
4922        iprot.skip(ftype)
4923      iprot.readFieldEnd()
4924    iprot.readStructEnd()
4925
4926  def write(self, oprot):
4927    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4928      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4929      return
4930    oprot.writeStructBegin('getVerTs_result')
4931    if self.success is not None:
4932      oprot.writeFieldBegin('success', TType.LIST, 0)
4933      oprot.writeListBegin(TType.STRUCT, len(self.success))
4934      for iter100 in self.success:
4935        iter100.write(oprot)
4936      oprot.writeListEnd()
4937      oprot.writeFieldEnd()
4938    if self.io is not None:
4939      oprot.writeFieldBegin('io', TType.STRUCT, 1)
4940      self.io.write(oprot)
4941      oprot.writeFieldEnd()
4942    oprot.writeFieldStop()
4943    oprot.writeStructEnd()
4944
4945  def validate(self):
4946    return
4947
4948
4949  def __repr__(self):
4950    L = ['%s=%r' % (key, value)
4951      for key, value in self.__dict__.iteritems()]
4952    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4953
4954  def __eq__(self, other):
4955    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4956
4957  def __ne__(self, other):
4958    return not (self == other)
4959
4960class getRow_args:
4961  """
4962  Attributes:
4963   - tableName: name of table
4964   - row: row key
4965   - attributes: Get attributes
4966  """
4967
4968  thrift_spec = (
4969    None, # 0
4970    (1, TType.STRING, 'tableName', None, None, ), # 1
4971    (2, TType.STRING, 'row', None, None, ), # 2
4972    (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
4973  )
4974
4975  def __init__(self, tableName=None, row=None, attributes=None,):
4976    self.tableName = tableName
4977    self.row = row
4978    self.attributes = attributes
4979
4980  def read(self, iprot):
4981    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4982      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4983      return
4984    iprot.readStructBegin()
4985    while True:
4986      (fname, ftype, fid) = iprot.readFieldBegin()
4987      if ftype == TType.STOP:
4988        break
4989      if fid == 1:
4990        if ftype == TType.STRING:
4991          self.tableName = iprot.readString();
4992        else:
4993          iprot.skip(ftype)
4994      elif fid == 2:
4995        if ftype == TType.STRING:
4996          self.row = iprot.readString();
4997        else:
4998          iprot.skip(ftype)
4999      elif fid == 3:
5000        if ftype == TType.MAP:
5001          self.attributes = {}
5002          (_ktype102, _vtype103, _size101 ) = iprot.readMapBegin()
5003          for _i105 in xrange(_size101):
5004            _key106 = iprot.readString();
5005            _val107 = iprot.readString();
5006            self.attributes[_key106] = _val107
5007          iprot.readMapEnd()
5008        else:
5009          iprot.skip(ftype)
5010      else:
5011        iprot.skip(ftype)
5012      iprot.readFieldEnd()
5013    iprot.readStructEnd()
5014
5015  def write(self, oprot):
5016    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5017      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5018      return
5019    oprot.writeStructBegin('getRow_args')
5020    if self.tableName is not None:
5021      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5022      oprot.writeString(self.tableName)
5023      oprot.writeFieldEnd()
5024    if self.row is not None:
5025      oprot.writeFieldBegin('row', TType.STRING, 2)
5026      oprot.writeString(self.row)
5027      oprot.writeFieldEnd()
5028    if self.attributes is not None:
5029      oprot.writeFieldBegin('attributes', TType.MAP, 3)
5030      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
5031      for kiter108,viter109 in self.attributes.items():
5032        oprot.writeString(kiter108)
5033        oprot.writeString(viter109)
5034      oprot.writeMapEnd()
5035      oprot.writeFieldEnd()
5036    oprot.writeFieldStop()
5037    oprot.writeStructEnd()
5038
5039  def validate(self):
5040    return
5041
5042
5043  def __repr__(self):
5044    L = ['%s=%r' % (key, value)
5045      for key, value in self.__dict__.iteritems()]
5046    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5047
5048  def __eq__(self, other):
5049    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5050
5051  def __ne__(self, other):
5052    return not (self == other)
5053
5054class getRow_result:
5055  """
5056  Attributes:
5057   - success
5058   - io
5059  """
5060
5061  thrift_spec = (
5062    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
5063    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
5064  )
5065
5066  def __init__(self, success=None, io=None,):
5067    self.success = success
5068    self.io = io
5069
5070  def read(self, iprot):
5071    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5072      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5073      return
5074    iprot.readStructBegin()
5075    while True:
5076      (fname, ftype, fid) = iprot.readFieldBegin()
5077      if ftype == TType.STOP:
5078        break
5079      if fid == 0:
5080        if ftype == TType.LIST:
5081          self.success = []
5082          (_etype113, _size110) = iprot.readListBegin()
5083          for _i114 in xrange(_size110):
5084            _elem115 = TRowResult()
5085            _elem115.read(iprot)
5086            self.success.append(_elem115)
5087          iprot.readListEnd()
5088        else:
5089          iprot.skip(ftype)
5090      elif fid == 1:
5091        if ftype == TType.STRUCT:
5092          self.io = IOError()
5093          self.io.read(iprot)
5094        else:
5095          iprot.skip(ftype)
5096      else:
5097        iprot.skip(ftype)
5098      iprot.readFieldEnd()
5099    iprot.readStructEnd()
5100
5101  def write(self, oprot):
5102    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5103      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5104      return
5105    oprot.writeStructBegin('getRow_result')
5106    if self.success is not None:
5107      oprot.writeFieldBegin('success', TType.LIST, 0)
5108      oprot.writeListBegin(TType.STRUCT, len(self.success))
5109      for iter116 in self.success:
5110        iter116.write(oprot)
5111      oprot.writeListEnd()
5112      oprot.writeFieldEnd()
5113    if self.io is not None:
5114      oprot.writeFieldBegin('io', TType.STRUCT, 1)
5115      self.io.write(oprot)
5116      oprot.writeFieldEnd()
5117    oprot.writeFieldStop()
5118    oprot.writeStructEnd()
5119
5120  def validate(self):
5121    return
5122
5123
5124  def __repr__(self):
5125    L = ['%s=%r' % (key, value)
5126      for key, value in self.__dict__.iteritems()]
5127    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5128
5129  def __eq__(self, other):
5130    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5131
5132  def __ne__(self, other):
5133    return not (self == other)
5134
5135class getRowWithColumns_args:
5136  """
5137  Attributes:
5138   - tableName: name of table
5139   - row: row key
5140   - columns: List of columns to return, null for all columns
5141   - attributes: Get attributes
5142  """
5143
5144  thrift_spec = (
5145    None, # 0
5146    (1, TType.STRING, 'tableName', None, None, ), # 1
5147    (2, TType.STRING, 'row', None, None, ), # 2
5148    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
5149    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
5150  )
5151
5152  def __init__(self, tableName=None, row=None, columns=None, attributes=None,):
5153    self.tableName = tableName
5154    self.row = row
5155    self.columns = columns
5156    self.attributes = attributes
5157
5158  def read(self, iprot):
5159    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5160      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5161      return
5162    iprot.readStructBegin()
5163    while True:
5164      (fname, ftype, fid) = iprot.readFieldBegin()
5165      if ftype == TType.STOP:
5166        break
5167      if fid == 1:
5168        if ftype == TType.STRING:
5169          self.tableName = iprot.readString();
5170        else:
5171          iprot.skip(ftype)
5172      elif fid == 2:
5173        if ftype == TType.STRING:
5174          self.row = iprot.readString();
5175        else:
5176          iprot.skip(ftype)
5177      elif fid == 3:
5178        if ftype == TType.LIST:
5179          self.columns = []
5180          (_etype120, _size117) = iprot.readListBegin()
5181          for _i121 in xrange(_size117):
5182            _elem122 = iprot.readString();
5183            self.columns.append(_elem122)
5184          iprot.readListEnd()
5185        else:
5186          iprot.skip(ftype)
5187      elif fid == 4:
5188        if ftype == TType.MAP:
5189          self.attributes = {}
5190          (_ktype124, _vtype125, _size123 ) = iprot.readMapBegin()
5191          for _i127 in xrange(_size123):
5192            _key128 = iprot.readString();
5193            _val129 = iprot.readString();
5194            self.attributes[_key128] = _val129
5195          iprot.readMapEnd()
5196        else:
5197          iprot.skip(ftype)
5198      else:
5199        iprot.skip(ftype)
5200      iprot.readFieldEnd()
5201    iprot.readStructEnd()
5202
5203  def write(self, oprot):
5204    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5205      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5206      return
5207    oprot.writeStructBegin('getRowWithColumns_args')
5208    if self.tableName is not None:
5209      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5210      oprot.writeString(self.tableName)
5211      oprot.writeFieldEnd()
5212    if self.row is not None:
5213      oprot.writeFieldBegin('row', TType.STRING, 2)
5214      oprot.writeString(self.row)
5215      oprot.writeFieldEnd()
5216    if self.columns is not None:
5217      oprot.writeFieldBegin('columns', TType.LIST, 3)
5218      oprot.writeListBegin(TType.STRING, len(self.columns))
5219      for iter130 in self.columns:
5220        oprot.writeString(iter130)
5221      oprot.writeListEnd()
5222      oprot.writeFieldEnd()
5223    if self.attributes is not None:
5224      oprot.writeFieldBegin('attributes', TType.MAP, 4)
5225      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
5226      for kiter131,viter132 in self.attributes.items():
5227        oprot.writeString(kiter131)
5228        oprot.writeString(viter132)
5229      oprot.writeMapEnd()
5230      oprot.writeFieldEnd()
5231    oprot.writeFieldStop()
5232    oprot.writeStructEnd()
5233
5234  def validate(self):
5235    return
5236
5237
5238  def __repr__(self):
5239    L = ['%s=%r' % (key, value)
5240      for key, value in self.__dict__.iteritems()]
5241    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5242
5243  def __eq__(self, other):
5244    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5245
5246  def __ne__(self, other):
5247    return not (self == other)
5248
5249class getRowWithColumns_result:
5250  """
5251  Attributes:
5252   - success
5253   - io
5254  """
5255
5256  thrift_spec = (
5257    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
5258    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
5259  )
5260
5261  def __init__(self, success=None, io=None,):
5262    self.success = success
5263    self.io = io
5264
5265  def read(self, iprot):
5266    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5267      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5268      return
5269    iprot.readStructBegin()
5270    while True:
5271      (fname, ftype, fid) = iprot.readFieldBegin()
5272      if ftype == TType.STOP:
5273        break
5274      if fid == 0:
5275        if ftype == TType.LIST:
5276          self.success = []
5277          (_etype136, _size133) = iprot.readListBegin()
5278          for _i137 in xrange(_size133):
5279            _elem138 = TRowResult()
5280            _elem138.read(iprot)
5281            self.success.append(_elem138)
5282          iprot.readListEnd()
5283        else:
5284          iprot.skip(ftype)
5285      elif fid == 1:
5286        if ftype == TType.STRUCT:
5287          self.io = IOError()
5288          self.io.read(iprot)
5289        else:
5290          iprot.skip(ftype)
5291      else:
5292        iprot.skip(ftype)
5293      iprot.readFieldEnd()
5294    iprot.readStructEnd()
5295
5296  def write(self, oprot):
5297    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5298      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5299      return
5300    oprot.writeStructBegin('getRowWithColumns_result')
5301    if self.success is not None:
5302      oprot.writeFieldBegin('success', TType.LIST, 0)
5303      oprot.writeListBegin(TType.STRUCT, len(self.success))
5304      for iter139 in self.success:
5305        iter139.write(oprot)
5306      oprot.writeListEnd()
5307      oprot.writeFieldEnd()
5308    if self.io is not None:
5309      oprot.writeFieldBegin('io', TType.STRUCT, 1)
5310      self.io.write(oprot)
5311      oprot.writeFieldEnd()
5312    oprot.writeFieldStop()
5313    oprot.writeStructEnd()
5314
5315  def validate(self):
5316    return
5317
5318
5319  def __repr__(self):
5320    L = ['%s=%r' % (key, value)
5321      for key, value in self.__dict__.iteritems()]
5322    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5323
5324  def __eq__(self, other):
5325    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5326
5327  def __ne__(self, other):
5328    return not (self == other)
5329
5330class getRowTs_args:
5331  """
5332  Attributes:
5333   - tableName: name of the table
5334   - row: row key
5335   - timestamp: timestamp
5336   - attributes: Get attributes
5337  """
5338
5339  thrift_spec = (
5340    None, # 0
5341    (1, TType.STRING, 'tableName', None, None, ), # 1
5342    (2, TType.STRING, 'row', None, None, ), # 2
5343    (3, TType.I64, 'timestamp', None, None, ), # 3
5344    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
5345  )
5346
5347  def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
5348    self.tableName = tableName
5349    self.row = row
5350    self.timestamp = timestamp
5351    self.attributes = attributes
5352
5353  def read(self, iprot):
5354    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5355      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5356      return
5357    iprot.readStructBegin()
5358    while True:
5359      (fname, ftype, fid) = iprot.readFieldBegin()
5360      if ftype == TType.STOP:
5361        break
5362      if fid == 1:
5363        if ftype == TType.STRING:
5364          self.tableName = iprot.readString();
5365        else:
5366          iprot.skip(ftype)
5367      elif fid == 2:
5368        if ftype == TType.STRING:
5369          self.row = iprot.readString();
5370        else:
5371          iprot.skip(ftype)
5372      elif fid == 3:
5373        if ftype == TType.I64:
5374          self.timestamp = iprot.readI64();
5375        else:
5376          iprot.skip(ftype)
5377      elif fid == 4:
5378        if ftype == TType.MAP:
5379          self.attributes = {}
5380          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin()
5381          for _i144 in xrange(_size140):
5382            _key145 = iprot.readString();
5383            _val146 = iprot.readString();
5384            self.attributes[_key145] = _val146
5385          iprot.readMapEnd()
5386        else:
5387          iprot.skip(ftype)
5388      else:
5389        iprot.skip(ftype)
5390      iprot.readFieldEnd()
5391    iprot.readStructEnd()
5392
5393  def write(self, oprot):
5394    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5395      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5396      return
5397    oprot.writeStructBegin('getRowTs_args')
5398    if self.tableName is not None:
5399      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5400      oprot.writeString(self.tableName)
5401      oprot.writeFieldEnd()
5402    if self.row is not None:
5403      oprot.writeFieldBegin('row', TType.STRING, 2)
5404      oprot.writeString(self.row)
5405      oprot.writeFieldEnd()
5406    if self.timestamp is not None:
5407      oprot.writeFieldBegin('timestamp', TType.I64, 3)
5408      oprot.writeI64(self.timestamp)
5409      oprot.writeFieldEnd()
5410    if self.attributes is not None:
5411      oprot.writeFieldBegin('attributes', TType.MAP, 4)
5412      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
5413      for kiter147,viter148 in self.attributes.items():
5414        oprot.writeString(kiter147)
5415        oprot.writeString(viter148)
5416      oprot.writeMapEnd()
5417      oprot.writeFieldEnd()
5418    oprot.writeFieldStop()
5419    oprot.writeStructEnd()
5420
5421  def validate(self):
5422    return
5423
5424
5425  def __repr__(self):
5426    L = ['%s=%r' % (key, value)
5427      for key, value in self.__dict__.iteritems()]
5428    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5429
5430  def __eq__(self, other):
5431    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5432
5433  def __ne__(self, other):
5434    return not (self == other)
5435
5436class getRowTs_result:
5437  """
5438  Attributes:
5439   - success
5440   - io
5441  """
5442
5443  thrift_spec = (
5444    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
5445    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
5446  )
5447
5448  def __init__(self, success=None, io=None,):
5449    self.success = success
5450    self.io = io
5451
5452  def read(self, iprot):
5453    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5454      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5455      return
5456    iprot.readStructBegin()
5457    while True:
5458      (fname, ftype, fid) = iprot.readFieldBegin()
5459      if ftype == TType.STOP:
5460        break
5461      if fid == 0:
5462        if ftype == TType.LIST:
5463          self.success = []
5464          (_etype152, _size149) = iprot.readListBegin()
5465          for _i153 in xrange(_size149):
5466            _elem154 = TRowResult()
5467            _elem154.read(iprot)
5468            self.success.append(_elem154)
5469          iprot.readListEnd()
5470        else:
5471          iprot.skip(ftype)
5472      elif fid == 1:
5473        if ftype == TType.STRUCT:
5474          self.io = IOError()
5475          self.io.read(iprot)
5476        else:
5477          iprot.skip(ftype)
5478      else:
5479        iprot.skip(ftype)
5480      iprot.readFieldEnd()
5481    iprot.readStructEnd()
5482
5483  def write(self, oprot):
5484    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5485      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5486      return
5487    oprot.writeStructBegin('getRowTs_result')
5488    if self.success is not None:
5489      oprot.writeFieldBegin('success', TType.LIST, 0)
5490      oprot.writeListBegin(TType.STRUCT, len(self.success))
5491      for iter155 in self.success:
5492        iter155.write(oprot)
5493      oprot.writeListEnd()
5494      oprot.writeFieldEnd()
5495    if self.io is not None:
5496      oprot.writeFieldBegin('io', TType.STRUCT, 1)
5497      self.io.write(oprot)
5498      oprot.writeFieldEnd()
5499    oprot.writeFieldStop()
5500    oprot.writeStructEnd()
5501
5502  def validate(self):
5503    return
5504
5505
5506  def __repr__(self):
5507    L = ['%s=%r' % (key, value)
5508      for key, value in self.__dict__.iteritems()]
5509    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5510
5511  def __eq__(self, other):
5512    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5513
5514  def __ne__(self, other):
5515    return not (self == other)
5516
5517class getRowWithColumnsTs_args:
5518  """
5519  Attributes:
5520   - tableName: name of table
5521   - row: row key
5522   - columns: List of columns to return, null for all columns
5523   - timestamp
5524   - attributes: Get attributes
5525  """
5526
5527  thrift_spec = (
5528    None, # 0
5529    (1, TType.STRING, 'tableName', None, None, ), # 1
5530    (2, TType.STRING, 'row', None, None, ), # 2
5531    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
5532    (4, TType.I64, 'timestamp', None, None, ), # 4
5533    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
5534  )
5535
5536  def __init__(self, tableName=None, row=None, columns=None, timestamp=None, attributes=None,):
5537    self.tableName = tableName
5538    self.row = row
5539    self.columns = columns
5540    self.timestamp = timestamp
5541    self.attributes = attributes
5542
5543  def read(self, iprot):
5544    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5545      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5546      return
5547    iprot.readStructBegin()
5548    while True:
5549      (fname, ftype, fid) = iprot.readFieldBegin()
5550      if ftype == TType.STOP:
5551        break
5552      if fid == 1:
5553        if ftype == TType.STRING:
5554          self.tableName = iprot.readString();
5555        else:
5556          iprot.skip(ftype)
5557      elif fid == 2:
5558        if ftype == TType.STRING:
5559          self.row = iprot.readString();
5560        else:
5561          iprot.skip(ftype)
5562      elif fid == 3:
5563        if ftype == TType.LIST:
5564          self.columns = []
5565          (_etype159, _size156) = iprot.readListBegin()
5566          for _i160 in xrange(_size156):
5567            _elem161 = iprot.readString();
5568            self.columns.append(_elem161)
5569          iprot.readListEnd()
5570        else:
5571          iprot.skip(ftype)
5572      elif fid == 4:
5573        if ftype == TType.I64:
5574          self.timestamp = iprot.readI64();
5575        else:
5576          iprot.skip(ftype)
5577      elif fid == 5:
5578        if ftype == TType.MAP:
5579          self.attributes = {}
5580          (_ktype163, _vtype164, _size162 ) = iprot.readMapBegin()
5581          for _i166 in xrange(_size162):
5582            _key167 = iprot.readString();
5583            _val168 = iprot.readString();
5584            self.attributes[_key167] = _val168
5585          iprot.readMapEnd()
5586        else:
5587          iprot.skip(ftype)
5588      else:
5589        iprot.skip(ftype)
5590      iprot.readFieldEnd()
5591    iprot.readStructEnd()
5592
5593  def write(self, oprot):
5594    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5595      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5596      return
5597    oprot.writeStructBegin('getRowWithColumnsTs_args')
5598    if self.tableName is not None:
5599      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5600      oprot.writeString(self.tableName)
5601      oprot.writeFieldEnd()
5602    if self.row is not None:
5603      oprot.writeFieldBegin('row', TType.STRING, 2)
5604      oprot.writeString(self.row)
5605      oprot.writeFieldEnd()
5606    if self.columns is not None:
5607      oprot.writeFieldBegin('columns', TType.LIST, 3)
5608      oprot.writeListBegin(TType.STRING, len(self.columns))
5609      for iter169 in self.columns:
5610        oprot.writeString(iter169)
5611      oprot.writeListEnd()
5612      oprot.writeFieldEnd()
5613    if self.timestamp is not None:
5614      oprot.writeFieldBegin('timestamp', TType.I64, 4)
5615      oprot.writeI64(self.timestamp)
5616      oprot.writeFieldEnd()
5617    if self.attributes is not None:
5618      oprot.writeFieldBegin('attributes', TType.MAP, 5)
5619      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
5620      for kiter170,viter171 in self.attributes.items():
5621        oprot.writeString(kiter170)
5622        oprot.writeString(viter171)
5623      oprot.writeMapEnd()
5624      oprot.writeFieldEnd()
5625    oprot.writeFieldStop()
5626    oprot.writeStructEnd()
5627
5628  def validate(self):
5629    return
5630
5631
5632  def __repr__(self):
5633    L = ['%s=%r' % (key, value)
5634      for key, value in self.__dict__.iteritems()]
5635    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5636
5637  def __eq__(self, other):
5638    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5639
5640  def __ne__(self, other):
5641    return not (self == other)
5642
5643class getRowWithColumnsTs_result:
5644  """
5645  Attributes:
5646   - success
5647   - io
5648  """
5649
5650  thrift_spec = (
5651    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
5652    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
5653  )
5654
5655  def __init__(self, success=None, io=None,):
5656    self.success = success
5657    self.io = io
5658
5659  def read(self, iprot):
5660    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5661      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5662      return
5663    iprot.readStructBegin()
5664    while True:
5665      (fname, ftype, fid) = iprot.readFieldBegin()
5666      if ftype == TType.STOP:
5667        break
5668      if fid == 0:
5669        if ftype == TType.LIST:
5670          self.success = []
5671          (_etype175, _size172) = iprot.readListBegin()
5672          for _i176 in xrange(_size172):
5673            _elem177 = TRowResult()
5674            _elem177.read(iprot)
5675            self.success.append(_elem177)
5676          iprot.readListEnd()
5677        else:
5678          iprot.skip(ftype)
5679      elif fid == 1:
5680        if ftype == TType.STRUCT:
5681          self.io = IOError()
5682          self.io.read(iprot)
5683        else:
5684          iprot.skip(ftype)
5685      else:
5686        iprot.skip(ftype)
5687      iprot.readFieldEnd()
5688    iprot.readStructEnd()
5689
5690  def write(self, oprot):
5691    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5692      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5693      return
5694    oprot.writeStructBegin('getRowWithColumnsTs_result')
5695    if self.success is not None:
5696      oprot.writeFieldBegin('success', TType.LIST, 0)
5697      oprot.writeListBegin(TType.STRUCT, len(self.success))
5698      for iter178 in self.success:
5699        iter178.write(oprot)
5700      oprot.writeListEnd()
5701      oprot.writeFieldEnd()
5702    if self.io is not None:
5703      oprot.writeFieldBegin('io', TType.STRUCT, 1)
5704      self.io.write(oprot)
5705      oprot.writeFieldEnd()
5706    oprot.writeFieldStop()
5707    oprot.writeStructEnd()
5708
5709  def validate(self):
5710    return
5711
5712
5713  def __repr__(self):
5714    L = ['%s=%r' % (key, value)
5715      for key, value in self.__dict__.iteritems()]
5716    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5717
5718  def __eq__(self, other):
5719    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5720
5721  def __ne__(self, other):
5722    return not (self == other)
5723
5724class getRows_args:
5725  """
5726  Attributes:
5727   - tableName: name of table
5728   - rows: row keys
5729   - attributes: Get attributes
5730  """
5731
5732  thrift_spec = (
5733    None, # 0
5734    (1, TType.STRING, 'tableName', None, None, ), # 1
5735    (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
5736    (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
5737  )
5738
5739  def __init__(self, tableName=None, rows=None, attributes=None,):
5740    self.tableName = tableName
5741    self.rows = rows
5742    self.attributes = attributes
5743
5744  def read(self, iprot):
5745    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5746      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5747      return
5748    iprot.readStructBegin()
5749    while True:
5750      (fname, ftype, fid) = iprot.readFieldBegin()
5751      if ftype == TType.STOP:
5752        break
5753      if fid == 1:
5754        if ftype == TType.STRING:
5755          self.tableName = iprot.readString();
5756        else:
5757          iprot.skip(ftype)
5758      elif fid == 2:
5759        if ftype == TType.LIST:
5760          self.rows = []
5761          (_etype182, _size179) = iprot.readListBegin()
5762          for _i183 in xrange(_size179):
5763            _elem184 = iprot.readString();
5764            self.rows.append(_elem184)
5765          iprot.readListEnd()
5766        else:
5767          iprot.skip(ftype)
5768      elif fid == 3:
5769        if ftype == TType.MAP:
5770          self.attributes = {}
5771          (_ktype186, _vtype187, _size185 ) = iprot.readMapBegin()
5772          for _i189 in xrange(_size185):
5773            _key190 = iprot.readString();
5774            _val191 = iprot.readString();
5775            self.attributes[_key190] = _val191
5776          iprot.readMapEnd()
5777        else:
5778          iprot.skip(ftype)
5779      else:
5780        iprot.skip(ftype)
5781      iprot.readFieldEnd()
5782    iprot.readStructEnd()
5783
5784  def write(self, oprot):
5785    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5786      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5787      return
5788    oprot.writeStructBegin('getRows_args')
5789    if self.tableName is not None:
5790      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5791      oprot.writeString(self.tableName)
5792      oprot.writeFieldEnd()
5793    if self.rows is not None:
5794      oprot.writeFieldBegin('rows', TType.LIST, 2)
5795      oprot.writeListBegin(TType.STRING, len(self.rows))
5796      for iter192 in self.rows:
5797        oprot.writeString(iter192)
5798      oprot.writeListEnd()
5799      oprot.writeFieldEnd()
5800    if self.attributes is not None:
5801      oprot.writeFieldBegin('attributes', TType.MAP, 3)
5802      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
5803      for kiter193,viter194 in self.attributes.items():
5804        oprot.writeString(kiter193)
5805        oprot.writeString(viter194)
5806      oprot.writeMapEnd()
5807      oprot.writeFieldEnd()
5808    oprot.writeFieldStop()
5809    oprot.writeStructEnd()
5810
5811  def validate(self):
5812    return
5813
5814
5815  def __repr__(self):
5816    L = ['%s=%r' % (key, value)
5817      for key, value in self.__dict__.iteritems()]
5818    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5819
5820  def __eq__(self, other):
5821    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5822
5823  def __ne__(self, other):
5824    return not (self == other)
5825
5826class getRows_result:
5827  """
5828  Attributes:
5829   - success
5830   - io
5831  """
5832
5833  thrift_spec = (
5834    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
5835    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
5836  )
5837
5838  def __init__(self, success=None, io=None,):
5839    self.success = success
5840    self.io = io
5841
5842  def read(self, iprot):
5843    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5844      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5845      return
5846    iprot.readStructBegin()
5847    while True:
5848      (fname, ftype, fid) = iprot.readFieldBegin()
5849      if ftype == TType.STOP:
5850        break
5851      if fid == 0:
5852        if ftype == TType.LIST:
5853          self.success = []
5854          (_etype198, _size195) = iprot.readListBegin()
5855          for _i199 in xrange(_size195):
5856            _elem200 = TRowResult()
5857            _elem200.read(iprot)
5858            self.success.append(_elem200)
5859          iprot.readListEnd()
5860        else:
5861          iprot.skip(ftype)
5862      elif fid == 1:
5863        if ftype == TType.STRUCT:
5864          self.io = IOError()
5865          self.io.read(iprot)
5866        else:
5867          iprot.skip(ftype)
5868      else:
5869        iprot.skip(ftype)
5870      iprot.readFieldEnd()
5871    iprot.readStructEnd()
5872
5873  def write(self, oprot):
5874    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5875      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5876      return
5877    oprot.writeStructBegin('getRows_result')
5878    if self.success is not None:
5879      oprot.writeFieldBegin('success', TType.LIST, 0)
5880      oprot.writeListBegin(TType.STRUCT, len(self.success))
5881      for iter201 in self.success:
5882        iter201.write(oprot)
5883      oprot.writeListEnd()
5884      oprot.writeFieldEnd()
5885    if self.io is not None:
5886      oprot.writeFieldBegin('io', TType.STRUCT, 1)
5887      self.io.write(oprot)
5888      oprot.writeFieldEnd()
5889    oprot.writeFieldStop()
5890    oprot.writeStructEnd()
5891
5892  def validate(self):
5893    return
5894
5895
5896  def __repr__(self):
5897    L = ['%s=%r' % (key, value)
5898      for key, value in self.__dict__.iteritems()]
5899    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5900
5901  def __eq__(self, other):
5902    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5903
5904  def __ne__(self, other):
5905    return not (self == other)
5906
5907class getRowsWithColumns_args:
5908  """
5909  Attributes:
5910   - tableName: name of table
5911   - rows: row keys
5912   - columns: List of columns to return, null for all columns
5913   - attributes: Get attributes
5914  """
5915
5916  thrift_spec = (
5917    None, # 0
5918    (1, TType.STRING, 'tableName', None, None, ), # 1
5919    (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
5920    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
5921    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
5922  )
5923
5924  def __init__(self, tableName=None, rows=None, columns=None, attributes=None,):
5925    self.tableName = tableName
5926    self.rows = rows
5927    self.columns = columns
5928    self.attributes = attributes
5929
5930  def read(self, iprot):
5931    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5932      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5933      return
5934    iprot.readStructBegin()
5935    while True:
5936      (fname, ftype, fid) = iprot.readFieldBegin()
5937      if ftype == TType.STOP:
5938        break
5939      if fid == 1:
5940        if ftype == TType.STRING:
5941          self.tableName = iprot.readString();
5942        else:
5943          iprot.skip(ftype)
5944      elif fid == 2:
5945        if ftype == TType.LIST:
5946          self.rows = []
5947          (_etype205, _size202) = iprot.readListBegin()
5948          for _i206 in xrange(_size202):
5949            _elem207 = iprot.readString();
5950            self.rows.append(_elem207)
5951          iprot.readListEnd()
5952        else:
5953          iprot.skip(ftype)
5954      elif fid == 3:
5955        if ftype == TType.LIST:
5956          self.columns = []
5957          (_etype211, _size208) = iprot.readListBegin()
5958          for _i212 in xrange(_size208):
5959            _elem213 = iprot.readString();
5960            self.columns.append(_elem213)
5961          iprot.readListEnd()
5962        else:
5963          iprot.skip(ftype)
5964      elif fid == 4:
5965        if ftype == TType.MAP:
5966          self.attributes = {}
5967          (_ktype215, _vtype216, _size214 ) = iprot.readMapBegin()
5968          for _i218 in xrange(_size214):
5969            _key219 = iprot.readString();
5970            _val220 = iprot.readString();
5971            self.attributes[_key219] = _val220
5972          iprot.readMapEnd()
5973        else:
5974          iprot.skip(ftype)
5975      else:
5976        iprot.skip(ftype)
5977      iprot.readFieldEnd()
5978    iprot.readStructEnd()
5979
5980  def write(self, oprot):
5981    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5982      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5983      return
5984    oprot.writeStructBegin('getRowsWithColumns_args')
5985    if self.tableName is not None:
5986      oprot.writeFieldBegin('tableName', TType.STRING, 1)
5987      oprot.writeString(self.tableName)
5988      oprot.writeFieldEnd()
5989    if self.rows is not None:
5990      oprot.writeFieldBegin('rows', TType.LIST, 2)
5991      oprot.writeListBegin(TType.STRING, len(self.rows))
5992      for iter221 in self.rows:
5993        oprot.writeString(iter221)
5994      oprot.writeListEnd()
5995      oprot.writeFieldEnd()
5996    if self.columns is not None:
5997      oprot.writeFieldBegin('columns', TType.LIST, 3)
5998      oprot.writeListBegin(TType.STRING, len(self.columns))
5999      for iter222 in self.columns:
6000        oprot.writeString(iter222)
6001      oprot.writeListEnd()
6002      oprot.writeFieldEnd()
6003    if self.attributes is not None:
6004      oprot.writeFieldBegin('attributes', TType.MAP, 4)
6005      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6006      for kiter223,viter224 in self.attributes.items():
6007        oprot.writeString(kiter223)
6008        oprot.writeString(viter224)
6009      oprot.writeMapEnd()
6010      oprot.writeFieldEnd()
6011    oprot.writeFieldStop()
6012    oprot.writeStructEnd()
6013
6014  def validate(self):
6015    return
6016
6017
6018  def __repr__(self):
6019    L = ['%s=%r' % (key, value)
6020      for key, value in self.__dict__.iteritems()]
6021    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6022
6023  def __eq__(self, other):
6024    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6025
6026  def __ne__(self, other):
6027    return not (self == other)
6028
6029class getRowsWithColumns_result:
6030  """
6031  Attributes:
6032   - success
6033   - io
6034  """
6035
6036  thrift_spec = (
6037    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
6038    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
6039  )
6040
6041  def __init__(self, success=None, io=None,):
6042    self.success = success
6043    self.io = io
6044
6045  def read(self, iprot):
6046    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6047      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6048      return
6049    iprot.readStructBegin()
6050    while True:
6051      (fname, ftype, fid) = iprot.readFieldBegin()
6052      if ftype == TType.STOP:
6053        break
6054      if fid == 0:
6055        if ftype == TType.LIST:
6056          self.success = []
6057          (_etype228, _size225) = iprot.readListBegin()
6058          for _i229 in xrange(_size225):
6059            _elem230 = TRowResult()
6060            _elem230.read(iprot)
6061            self.success.append(_elem230)
6062          iprot.readListEnd()
6063        else:
6064          iprot.skip(ftype)
6065      elif fid == 1:
6066        if ftype == TType.STRUCT:
6067          self.io = IOError()
6068          self.io.read(iprot)
6069        else:
6070          iprot.skip(ftype)
6071      else:
6072        iprot.skip(ftype)
6073      iprot.readFieldEnd()
6074    iprot.readStructEnd()
6075
6076  def write(self, oprot):
6077    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6078      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6079      return
6080    oprot.writeStructBegin('getRowsWithColumns_result')
6081    if self.success is not None:
6082      oprot.writeFieldBegin('success', TType.LIST, 0)
6083      oprot.writeListBegin(TType.STRUCT, len(self.success))
6084      for iter231 in self.success:
6085        iter231.write(oprot)
6086      oprot.writeListEnd()
6087      oprot.writeFieldEnd()
6088    if self.io is not None:
6089      oprot.writeFieldBegin('io', TType.STRUCT, 1)
6090      self.io.write(oprot)
6091      oprot.writeFieldEnd()
6092    oprot.writeFieldStop()
6093    oprot.writeStructEnd()
6094
6095  def validate(self):
6096    return
6097
6098
6099  def __repr__(self):
6100    L = ['%s=%r' % (key, value)
6101      for key, value in self.__dict__.iteritems()]
6102    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6103
6104  def __eq__(self, other):
6105    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6106
6107  def __ne__(self, other):
6108    return not (self == other)
6109
6110class getRowsTs_args:
6111  """
6112  Attributes:
6113   - tableName: name of the table
6114   - rows: row keys
6115   - timestamp: timestamp
6116   - attributes: Get attributes
6117  """
6118
6119  thrift_spec = (
6120    None, # 0
6121    (1, TType.STRING, 'tableName', None, None, ), # 1
6122    (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
6123    (3, TType.I64, 'timestamp', None, None, ), # 3
6124    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
6125  )
6126
6127  def __init__(self, tableName=None, rows=None, timestamp=None, attributes=None,):
6128    self.tableName = tableName
6129    self.rows = rows
6130    self.timestamp = timestamp
6131    self.attributes = attributes
6132
6133  def read(self, iprot):
6134    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6135      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6136      return
6137    iprot.readStructBegin()
6138    while True:
6139      (fname, ftype, fid) = iprot.readFieldBegin()
6140      if ftype == TType.STOP:
6141        break
6142      if fid == 1:
6143        if ftype == TType.STRING:
6144          self.tableName = iprot.readString();
6145        else:
6146          iprot.skip(ftype)
6147      elif fid == 2:
6148        if ftype == TType.LIST:
6149          self.rows = []
6150          (_etype235, _size232) = iprot.readListBegin()
6151          for _i236 in xrange(_size232):
6152            _elem237 = iprot.readString();
6153            self.rows.append(_elem237)
6154          iprot.readListEnd()
6155        else:
6156          iprot.skip(ftype)
6157      elif fid == 3:
6158        if ftype == TType.I64:
6159          self.timestamp = iprot.readI64();
6160        else:
6161          iprot.skip(ftype)
6162      elif fid == 4:
6163        if ftype == TType.MAP:
6164          self.attributes = {}
6165          (_ktype239, _vtype240, _size238 ) = iprot.readMapBegin()
6166          for _i242 in xrange(_size238):
6167            _key243 = iprot.readString();
6168            _val244 = iprot.readString();
6169            self.attributes[_key243] = _val244
6170          iprot.readMapEnd()
6171        else:
6172          iprot.skip(ftype)
6173      else:
6174        iprot.skip(ftype)
6175      iprot.readFieldEnd()
6176    iprot.readStructEnd()
6177
6178  def write(self, oprot):
6179    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6180      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6181      return
6182    oprot.writeStructBegin('getRowsTs_args')
6183    if self.tableName is not None:
6184      oprot.writeFieldBegin('tableName', TType.STRING, 1)
6185      oprot.writeString(self.tableName)
6186      oprot.writeFieldEnd()
6187    if self.rows is not None:
6188      oprot.writeFieldBegin('rows', TType.LIST, 2)
6189      oprot.writeListBegin(TType.STRING, len(self.rows))
6190      for iter245 in self.rows:
6191        oprot.writeString(iter245)
6192      oprot.writeListEnd()
6193      oprot.writeFieldEnd()
6194    if self.timestamp is not None:
6195      oprot.writeFieldBegin('timestamp', TType.I64, 3)
6196      oprot.writeI64(self.timestamp)
6197      oprot.writeFieldEnd()
6198    if self.attributes is not None:
6199      oprot.writeFieldBegin('attributes', TType.MAP, 4)
6200      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6201      for kiter246,viter247 in self.attributes.items():
6202        oprot.writeString(kiter246)
6203        oprot.writeString(viter247)
6204      oprot.writeMapEnd()
6205      oprot.writeFieldEnd()
6206    oprot.writeFieldStop()
6207    oprot.writeStructEnd()
6208
6209  def validate(self):
6210    return
6211
6212
6213  def __repr__(self):
6214    L = ['%s=%r' % (key, value)
6215      for key, value in self.__dict__.iteritems()]
6216    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6217
6218  def __eq__(self, other):
6219    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6220
6221  def __ne__(self, other):
6222    return not (self == other)
6223
6224class getRowsTs_result:
6225  """
6226  Attributes:
6227   - success
6228   - io
6229  """
6230
6231  thrift_spec = (
6232    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
6233    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
6234  )
6235
6236  def __init__(self, success=None, io=None,):
6237    self.success = success
6238    self.io = io
6239
6240  def read(self, iprot):
6241    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6242      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6243      return
6244    iprot.readStructBegin()
6245    while True:
6246      (fname, ftype, fid) = iprot.readFieldBegin()
6247      if ftype == TType.STOP:
6248        break
6249      if fid == 0:
6250        if ftype == TType.LIST:
6251          self.success = []
6252          (_etype251, _size248) = iprot.readListBegin()
6253          for _i252 in xrange(_size248):
6254            _elem253 = TRowResult()
6255            _elem253.read(iprot)
6256            self.success.append(_elem253)
6257          iprot.readListEnd()
6258        else:
6259          iprot.skip(ftype)
6260      elif fid == 1:
6261        if ftype == TType.STRUCT:
6262          self.io = IOError()
6263          self.io.read(iprot)
6264        else:
6265          iprot.skip(ftype)
6266      else:
6267        iprot.skip(ftype)
6268      iprot.readFieldEnd()
6269    iprot.readStructEnd()
6270
6271  def write(self, oprot):
6272    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6273      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6274      return
6275    oprot.writeStructBegin('getRowsTs_result')
6276    if self.success is not None:
6277      oprot.writeFieldBegin('success', TType.LIST, 0)
6278      oprot.writeListBegin(TType.STRUCT, len(self.success))
6279      for iter254 in self.success:
6280        iter254.write(oprot)
6281      oprot.writeListEnd()
6282      oprot.writeFieldEnd()
6283    if self.io is not None:
6284      oprot.writeFieldBegin('io', TType.STRUCT, 1)
6285      self.io.write(oprot)
6286      oprot.writeFieldEnd()
6287    oprot.writeFieldStop()
6288    oprot.writeStructEnd()
6289
6290  def validate(self):
6291    return
6292
6293
6294  def __repr__(self):
6295    L = ['%s=%r' % (key, value)
6296      for key, value in self.__dict__.iteritems()]
6297    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6298
6299  def __eq__(self, other):
6300    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6301
6302  def __ne__(self, other):
6303    return not (self == other)
6304
6305class getRowsWithColumnsTs_args:
6306  """
6307  Attributes:
6308   - tableName: name of table
6309   - rows: row keys
6310   - columns: List of columns to return, null for all columns
6311   - timestamp
6312   - attributes: Get attributes
6313  """
6314
6315  thrift_spec = (
6316    None, # 0
6317    (1, TType.STRING, 'tableName', None, None, ), # 1
6318    (2, TType.LIST, 'rows', (TType.STRING,None), None, ), # 2
6319    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
6320    (4, TType.I64, 'timestamp', None, None, ), # 4
6321    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
6322  )
6323
6324  def __init__(self, tableName=None, rows=None, columns=None, timestamp=None, attributes=None,):
6325    self.tableName = tableName
6326    self.rows = rows
6327    self.columns = columns
6328    self.timestamp = timestamp
6329    self.attributes = attributes
6330
6331  def read(self, iprot):
6332    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6333      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6334      return
6335    iprot.readStructBegin()
6336    while True:
6337      (fname, ftype, fid) = iprot.readFieldBegin()
6338      if ftype == TType.STOP:
6339        break
6340      if fid == 1:
6341        if ftype == TType.STRING:
6342          self.tableName = iprot.readString();
6343        else:
6344          iprot.skip(ftype)
6345      elif fid == 2:
6346        if ftype == TType.LIST:
6347          self.rows = []
6348          (_etype258, _size255) = iprot.readListBegin()
6349          for _i259 in xrange(_size255):
6350            _elem260 = iprot.readString();
6351            self.rows.append(_elem260)
6352          iprot.readListEnd()
6353        else:
6354          iprot.skip(ftype)
6355      elif fid == 3:
6356        if ftype == TType.LIST:
6357          self.columns = []
6358          (_etype264, _size261) = iprot.readListBegin()
6359          for _i265 in xrange(_size261):
6360            _elem266 = iprot.readString();
6361            self.columns.append(_elem266)
6362          iprot.readListEnd()
6363        else:
6364          iprot.skip(ftype)
6365      elif fid == 4:
6366        if ftype == TType.I64:
6367          self.timestamp = iprot.readI64();
6368        else:
6369          iprot.skip(ftype)
6370      elif fid == 5:
6371        if ftype == TType.MAP:
6372          self.attributes = {}
6373          (_ktype268, _vtype269, _size267 ) = iprot.readMapBegin()
6374          for _i271 in xrange(_size267):
6375            _key272 = iprot.readString();
6376            _val273 = iprot.readString();
6377            self.attributes[_key272] = _val273
6378          iprot.readMapEnd()
6379        else:
6380          iprot.skip(ftype)
6381      else:
6382        iprot.skip(ftype)
6383      iprot.readFieldEnd()
6384    iprot.readStructEnd()
6385
6386  def write(self, oprot):
6387    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6388      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6389      return
6390    oprot.writeStructBegin('getRowsWithColumnsTs_args')
6391    if self.tableName is not None:
6392      oprot.writeFieldBegin('tableName', TType.STRING, 1)
6393      oprot.writeString(self.tableName)
6394      oprot.writeFieldEnd()
6395    if self.rows is not None:
6396      oprot.writeFieldBegin('rows', TType.LIST, 2)
6397      oprot.writeListBegin(TType.STRING, len(self.rows))
6398      for iter274 in self.rows:
6399        oprot.writeString(iter274)
6400      oprot.writeListEnd()
6401      oprot.writeFieldEnd()
6402    if self.columns is not None:
6403      oprot.writeFieldBegin('columns', TType.LIST, 3)
6404      oprot.writeListBegin(TType.STRING, len(self.columns))
6405      for iter275 in self.columns:
6406        oprot.writeString(iter275)
6407      oprot.writeListEnd()
6408      oprot.writeFieldEnd()
6409    if self.timestamp is not None:
6410      oprot.writeFieldBegin('timestamp', TType.I64, 4)
6411      oprot.writeI64(self.timestamp)
6412      oprot.writeFieldEnd()
6413    if self.attributes is not None:
6414      oprot.writeFieldBegin('attributes', TType.MAP, 5)
6415      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6416      for kiter276,viter277 in self.attributes.items():
6417        oprot.writeString(kiter276)
6418        oprot.writeString(viter277)
6419      oprot.writeMapEnd()
6420      oprot.writeFieldEnd()
6421    oprot.writeFieldStop()
6422    oprot.writeStructEnd()
6423
6424  def validate(self):
6425    return
6426
6427
6428  def __repr__(self):
6429    L = ['%s=%r' % (key, value)
6430      for key, value in self.__dict__.iteritems()]
6431    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6432
6433  def __eq__(self, other):
6434    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6435
6436  def __ne__(self, other):
6437    return not (self == other)
6438
6439class getRowsWithColumnsTs_result:
6440  """
6441  Attributes:
6442   - success
6443   - io
6444  """
6445
6446  thrift_spec = (
6447    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
6448    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
6449  )
6450
6451  def __init__(self, success=None, io=None,):
6452    self.success = success
6453    self.io = io
6454
6455  def read(self, iprot):
6456    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6457      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6458      return
6459    iprot.readStructBegin()
6460    while True:
6461      (fname, ftype, fid) = iprot.readFieldBegin()
6462      if ftype == TType.STOP:
6463        break
6464      if fid == 0:
6465        if ftype == TType.LIST:
6466          self.success = []
6467          (_etype281, _size278) = iprot.readListBegin()
6468          for _i282 in xrange(_size278):
6469            _elem283 = TRowResult()
6470            _elem283.read(iprot)
6471            self.success.append(_elem283)
6472          iprot.readListEnd()
6473        else:
6474          iprot.skip(ftype)
6475      elif fid == 1:
6476        if ftype == TType.STRUCT:
6477          self.io = IOError()
6478          self.io.read(iprot)
6479        else:
6480          iprot.skip(ftype)
6481      else:
6482        iprot.skip(ftype)
6483      iprot.readFieldEnd()
6484    iprot.readStructEnd()
6485
6486  def write(self, oprot):
6487    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6488      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6489      return
6490    oprot.writeStructBegin('getRowsWithColumnsTs_result')
6491    if self.success is not None:
6492      oprot.writeFieldBegin('success', TType.LIST, 0)
6493      oprot.writeListBegin(TType.STRUCT, len(self.success))
6494      for iter284 in self.success:
6495        iter284.write(oprot)
6496      oprot.writeListEnd()
6497      oprot.writeFieldEnd()
6498    if self.io is not None:
6499      oprot.writeFieldBegin('io', TType.STRUCT, 1)
6500      self.io.write(oprot)
6501      oprot.writeFieldEnd()
6502    oprot.writeFieldStop()
6503    oprot.writeStructEnd()
6504
6505  def validate(self):
6506    return
6507
6508
6509  def __repr__(self):
6510    L = ['%s=%r' % (key, value)
6511      for key, value in self.__dict__.iteritems()]
6512    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6513
6514  def __eq__(self, other):
6515    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6516
6517  def __ne__(self, other):
6518    return not (self == other)
6519
6520class mutateRow_args:
6521  """
6522  Attributes:
6523   - tableName: name of table
6524   - row: row key
6525   - mutations: list of mutation commands
6526   - attributes: Mutation attributes
6527  """
6528
6529  thrift_spec = (
6530    None, # 0
6531    (1, TType.STRING, 'tableName', None, None, ), # 1
6532    (2, TType.STRING, 'row', None, None, ), # 2
6533    (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
6534    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
6535  )
6536
6537  def __init__(self, tableName=None, row=None, mutations=None, attributes=None,):
6538    self.tableName = tableName
6539    self.row = row
6540    self.mutations = mutations
6541    self.attributes = attributes
6542
6543  def read(self, iprot):
6544    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6545      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6546      return
6547    iprot.readStructBegin()
6548    while True:
6549      (fname, ftype, fid) = iprot.readFieldBegin()
6550      if ftype == TType.STOP:
6551        break
6552      if fid == 1:
6553        if ftype == TType.STRING:
6554          self.tableName = iprot.readString();
6555        else:
6556          iprot.skip(ftype)
6557      elif fid == 2:
6558        if ftype == TType.STRING:
6559          self.row = iprot.readString();
6560        else:
6561          iprot.skip(ftype)
6562      elif fid == 3:
6563        if ftype == TType.LIST:
6564          self.mutations = []
6565          (_etype288, _size285) = iprot.readListBegin()
6566          for _i289 in xrange(_size285):
6567            _elem290 = Mutation()
6568            _elem290.read(iprot)
6569            self.mutations.append(_elem290)
6570          iprot.readListEnd()
6571        else:
6572          iprot.skip(ftype)
6573      elif fid == 4:
6574        if ftype == TType.MAP:
6575          self.attributes = {}
6576          (_ktype292, _vtype293, _size291 ) = iprot.readMapBegin()
6577          for _i295 in xrange(_size291):
6578            _key296 = iprot.readString();
6579            _val297 = iprot.readString();
6580            self.attributes[_key296] = _val297
6581          iprot.readMapEnd()
6582        else:
6583          iprot.skip(ftype)
6584      else:
6585        iprot.skip(ftype)
6586      iprot.readFieldEnd()
6587    iprot.readStructEnd()
6588
6589  def write(self, oprot):
6590    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6591      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6592      return
6593    oprot.writeStructBegin('mutateRow_args')
6594    if self.tableName is not None:
6595      oprot.writeFieldBegin('tableName', TType.STRING, 1)
6596      oprot.writeString(self.tableName)
6597      oprot.writeFieldEnd()
6598    if self.row is not None:
6599      oprot.writeFieldBegin('row', TType.STRING, 2)
6600      oprot.writeString(self.row)
6601      oprot.writeFieldEnd()
6602    if self.mutations is not None:
6603      oprot.writeFieldBegin('mutations', TType.LIST, 3)
6604      oprot.writeListBegin(TType.STRUCT, len(self.mutations))
6605      for iter298 in self.mutations:
6606        iter298.write(oprot)
6607      oprot.writeListEnd()
6608      oprot.writeFieldEnd()
6609    if self.attributes is not None:
6610      oprot.writeFieldBegin('attributes', TType.MAP, 4)
6611      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6612      for kiter299,viter300 in self.attributes.items():
6613        oprot.writeString(kiter299)
6614        oprot.writeString(viter300)
6615      oprot.writeMapEnd()
6616      oprot.writeFieldEnd()
6617    oprot.writeFieldStop()
6618    oprot.writeStructEnd()
6619
6620  def validate(self):
6621    return
6622
6623
6624  def __repr__(self):
6625    L = ['%s=%r' % (key, value)
6626      for key, value in self.__dict__.iteritems()]
6627    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6628
6629  def __eq__(self, other):
6630    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6631
6632  def __ne__(self, other):
6633    return not (self == other)
6634
6635class mutateRow_result:
6636  """
6637  Attributes:
6638   - io
6639   - ia
6640  """
6641
6642  thrift_spec = (
6643    None, # 0
6644    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
6645    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
6646  )
6647
6648  def __init__(self, io=None, ia=None,):
6649    self.io = io
6650    self.ia = ia
6651
6652  def read(self, iprot):
6653    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6654      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6655      return
6656    iprot.readStructBegin()
6657    while True:
6658      (fname, ftype, fid) = iprot.readFieldBegin()
6659      if ftype == TType.STOP:
6660        break
6661      if fid == 1:
6662        if ftype == TType.STRUCT:
6663          self.io = IOError()
6664          self.io.read(iprot)
6665        else:
6666          iprot.skip(ftype)
6667      elif fid == 2:
6668        if ftype == TType.STRUCT:
6669          self.ia = IllegalArgument()
6670          self.ia.read(iprot)
6671        else:
6672          iprot.skip(ftype)
6673      else:
6674        iprot.skip(ftype)
6675      iprot.readFieldEnd()
6676    iprot.readStructEnd()
6677
6678  def write(self, oprot):
6679    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6680      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6681      return
6682    oprot.writeStructBegin('mutateRow_result')
6683    if self.io is not None:
6684      oprot.writeFieldBegin('io', TType.STRUCT, 1)
6685      self.io.write(oprot)
6686      oprot.writeFieldEnd()
6687    if self.ia is not None:
6688      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
6689      self.ia.write(oprot)
6690      oprot.writeFieldEnd()
6691    oprot.writeFieldStop()
6692    oprot.writeStructEnd()
6693
6694  def validate(self):
6695    return
6696
6697
6698  def __repr__(self):
6699    L = ['%s=%r' % (key, value)
6700      for key, value in self.__dict__.iteritems()]
6701    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6702
6703  def __eq__(self, other):
6704    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6705
6706  def __ne__(self, other):
6707    return not (self == other)
6708
6709class mutateRowTs_args:
6710  """
6711  Attributes:
6712   - tableName: name of table
6713   - row: row key
6714   - mutations: list of mutation commands
6715   - timestamp: timestamp
6716   - attributes: Mutation attributes
6717  """
6718
6719  thrift_spec = (
6720    None, # 0
6721    (1, TType.STRING, 'tableName', None, None, ), # 1
6722    (2, TType.STRING, 'row', None, None, ), # 2
6723    (3, TType.LIST, 'mutations', (TType.STRUCT,(Mutation, Mutation.thrift_spec)), None, ), # 3
6724    (4, TType.I64, 'timestamp', None, None, ), # 4
6725    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
6726  )
6727
6728  def __init__(self, tableName=None, row=None, mutations=None, timestamp=None, attributes=None,):
6729    self.tableName = tableName
6730    self.row = row
6731    self.mutations = mutations
6732    self.timestamp = timestamp
6733    self.attributes = attributes
6734
6735  def read(self, iprot):
6736    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6737      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6738      return
6739    iprot.readStructBegin()
6740    while True:
6741      (fname, ftype, fid) = iprot.readFieldBegin()
6742      if ftype == TType.STOP:
6743        break
6744      if fid == 1:
6745        if ftype == TType.STRING:
6746          self.tableName = iprot.readString();
6747        else:
6748          iprot.skip(ftype)
6749      elif fid == 2:
6750        if ftype == TType.STRING:
6751          self.row = iprot.readString();
6752        else:
6753          iprot.skip(ftype)
6754      elif fid == 3:
6755        if ftype == TType.LIST:
6756          self.mutations = []
6757          (_etype304, _size301) = iprot.readListBegin()
6758          for _i305 in xrange(_size301):
6759            _elem306 = Mutation()
6760            _elem306.read(iprot)
6761            self.mutations.append(_elem306)
6762          iprot.readListEnd()
6763        else:
6764          iprot.skip(ftype)
6765      elif fid == 4:
6766        if ftype == TType.I64:
6767          self.timestamp = iprot.readI64();
6768        else:
6769          iprot.skip(ftype)
6770      elif fid == 5:
6771        if ftype == TType.MAP:
6772          self.attributes = {}
6773          (_ktype308, _vtype309, _size307 ) = iprot.readMapBegin()
6774          for _i311 in xrange(_size307):
6775            _key312 = iprot.readString();
6776            _val313 = iprot.readString();
6777            self.attributes[_key312] = _val313
6778          iprot.readMapEnd()
6779        else:
6780          iprot.skip(ftype)
6781      else:
6782        iprot.skip(ftype)
6783      iprot.readFieldEnd()
6784    iprot.readStructEnd()
6785
6786  def write(self, oprot):
6787    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6788      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6789      return
6790    oprot.writeStructBegin('mutateRowTs_args')
6791    if self.tableName is not None:
6792      oprot.writeFieldBegin('tableName', TType.STRING, 1)
6793      oprot.writeString(self.tableName)
6794      oprot.writeFieldEnd()
6795    if self.row is not None:
6796      oprot.writeFieldBegin('row', TType.STRING, 2)
6797      oprot.writeString(self.row)
6798      oprot.writeFieldEnd()
6799    if self.mutations is not None:
6800      oprot.writeFieldBegin('mutations', TType.LIST, 3)
6801      oprot.writeListBegin(TType.STRUCT, len(self.mutations))
6802      for iter314 in self.mutations:
6803        iter314.write(oprot)
6804      oprot.writeListEnd()
6805      oprot.writeFieldEnd()
6806    if self.timestamp is not None:
6807      oprot.writeFieldBegin('timestamp', TType.I64, 4)
6808      oprot.writeI64(self.timestamp)
6809      oprot.writeFieldEnd()
6810    if self.attributes is not None:
6811      oprot.writeFieldBegin('attributes', TType.MAP, 5)
6812      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6813      for kiter315,viter316 in self.attributes.items():
6814        oprot.writeString(kiter315)
6815        oprot.writeString(viter316)
6816      oprot.writeMapEnd()
6817      oprot.writeFieldEnd()
6818    oprot.writeFieldStop()
6819    oprot.writeStructEnd()
6820
6821  def validate(self):
6822    return
6823
6824
6825  def __repr__(self):
6826    L = ['%s=%r' % (key, value)
6827      for key, value in self.__dict__.iteritems()]
6828    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6829
6830  def __eq__(self, other):
6831    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6832
6833  def __ne__(self, other):
6834    return not (self == other)
6835
6836class mutateRowTs_result:
6837  """
6838  Attributes:
6839   - io
6840   - ia
6841  """
6842
6843  thrift_spec = (
6844    None, # 0
6845    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
6846    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
6847  )
6848
6849  def __init__(self, io=None, ia=None,):
6850    self.io = io
6851    self.ia = ia
6852
6853  def read(self, iprot):
6854    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6855      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6856      return
6857    iprot.readStructBegin()
6858    while True:
6859      (fname, ftype, fid) = iprot.readFieldBegin()
6860      if ftype == TType.STOP:
6861        break
6862      if fid == 1:
6863        if ftype == TType.STRUCT:
6864          self.io = IOError()
6865          self.io.read(iprot)
6866        else:
6867          iprot.skip(ftype)
6868      elif fid == 2:
6869        if ftype == TType.STRUCT:
6870          self.ia = IllegalArgument()
6871          self.ia.read(iprot)
6872        else:
6873          iprot.skip(ftype)
6874      else:
6875        iprot.skip(ftype)
6876      iprot.readFieldEnd()
6877    iprot.readStructEnd()
6878
6879  def write(self, oprot):
6880    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6881      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6882      return
6883    oprot.writeStructBegin('mutateRowTs_result')
6884    if self.io is not None:
6885      oprot.writeFieldBegin('io', TType.STRUCT, 1)
6886      self.io.write(oprot)
6887      oprot.writeFieldEnd()
6888    if self.ia is not None:
6889      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
6890      self.ia.write(oprot)
6891      oprot.writeFieldEnd()
6892    oprot.writeFieldStop()
6893    oprot.writeStructEnd()
6894
6895  def validate(self):
6896    return
6897
6898
6899  def __repr__(self):
6900    L = ['%s=%r' % (key, value)
6901      for key, value in self.__dict__.iteritems()]
6902    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6903
6904  def __eq__(self, other):
6905    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6906
6907  def __ne__(self, other):
6908    return not (self == other)
6909
6910class mutateRows_args:
6911  """
6912  Attributes:
6913   - tableName: name of table
6914   - rowBatches: list of row batches
6915   - attributes: Mutation attributes
6916  """
6917
6918  thrift_spec = (
6919    None, # 0
6920    (1, TType.STRING, 'tableName', None, None, ), # 1
6921    (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
6922    (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
6923  )
6924
6925  def __init__(self, tableName=None, rowBatches=None, attributes=None,):
6926    self.tableName = tableName
6927    self.rowBatches = rowBatches
6928    self.attributes = attributes
6929
6930  def read(self, iprot):
6931    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6932      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6933      return
6934    iprot.readStructBegin()
6935    while True:
6936      (fname, ftype, fid) = iprot.readFieldBegin()
6937      if ftype == TType.STOP:
6938        break
6939      if fid == 1:
6940        if ftype == TType.STRING:
6941          self.tableName = iprot.readString();
6942        else:
6943          iprot.skip(ftype)
6944      elif fid == 2:
6945        if ftype == TType.LIST:
6946          self.rowBatches = []
6947          (_etype320, _size317) = iprot.readListBegin()
6948          for _i321 in xrange(_size317):
6949            _elem322 = BatchMutation()
6950            _elem322.read(iprot)
6951            self.rowBatches.append(_elem322)
6952          iprot.readListEnd()
6953        else:
6954          iprot.skip(ftype)
6955      elif fid == 3:
6956        if ftype == TType.MAP:
6957          self.attributes = {}
6958          (_ktype324, _vtype325, _size323 ) = iprot.readMapBegin()
6959          for _i327 in xrange(_size323):
6960            _key328 = iprot.readString();
6961            _val329 = iprot.readString();
6962            self.attributes[_key328] = _val329
6963          iprot.readMapEnd()
6964        else:
6965          iprot.skip(ftype)
6966      else:
6967        iprot.skip(ftype)
6968      iprot.readFieldEnd()
6969    iprot.readStructEnd()
6970
6971  def write(self, oprot):
6972    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6973      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6974      return
6975    oprot.writeStructBegin('mutateRows_args')
6976    if self.tableName is not None:
6977      oprot.writeFieldBegin('tableName', TType.STRING, 1)
6978      oprot.writeString(self.tableName)
6979      oprot.writeFieldEnd()
6980    if self.rowBatches is not None:
6981      oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
6982      oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
6983      for iter330 in self.rowBatches:
6984        iter330.write(oprot)
6985      oprot.writeListEnd()
6986      oprot.writeFieldEnd()
6987    if self.attributes is not None:
6988      oprot.writeFieldBegin('attributes', TType.MAP, 3)
6989      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
6990      for kiter331,viter332 in self.attributes.items():
6991        oprot.writeString(kiter331)
6992        oprot.writeString(viter332)
6993      oprot.writeMapEnd()
6994      oprot.writeFieldEnd()
6995    oprot.writeFieldStop()
6996    oprot.writeStructEnd()
6997
6998  def validate(self):
6999    return
7000
7001
7002  def __repr__(self):
7003    L = ['%s=%r' % (key, value)
7004      for key, value in self.__dict__.iteritems()]
7005    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7006
7007  def __eq__(self, other):
7008    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7009
7010  def __ne__(self, other):
7011    return not (self == other)
7012
7013class mutateRows_result:
7014  """
7015  Attributes:
7016   - io
7017   - ia
7018  """
7019
7020  thrift_spec = (
7021    None, # 0
7022    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7023    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
7024  )
7025
7026  def __init__(self, io=None, ia=None,):
7027    self.io = io
7028    self.ia = ia
7029
7030  def read(self, iprot):
7031    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7032      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7033      return
7034    iprot.readStructBegin()
7035    while True:
7036      (fname, ftype, fid) = iprot.readFieldBegin()
7037      if ftype == TType.STOP:
7038        break
7039      if fid == 1:
7040        if ftype == TType.STRUCT:
7041          self.io = IOError()
7042          self.io.read(iprot)
7043        else:
7044          iprot.skip(ftype)
7045      elif fid == 2:
7046        if ftype == TType.STRUCT:
7047          self.ia = IllegalArgument()
7048          self.ia.read(iprot)
7049        else:
7050          iprot.skip(ftype)
7051      else:
7052        iprot.skip(ftype)
7053      iprot.readFieldEnd()
7054    iprot.readStructEnd()
7055
7056  def write(self, oprot):
7057    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7058      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7059      return
7060    oprot.writeStructBegin('mutateRows_result')
7061    if self.io is not None:
7062      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7063      self.io.write(oprot)
7064      oprot.writeFieldEnd()
7065    if self.ia is not None:
7066      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
7067      self.ia.write(oprot)
7068      oprot.writeFieldEnd()
7069    oprot.writeFieldStop()
7070    oprot.writeStructEnd()
7071
7072  def validate(self):
7073    return
7074
7075
7076  def __repr__(self):
7077    L = ['%s=%r' % (key, value)
7078      for key, value in self.__dict__.iteritems()]
7079    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7080
7081  def __eq__(self, other):
7082    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7083
7084  def __ne__(self, other):
7085    return not (self == other)
7086
7087class mutateRowsTs_args:
7088  """
7089  Attributes:
7090   - tableName: name of table
7091   - rowBatches: list of row batches
7092   - timestamp: timestamp
7093   - attributes: Mutation attributes
7094  """
7095
7096  thrift_spec = (
7097    None, # 0
7098    (1, TType.STRING, 'tableName', None, None, ), # 1
7099    (2, TType.LIST, 'rowBatches', (TType.STRUCT,(BatchMutation, BatchMutation.thrift_spec)), None, ), # 2
7100    (3, TType.I64, 'timestamp', None, None, ), # 3
7101    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
7102  )
7103
7104  def __init__(self, tableName=None, rowBatches=None, timestamp=None, attributes=None,):
7105    self.tableName = tableName
7106    self.rowBatches = rowBatches
7107    self.timestamp = timestamp
7108    self.attributes = attributes
7109
7110  def read(self, iprot):
7111    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7112      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7113      return
7114    iprot.readStructBegin()
7115    while True:
7116      (fname, ftype, fid) = iprot.readFieldBegin()
7117      if ftype == TType.STOP:
7118        break
7119      if fid == 1:
7120        if ftype == TType.STRING:
7121          self.tableName = iprot.readString();
7122        else:
7123          iprot.skip(ftype)
7124      elif fid == 2:
7125        if ftype == TType.LIST:
7126          self.rowBatches = []
7127          (_etype336, _size333) = iprot.readListBegin()
7128          for _i337 in xrange(_size333):
7129            _elem338 = BatchMutation()
7130            _elem338.read(iprot)
7131            self.rowBatches.append(_elem338)
7132          iprot.readListEnd()
7133        else:
7134          iprot.skip(ftype)
7135      elif fid == 3:
7136        if ftype == TType.I64:
7137          self.timestamp = iprot.readI64();
7138        else:
7139          iprot.skip(ftype)
7140      elif fid == 4:
7141        if ftype == TType.MAP:
7142          self.attributes = {}
7143          (_ktype340, _vtype341, _size339 ) = iprot.readMapBegin()
7144          for _i343 in xrange(_size339):
7145            _key344 = iprot.readString();
7146            _val345 = iprot.readString();
7147            self.attributes[_key344] = _val345
7148          iprot.readMapEnd()
7149        else:
7150          iprot.skip(ftype)
7151      else:
7152        iprot.skip(ftype)
7153      iprot.readFieldEnd()
7154    iprot.readStructEnd()
7155
7156  def write(self, oprot):
7157    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7158      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7159      return
7160    oprot.writeStructBegin('mutateRowsTs_args')
7161    if self.tableName is not None:
7162      oprot.writeFieldBegin('tableName', TType.STRING, 1)
7163      oprot.writeString(self.tableName)
7164      oprot.writeFieldEnd()
7165    if self.rowBatches is not None:
7166      oprot.writeFieldBegin('rowBatches', TType.LIST, 2)
7167      oprot.writeListBegin(TType.STRUCT, len(self.rowBatches))
7168      for iter346 in self.rowBatches:
7169        iter346.write(oprot)
7170      oprot.writeListEnd()
7171      oprot.writeFieldEnd()
7172    if self.timestamp is not None:
7173      oprot.writeFieldBegin('timestamp', TType.I64, 3)
7174      oprot.writeI64(self.timestamp)
7175      oprot.writeFieldEnd()
7176    if self.attributes is not None:
7177      oprot.writeFieldBegin('attributes', TType.MAP, 4)
7178      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
7179      for kiter347,viter348 in self.attributes.items():
7180        oprot.writeString(kiter347)
7181        oprot.writeString(viter348)
7182      oprot.writeMapEnd()
7183      oprot.writeFieldEnd()
7184    oprot.writeFieldStop()
7185    oprot.writeStructEnd()
7186
7187  def validate(self):
7188    return
7189
7190
7191  def __repr__(self):
7192    L = ['%s=%r' % (key, value)
7193      for key, value in self.__dict__.iteritems()]
7194    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7195
7196  def __eq__(self, other):
7197    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7198
7199  def __ne__(self, other):
7200    return not (self == other)
7201
7202class mutateRowsTs_result:
7203  """
7204  Attributes:
7205   - io
7206   - ia
7207  """
7208
7209  thrift_spec = (
7210    None, # 0
7211    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7212    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
7213  )
7214
7215  def __init__(self, io=None, ia=None,):
7216    self.io = io
7217    self.ia = ia
7218
7219  def read(self, iprot):
7220    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7221      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7222      return
7223    iprot.readStructBegin()
7224    while True:
7225      (fname, ftype, fid) = iprot.readFieldBegin()
7226      if ftype == TType.STOP:
7227        break
7228      if fid == 1:
7229        if ftype == TType.STRUCT:
7230          self.io = IOError()
7231          self.io.read(iprot)
7232        else:
7233          iprot.skip(ftype)
7234      elif fid == 2:
7235        if ftype == TType.STRUCT:
7236          self.ia = IllegalArgument()
7237          self.ia.read(iprot)
7238        else:
7239          iprot.skip(ftype)
7240      else:
7241        iprot.skip(ftype)
7242      iprot.readFieldEnd()
7243    iprot.readStructEnd()
7244
7245  def write(self, oprot):
7246    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7247      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7248      return
7249    oprot.writeStructBegin('mutateRowsTs_result')
7250    if self.io is not None:
7251      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7252      self.io.write(oprot)
7253      oprot.writeFieldEnd()
7254    if self.ia is not None:
7255      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
7256      self.ia.write(oprot)
7257      oprot.writeFieldEnd()
7258    oprot.writeFieldStop()
7259    oprot.writeStructEnd()
7260
7261  def validate(self):
7262    return
7263
7264
7265  def __repr__(self):
7266    L = ['%s=%r' % (key, value)
7267      for key, value in self.__dict__.iteritems()]
7268    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7269
7270  def __eq__(self, other):
7271    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7272
7273  def __ne__(self, other):
7274    return not (self == other)
7275
7276class atomicIncrement_args:
7277  """
7278  Attributes:
7279   - tableName: name of table
7280   - row: row to increment
7281   - column: name of column
7282   - value: amount to increment by
7283  """
7284
7285  thrift_spec = (
7286    None, # 0
7287    (1, TType.STRING, 'tableName', None, None, ), # 1
7288    (2, TType.STRING, 'row', None, None, ), # 2
7289    (3, TType.STRING, 'column', None, None, ), # 3
7290    (4, TType.I64, 'value', None, None, ), # 4
7291  )
7292
7293  def __init__(self, tableName=None, row=None, column=None, value=None,):
7294    self.tableName = tableName
7295    self.row = row
7296    self.column = column
7297    self.value = value
7298
7299  def read(self, iprot):
7300    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7301      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7302      return
7303    iprot.readStructBegin()
7304    while True:
7305      (fname, ftype, fid) = iprot.readFieldBegin()
7306      if ftype == TType.STOP:
7307        break
7308      if fid == 1:
7309        if ftype == TType.STRING:
7310          self.tableName = iprot.readString();
7311        else:
7312          iprot.skip(ftype)
7313      elif fid == 2:
7314        if ftype == TType.STRING:
7315          self.row = iprot.readString();
7316        else:
7317          iprot.skip(ftype)
7318      elif fid == 3:
7319        if ftype == TType.STRING:
7320          self.column = iprot.readString();
7321        else:
7322          iprot.skip(ftype)
7323      elif fid == 4:
7324        if ftype == TType.I64:
7325          self.value = iprot.readI64();
7326        else:
7327          iprot.skip(ftype)
7328      else:
7329        iprot.skip(ftype)
7330      iprot.readFieldEnd()
7331    iprot.readStructEnd()
7332
7333  def write(self, oprot):
7334    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7335      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7336      return
7337    oprot.writeStructBegin('atomicIncrement_args')
7338    if self.tableName is not None:
7339      oprot.writeFieldBegin('tableName', TType.STRING, 1)
7340      oprot.writeString(self.tableName)
7341      oprot.writeFieldEnd()
7342    if self.row is not None:
7343      oprot.writeFieldBegin('row', TType.STRING, 2)
7344      oprot.writeString(self.row)
7345      oprot.writeFieldEnd()
7346    if self.column is not None:
7347      oprot.writeFieldBegin('column', TType.STRING, 3)
7348      oprot.writeString(self.column)
7349      oprot.writeFieldEnd()
7350    if self.value is not None:
7351      oprot.writeFieldBegin('value', TType.I64, 4)
7352      oprot.writeI64(self.value)
7353      oprot.writeFieldEnd()
7354    oprot.writeFieldStop()
7355    oprot.writeStructEnd()
7356
7357  def validate(self):
7358    return
7359
7360
7361  def __repr__(self):
7362    L = ['%s=%r' % (key, value)
7363      for key, value in self.__dict__.iteritems()]
7364    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7365
7366  def __eq__(self, other):
7367    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7368
7369  def __ne__(self, other):
7370    return not (self == other)
7371
7372class atomicIncrement_result:
7373  """
7374  Attributes:
7375   - success
7376   - io
7377   - ia
7378  """
7379
7380  thrift_spec = (
7381    (0, TType.I64, 'success', None, None, ), # 0
7382    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7383    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
7384  )
7385
7386  def __init__(self, success=None, io=None, ia=None,):
7387    self.success = success
7388    self.io = io
7389    self.ia = ia
7390
7391  def read(self, iprot):
7392    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7393      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7394      return
7395    iprot.readStructBegin()
7396    while True:
7397      (fname, ftype, fid) = iprot.readFieldBegin()
7398      if ftype == TType.STOP:
7399        break
7400      if fid == 0:
7401        if ftype == TType.I64:
7402          self.success = iprot.readI64();
7403        else:
7404          iprot.skip(ftype)
7405      elif fid == 1:
7406        if ftype == TType.STRUCT:
7407          self.io = IOError()
7408          self.io.read(iprot)
7409        else:
7410          iprot.skip(ftype)
7411      elif fid == 2:
7412        if ftype == TType.STRUCT:
7413          self.ia = IllegalArgument()
7414          self.ia.read(iprot)
7415        else:
7416          iprot.skip(ftype)
7417      else:
7418        iprot.skip(ftype)
7419      iprot.readFieldEnd()
7420    iprot.readStructEnd()
7421
7422  def write(self, oprot):
7423    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7424      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7425      return
7426    oprot.writeStructBegin('atomicIncrement_result')
7427    if self.success is not None:
7428      oprot.writeFieldBegin('success', TType.I64, 0)
7429      oprot.writeI64(self.success)
7430      oprot.writeFieldEnd()
7431    if self.io is not None:
7432      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7433      self.io.write(oprot)
7434      oprot.writeFieldEnd()
7435    if self.ia is not None:
7436      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
7437      self.ia.write(oprot)
7438      oprot.writeFieldEnd()
7439    oprot.writeFieldStop()
7440    oprot.writeStructEnd()
7441
7442  def validate(self):
7443    return
7444
7445
7446  def __repr__(self):
7447    L = ['%s=%r' % (key, value)
7448      for key, value in self.__dict__.iteritems()]
7449    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7450
7451  def __eq__(self, other):
7452    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7453
7454  def __ne__(self, other):
7455    return not (self == other)
7456
7457class deleteAll_args:
7458  """
7459  Attributes:
7460   - tableName: name of table
7461   - row: Row to update
7462   - column: name of column whose value is to be deleted
7463   - attributes: Delete attributes
7464  """
7465
7466  thrift_spec = (
7467    None, # 0
7468    (1, TType.STRING, 'tableName', None, None, ), # 1
7469    (2, TType.STRING, 'row', None, None, ), # 2
7470    (3, TType.STRING, 'column', None, None, ), # 3
7471    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
7472  )
7473
7474  def __init__(self, tableName=None, row=None, column=None, attributes=None,):
7475    self.tableName = tableName
7476    self.row = row
7477    self.column = column
7478    self.attributes = attributes
7479
7480  def read(self, iprot):
7481    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7482      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7483      return
7484    iprot.readStructBegin()
7485    while True:
7486      (fname, ftype, fid) = iprot.readFieldBegin()
7487      if ftype == TType.STOP:
7488        break
7489      if fid == 1:
7490        if ftype == TType.STRING:
7491          self.tableName = iprot.readString();
7492        else:
7493          iprot.skip(ftype)
7494      elif fid == 2:
7495        if ftype == TType.STRING:
7496          self.row = iprot.readString();
7497        else:
7498          iprot.skip(ftype)
7499      elif fid == 3:
7500        if ftype == TType.STRING:
7501          self.column = iprot.readString();
7502        else:
7503          iprot.skip(ftype)
7504      elif fid == 4:
7505        if ftype == TType.MAP:
7506          self.attributes = {}
7507          (_ktype350, _vtype351, _size349 ) = iprot.readMapBegin()
7508          for _i353 in xrange(_size349):
7509            _key354 = iprot.readString();
7510            _val355 = iprot.readString();
7511            self.attributes[_key354] = _val355
7512          iprot.readMapEnd()
7513        else:
7514          iprot.skip(ftype)
7515      else:
7516        iprot.skip(ftype)
7517      iprot.readFieldEnd()
7518    iprot.readStructEnd()
7519
7520  def write(self, oprot):
7521    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7522      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7523      return
7524    oprot.writeStructBegin('deleteAll_args')
7525    if self.tableName is not None:
7526      oprot.writeFieldBegin('tableName', TType.STRING, 1)
7527      oprot.writeString(self.tableName)
7528      oprot.writeFieldEnd()
7529    if self.row is not None:
7530      oprot.writeFieldBegin('row', TType.STRING, 2)
7531      oprot.writeString(self.row)
7532      oprot.writeFieldEnd()
7533    if self.column is not None:
7534      oprot.writeFieldBegin('column', TType.STRING, 3)
7535      oprot.writeString(self.column)
7536      oprot.writeFieldEnd()
7537    if self.attributes is not None:
7538      oprot.writeFieldBegin('attributes', TType.MAP, 4)
7539      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
7540      for kiter356,viter357 in self.attributes.items():
7541        oprot.writeString(kiter356)
7542        oprot.writeString(viter357)
7543      oprot.writeMapEnd()
7544      oprot.writeFieldEnd()
7545    oprot.writeFieldStop()
7546    oprot.writeStructEnd()
7547
7548  def validate(self):
7549    return
7550
7551
7552  def __repr__(self):
7553    L = ['%s=%r' % (key, value)
7554      for key, value in self.__dict__.iteritems()]
7555    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7556
7557  def __eq__(self, other):
7558    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7559
7560  def __ne__(self, other):
7561    return not (self == other)
7562
7563class deleteAll_result:
7564  """
7565  Attributes:
7566   - io
7567  """
7568
7569  thrift_spec = (
7570    None, # 0
7571    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7572  )
7573
7574  def __init__(self, io=None,):
7575    self.io = io
7576
7577  def read(self, iprot):
7578    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7579      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7580      return
7581    iprot.readStructBegin()
7582    while True:
7583      (fname, ftype, fid) = iprot.readFieldBegin()
7584      if ftype == TType.STOP:
7585        break
7586      if fid == 1:
7587        if ftype == TType.STRUCT:
7588          self.io = IOError()
7589          self.io.read(iprot)
7590        else:
7591          iprot.skip(ftype)
7592      else:
7593        iprot.skip(ftype)
7594      iprot.readFieldEnd()
7595    iprot.readStructEnd()
7596
7597  def write(self, oprot):
7598    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7599      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7600      return
7601    oprot.writeStructBegin('deleteAll_result')
7602    if self.io is not None:
7603      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7604      self.io.write(oprot)
7605      oprot.writeFieldEnd()
7606    oprot.writeFieldStop()
7607    oprot.writeStructEnd()
7608
7609  def validate(self):
7610    return
7611
7612
7613  def __repr__(self):
7614    L = ['%s=%r' % (key, value)
7615      for key, value in self.__dict__.iteritems()]
7616    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7617
7618  def __eq__(self, other):
7619    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7620
7621  def __ne__(self, other):
7622    return not (self == other)
7623
7624class deleteAllTs_args:
7625  """
7626  Attributes:
7627   - tableName: name of table
7628   - row: Row to update
7629   - column: name of column whose value is to be deleted
7630   - timestamp: timestamp
7631   - attributes: Delete attributes
7632  """
7633
7634  thrift_spec = (
7635    None, # 0
7636    (1, TType.STRING, 'tableName', None, None, ), # 1
7637    (2, TType.STRING, 'row', None, None, ), # 2
7638    (3, TType.STRING, 'column', None, None, ), # 3
7639    (4, TType.I64, 'timestamp', None, None, ), # 4
7640    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
7641  )
7642
7643  def __init__(self, tableName=None, row=None, column=None, timestamp=None, attributes=None,):
7644    self.tableName = tableName
7645    self.row = row
7646    self.column = column
7647    self.timestamp = timestamp
7648    self.attributes = attributes
7649
7650  def read(self, iprot):
7651    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7652      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7653      return
7654    iprot.readStructBegin()
7655    while True:
7656      (fname, ftype, fid) = iprot.readFieldBegin()
7657      if ftype == TType.STOP:
7658        break
7659      if fid == 1:
7660        if ftype == TType.STRING:
7661          self.tableName = iprot.readString();
7662        else:
7663          iprot.skip(ftype)
7664      elif fid == 2:
7665        if ftype == TType.STRING:
7666          self.row = iprot.readString();
7667        else:
7668          iprot.skip(ftype)
7669      elif fid == 3:
7670        if ftype == TType.STRING:
7671          self.column = iprot.readString();
7672        else:
7673          iprot.skip(ftype)
7674      elif fid == 4:
7675        if ftype == TType.I64:
7676          self.timestamp = iprot.readI64();
7677        else:
7678          iprot.skip(ftype)
7679      elif fid == 5:
7680        if ftype == TType.MAP:
7681          self.attributes = {}
7682          (_ktype359, _vtype360, _size358 ) = iprot.readMapBegin()
7683          for _i362 in xrange(_size358):
7684            _key363 = iprot.readString();
7685            _val364 = iprot.readString();
7686            self.attributes[_key363] = _val364
7687          iprot.readMapEnd()
7688        else:
7689          iprot.skip(ftype)
7690      else:
7691        iprot.skip(ftype)
7692      iprot.readFieldEnd()
7693    iprot.readStructEnd()
7694
7695  def write(self, oprot):
7696    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7697      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7698      return
7699    oprot.writeStructBegin('deleteAllTs_args')
7700    if self.tableName is not None:
7701      oprot.writeFieldBegin('tableName', TType.STRING, 1)
7702      oprot.writeString(self.tableName)
7703      oprot.writeFieldEnd()
7704    if self.row is not None:
7705      oprot.writeFieldBegin('row', TType.STRING, 2)
7706      oprot.writeString(self.row)
7707      oprot.writeFieldEnd()
7708    if self.column is not None:
7709      oprot.writeFieldBegin('column', TType.STRING, 3)
7710      oprot.writeString(self.column)
7711      oprot.writeFieldEnd()
7712    if self.timestamp is not None:
7713      oprot.writeFieldBegin('timestamp', TType.I64, 4)
7714      oprot.writeI64(self.timestamp)
7715      oprot.writeFieldEnd()
7716    if self.attributes is not None:
7717      oprot.writeFieldBegin('attributes', TType.MAP, 5)
7718      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
7719      for kiter365,viter366 in self.attributes.items():
7720        oprot.writeString(kiter365)
7721        oprot.writeString(viter366)
7722      oprot.writeMapEnd()
7723      oprot.writeFieldEnd()
7724    oprot.writeFieldStop()
7725    oprot.writeStructEnd()
7726
7727  def validate(self):
7728    return
7729
7730
7731  def __repr__(self):
7732    L = ['%s=%r' % (key, value)
7733      for key, value in self.__dict__.iteritems()]
7734    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7735
7736  def __eq__(self, other):
7737    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7738
7739  def __ne__(self, other):
7740    return not (self == other)
7741
7742class deleteAllTs_result:
7743  """
7744  Attributes:
7745   - io
7746  """
7747
7748  thrift_spec = (
7749    None, # 0
7750    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7751  )
7752
7753  def __init__(self, io=None,):
7754    self.io = io
7755
7756  def read(self, iprot):
7757    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7758      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7759      return
7760    iprot.readStructBegin()
7761    while True:
7762      (fname, ftype, fid) = iprot.readFieldBegin()
7763      if ftype == TType.STOP:
7764        break
7765      if fid == 1:
7766        if ftype == TType.STRUCT:
7767          self.io = IOError()
7768          self.io.read(iprot)
7769        else:
7770          iprot.skip(ftype)
7771      else:
7772        iprot.skip(ftype)
7773      iprot.readFieldEnd()
7774    iprot.readStructEnd()
7775
7776  def write(self, oprot):
7777    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7778      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7779      return
7780    oprot.writeStructBegin('deleteAllTs_result')
7781    if self.io is not None:
7782      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7783      self.io.write(oprot)
7784      oprot.writeFieldEnd()
7785    oprot.writeFieldStop()
7786    oprot.writeStructEnd()
7787
7788  def validate(self):
7789    return
7790
7791
7792  def __repr__(self):
7793    L = ['%s=%r' % (key, value)
7794      for key, value in self.__dict__.iteritems()]
7795    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7796
7797  def __eq__(self, other):
7798    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7799
7800  def __ne__(self, other):
7801    return not (self == other)
7802
7803class deleteAllRow_args:
7804  """
7805  Attributes:
7806   - tableName: name of table
7807   - row: key of the row to be completely deleted.
7808   - attributes: Delete attributes
7809  """
7810
7811  thrift_spec = (
7812    None, # 0
7813    (1, TType.STRING, 'tableName', None, None, ), # 1
7814    (2, TType.STRING, 'row', None, None, ), # 2
7815    (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
7816  )
7817
7818  def __init__(self, tableName=None, row=None, attributes=None,):
7819    self.tableName = tableName
7820    self.row = row
7821    self.attributes = attributes
7822
7823  def read(self, iprot):
7824    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7825      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7826      return
7827    iprot.readStructBegin()
7828    while True:
7829      (fname, ftype, fid) = iprot.readFieldBegin()
7830      if ftype == TType.STOP:
7831        break
7832      if fid == 1:
7833        if ftype == TType.STRING:
7834          self.tableName = iprot.readString();
7835        else:
7836          iprot.skip(ftype)
7837      elif fid == 2:
7838        if ftype == TType.STRING:
7839          self.row = iprot.readString();
7840        else:
7841          iprot.skip(ftype)
7842      elif fid == 3:
7843        if ftype == TType.MAP:
7844          self.attributes = {}
7845          (_ktype368, _vtype369, _size367 ) = iprot.readMapBegin()
7846          for _i371 in xrange(_size367):
7847            _key372 = iprot.readString();
7848            _val373 = iprot.readString();
7849            self.attributes[_key372] = _val373
7850          iprot.readMapEnd()
7851        else:
7852          iprot.skip(ftype)
7853      else:
7854        iprot.skip(ftype)
7855      iprot.readFieldEnd()
7856    iprot.readStructEnd()
7857
7858  def write(self, oprot):
7859    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7860      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7861      return
7862    oprot.writeStructBegin('deleteAllRow_args')
7863    if self.tableName is not None:
7864      oprot.writeFieldBegin('tableName', TType.STRING, 1)
7865      oprot.writeString(self.tableName)
7866      oprot.writeFieldEnd()
7867    if self.row is not None:
7868      oprot.writeFieldBegin('row', TType.STRING, 2)
7869      oprot.writeString(self.row)
7870      oprot.writeFieldEnd()
7871    if self.attributes is not None:
7872      oprot.writeFieldBegin('attributes', TType.MAP, 3)
7873      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
7874      for kiter374,viter375 in self.attributes.items():
7875        oprot.writeString(kiter374)
7876        oprot.writeString(viter375)
7877      oprot.writeMapEnd()
7878      oprot.writeFieldEnd()
7879    oprot.writeFieldStop()
7880    oprot.writeStructEnd()
7881
7882  def validate(self):
7883    return
7884
7885
7886  def __repr__(self):
7887    L = ['%s=%r' % (key, value)
7888      for key, value in self.__dict__.iteritems()]
7889    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7890
7891  def __eq__(self, other):
7892    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7893
7894  def __ne__(self, other):
7895    return not (self == other)
7896
7897class deleteAllRow_result:
7898  """
7899  Attributes:
7900   - io
7901  """
7902
7903  thrift_spec = (
7904    None, # 0
7905    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
7906  )
7907
7908  def __init__(self, io=None,):
7909    self.io = io
7910
7911  def read(self, iprot):
7912    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7913      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7914      return
7915    iprot.readStructBegin()
7916    while True:
7917      (fname, ftype, fid) = iprot.readFieldBegin()
7918      if ftype == TType.STOP:
7919        break
7920      if fid == 1:
7921        if ftype == TType.STRUCT:
7922          self.io = IOError()
7923          self.io.read(iprot)
7924        else:
7925          iprot.skip(ftype)
7926      else:
7927        iprot.skip(ftype)
7928      iprot.readFieldEnd()
7929    iprot.readStructEnd()
7930
7931  def write(self, oprot):
7932    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7933      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7934      return
7935    oprot.writeStructBegin('deleteAllRow_result')
7936    if self.io is not None:
7937      oprot.writeFieldBegin('io', TType.STRUCT, 1)
7938      self.io.write(oprot)
7939      oprot.writeFieldEnd()
7940    oprot.writeFieldStop()
7941    oprot.writeStructEnd()
7942
7943  def validate(self):
7944    return
7945
7946
7947  def __repr__(self):
7948    L = ['%s=%r' % (key, value)
7949      for key, value in self.__dict__.iteritems()]
7950    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7951
7952  def __eq__(self, other):
7953    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7954
7955  def __ne__(self, other):
7956    return not (self == other)
7957
7958class increment_args:
7959  """
7960  Attributes:
7961   - increment: The single increment to apply
7962  """
7963
7964  thrift_spec = (
7965    None, # 0
7966    (1, TType.STRUCT, 'increment', (TIncrement, TIncrement.thrift_spec), None, ), # 1
7967  )
7968
7969  def __init__(self, increment=None,):
7970    self.increment = increment
7971
7972  def read(self, iprot):
7973    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7974      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7975      return
7976    iprot.readStructBegin()
7977    while True:
7978      (fname, ftype, fid) = iprot.readFieldBegin()
7979      if ftype == TType.STOP:
7980        break
7981      if fid == 1:
7982        if ftype == TType.STRUCT:
7983          self.increment = TIncrement()
7984          self.increment.read(iprot)
7985        else:
7986          iprot.skip(ftype)
7987      else:
7988        iprot.skip(ftype)
7989      iprot.readFieldEnd()
7990    iprot.readStructEnd()
7991
7992  def write(self, oprot):
7993    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7994      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7995      return
7996    oprot.writeStructBegin('increment_args')
7997    if self.increment is not None:
7998      oprot.writeFieldBegin('increment', TType.STRUCT, 1)
7999      self.increment.write(oprot)
8000      oprot.writeFieldEnd()
8001    oprot.writeFieldStop()
8002    oprot.writeStructEnd()
8003
8004  def validate(self):
8005    return
8006
8007
8008  def __repr__(self):
8009    L = ['%s=%r' % (key, value)
8010      for key, value in self.__dict__.iteritems()]
8011    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8012
8013  def __eq__(self, other):
8014    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8015
8016  def __ne__(self, other):
8017    return not (self == other)
8018
8019class increment_result:
8020  """
8021  Attributes:
8022   - io
8023  """
8024
8025  thrift_spec = (
8026    None, # 0
8027    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8028  )
8029
8030  def __init__(self, io=None,):
8031    self.io = io
8032
8033  def read(self, iprot):
8034    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8035      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8036      return
8037    iprot.readStructBegin()
8038    while True:
8039      (fname, ftype, fid) = iprot.readFieldBegin()
8040      if ftype == TType.STOP:
8041        break
8042      if fid == 1:
8043        if ftype == TType.STRUCT:
8044          self.io = IOError()
8045          self.io.read(iprot)
8046        else:
8047          iprot.skip(ftype)
8048      else:
8049        iprot.skip(ftype)
8050      iprot.readFieldEnd()
8051    iprot.readStructEnd()
8052
8053  def write(self, oprot):
8054    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8055      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8056      return
8057    oprot.writeStructBegin('increment_result')
8058    if self.io is not None:
8059      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8060      self.io.write(oprot)
8061      oprot.writeFieldEnd()
8062    oprot.writeFieldStop()
8063    oprot.writeStructEnd()
8064
8065  def validate(self):
8066    return
8067
8068
8069  def __repr__(self):
8070    L = ['%s=%r' % (key, value)
8071      for key, value in self.__dict__.iteritems()]
8072    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8073
8074  def __eq__(self, other):
8075    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8076
8077  def __ne__(self, other):
8078    return not (self == other)
8079
8080class incrementRows_args:
8081  """
8082  Attributes:
8083   - increments: The list of increments
8084  """
8085
8086  thrift_spec = (
8087    None, # 0
8088    (1, TType.LIST, 'increments', (TType.STRUCT,(TIncrement, TIncrement.thrift_spec)), None, ), # 1
8089  )
8090
8091  def __init__(self, increments=None,):
8092    self.increments = increments
8093
8094  def read(self, iprot):
8095    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8096      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8097      return
8098    iprot.readStructBegin()
8099    while True:
8100      (fname, ftype, fid) = iprot.readFieldBegin()
8101      if ftype == TType.STOP:
8102        break
8103      if fid == 1:
8104        if ftype == TType.LIST:
8105          self.increments = []
8106          (_etype379, _size376) = iprot.readListBegin()
8107          for _i380 in xrange(_size376):
8108            _elem381 = TIncrement()
8109            _elem381.read(iprot)
8110            self.increments.append(_elem381)
8111          iprot.readListEnd()
8112        else:
8113          iprot.skip(ftype)
8114      else:
8115        iprot.skip(ftype)
8116      iprot.readFieldEnd()
8117    iprot.readStructEnd()
8118
8119  def write(self, oprot):
8120    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8121      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8122      return
8123    oprot.writeStructBegin('incrementRows_args')
8124    if self.increments is not None:
8125      oprot.writeFieldBegin('increments', TType.LIST, 1)
8126      oprot.writeListBegin(TType.STRUCT, len(self.increments))
8127      for iter382 in self.increments:
8128        iter382.write(oprot)
8129      oprot.writeListEnd()
8130      oprot.writeFieldEnd()
8131    oprot.writeFieldStop()
8132    oprot.writeStructEnd()
8133
8134  def validate(self):
8135    return
8136
8137
8138  def __repr__(self):
8139    L = ['%s=%r' % (key, value)
8140      for key, value in self.__dict__.iteritems()]
8141    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8142
8143  def __eq__(self, other):
8144    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8145
8146  def __ne__(self, other):
8147    return not (self == other)
8148
8149class incrementRows_result:
8150  """
8151  Attributes:
8152   - io
8153  """
8154
8155  thrift_spec = (
8156    None, # 0
8157    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8158  )
8159
8160  def __init__(self, io=None,):
8161    self.io = io
8162
8163  def read(self, iprot):
8164    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8165      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8166      return
8167    iprot.readStructBegin()
8168    while True:
8169      (fname, ftype, fid) = iprot.readFieldBegin()
8170      if ftype == TType.STOP:
8171        break
8172      if fid == 1:
8173        if ftype == TType.STRUCT:
8174          self.io = IOError()
8175          self.io.read(iprot)
8176        else:
8177          iprot.skip(ftype)
8178      else:
8179        iprot.skip(ftype)
8180      iprot.readFieldEnd()
8181    iprot.readStructEnd()
8182
8183  def write(self, oprot):
8184    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8185      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8186      return
8187    oprot.writeStructBegin('incrementRows_result')
8188    if self.io is not None:
8189      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8190      self.io.write(oprot)
8191      oprot.writeFieldEnd()
8192    oprot.writeFieldStop()
8193    oprot.writeStructEnd()
8194
8195  def validate(self):
8196    return
8197
8198
8199  def __repr__(self):
8200    L = ['%s=%r' % (key, value)
8201      for key, value in self.__dict__.iteritems()]
8202    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8203
8204  def __eq__(self, other):
8205    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8206
8207  def __ne__(self, other):
8208    return not (self == other)
8209
8210class deleteAllRowTs_args:
8211  """
8212  Attributes:
8213   - tableName: name of table
8214   - row: key of the row to be completely deleted.
8215   - timestamp: timestamp
8216   - attributes: Delete attributes
8217  """
8218
8219  thrift_spec = (
8220    None, # 0
8221    (1, TType.STRING, 'tableName', None, None, ), # 1
8222    (2, TType.STRING, 'row', None, None, ), # 2
8223    (3, TType.I64, 'timestamp', None, None, ), # 3
8224    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
8225  )
8226
8227  def __init__(self, tableName=None, row=None, timestamp=None, attributes=None,):
8228    self.tableName = tableName
8229    self.row = row
8230    self.timestamp = timestamp
8231    self.attributes = attributes
8232
8233  def read(self, iprot):
8234    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8235      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8236      return
8237    iprot.readStructBegin()
8238    while True:
8239      (fname, ftype, fid) = iprot.readFieldBegin()
8240      if ftype == TType.STOP:
8241        break
8242      if fid == 1:
8243        if ftype == TType.STRING:
8244          self.tableName = iprot.readString();
8245        else:
8246          iprot.skip(ftype)
8247      elif fid == 2:
8248        if ftype == TType.STRING:
8249          self.row = iprot.readString();
8250        else:
8251          iprot.skip(ftype)
8252      elif fid == 3:
8253        if ftype == TType.I64:
8254          self.timestamp = iprot.readI64();
8255        else:
8256          iprot.skip(ftype)
8257      elif fid == 4:
8258        if ftype == TType.MAP:
8259          self.attributes = {}
8260          (_ktype384, _vtype385, _size383 ) = iprot.readMapBegin()
8261          for _i387 in xrange(_size383):
8262            _key388 = iprot.readString();
8263            _val389 = iprot.readString();
8264            self.attributes[_key388] = _val389
8265          iprot.readMapEnd()
8266        else:
8267          iprot.skip(ftype)
8268      else:
8269        iprot.skip(ftype)
8270      iprot.readFieldEnd()
8271    iprot.readStructEnd()
8272
8273  def write(self, oprot):
8274    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8275      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8276      return
8277    oprot.writeStructBegin('deleteAllRowTs_args')
8278    if self.tableName is not None:
8279      oprot.writeFieldBegin('tableName', TType.STRING, 1)
8280      oprot.writeString(self.tableName)
8281      oprot.writeFieldEnd()
8282    if self.row is not None:
8283      oprot.writeFieldBegin('row', TType.STRING, 2)
8284      oprot.writeString(self.row)
8285      oprot.writeFieldEnd()
8286    if self.timestamp is not None:
8287      oprot.writeFieldBegin('timestamp', TType.I64, 3)
8288      oprot.writeI64(self.timestamp)
8289      oprot.writeFieldEnd()
8290    if self.attributes is not None:
8291      oprot.writeFieldBegin('attributes', TType.MAP, 4)
8292      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
8293      for kiter390,viter391 in self.attributes.items():
8294        oprot.writeString(kiter390)
8295        oprot.writeString(viter391)
8296      oprot.writeMapEnd()
8297      oprot.writeFieldEnd()
8298    oprot.writeFieldStop()
8299    oprot.writeStructEnd()
8300
8301  def validate(self):
8302    return
8303
8304
8305  def __repr__(self):
8306    L = ['%s=%r' % (key, value)
8307      for key, value in self.__dict__.iteritems()]
8308    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8309
8310  def __eq__(self, other):
8311    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8312
8313  def __ne__(self, other):
8314    return not (self == other)
8315
8316class deleteAllRowTs_result:
8317  """
8318  Attributes:
8319   - io
8320  """
8321
8322  thrift_spec = (
8323    None, # 0
8324    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8325  )
8326
8327  def __init__(self, io=None,):
8328    self.io = io
8329
8330  def read(self, iprot):
8331    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8332      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8333      return
8334    iprot.readStructBegin()
8335    while True:
8336      (fname, ftype, fid) = iprot.readFieldBegin()
8337      if ftype == TType.STOP:
8338        break
8339      if fid == 1:
8340        if ftype == TType.STRUCT:
8341          self.io = IOError()
8342          self.io.read(iprot)
8343        else:
8344          iprot.skip(ftype)
8345      else:
8346        iprot.skip(ftype)
8347      iprot.readFieldEnd()
8348    iprot.readStructEnd()
8349
8350  def write(self, oprot):
8351    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8352      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8353      return
8354    oprot.writeStructBegin('deleteAllRowTs_result')
8355    if self.io is not None:
8356      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8357      self.io.write(oprot)
8358      oprot.writeFieldEnd()
8359    oprot.writeFieldStop()
8360    oprot.writeStructEnd()
8361
8362  def validate(self):
8363    return
8364
8365
8366  def __repr__(self):
8367    L = ['%s=%r' % (key, value)
8368      for key, value in self.__dict__.iteritems()]
8369    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8370
8371  def __eq__(self, other):
8372    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8373
8374  def __ne__(self, other):
8375    return not (self == other)
8376
8377class scannerOpenWithScan_args:
8378  """
8379  Attributes:
8380   - tableName: name of table
8381   - scan: Scan instance
8382   - attributes: Scan attributes
8383  """
8384
8385  thrift_spec = (
8386    None, # 0
8387    (1, TType.STRING, 'tableName', None, None, ), # 1
8388    (2, TType.STRUCT, 'scan', (TScan, TScan.thrift_spec), None, ), # 2
8389    (3, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 3
8390  )
8391
8392  def __init__(self, tableName=None, scan=None, attributes=None,):
8393    self.tableName = tableName
8394    self.scan = scan
8395    self.attributes = attributes
8396
8397  def read(self, iprot):
8398    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8399      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8400      return
8401    iprot.readStructBegin()
8402    while True:
8403      (fname, ftype, fid) = iprot.readFieldBegin()
8404      if ftype == TType.STOP:
8405        break
8406      if fid == 1:
8407        if ftype == TType.STRING:
8408          self.tableName = iprot.readString();
8409        else:
8410          iprot.skip(ftype)
8411      elif fid == 2:
8412        if ftype == TType.STRUCT:
8413          self.scan = TScan()
8414          self.scan.read(iprot)
8415        else:
8416          iprot.skip(ftype)
8417      elif fid == 3:
8418        if ftype == TType.MAP:
8419          self.attributes = {}
8420          (_ktype393, _vtype394, _size392 ) = iprot.readMapBegin()
8421          for _i396 in xrange(_size392):
8422            _key397 = iprot.readString();
8423            _val398 = iprot.readString();
8424            self.attributes[_key397] = _val398
8425          iprot.readMapEnd()
8426        else:
8427          iprot.skip(ftype)
8428      else:
8429        iprot.skip(ftype)
8430      iprot.readFieldEnd()
8431    iprot.readStructEnd()
8432
8433  def write(self, oprot):
8434    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8435      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8436      return
8437    oprot.writeStructBegin('scannerOpenWithScan_args')
8438    if self.tableName is not None:
8439      oprot.writeFieldBegin('tableName', TType.STRING, 1)
8440      oprot.writeString(self.tableName)
8441      oprot.writeFieldEnd()
8442    if self.scan is not None:
8443      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
8444      self.scan.write(oprot)
8445      oprot.writeFieldEnd()
8446    if self.attributes is not None:
8447      oprot.writeFieldBegin('attributes', TType.MAP, 3)
8448      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
8449      for kiter399,viter400 in self.attributes.items():
8450        oprot.writeString(kiter399)
8451        oprot.writeString(viter400)
8452      oprot.writeMapEnd()
8453      oprot.writeFieldEnd()
8454    oprot.writeFieldStop()
8455    oprot.writeStructEnd()
8456
8457  def validate(self):
8458    return
8459
8460
8461  def __repr__(self):
8462    L = ['%s=%r' % (key, value)
8463      for key, value in self.__dict__.iteritems()]
8464    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8465
8466  def __eq__(self, other):
8467    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8468
8469  def __ne__(self, other):
8470    return not (self == other)
8471
8472class scannerOpenWithScan_result:
8473  """
8474  Attributes:
8475   - success
8476   - io
8477  """
8478
8479  thrift_spec = (
8480    (0, TType.I32, 'success', None, None, ), # 0
8481    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8482  )
8483
8484  def __init__(self, success=None, io=None,):
8485    self.success = success
8486    self.io = io
8487
8488  def read(self, iprot):
8489    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8490      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8491      return
8492    iprot.readStructBegin()
8493    while True:
8494      (fname, ftype, fid) = iprot.readFieldBegin()
8495      if ftype == TType.STOP:
8496        break
8497      if fid == 0:
8498        if ftype == TType.I32:
8499          self.success = iprot.readI32();
8500        else:
8501          iprot.skip(ftype)
8502      elif fid == 1:
8503        if ftype == TType.STRUCT:
8504          self.io = IOError()
8505          self.io.read(iprot)
8506        else:
8507          iprot.skip(ftype)
8508      else:
8509        iprot.skip(ftype)
8510      iprot.readFieldEnd()
8511    iprot.readStructEnd()
8512
8513  def write(self, oprot):
8514    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8515      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8516      return
8517    oprot.writeStructBegin('scannerOpenWithScan_result')
8518    if self.success is not None:
8519      oprot.writeFieldBegin('success', TType.I32, 0)
8520      oprot.writeI32(self.success)
8521      oprot.writeFieldEnd()
8522    if self.io is not None:
8523      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8524      self.io.write(oprot)
8525      oprot.writeFieldEnd()
8526    oprot.writeFieldStop()
8527    oprot.writeStructEnd()
8528
8529  def validate(self):
8530    return
8531
8532
8533  def __repr__(self):
8534    L = ['%s=%r' % (key, value)
8535      for key, value in self.__dict__.iteritems()]
8536    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8537
8538  def __eq__(self, other):
8539    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8540
8541  def __ne__(self, other):
8542    return not (self == other)
8543
8544class scannerOpen_args:
8545  """
8546  Attributes:
8547   - tableName: name of table
8548   - startRow: Starting row in table to scan.
8549  Send "" (empty string) to start at the first row.
8550   - columns: columns to scan. If column name is a column family, all
8551  columns of the specified column family are returned. It's also possible
8552  to pass a regex in the column qualifier.
8553   - attributes: Scan attributes
8554  """
8555
8556  thrift_spec = (
8557    None, # 0
8558    (1, TType.STRING, 'tableName', None, None, ), # 1
8559    (2, TType.STRING, 'startRow', None, None, ), # 2
8560    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
8561    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
8562  )
8563
8564  def __init__(self, tableName=None, startRow=None, columns=None, attributes=None,):
8565    self.tableName = tableName
8566    self.startRow = startRow
8567    self.columns = columns
8568    self.attributes = attributes
8569
8570  def read(self, iprot):
8571    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8572      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8573      return
8574    iprot.readStructBegin()
8575    while True:
8576      (fname, ftype, fid) = iprot.readFieldBegin()
8577      if ftype == TType.STOP:
8578        break
8579      if fid == 1:
8580        if ftype == TType.STRING:
8581          self.tableName = iprot.readString();
8582        else:
8583          iprot.skip(ftype)
8584      elif fid == 2:
8585        if ftype == TType.STRING:
8586          self.startRow = iprot.readString();
8587        else:
8588          iprot.skip(ftype)
8589      elif fid == 3:
8590        if ftype == TType.LIST:
8591          self.columns = []
8592          (_etype404, _size401) = iprot.readListBegin()
8593          for _i405 in xrange(_size401):
8594            _elem406 = iprot.readString();
8595            self.columns.append(_elem406)
8596          iprot.readListEnd()
8597        else:
8598          iprot.skip(ftype)
8599      elif fid == 4:
8600        if ftype == TType.MAP:
8601          self.attributes = {}
8602          (_ktype408, _vtype409, _size407 ) = iprot.readMapBegin()
8603          for _i411 in xrange(_size407):
8604            _key412 = iprot.readString();
8605            _val413 = iprot.readString();
8606            self.attributes[_key412] = _val413
8607          iprot.readMapEnd()
8608        else:
8609          iprot.skip(ftype)
8610      else:
8611        iprot.skip(ftype)
8612      iprot.readFieldEnd()
8613    iprot.readStructEnd()
8614
8615  def write(self, oprot):
8616    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8617      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8618      return
8619    oprot.writeStructBegin('scannerOpen_args')
8620    if self.tableName is not None:
8621      oprot.writeFieldBegin('tableName', TType.STRING, 1)
8622      oprot.writeString(self.tableName)
8623      oprot.writeFieldEnd()
8624    if self.startRow is not None:
8625      oprot.writeFieldBegin('startRow', TType.STRING, 2)
8626      oprot.writeString(self.startRow)
8627      oprot.writeFieldEnd()
8628    if self.columns is not None:
8629      oprot.writeFieldBegin('columns', TType.LIST, 3)
8630      oprot.writeListBegin(TType.STRING, len(self.columns))
8631      for iter414 in self.columns:
8632        oprot.writeString(iter414)
8633      oprot.writeListEnd()
8634      oprot.writeFieldEnd()
8635    if self.attributes is not None:
8636      oprot.writeFieldBegin('attributes', TType.MAP, 4)
8637      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
8638      for kiter415,viter416 in self.attributes.items():
8639        oprot.writeString(kiter415)
8640        oprot.writeString(viter416)
8641      oprot.writeMapEnd()
8642      oprot.writeFieldEnd()
8643    oprot.writeFieldStop()
8644    oprot.writeStructEnd()
8645
8646  def validate(self):
8647    return
8648
8649
8650  def __repr__(self):
8651    L = ['%s=%r' % (key, value)
8652      for key, value in self.__dict__.iteritems()]
8653    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8654
8655  def __eq__(self, other):
8656    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8657
8658  def __ne__(self, other):
8659    return not (self == other)
8660
8661class scannerOpen_result:
8662  """
8663  Attributes:
8664   - success
8665   - io
8666  """
8667
8668  thrift_spec = (
8669    (0, TType.I32, 'success', None, None, ), # 0
8670    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8671  )
8672
8673  def __init__(self, success=None, io=None,):
8674    self.success = success
8675    self.io = io
8676
8677  def read(self, iprot):
8678    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8679      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8680      return
8681    iprot.readStructBegin()
8682    while True:
8683      (fname, ftype, fid) = iprot.readFieldBegin()
8684      if ftype == TType.STOP:
8685        break
8686      if fid == 0:
8687        if ftype == TType.I32:
8688          self.success = iprot.readI32();
8689        else:
8690          iprot.skip(ftype)
8691      elif fid == 1:
8692        if ftype == TType.STRUCT:
8693          self.io = IOError()
8694          self.io.read(iprot)
8695        else:
8696          iprot.skip(ftype)
8697      else:
8698        iprot.skip(ftype)
8699      iprot.readFieldEnd()
8700    iprot.readStructEnd()
8701
8702  def write(self, oprot):
8703    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8704      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8705      return
8706    oprot.writeStructBegin('scannerOpen_result')
8707    if self.success is not None:
8708      oprot.writeFieldBegin('success', TType.I32, 0)
8709      oprot.writeI32(self.success)
8710      oprot.writeFieldEnd()
8711    if self.io is not None:
8712      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8713      self.io.write(oprot)
8714      oprot.writeFieldEnd()
8715    oprot.writeFieldStop()
8716    oprot.writeStructEnd()
8717
8718  def validate(self):
8719    return
8720
8721
8722  def __repr__(self):
8723    L = ['%s=%r' % (key, value)
8724      for key, value in self.__dict__.iteritems()]
8725    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8726
8727  def __eq__(self, other):
8728    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8729
8730  def __ne__(self, other):
8731    return not (self == other)
8732
8733class scannerOpenWithStop_args:
8734  """
8735  Attributes:
8736   - tableName: name of table
8737   - startRow: Starting row in table to scan.
8738  Send "" (empty string) to start at the first row.
8739   - stopRow: row to stop scanning on. This row is *not* included in the
8740  scanner's results
8741   - columns: columns to scan. If column name is a column family, all
8742  columns of the specified column family are returned. It's also possible
8743  to pass a regex in the column qualifier.
8744   - attributes: Scan attributes
8745  """
8746
8747  thrift_spec = (
8748    None, # 0
8749    (1, TType.STRING, 'tableName', None, None, ), # 1
8750    (2, TType.STRING, 'startRow', None, None, ), # 2
8751    (3, TType.STRING, 'stopRow', None, None, ), # 3
8752    (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
8753    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
8754  )
8755
8756  def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, attributes=None,):
8757    self.tableName = tableName
8758    self.startRow = startRow
8759    self.stopRow = stopRow
8760    self.columns = columns
8761    self.attributes = attributes
8762
8763  def read(self, iprot):
8764    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8765      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8766      return
8767    iprot.readStructBegin()
8768    while True:
8769      (fname, ftype, fid) = iprot.readFieldBegin()
8770      if ftype == TType.STOP:
8771        break
8772      if fid == 1:
8773        if ftype == TType.STRING:
8774          self.tableName = iprot.readString();
8775        else:
8776          iprot.skip(ftype)
8777      elif fid == 2:
8778        if ftype == TType.STRING:
8779          self.startRow = iprot.readString();
8780        else:
8781          iprot.skip(ftype)
8782      elif fid == 3:
8783        if ftype == TType.STRING:
8784          self.stopRow = iprot.readString();
8785        else:
8786          iprot.skip(ftype)
8787      elif fid == 4:
8788        if ftype == TType.LIST:
8789          self.columns = []
8790          (_etype420, _size417) = iprot.readListBegin()
8791          for _i421 in xrange(_size417):
8792            _elem422 = iprot.readString();
8793            self.columns.append(_elem422)
8794          iprot.readListEnd()
8795        else:
8796          iprot.skip(ftype)
8797      elif fid == 5:
8798        if ftype == TType.MAP:
8799          self.attributes = {}
8800          (_ktype424, _vtype425, _size423 ) = iprot.readMapBegin()
8801          for _i427 in xrange(_size423):
8802            _key428 = iprot.readString();
8803            _val429 = iprot.readString();
8804            self.attributes[_key428] = _val429
8805          iprot.readMapEnd()
8806        else:
8807          iprot.skip(ftype)
8808      else:
8809        iprot.skip(ftype)
8810      iprot.readFieldEnd()
8811    iprot.readStructEnd()
8812
8813  def write(self, oprot):
8814    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8815      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8816      return
8817    oprot.writeStructBegin('scannerOpenWithStop_args')
8818    if self.tableName is not None:
8819      oprot.writeFieldBegin('tableName', TType.STRING, 1)
8820      oprot.writeString(self.tableName)
8821      oprot.writeFieldEnd()
8822    if self.startRow is not None:
8823      oprot.writeFieldBegin('startRow', TType.STRING, 2)
8824      oprot.writeString(self.startRow)
8825      oprot.writeFieldEnd()
8826    if self.stopRow is not None:
8827      oprot.writeFieldBegin('stopRow', TType.STRING, 3)
8828      oprot.writeString(self.stopRow)
8829      oprot.writeFieldEnd()
8830    if self.columns is not None:
8831      oprot.writeFieldBegin('columns', TType.LIST, 4)
8832      oprot.writeListBegin(TType.STRING, len(self.columns))
8833      for iter430 in self.columns:
8834        oprot.writeString(iter430)
8835      oprot.writeListEnd()
8836      oprot.writeFieldEnd()
8837    if self.attributes is not None:
8838      oprot.writeFieldBegin('attributes', TType.MAP, 5)
8839      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
8840      for kiter431,viter432 in self.attributes.items():
8841        oprot.writeString(kiter431)
8842        oprot.writeString(viter432)
8843      oprot.writeMapEnd()
8844      oprot.writeFieldEnd()
8845    oprot.writeFieldStop()
8846    oprot.writeStructEnd()
8847
8848  def validate(self):
8849    return
8850
8851
8852  def __repr__(self):
8853    L = ['%s=%r' % (key, value)
8854      for key, value in self.__dict__.iteritems()]
8855    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8856
8857  def __eq__(self, other):
8858    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8859
8860  def __ne__(self, other):
8861    return not (self == other)
8862
8863class scannerOpenWithStop_result:
8864  """
8865  Attributes:
8866   - success
8867   - io
8868  """
8869
8870  thrift_spec = (
8871    (0, TType.I32, 'success', None, None, ), # 0
8872    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
8873  )
8874
8875  def __init__(self, success=None, io=None,):
8876    self.success = success
8877    self.io = io
8878
8879  def read(self, iprot):
8880    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8881      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8882      return
8883    iprot.readStructBegin()
8884    while True:
8885      (fname, ftype, fid) = iprot.readFieldBegin()
8886      if ftype == TType.STOP:
8887        break
8888      if fid == 0:
8889        if ftype == TType.I32:
8890          self.success = iprot.readI32();
8891        else:
8892          iprot.skip(ftype)
8893      elif fid == 1:
8894        if ftype == TType.STRUCT:
8895          self.io = IOError()
8896          self.io.read(iprot)
8897        else:
8898          iprot.skip(ftype)
8899      else:
8900        iprot.skip(ftype)
8901      iprot.readFieldEnd()
8902    iprot.readStructEnd()
8903
8904  def write(self, oprot):
8905    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8906      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8907      return
8908    oprot.writeStructBegin('scannerOpenWithStop_result')
8909    if self.success is not None:
8910      oprot.writeFieldBegin('success', TType.I32, 0)
8911      oprot.writeI32(self.success)
8912      oprot.writeFieldEnd()
8913    if self.io is not None:
8914      oprot.writeFieldBegin('io', TType.STRUCT, 1)
8915      self.io.write(oprot)
8916      oprot.writeFieldEnd()
8917    oprot.writeFieldStop()
8918    oprot.writeStructEnd()
8919
8920  def validate(self):
8921    return
8922
8923
8924  def __repr__(self):
8925    L = ['%s=%r' % (key, value)
8926      for key, value in self.__dict__.iteritems()]
8927    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8928
8929  def __eq__(self, other):
8930    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8931
8932  def __ne__(self, other):
8933    return not (self == other)
8934
8935class scannerOpenWithPrefix_args:
8936  """
8937  Attributes:
8938   - tableName: name of table
8939   - startAndPrefix: the prefix (and thus start row) of the keys you want
8940   - columns: the columns you want returned
8941   - attributes: Scan attributes
8942  """
8943
8944  thrift_spec = (
8945    None, # 0
8946    (1, TType.STRING, 'tableName', None, None, ), # 1
8947    (2, TType.STRING, 'startAndPrefix', None, None, ), # 2
8948    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
8949    (4, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 4
8950  )
8951
8952  def __init__(self, tableName=None, startAndPrefix=None, columns=None, attributes=None,):
8953    self.tableName = tableName
8954    self.startAndPrefix = startAndPrefix
8955    self.columns = columns
8956    self.attributes = attributes
8957
8958  def read(self, iprot):
8959    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8960      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8961      return
8962    iprot.readStructBegin()
8963    while True:
8964      (fname, ftype, fid) = iprot.readFieldBegin()
8965      if ftype == TType.STOP:
8966        break
8967      if fid == 1:
8968        if ftype == TType.STRING:
8969          self.tableName = iprot.readString();
8970        else:
8971          iprot.skip(ftype)
8972      elif fid == 2:
8973        if ftype == TType.STRING:
8974          self.startAndPrefix = iprot.readString();
8975        else:
8976          iprot.skip(ftype)
8977      elif fid == 3:
8978        if ftype == TType.LIST:
8979          self.columns = []
8980          (_etype436, _size433) = iprot.readListBegin()
8981          for _i437 in xrange(_size433):
8982            _elem438 = iprot.readString();
8983            self.columns.append(_elem438)
8984          iprot.readListEnd()
8985        else:
8986          iprot.skip(ftype)
8987      elif fid == 4:
8988        if ftype == TType.MAP:
8989          self.attributes = {}
8990          (_ktype440, _vtype441, _size439 ) = iprot.readMapBegin()
8991          for _i443 in xrange(_size439):
8992            _key444 = iprot.readString();
8993            _val445 = iprot.readString();
8994            self.attributes[_key444] = _val445
8995          iprot.readMapEnd()
8996        else:
8997          iprot.skip(ftype)
8998      else:
8999        iprot.skip(ftype)
9000      iprot.readFieldEnd()
9001    iprot.readStructEnd()
9002
9003  def write(self, oprot):
9004    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9005      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9006      return
9007    oprot.writeStructBegin('scannerOpenWithPrefix_args')
9008    if self.tableName is not None:
9009      oprot.writeFieldBegin('tableName', TType.STRING, 1)
9010      oprot.writeString(self.tableName)
9011      oprot.writeFieldEnd()
9012    if self.startAndPrefix is not None:
9013      oprot.writeFieldBegin('startAndPrefix', TType.STRING, 2)
9014      oprot.writeString(self.startAndPrefix)
9015      oprot.writeFieldEnd()
9016    if self.columns is not None:
9017      oprot.writeFieldBegin('columns', TType.LIST, 3)
9018      oprot.writeListBegin(TType.STRING, len(self.columns))
9019      for iter446 in self.columns:
9020        oprot.writeString(iter446)
9021      oprot.writeListEnd()
9022      oprot.writeFieldEnd()
9023    if self.attributes is not None:
9024      oprot.writeFieldBegin('attributes', TType.MAP, 4)
9025      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
9026      for kiter447,viter448 in self.attributes.items():
9027        oprot.writeString(kiter447)
9028        oprot.writeString(viter448)
9029      oprot.writeMapEnd()
9030      oprot.writeFieldEnd()
9031    oprot.writeFieldStop()
9032    oprot.writeStructEnd()
9033
9034  def validate(self):
9035    return
9036
9037
9038  def __repr__(self):
9039    L = ['%s=%r' % (key, value)
9040      for key, value in self.__dict__.iteritems()]
9041    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9042
9043  def __eq__(self, other):
9044    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9045
9046  def __ne__(self, other):
9047    return not (self == other)
9048
9049class scannerOpenWithPrefix_result:
9050  """
9051  Attributes:
9052   - success
9053   - io
9054  """
9055
9056  thrift_spec = (
9057    (0, TType.I32, 'success', None, None, ), # 0
9058    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9059  )
9060
9061  def __init__(self, success=None, io=None,):
9062    self.success = success
9063    self.io = io
9064
9065  def read(self, iprot):
9066    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9067      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9068      return
9069    iprot.readStructBegin()
9070    while True:
9071      (fname, ftype, fid) = iprot.readFieldBegin()
9072      if ftype == TType.STOP:
9073        break
9074      if fid == 0:
9075        if ftype == TType.I32:
9076          self.success = iprot.readI32();
9077        else:
9078          iprot.skip(ftype)
9079      elif fid == 1:
9080        if ftype == TType.STRUCT:
9081          self.io = IOError()
9082          self.io.read(iprot)
9083        else:
9084          iprot.skip(ftype)
9085      else:
9086        iprot.skip(ftype)
9087      iprot.readFieldEnd()
9088    iprot.readStructEnd()
9089
9090  def write(self, oprot):
9091    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9092      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9093      return
9094    oprot.writeStructBegin('scannerOpenWithPrefix_result')
9095    if self.success is not None:
9096      oprot.writeFieldBegin('success', TType.I32, 0)
9097      oprot.writeI32(self.success)
9098      oprot.writeFieldEnd()
9099    if self.io is not None:
9100      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9101      self.io.write(oprot)
9102      oprot.writeFieldEnd()
9103    oprot.writeFieldStop()
9104    oprot.writeStructEnd()
9105
9106  def validate(self):
9107    return
9108
9109
9110  def __repr__(self):
9111    L = ['%s=%r' % (key, value)
9112      for key, value in self.__dict__.iteritems()]
9113    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9114
9115  def __eq__(self, other):
9116    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9117
9118  def __ne__(self, other):
9119    return not (self == other)
9120
9121class scannerOpenTs_args:
9122  """
9123  Attributes:
9124   - tableName: name of table
9125   - startRow: Starting row in table to scan.
9126  Send "" (empty string) to start at the first row.
9127   - columns: columns to scan. If column name is a column family, all
9128  columns of the specified column family are returned. It's also possible
9129  to pass a regex in the column qualifier.
9130   - timestamp: timestamp
9131   - attributes: Scan attributes
9132  """
9133
9134  thrift_spec = (
9135    None, # 0
9136    (1, TType.STRING, 'tableName', None, None, ), # 1
9137    (2, TType.STRING, 'startRow', None, None, ), # 2
9138    (3, TType.LIST, 'columns', (TType.STRING,None), None, ), # 3
9139    (4, TType.I64, 'timestamp', None, None, ), # 4
9140    (5, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 5
9141  )
9142
9143  def __init__(self, tableName=None, startRow=None, columns=None, timestamp=None, attributes=None,):
9144    self.tableName = tableName
9145    self.startRow = startRow
9146    self.columns = columns
9147    self.timestamp = timestamp
9148    self.attributes = attributes
9149
9150  def read(self, iprot):
9151    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9152      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9153      return
9154    iprot.readStructBegin()
9155    while True:
9156      (fname, ftype, fid) = iprot.readFieldBegin()
9157      if ftype == TType.STOP:
9158        break
9159      if fid == 1:
9160        if ftype == TType.STRING:
9161          self.tableName = iprot.readString();
9162        else:
9163          iprot.skip(ftype)
9164      elif fid == 2:
9165        if ftype == TType.STRING:
9166          self.startRow = iprot.readString();
9167        else:
9168          iprot.skip(ftype)
9169      elif fid == 3:
9170        if ftype == TType.LIST:
9171          self.columns = []
9172          (_etype452, _size449) = iprot.readListBegin()
9173          for _i453 in xrange(_size449):
9174            _elem454 = iprot.readString();
9175            self.columns.append(_elem454)
9176          iprot.readListEnd()
9177        else:
9178          iprot.skip(ftype)
9179      elif fid == 4:
9180        if ftype == TType.I64:
9181          self.timestamp = iprot.readI64();
9182        else:
9183          iprot.skip(ftype)
9184      elif fid == 5:
9185        if ftype == TType.MAP:
9186          self.attributes = {}
9187          (_ktype456, _vtype457, _size455 ) = iprot.readMapBegin()
9188          for _i459 in xrange(_size455):
9189            _key460 = iprot.readString();
9190            _val461 = iprot.readString();
9191            self.attributes[_key460] = _val461
9192          iprot.readMapEnd()
9193        else:
9194          iprot.skip(ftype)
9195      else:
9196        iprot.skip(ftype)
9197      iprot.readFieldEnd()
9198    iprot.readStructEnd()
9199
9200  def write(self, oprot):
9201    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9202      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9203      return
9204    oprot.writeStructBegin('scannerOpenTs_args')
9205    if self.tableName is not None:
9206      oprot.writeFieldBegin('tableName', TType.STRING, 1)
9207      oprot.writeString(self.tableName)
9208      oprot.writeFieldEnd()
9209    if self.startRow is not None:
9210      oprot.writeFieldBegin('startRow', TType.STRING, 2)
9211      oprot.writeString(self.startRow)
9212      oprot.writeFieldEnd()
9213    if self.columns is not None:
9214      oprot.writeFieldBegin('columns', TType.LIST, 3)
9215      oprot.writeListBegin(TType.STRING, len(self.columns))
9216      for iter462 in self.columns:
9217        oprot.writeString(iter462)
9218      oprot.writeListEnd()
9219      oprot.writeFieldEnd()
9220    if self.timestamp is not None:
9221      oprot.writeFieldBegin('timestamp', TType.I64, 4)
9222      oprot.writeI64(self.timestamp)
9223      oprot.writeFieldEnd()
9224    if self.attributes is not None:
9225      oprot.writeFieldBegin('attributes', TType.MAP, 5)
9226      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
9227      for kiter463,viter464 in self.attributes.items():
9228        oprot.writeString(kiter463)
9229        oprot.writeString(viter464)
9230      oprot.writeMapEnd()
9231      oprot.writeFieldEnd()
9232    oprot.writeFieldStop()
9233    oprot.writeStructEnd()
9234
9235  def validate(self):
9236    return
9237
9238
9239  def __repr__(self):
9240    L = ['%s=%r' % (key, value)
9241      for key, value in self.__dict__.iteritems()]
9242    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9243
9244  def __eq__(self, other):
9245    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9246
9247  def __ne__(self, other):
9248    return not (self == other)
9249
9250class scannerOpenTs_result:
9251  """
9252  Attributes:
9253   - success
9254   - io
9255  """
9256
9257  thrift_spec = (
9258    (0, TType.I32, 'success', None, None, ), # 0
9259    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9260  )
9261
9262  def __init__(self, success=None, io=None,):
9263    self.success = success
9264    self.io = io
9265
9266  def read(self, iprot):
9267    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9268      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9269      return
9270    iprot.readStructBegin()
9271    while True:
9272      (fname, ftype, fid) = iprot.readFieldBegin()
9273      if ftype == TType.STOP:
9274        break
9275      if fid == 0:
9276        if ftype == TType.I32:
9277          self.success = iprot.readI32();
9278        else:
9279          iprot.skip(ftype)
9280      elif fid == 1:
9281        if ftype == TType.STRUCT:
9282          self.io = IOError()
9283          self.io.read(iprot)
9284        else:
9285          iprot.skip(ftype)
9286      else:
9287        iprot.skip(ftype)
9288      iprot.readFieldEnd()
9289    iprot.readStructEnd()
9290
9291  def write(self, oprot):
9292    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9293      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9294      return
9295    oprot.writeStructBegin('scannerOpenTs_result')
9296    if self.success is not None:
9297      oprot.writeFieldBegin('success', TType.I32, 0)
9298      oprot.writeI32(self.success)
9299      oprot.writeFieldEnd()
9300    if self.io is not None:
9301      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9302      self.io.write(oprot)
9303      oprot.writeFieldEnd()
9304    oprot.writeFieldStop()
9305    oprot.writeStructEnd()
9306
9307  def validate(self):
9308    return
9309
9310
9311  def __repr__(self):
9312    L = ['%s=%r' % (key, value)
9313      for key, value in self.__dict__.iteritems()]
9314    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9315
9316  def __eq__(self, other):
9317    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9318
9319  def __ne__(self, other):
9320    return not (self == other)
9321
9322class scannerOpenWithStopTs_args:
9323  """
9324  Attributes:
9325   - tableName: name of table
9326   - startRow: Starting row in table to scan.
9327  Send "" (empty string) to start at the first row.
9328   - stopRow: row to stop scanning on. This row is *not* included in the
9329  scanner's results
9330   - columns: columns to scan. If column name is a column family, all
9331  columns of the specified column family are returned. It's also possible
9332  to pass a regex in the column qualifier.
9333   - timestamp: timestamp
9334   - attributes: Scan attributes
9335  """
9336
9337  thrift_spec = (
9338    None, # 0
9339    (1, TType.STRING, 'tableName', None, None, ), # 1
9340    (2, TType.STRING, 'startRow', None, None, ), # 2
9341    (3, TType.STRING, 'stopRow', None, None, ), # 3
9342    (4, TType.LIST, 'columns', (TType.STRING,None), None, ), # 4
9343    (5, TType.I64, 'timestamp', None, None, ), # 5
9344    (6, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 6
9345  )
9346
9347  def __init__(self, tableName=None, startRow=None, stopRow=None, columns=None, timestamp=None, attributes=None,):
9348    self.tableName = tableName
9349    self.startRow = startRow
9350    self.stopRow = stopRow
9351    self.columns = columns
9352    self.timestamp = timestamp
9353    self.attributes = attributes
9354
9355  def read(self, iprot):
9356    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9357      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9358      return
9359    iprot.readStructBegin()
9360    while True:
9361      (fname, ftype, fid) = iprot.readFieldBegin()
9362      if ftype == TType.STOP:
9363        break
9364      if fid == 1:
9365        if ftype == TType.STRING:
9366          self.tableName = iprot.readString();
9367        else:
9368          iprot.skip(ftype)
9369      elif fid == 2:
9370        if ftype == TType.STRING:
9371          self.startRow = iprot.readString();
9372        else:
9373          iprot.skip(ftype)
9374      elif fid == 3:
9375        if ftype == TType.STRING:
9376          self.stopRow = iprot.readString();
9377        else:
9378          iprot.skip(ftype)
9379      elif fid == 4:
9380        if ftype == TType.LIST:
9381          self.columns = []
9382          (_etype468, _size465) = iprot.readListBegin()
9383          for _i469 in xrange(_size465):
9384            _elem470 = iprot.readString();
9385            self.columns.append(_elem470)
9386          iprot.readListEnd()
9387        else:
9388          iprot.skip(ftype)
9389      elif fid == 5:
9390        if ftype == TType.I64:
9391          self.timestamp = iprot.readI64();
9392        else:
9393          iprot.skip(ftype)
9394      elif fid == 6:
9395        if ftype == TType.MAP:
9396          self.attributes = {}
9397          (_ktype472, _vtype473, _size471 ) = iprot.readMapBegin()
9398          for _i475 in xrange(_size471):
9399            _key476 = iprot.readString();
9400            _val477 = iprot.readString();
9401            self.attributes[_key476] = _val477
9402          iprot.readMapEnd()
9403        else:
9404          iprot.skip(ftype)
9405      else:
9406        iprot.skip(ftype)
9407      iprot.readFieldEnd()
9408    iprot.readStructEnd()
9409
9410  def write(self, oprot):
9411    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9412      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9413      return
9414    oprot.writeStructBegin('scannerOpenWithStopTs_args')
9415    if self.tableName is not None:
9416      oprot.writeFieldBegin('tableName', TType.STRING, 1)
9417      oprot.writeString(self.tableName)
9418      oprot.writeFieldEnd()
9419    if self.startRow is not None:
9420      oprot.writeFieldBegin('startRow', TType.STRING, 2)
9421      oprot.writeString(self.startRow)
9422      oprot.writeFieldEnd()
9423    if self.stopRow is not None:
9424      oprot.writeFieldBegin('stopRow', TType.STRING, 3)
9425      oprot.writeString(self.stopRow)
9426      oprot.writeFieldEnd()
9427    if self.columns is not None:
9428      oprot.writeFieldBegin('columns', TType.LIST, 4)
9429      oprot.writeListBegin(TType.STRING, len(self.columns))
9430      for iter478 in self.columns:
9431        oprot.writeString(iter478)
9432      oprot.writeListEnd()
9433      oprot.writeFieldEnd()
9434    if self.timestamp is not None:
9435      oprot.writeFieldBegin('timestamp', TType.I64, 5)
9436      oprot.writeI64(self.timestamp)
9437      oprot.writeFieldEnd()
9438    if self.attributes is not None:
9439      oprot.writeFieldBegin('attributes', TType.MAP, 6)
9440      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
9441      for kiter479,viter480 in self.attributes.items():
9442        oprot.writeString(kiter479)
9443        oprot.writeString(viter480)
9444      oprot.writeMapEnd()
9445      oprot.writeFieldEnd()
9446    oprot.writeFieldStop()
9447    oprot.writeStructEnd()
9448
9449  def validate(self):
9450    return
9451
9452
9453  def __repr__(self):
9454    L = ['%s=%r' % (key, value)
9455      for key, value in self.__dict__.iteritems()]
9456    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9457
9458  def __eq__(self, other):
9459    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9460
9461  def __ne__(self, other):
9462    return not (self == other)
9463
9464class scannerOpenWithStopTs_result:
9465  """
9466  Attributes:
9467   - success
9468   - io
9469  """
9470
9471  thrift_spec = (
9472    (0, TType.I32, 'success', None, None, ), # 0
9473    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9474  )
9475
9476  def __init__(self, success=None, io=None,):
9477    self.success = success
9478    self.io = io
9479
9480  def read(self, iprot):
9481    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9482      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9483      return
9484    iprot.readStructBegin()
9485    while True:
9486      (fname, ftype, fid) = iprot.readFieldBegin()
9487      if ftype == TType.STOP:
9488        break
9489      if fid == 0:
9490        if ftype == TType.I32:
9491          self.success = iprot.readI32();
9492        else:
9493          iprot.skip(ftype)
9494      elif fid == 1:
9495        if ftype == TType.STRUCT:
9496          self.io = IOError()
9497          self.io.read(iprot)
9498        else:
9499          iprot.skip(ftype)
9500      else:
9501        iprot.skip(ftype)
9502      iprot.readFieldEnd()
9503    iprot.readStructEnd()
9504
9505  def write(self, oprot):
9506    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9507      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9508      return
9509    oprot.writeStructBegin('scannerOpenWithStopTs_result')
9510    if self.success is not None:
9511      oprot.writeFieldBegin('success', TType.I32, 0)
9512      oprot.writeI32(self.success)
9513      oprot.writeFieldEnd()
9514    if self.io is not None:
9515      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9516      self.io.write(oprot)
9517      oprot.writeFieldEnd()
9518    oprot.writeFieldStop()
9519    oprot.writeStructEnd()
9520
9521  def validate(self):
9522    return
9523
9524
9525  def __repr__(self):
9526    L = ['%s=%r' % (key, value)
9527      for key, value in self.__dict__.iteritems()]
9528    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9529
9530  def __eq__(self, other):
9531    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9532
9533  def __ne__(self, other):
9534    return not (self == other)
9535
9536class scannerGet_args:
9537  """
9538  Attributes:
9539   - id: id of a scanner returned by scannerOpen
9540  """
9541
9542  thrift_spec = (
9543    None, # 0
9544    (1, TType.I32, 'id', None, None, ), # 1
9545  )
9546
9547  def __init__(self, id=None,):
9548    self.id = id
9549
9550  def read(self, iprot):
9551    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9552      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9553      return
9554    iprot.readStructBegin()
9555    while True:
9556      (fname, ftype, fid) = iprot.readFieldBegin()
9557      if ftype == TType.STOP:
9558        break
9559      if fid == 1:
9560        if ftype == TType.I32:
9561          self.id = iprot.readI32();
9562        else:
9563          iprot.skip(ftype)
9564      else:
9565        iprot.skip(ftype)
9566      iprot.readFieldEnd()
9567    iprot.readStructEnd()
9568
9569  def write(self, oprot):
9570    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9571      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9572      return
9573    oprot.writeStructBegin('scannerGet_args')
9574    if self.id is not None:
9575      oprot.writeFieldBegin('id', TType.I32, 1)
9576      oprot.writeI32(self.id)
9577      oprot.writeFieldEnd()
9578    oprot.writeFieldStop()
9579    oprot.writeStructEnd()
9580
9581  def validate(self):
9582    return
9583
9584
9585  def __repr__(self):
9586    L = ['%s=%r' % (key, value)
9587      for key, value in self.__dict__.iteritems()]
9588    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9589
9590  def __eq__(self, other):
9591    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9592
9593  def __ne__(self, other):
9594    return not (self == other)
9595
9596class scannerGet_result:
9597  """
9598  Attributes:
9599   - success
9600   - io
9601   - ia
9602  """
9603
9604  thrift_spec = (
9605    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
9606    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9607    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
9608  )
9609
9610  def __init__(self, success=None, io=None, ia=None,):
9611    self.success = success
9612    self.io = io
9613    self.ia = ia
9614
9615  def read(self, iprot):
9616    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9617      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9618      return
9619    iprot.readStructBegin()
9620    while True:
9621      (fname, ftype, fid) = iprot.readFieldBegin()
9622      if ftype == TType.STOP:
9623        break
9624      if fid == 0:
9625        if ftype == TType.LIST:
9626          self.success = []
9627          (_etype484, _size481) = iprot.readListBegin()
9628          for _i485 in xrange(_size481):
9629            _elem486 = TRowResult()
9630            _elem486.read(iprot)
9631            self.success.append(_elem486)
9632          iprot.readListEnd()
9633        else:
9634          iprot.skip(ftype)
9635      elif fid == 1:
9636        if ftype == TType.STRUCT:
9637          self.io = IOError()
9638          self.io.read(iprot)
9639        else:
9640          iprot.skip(ftype)
9641      elif fid == 2:
9642        if ftype == TType.STRUCT:
9643          self.ia = IllegalArgument()
9644          self.ia.read(iprot)
9645        else:
9646          iprot.skip(ftype)
9647      else:
9648        iprot.skip(ftype)
9649      iprot.readFieldEnd()
9650    iprot.readStructEnd()
9651
9652  def write(self, oprot):
9653    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9654      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9655      return
9656    oprot.writeStructBegin('scannerGet_result')
9657    if self.success is not None:
9658      oprot.writeFieldBegin('success', TType.LIST, 0)
9659      oprot.writeListBegin(TType.STRUCT, len(self.success))
9660      for iter487 in self.success:
9661        iter487.write(oprot)
9662      oprot.writeListEnd()
9663      oprot.writeFieldEnd()
9664    if self.io is not None:
9665      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9666      self.io.write(oprot)
9667      oprot.writeFieldEnd()
9668    if self.ia is not None:
9669      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
9670      self.ia.write(oprot)
9671      oprot.writeFieldEnd()
9672    oprot.writeFieldStop()
9673    oprot.writeStructEnd()
9674
9675  def validate(self):
9676    return
9677
9678
9679  def __repr__(self):
9680    L = ['%s=%r' % (key, value)
9681      for key, value in self.__dict__.iteritems()]
9682    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9683
9684  def __eq__(self, other):
9685    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9686
9687  def __ne__(self, other):
9688    return not (self == other)
9689
9690class scannerGetList_args:
9691  """
9692  Attributes:
9693   - id: id of a scanner returned by scannerOpen
9694   - nbRows: number of results to return
9695  """
9696
9697  thrift_spec = (
9698    None, # 0
9699    (1, TType.I32, 'id', None, None, ), # 1
9700    (2, TType.I32, 'nbRows', None, None, ), # 2
9701  )
9702
9703  def __init__(self, id=None, nbRows=None,):
9704    self.id = id
9705    self.nbRows = nbRows
9706
9707  def read(self, iprot):
9708    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9709      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9710      return
9711    iprot.readStructBegin()
9712    while True:
9713      (fname, ftype, fid) = iprot.readFieldBegin()
9714      if ftype == TType.STOP:
9715        break
9716      if fid == 1:
9717        if ftype == TType.I32:
9718          self.id = iprot.readI32();
9719        else:
9720          iprot.skip(ftype)
9721      elif fid == 2:
9722        if ftype == TType.I32:
9723          self.nbRows = iprot.readI32();
9724        else:
9725          iprot.skip(ftype)
9726      else:
9727        iprot.skip(ftype)
9728      iprot.readFieldEnd()
9729    iprot.readStructEnd()
9730
9731  def write(self, oprot):
9732    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9733      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9734      return
9735    oprot.writeStructBegin('scannerGetList_args')
9736    if self.id is not None:
9737      oprot.writeFieldBegin('id', TType.I32, 1)
9738      oprot.writeI32(self.id)
9739      oprot.writeFieldEnd()
9740    if self.nbRows is not None:
9741      oprot.writeFieldBegin('nbRows', TType.I32, 2)
9742      oprot.writeI32(self.nbRows)
9743      oprot.writeFieldEnd()
9744    oprot.writeFieldStop()
9745    oprot.writeStructEnd()
9746
9747  def validate(self):
9748    return
9749
9750
9751  def __repr__(self):
9752    L = ['%s=%r' % (key, value)
9753      for key, value in self.__dict__.iteritems()]
9754    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9755
9756  def __eq__(self, other):
9757    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9758
9759  def __ne__(self, other):
9760    return not (self == other)
9761
9762class scannerGetList_result:
9763  """
9764  Attributes:
9765   - success
9766   - io
9767   - ia
9768  """
9769
9770  thrift_spec = (
9771    (0, TType.LIST, 'success', (TType.STRUCT,(TRowResult, TRowResult.thrift_spec)), None, ), # 0
9772    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9773    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
9774  )
9775
9776  def __init__(self, success=None, io=None, ia=None,):
9777    self.success = success
9778    self.io = io
9779    self.ia = ia
9780
9781  def read(self, iprot):
9782    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9783      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9784      return
9785    iprot.readStructBegin()
9786    while True:
9787      (fname, ftype, fid) = iprot.readFieldBegin()
9788      if ftype == TType.STOP:
9789        break
9790      if fid == 0:
9791        if ftype == TType.LIST:
9792          self.success = []
9793          (_etype491, _size488) = iprot.readListBegin()
9794          for _i492 in xrange(_size488):
9795            _elem493 = TRowResult()
9796            _elem493.read(iprot)
9797            self.success.append(_elem493)
9798          iprot.readListEnd()
9799        else:
9800          iprot.skip(ftype)
9801      elif fid == 1:
9802        if ftype == TType.STRUCT:
9803          self.io = IOError()
9804          self.io.read(iprot)
9805        else:
9806          iprot.skip(ftype)
9807      elif fid == 2:
9808        if ftype == TType.STRUCT:
9809          self.ia = IllegalArgument()
9810          self.ia.read(iprot)
9811        else:
9812          iprot.skip(ftype)
9813      else:
9814        iprot.skip(ftype)
9815      iprot.readFieldEnd()
9816    iprot.readStructEnd()
9817
9818  def write(self, oprot):
9819    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9820      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9821      return
9822    oprot.writeStructBegin('scannerGetList_result')
9823    if self.success is not None:
9824      oprot.writeFieldBegin('success', TType.LIST, 0)
9825      oprot.writeListBegin(TType.STRUCT, len(self.success))
9826      for iter494 in self.success:
9827        iter494.write(oprot)
9828      oprot.writeListEnd()
9829      oprot.writeFieldEnd()
9830    if self.io is not None:
9831      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9832      self.io.write(oprot)
9833      oprot.writeFieldEnd()
9834    if self.ia is not None:
9835      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
9836      self.ia.write(oprot)
9837      oprot.writeFieldEnd()
9838    oprot.writeFieldStop()
9839    oprot.writeStructEnd()
9840
9841  def validate(self):
9842    return
9843
9844
9845  def __repr__(self):
9846    L = ['%s=%r' % (key, value)
9847      for key, value in self.__dict__.iteritems()]
9848    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9849
9850  def __eq__(self, other):
9851    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9852
9853  def __ne__(self, other):
9854    return not (self == other)
9855
9856class scannerClose_args:
9857  """
9858  Attributes:
9859   - id: id of a scanner returned by scannerOpen
9860  """
9861
9862  thrift_spec = (
9863    None, # 0
9864    (1, TType.I32, 'id', None, None, ), # 1
9865  )
9866
9867  def __init__(self, id=None,):
9868    self.id = id
9869
9870  def read(self, iprot):
9871    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9872      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9873      return
9874    iprot.readStructBegin()
9875    while True:
9876      (fname, ftype, fid) = iprot.readFieldBegin()
9877      if ftype == TType.STOP:
9878        break
9879      if fid == 1:
9880        if ftype == TType.I32:
9881          self.id = iprot.readI32();
9882        else:
9883          iprot.skip(ftype)
9884      else:
9885        iprot.skip(ftype)
9886      iprot.readFieldEnd()
9887    iprot.readStructEnd()
9888
9889  def write(self, oprot):
9890    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9891      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9892      return
9893    oprot.writeStructBegin('scannerClose_args')
9894    if self.id is not None:
9895      oprot.writeFieldBegin('id', TType.I32, 1)
9896      oprot.writeI32(self.id)
9897      oprot.writeFieldEnd()
9898    oprot.writeFieldStop()
9899    oprot.writeStructEnd()
9900
9901  def validate(self):
9902    return
9903
9904
9905  def __repr__(self):
9906    L = ['%s=%r' % (key, value)
9907      for key, value in self.__dict__.iteritems()]
9908    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9909
9910  def __eq__(self, other):
9911    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9912
9913  def __ne__(self, other):
9914    return not (self == other)
9915
9916class scannerClose_result:
9917  """
9918  Attributes:
9919   - io
9920   - ia
9921  """
9922
9923  thrift_spec = (
9924    None, # 0
9925    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
9926    (2, TType.STRUCT, 'ia', (IllegalArgument, IllegalArgument.thrift_spec), None, ), # 2
9927  )
9928
9929  def __init__(self, io=None, ia=None,):
9930    self.io = io
9931    self.ia = ia
9932
9933  def read(self, iprot):
9934    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9935      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9936      return
9937    iprot.readStructBegin()
9938    while True:
9939      (fname, ftype, fid) = iprot.readFieldBegin()
9940      if ftype == TType.STOP:
9941        break
9942      if fid == 1:
9943        if ftype == TType.STRUCT:
9944          self.io = IOError()
9945          self.io.read(iprot)
9946        else:
9947          iprot.skip(ftype)
9948      elif fid == 2:
9949        if ftype == TType.STRUCT:
9950          self.ia = IllegalArgument()
9951          self.ia.read(iprot)
9952        else:
9953          iprot.skip(ftype)
9954      else:
9955        iprot.skip(ftype)
9956      iprot.readFieldEnd()
9957    iprot.readStructEnd()
9958
9959  def write(self, oprot):
9960    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9961      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9962      return
9963    oprot.writeStructBegin('scannerClose_result')
9964    if self.io is not None:
9965      oprot.writeFieldBegin('io', TType.STRUCT, 1)
9966      self.io.write(oprot)
9967      oprot.writeFieldEnd()
9968    if self.ia is not None:
9969      oprot.writeFieldBegin('ia', TType.STRUCT, 2)
9970      self.ia.write(oprot)
9971      oprot.writeFieldEnd()
9972    oprot.writeFieldStop()
9973    oprot.writeStructEnd()
9974
9975  def validate(self):
9976    return
9977
9978
9979  def __repr__(self):
9980    L = ['%s=%r' % (key, value)
9981      for key, value in self.__dict__.iteritems()]
9982    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9983
9984  def __eq__(self, other):
9985    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9986
9987  def __ne__(self, other):
9988    return not (self == other)
9989
9990class getRowOrBefore_args:
9991  """
9992  Attributes:
9993   - tableName: name of table
9994   - row: row key
9995   - family: column name
9996  """
9997
9998  thrift_spec = (
9999    None, # 0
10000    (1, TType.STRING, 'tableName', None, None, ), # 1
10001    (2, TType.STRING, 'row', None, None, ), # 2
10002    (3, TType.STRING, 'family', None, None, ), # 3
10003  )
10004
10005  def __init__(self, tableName=None, row=None, family=None,):
10006    self.tableName = tableName
10007    self.row = row
10008    self.family = family
10009
10010  def read(self, iprot):
10011    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10012      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10013      return
10014    iprot.readStructBegin()
10015    while True:
10016      (fname, ftype, fid) = iprot.readFieldBegin()
10017      if ftype == TType.STOP:
10018        break
10019      if fid == 1:
10020        if ftype == TType.STRING:
10021          self.tableName = iprot.readString();
10022        else:
10023          iprot.skip(ftype)
10024      elif fid == 2:
10025        if ftype == TType.STRING:
10026          self.row = iprot.readString();
10027        else:
10028          iprot.skip(ftype)
10029      elif fid == 3:
10030        if ftype == TType.STRING:
10031          self.family = iprot.readString();
10032        else:
10033          iprot.skip(ftype)
10034      else:
10035        iprot.skip(ftype)
10036      iprot.readFieldEnd()
10037    iprot.readStructEnd()
10038
10039  def write(self, oprot):
10040    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10041      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10042      return
10043    oprot.writeStructBegin('getRowOrBefore_args')
10044    if self.tableName is not None:
10045      oprot.writeFieldBegin('tableName', TType.STRING, 1)
10046      oprot.writeString(self.tableName)
10047      oprot.writeFieldEnd()
10048    if self.row is not None:
10049      oprot.writeFieldBegin('row', TType.STRING, 2)
10050      oprot.writeString(self.row)
10051      oprot.writeFieldEnd()
10052    if self.family is not None:
10053      oprot.writeFieldBegin('family', TType.STRING, 3)
10054      oprot.writeString(self.family)
10055      oprot.writeFieldEnd()
10056    oprot.writeFieldStop()
10057    oprot.writeStructEnd()
10058
10059  def validate(self):
10060    return
10061
10062
10063  def __repr__(self):
10064    L = ['%s=%r' % (key, value)
10065      for key, value in self.__dict__.iteritems()]
10066    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10067
10068  def __eq__(self, other):
10069    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10070
10071  def __ne__(self, other):
10072    return not (self == other)
10073
10074class getRowOrBefore_result:
10075  """
10076  Attributes:
10077   - success
10078   - io
10079  """
10080
10081  thrift_spec = (
10082    (0, TType.LIST, 'success', (TType.STRUCT,(TCell, TCell.thrift_spec)), None, ), # 0
10083    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
10084  )
10085
10086  def __init__(self, success=None, io=None,):
10087    self.success = success
10088    self.io = io
10089
10090  def read(self, iprot):
10091    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10092      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10093      return
10094    iprot.readStructBegin()
10095    while True:
10096      (fname, ftype, fid) = iprot.readFieldBegin()
10097      if ftype == TType.STOP:
10098        break
10099      if fid == 0:
10100        if ftype == TType.LIST:
10101          self.success = []
10102          (_etype498, _size495) = iprot.readListBegin()
10103          for _i499 in xrange(_size495):
10104            _elem500 = TCell()
10105            _elem500.read(iprot)
10106            self.success.append(_elem500)
10107          iprot.readListEnd()
10108        else:
10109          iprot.skip(ftype)
10110      elif fid == 1:
10111        if ftype == TType.STRUCT:
10112          self.io = IOError()
10113          self.io.read(iprot)
10114        else:
10115          iprot.skip(ftype)
10116      else:
10117        iprot.skip(ftype)
10118      iprot.readFieldEnd()
10119    iprot.readStructEnd()
10120
10121  def write(self, oprot):
10122    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10123      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10124      return
10125    oprot.writeStructBegin('getRowOrBefore_result')
10126    if self.success is not None:
10127      oprot.writeFieldBegin('success', TType.LIST, 0)
10128      oprot.writeListBegin(TType.STRUCT, len(self.success))
10129      for iter501 in self.success:
10130        iter501.write(oprot)
10131      oprot.writeListEnd()
10132      oprot.writeFieldEnd()
10133    if self.io is not None:
10134      oprot.writeFieldBegin('io', TType.STRUCT, 1)
10135      self.io.write(oprot)
10136      oprot.writeFieldEnd()
10137    oprot.writeFieldStop()
10138    oprot.writeStructEnd()
10139
10140  def validate(self):
10141    return
10142
10143
10144  def __repr__(self):
10145    L = ['%s=%r' % (key, value)
10146      for key, value in self.__dict__.iteritems()]
10147    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10148
10149  def __eq__(self, other):
10150    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10151
10152  def __ne__(self, other):
10153    return not (self == other)
10154
10155class getRegionInfo_args:
10156  """
10157  Attributes:
10158   - row: row key
10159  """
10160
10161  thrift_spec = (
10162    None, # 0
10163    (1, TType.STRING, 'row', None, None, ), # 1
10164  )
10165
10166  def __init__(self, row=None,):
10167    self.row = row
10168
10169  def read(self, iprot):
10170    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10171      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10172      return
10173    iprot.readStructBegin()
10174    while True:
10175      (fname, ftype, fid) = iprot.readFieldBegin()
10176      if ftype == TType.STOP:
10177        break
10178      if fid == 1:
10179        if ftype == TType.STRING:
10180          self.row = iprot.readString();
10181        else:
10182          iprot.skip(ftype)
10183      else:
10184        iprot.skip(ftype)
10185      iprot.readFieldEnd()
10186    iprot.readStructEnd()
10187
10188  def write(self, oprot):
10189    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10190      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10191      return
10192    oprot.writeStructBegin('getRegionInfo_args')
10193    if self.row is not None:
10194      oprot.writeFieldBegin('row', TType.STRING, 1)
10195      oprot.writeString(self.row)
10196      oprot.writeFieldEnd()
10197    oprot.writeFieldStop()
10198    oprot.writeStructEnd()
10199
10200  def validate(self):
10201    return
10202
10203
10204  def __repr__(self):
10205    L = ['%s=%r' % (key, value)
10206      for key, value in self.__dict__.iteritems()]
10207    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10208
10209  def __eq__(self, other):
10210    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10211
10212  def __ne__(self, other):
10213    return not (self == other)
10214
10215class getRegionInfo_result:
10216  """
10217  Attributes:
10218   - success
10219   - io
10220  """
10221
10222  thrift_spec = (
10223    (0, TType.STRUCT, 'success', (TRegionInfo, TRegionInfo.thrift_spec), None, ), # 0
10224    (1, TType.STRUCT, 'io', (IOError, IOError.thrift_spec), None, ), # 1
10225  )
10226
10227  def __init__(self, success=None, io=None,):
10228    self.success = success
10229    self.io = io
10230
10231  def read(self, iprot):
10232    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10233      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10234      return
10235    iprot.readStructBegin()
10236    while True:
10237      (fname, ftype, fid) = iprot.readFieldBegin()
10238      if ftype == TType.STOP:
10239        break
10240      if fid == 0:
10241        if ftype == TType.STRUCT:
10242          self.success = TRegionInfo()
10243          self.success.read(iprot)
10244        else:
10245          iprot.skip(ftype)
10246      elif fid == 1:
10247        if ftype == TType.STRUCT:
10248          self.io = IOError()
10249          self.io.read(iprot)
10250        else:
10251          iprot.skip(ftype)
10252      else:
10253        iprot.skip(ftype)
10254      iprot.readFieldEnd()
10255    iprot.readStructEnd()
10256
10257  def write(self, oprot):
10258    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10259      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10260      return
10261    oprot.writeStructBegin('getRegionInfo_result')
10262    if self.success is not None:
10263      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10264      self.success.write(oprot)
10265      oprot.writeFieldEnd()
10266    if self.io is not None:
10267      oprot.writeFieldBegin('io', TType.STRUCT, 1)
10268      self.io.write(oprot)
10269      oprot.writeFieldEnd()
10270    oprot.writeFieldStop()
10271    oprot.writeStructEnd()
10272
10273  def validate(self):
10274    return
10275
10276
10277  def __repr__(self):
10278    L = ['%s=%r' % (key, value)
10279      for key, value in self.__dict__.iteritems()]
10280    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10281
10282  def __eq__(self, other):
10283    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10284
10285  def __ne__(self, other):
10286    return not (self == other)
10287