View Javadoc

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    *  @generated
6    */
7   package org.apache.hadoop.hbase.thrift.generated;
8   
9   import org.apache.commons.lang.builder.HashCodeBuilder;
10  import org.apache.thrift.scheme.IScheme;
11  import org.apache.thrift.scheme.SchemeFactory;
12  import org.apache.thrift.scheme.StandardScheme;
13  
14  import org.apache.thrift.scheme.TupleScheme;
15  import org.apache.thrift.protocol.TTupleProtocol;
16  import org.apache.thrift.protocol.TProtocolException;
17  import org.apache.thrift.EncodingUtils;
18  import org.apache.thrift.TException;
19  import java.util.List;
20  import java.util.ArrayList;
21  import java.util.Map;
22  import java.util.HashMap;
23  import java.util.EnumMap;
24  import java.util.Set;
25  import java.util.HashSet;
26  import java.util.EnumSet;
27  import java.util.Collections;
28  import java.util.BitSet;
29  import java.nio.ByteBuffer;
30  import java.util.Arrays;
31  import org.slf4j.Logger;
32  import org.slf4j.LoggerFactory;
33  
34  public class Hbase {
35  
36    public interface Iface {
37  
38      /**
39       * Brings a table on-line (enables it)
40       * 
41       * @param tableName name of the table
42       */
43      public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
44  
45      /**
46       * Disables a table (takes it off-line) If it is being served, the master
47       * will tell the servers to stop serving it.
48       * 
49       * @param tableName name of the table
50       */
51      public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
52  
53      /**
54       * @return true if table is on-line
55       * 
56       * @param tableName name of the table to check
57       */
58      public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
59  
60      public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException;
61  
62      public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException;
63  
64      /**
65       * List all the userspace tables.
66       * 
67       * @return returns a list of names
68       */
69      public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException;
70  
71      /**
72       * List all the column families assoicated with a table.
73       * 
74       * @return list of column family descriptors
75       * 
76       * @param tableName table name
77       */
78      public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
79  
80      /**
81       * List the regions associated with a table.
82       * 
83       * @return list of region descriptors
84       * 
85       * @param tableName table name
86       */
87      public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
88  
89      /**
90       * Create a table with the specified column families.  The name
91       * field for each ColumnDescriptor must be set and must end in a
92       * colon (:). All other fields are optional and will get default
93       * values if not explicitly specified.
94       * 
95       * @throws IllegalArgument if an input parameter is invalid
96       * 
97       * @throws AlreadyExists if the table name already exists
98       * 
99       * @param tableName name of table to create
100      * 
101      * @param columnFamilies list of column family descriptors
102      */
103     public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException;
104 
105     /**
106      * Deletes a table
107      * 
108      * @throws IOError if table doesn't exist on server or there was some other
109      * problem
110      * 
111      * @param tableName name of table to delete
112      */
113     public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
114 
115     /**
116      * Get a single TCell for the specified table, row, and column at the
117      * latest timestamp. Returns an empty list if no such value exists.
118      * 
119      * @return value for specified row/column
120      * 
121      * @param tableName name of table
122      * 
123      * @param row row key
124      * 
125      * @param column column name
126      * 
127      * @param attributes Get attributes
128      */
129     public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
130 
131     /**
132      * Get the specified number of versions for the specified table,
133      * row, and column.
134      * 
135      * @return list of cells for specified row/column
136      * 
137      * @param tableName name of table
138      * 
139      * @param row row key
140      * 
141      * @param column column name
142      * 
143      * @param numVersions number of versions to retrieve
144      * 
145      * @param attributes Get attributes
146      */
147     public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
148 
149     /**
150      * Get the specified number of versions for the specified table,
151      * row, and column.  Only versions less than or equal to the specified
152      * timestamp will be returned.
153      * 
154      * @return list of cells for specified row/column
155      * 
156      * @param tableName name of table
157      * 
158      * @param row row key
159      * 
160      * @param column column name
161      * 
162      * @param timestamp timestamp
163      * 
164      * @param numVersions number of versions to retrieve
165      * 
166      * @param attributes Get attributes
167      */
168     public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
169 
170     /**
171      * Get all the data for the specified table and row at the latest
172      * timestamp. Returns an empty list if the row does not exist.
173      * 
174      * @return TRowResult containing the row and map of columns to TCells
175      * 
176      * @param tableName name of table
177      * 
178      * @param row row key
179      * 
180      * @param attributes Get attributes
181      */
182     public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
183 
184     /**
185      * Get the specified columns for the specified table and row at the latest
186      * timestamp. Returns an empty list if the row does not exist.
187      * 
188      * @return TRowResult containing the row and map of columns to TCells
189      * 
190      * @param tableName name of table
191      * 
192      * @param row row key
193      * 
194      * @param columns List of columns to return, null for all columns
195      * 
196      * @param attributes Get attributes
197      */
198     public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
199 
200     /**
201      * Get all the data for the specified table and row at the specified
202      * timestamp. Returns an empty list if the row does not exist.
203      * 
204      * @return TRowResult containing the row and map of columns to TCells
205      * 
206      * @param tableName name of the table
207      * 
208      * @param row row key
209      * 
210      * @param timestamp timestamp
211      * 
212      * @param attributes Get attributes
213      */
214     public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
215 
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      * @param tableName name of table
223      * 
224      * @param row row key
225      * 
226      * @param columns List of columns to return, null for all columns
227      * 
228      * @param timestamp
229      * @param attributes Get attributes
230      */
231     public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
232 
233     /**
234      * Get all the data for the specified table and rows at the latest
235      * timestamp. Returns an empty list if no rows exist.
236      * 
237      * @return TRowResult containing the rows and map of columns to TCells
238      * 
239      * @param tableName name of table
240      * 
241      * @param rows row keys
242      * 
243      * @param attributes Get attributes
244      */
245     public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
246 
247     /**
248      * Get the specified columns for the specified table and rows at the latest
249      * timestamp. Returns an empty list if no rows exist.
250      * 
251      * @return TRowResult containing the rows and map of columns to TCells
252      * 
253      * @param tableName name of table
254      * 
255      * @param rows row keys
256      * 
257      * @param columns List of columns to return, null for all columns
258      * 
259      * @param attributes Get attributes
260      */
261     public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
262 
263     /**
264      * Get all the data for the specified table and rows at the specified
265      * timestamp. Returns an empty list if no rows exist.
266      * 
267      * @return TRowResult containing the rows and map of columns to TCells
268      * 
269      * @param tableName name of the table
270      * 
271      * @param rows row keys
272      * 
273      * @param timestamp timestamp
274      * 
275      * @param attributes Get attributes
276      */
277     public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
278 
279     /**
280      * Get the specified columns for the specified table and rows at the specified
281      * timestamp. Returns an empty list if no rows exist.
282      * 
283      * @return TRowResult containing the rows and map of columns to TCells
284      * 
285      * @param tableName name of table
286      * 
287      * @param rows row keys
288      * 
289      * @param columns List of columns to return, null for all columns
290      * 
291      * @param timestamp
292      * @param attributes Get attributes
293      */
294     public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
295 
296     /**
297      * Apply a series of mutations (updates/deletes) to a row in a
298      * single transaction.  If an exception is thrown, then the
299      * transaction is aborted.  Default current timestamp is used, and
300      * all entries will have an identical timestamp.
301      * 
302      * @param tableName name of table
303      * 
304      * @param row row key
305      * 
306      * @param mutations list of mutation commands
307      * 
308      * @param attributes Mutation attributes
309      */
310     public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
311 
312     /**
313      * Apply a series of mutations (updates/deletes) to a row in a
314      * single transaction.  If an exception is thrown, then the
315      * transaction is aborted.  The specified timestamp is used, and
316      * all entries will have an identical timestamp.
317      * 
318      * @param tableName name of table
319      * 
320      * @param row row key
321      * 
322      * @param mutations list of mutation commands
323      * 
324      * @param timestamp timestamp
325      * 
326      * @param attributes Mutation attributes
327      */
328     public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
329 
330     /**
331      * Apply a series of batches (each a series of mutations on a single row)
332      * in a single transaction.  If an exception is thrown, then the
333      * transaction is aborted.  Default current timestamp is used, and
334      * all entries will have an identical timestamp.
335      * 
336      * @param tableName name of table
337      * 
338      * @param rowBatches list of row batches
339      * 
340      * @param attributes Mutation attributes
341      */
342     public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
343 
344     /**
345      * Apply a series of batches (each a series of mutations on a single row)
346      * in a single transaction.  If an exception is thrown, then the
347      * transaction is aborted.  The specified timestamp is used, and
348      * all entries will have an identical timestamp.
349      * 
350      * @param tableName name of table
351      * 
352      * @param rowBatches list of row batches
353      * 
354      * @param timestamp timestamp
355      * 
356      * @param attributes Mutation attributes
357      */
358     public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
359 
360     /**
361      * Atomically increment the column value specified.  Returns the next value post increment.
362      * 
363      * @param tableName name of table
364      * 
365      * @param row row to increment
366      * 
367      * @param column name of column
368      * 
369      * @param value amount to increment by
370      */
371     public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException;
372 
373     /**
374      * Delete all cells that match the passed row and column.
375      * 
376      * @param tableName name of table
377      * 
378      * @param row Row to update
379      * 
380      * @param column name of column whose value is to be deleted
381      * 
382      * @param attributes Delete attributes
383      */
384     public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
385 
386     /**
387      * Delete all cells that match the passed row and column and whose
388      * timestamp is equal-to or older than the passed timestamp.
389      * 
390      * @param tableName name of table
391      * 
392      * @param row Row to update
393      * 
394      * @param column name of column whose value is to be deleted
395      * 
396      * @param timestamp timestamp
397      * 
398      * @param attributes Delete attributes
399      */
400     public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
401 
402     /**
403      * Completely delete the row's cells.
404      * 
405      * @param tableName name of table
406      * 
407      * @param row key of the row to be completely deleted.
408      * 
409      * @param attributes Delete attributes
410      */
411     public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
412 
413     /**
414      * Increment a cell by the ammount.
415      * Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true.
416      * False is the default.  Turn to true if you need the extra performance and can accept some
417      * data loss if a thrift server dies with increments still in the queue.
418      * 
419      * @param increment The single increment to apply
420      */
421     public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException;
422 
423     public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException;
424 
425     /**
426      * Completely delete the row's cells marked with a timestamp
427      * equal-to or older than the passed timestamp.
428      * 
429      * @param tableName name of table
430      * 
431      * @param row key of the row to be completely deleted.
432      * 
433      * @param timestamp timestamp
434      * 
435      * @param attributes Delete attributes
436      */
437     public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
438 
439     /**
440      * Get a scanner on the current table, using the Scan instance
441      * for the scan parameters.
442      * 
443      * @param tableName name of table
444      * 
445      * @param scan Scan instance
446      * 
447      * @param attributes Scan attributes
448      */
449     public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
450 
451     /**
452      * Get a scanner on the current table starting at the specified row and
453      * ending at the last row in the table.  Return the specified columns.
454      * 
455      * @return scanner id to be used with other scanner procedures
456      * 
457      * @param tableName name of table
458      * 
459      * @param startRow Starting row in table to scan.
460      * Send "" (empty string) to start at the first row.
461      * 
462      * @param columns columns to scan. If column name is a column family, all
463      * columns of the specified column family are returned. It's also possible
464      * to pass a regex in the column qualifier.
465      * 
466      * @param attributes Scan attributes
467      */
468     public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
469 
470     /**
471      * Get a scanner on the current table starting and stopping at the
472      * specified rows.  ending at the last row in the table.  Return the
473      * specified columns.
474      * 
475      * @return scanner id to be used with other scanner procedures
476      * 
477      * @param tableName name of table
478      * 
479      * @param startRow Starting row in table to scan.
480      * Send "" (empty string) to start at the first row.
481      * 
482      * @param stopRow row to stop scanning on. This row is *not* included in the
483      * scanner's results
484      * 
485      * @param columns columns to scan. If column name is a column family, all
486      * columns of the specified column family are returned. It's also possible
487      * to pass a regex in the column qualifier.
488      * 
489      * @param attributes Scan attributes
490      */
491     public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
492 
493     /**
494      * Open a scanner for a given prefix.  That is all rows will have the specified
495      * prefix. No other rows will be returned.
496      * 
497      * @return scanner id to use with other scanner calls
498      * 
499      * @param tableName name of table
500      * 
501      * @param startAndPrefix the prefix (and thus start row) of the keys you want
502      * 
503      * @param columns the columns you want returned
504      * 
505      * @param attributes Scan attributes
506      */
507     public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
508 
509     /**
510      * Get a scanner on the current table starting at the specified row and
511      * ending at the last row in the table.  Return the specified columns.
512      * Only values with the specified timestamp are returned.
513      * 
514      * @return scanner id to be used with other scanner procedures
515      * 
516      * @param tableName name of table
517      * 
518      * @param startRow Starting row in table to scan.
519      * Send "" (empty string) to start at the first row.
520      * 
521      * @param columns columns to scan. If column name is a column family, all
522      * columns of the specified column family are returned. It's also possible
523      * to pass a regex in the column qualifier.
524      * 
525      * @param timestamp timestamp
526      * 
527      * @param attributes Scan attributes
528      */
529     public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
530 
531     /**
532      * Get a scanner on the current table starting and stopping at the
533      * specified rows.  ending at the last row in the table.  Return the
534      * specified columns.  Only values with the specified timestamp are
535      * returned.
536      * 
537      * @return scanner id to be used with other scanner procedures
538      * 
539      * @param tableName name of table
540      * 
541      * @param startRow Starting row in table to scan.
542      * Send "" (empty string) to start at the first row.
543      * 
544      * @param stopRow row to stop scanning on. This row is *not* included in the
545      * scanner's results
546      * 
547      * @param columns columns to scan. If column name is a column family, all
548      * columns of the specified column family are returned. It's also possible
549      * to pass a regex in the column qualifier.
550      * 
551      * @param timestamp timestamp
552      * 
553      * @param attributes Scan attributes
554      */
555     public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
556 
557     /**
558      * Returns the scanner's current row value and advances to the next
559      * row in the table.  When there are no more rows in the table, or a key
560      * greater-than-or-equal-to the scanner's specified stopRow is reached,
561      * an empty list is returned.
562      * 
563      * @return a TRowResult containing the current row and a map of the columns to TCells.
564      * 
565      * @throws IllegalArgument if ScannerID is invalid
566      * 
567      * @throws NotFound when the scanner reaches the end
568      * 
569      * @param id id of a scanner returned by scannerOpen
570      */
571     public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException;
572 
573     /**
574      * Returns, starting at the scanner's current row value nbRows worth of
575      * rows and advances to the next row in the table.  When there are no more
576      * rows in the table, or a key greater-than-or-equal-to the scanner's
577      * specified stopRow is reached,  an empty list is returned.
578      * 
579      * @return a TRowResult containing the current row and a map of the columns to TCells.
580      * 
581      * @throws IllegalArgument if ScannerID is invalid
582      * 
583      * @throws NotFound when the scanner reaches the end
584      * 
585      * @param id id of a scanner returned by scannerOpen
586      * 
587      * @param nbRows number of results to return
588      */
589     public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException;
590 
591     /**
592      * Closes the server-state associated with an open scanner.
593      * 
594      * @throws IllegalArgument if ScannerID is invalid
595      * 
596      * @param id id of a scanner returned by scannerOpen
597      */
598     public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException;
599 
600     /**
601      * Get the regininfo for the specified row. It scans
602      * the metatable to find region's start and end keys.
603      * 
604      * @return value for specified row/column
605      * 
606      * @param row row key
607      */
608     public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException;
609 
610     /**
611      * Appends values to one or more columns within a single row.
612      * 
613      * @return values of columns after the append operation.
614      * 
615      * @param append The single append operation to apply
616      */
617     public List<TCell> append(TAppend append) throws IOError, org.apache.thrift.TException;
618 
619     /**
620      * Atomically checks if a row/family/qualifier value matches the expected
621      * value. If it does, it adds the corresponding mutation operation for put.
622      * 
623      * @return true if the new put was executed, false otherwise
624      * 
625      * @param tableName name of table
626      * 
627      * @param row row key
628      * 
629      * @param column column name
630      * 
631      * @param value the expected value for the column parameter, if not
632      * provided the check is for the non-existence of the
633      * column in question
634      * 
635      * @param mput mutation for the put
636      * 
637      * @param attributes Mutation attributes
638      */
639     public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
640 
641   }
642 
643   public interface AsyncIface {
644 
645     public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enableTable_call> resultHandler) throws org.apache.thrift.TException;
646 
647     public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.disableTable_call> resultHandler) throws org.apache.thrift.TException;
648 
649     public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTableEnabled_call> resultHandler) throws org.apache.thrift.TException;
650 
651     public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.compact_call> resultHandler) throws org.apache.thrift.TException;
652 
653     public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.majorCompact_call> resultHandler) throws org.apache.thrift.TException;
654 
655     public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableNames_call> resultHandler) throws org.apache.thrift.TException;
656 
657     public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException;
658 
659     public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableRegions_call> resultHandler) throws org.apache.thrift.TException;
660 
661     public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTable_call> resultHandler) throws org.apache.thrift.TException;
662 
663     public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteTable_call> resultHandler) throws org.apache.thrift.TException;
664 
665     public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_call> resultHandler) throws org.apache.thrift.TException;
666 
667     public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVer_call> resultHandler) throws org.apache.thrift.TException;
668 
669     public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerTs_call> resultHandler) throws org.apache.thrift.TException;
670 
671     public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRow_call> resultHandler) throws org.apache.thrift.TException;
672 
673     public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException;
674 
675     public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowTs_call> resultHandler) throws org.apache.thrift.TException;
676 
677     public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException;
678 
679     public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRows_call> resultHandler) throws org.apache.thrift.TException;
680 
681     public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException;
682 
683     public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsTs_call> resultHandler) throws org.apache.thrift.TException;
684 
685     public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException;
686 
687     public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRow_call> resultHandler) throws org.apache.thrift.TException;
688 
689     public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowTs_call> resultHandler) throws org.apache.thrift.TException;
690 
691     public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRows_call> resultHandler) throws org.apache.thrift.TException;
692 
693     public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException;
694 
695     public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.atomicIncrement_call> resultHandler) throws org.apache.thrift.TException;
696 
697     public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAll_call> resultHandler) throws org.apache.thrift.TException;
698 
699     public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllTs_call> resultHandler) throws org.apache.thrift.TException;
700 
701     public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRow_call> resultHandler) throws org.apache.thrift.TException;
702 
703     public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increment_call> resultHandler) throws org.apache.thrift.TException;
704 
705     public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.incrementRows_call> resultHandler) throws org.apache.thrift.TException;
706 
707     public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException;
708 
709     public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException;
710 
711     public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpen_call> resultHandler) throws org.apache.thrift.TException;
712 
713     public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException;
714 
715     public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException;
716 
717     public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException;
718 
719     public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException;
720 
721     public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGet_call> resultHandler) throws org.apache.thrift.TException;
722 
723     public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGetList_call> resultHandler) throws org.apache.thrift.TException;
724 
725     public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerClose_call> resultHandler) throws org.apache.thrift.TException;
726 
727     public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRegionInfo_call> resultHandler) throws org.apache.thrift.TException;
728 
729     public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.append_call> resultHandler) throws org.apache.thrift.TException;
730 
731     public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkAndPut_call> resultHandler) throws org.apache.thrift.TException;
732 
733   }
734 
735   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
736     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
737       public Factory() {}
738       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
739         return new Client(prot);
740       }
741       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
742         return new Client(iprot, oprot);
743       }
744     }
745 
746     public Client(org.apache.thrift.protocol.TProtocol prot)
747     {
748       super(prot, prot);
749     }
750 
751     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
752       super(iprot, oprot);
753     }
754 
755     public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
756     {
757       send_enableTable(tableName);
758       recv_enableTable();
759     }
760 
761     public void send_enableTable(ByteBuffer tableName) throws org.apache.thrift.TException
762     {
763       enableTable_args args = new enableTable_args();
764       args.setTableName(tableName);
765       sendBase("enableTable", args);
766     }
767 
768     public void recv_enableTable() throws IOError, org.apache.thrift.TException
769     {
770       enableTable_result result = new enableTable_result();
771       receiveBase(result, "enableTable");
772       if (result.io != null) {
773         throw result.io;
774       }
775       return;
776     }
777 
778     public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
779     {
780       send_disableTable(tableName);
781       recv_disableTable();
782     }
783 
784     public void send_disableTable(ByteBuffer tableName) throws org.apache.thrift.TException
785     {
786       disableTable_args args = new disableTable_args();
787       args.setTableName(tableName);
788       sendBase("disableTable", args);
789     }
790 
791     public void recv_disableTable() throws IOError, org.apache.thrift.TException
792     {
793       disableTable_result result = new disableTable_result();
794       receiveBase(result, "disableTable");
795       if (result.io != null) {
796         throw result.io;
797       }
798       return;
799     }
800 
801     public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
802     {
803       send_isTableEnabled(tableName);
804       return recv_isTableEnabled();
805     }
806 
807     public void send_isTableEnabled(ByteBuffer tableName) throws org.apache.thrift.TException
808     {
809       isTableEnabled_args args = new isTableEnabled_args();
810       args.setTableName(tableName);
811       sendBase("isTableEnabled", args);
812     }
813 
814     public boolean recv_isTableEnabled() throws IOError, org.apache.thrift.TException
815     {
816       isTableEnabled_result result = new isTableEnabled_result();
817       receiveBase(result, "isTableEnabled");
818       if (result.isSetSuccess()) {
819         return result.success;
820       }
821       if (result.io != null) {
822         throw result.io;
823       }
824       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result");
825     }
826 
827     public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException
828     {
829       send_compact(tableNameOrRegionName);
830       recv_compact();
831     }
832 
833     public void send_compact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException
834     {
835       compact_args args = new compact_args();
836       args.setTableNameOrRegionName(tableNameOrRegionName);
837       sendBase("compact", args);
838     }
839 
840     public void recv_compact() throws IOError, org.apache.thrift.TException
841     {
842       compact_result result = new compact_result();
843       receiveBase(result, "compact");
844       if (result.io != null) {
845         throw result.io;
846       }
847       return;
848     }
849 
850     public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException
851     {
852       send_majorCompact(tableNameOrRegionName);
853       recv_majorCompact();
854     }
855 
856     public void send_majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException
857     {
858       majorCompact_args args = new majorCompact_args();
859       args.setTableNameOrRegionName(tableNameOrRegionName);
860       sendBase("majorCompact", args);
861     }
862 
863     public void recv_majorCompact() throws IOError, org.apache.thrift.TException
864     {
865       majorCompact_result result = new majorCompact_result();
866       receiveBase(result, "majorCompact");
867       if (result.io != null) {
868         throw result.io;
869       }
870       return;
871     }
872 
873     public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException
874     {
875       send_getTableNames();
876       return recv_getTableNames();
877     }
878 
879     public void send_getTableNames() throws org.apache.thrift.TException
880     {
881       getTableNames_args args = new getTableNames_args();
882       sendBase("getTableNames", args);
883     }
884 
885     public List<ByteBuffer> recv_getTableNames() throws IOError, org.apache.thrift.TException
886     {
887       getTableNames_result result = new getTableNames_result();
888       receiveBase(result, "getTableNames");
889       if (result.isSetSuccess()) {
890         return result.success;
891       }
892       if (result.io != null) {
893         throw result.io;
894       }
895       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result");
896     }
897 
898     public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
899     {
900       send_getColumnDescriptors(tableName);
901       return recv_getColumnDescriptors();
902     }
903 
904     public void send_getColumnDescriptors(ByteBuffer tableName) throws org.apache.thrift.TException
905     {
906       getColumnDescriptors_args args = new getColumnDescriptors_args();
907       args.setTableName(tableName);
908       sendBase("getColumnDescriptors", args);
909     }
910 
911     public Map<ByteBuffer,ColumnDescriptor> recv_getColumnDescriptors() throws IOError, org.apache.thrift.TException
912     {
913       getColumnDescriptors_result result = new getColumnDescriptors_result();
914       receiveBase(result, "getColumnDescriptors");
915       if (result.isSetSuccess()) {
916         return result.success;
917       }
918       if (result.io != null) {
919         throw result.io;
920       }
921       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result");
922     }
923 
924     public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
925     {
926       send_getTableRegions(tableName);
927       return recv_getTableRegions();
928     }
929 
930     public void send_getTableRegions(ByteBuffer tableName) throws org.apache.thrift.TException
931     {
932       getTableRegions_args args = new getTableRegions_args();
933       args.setTableName(tableName);
934       sendBase("getTableRegions", args);
935     }
936 
937     public List<TRegionInfo> recv_getTableRegions() throws IOError, org.apache.thrift.TException
938     {
939       getTableRegions_result result = new getTableRegions_result();
940       receiveBase(result, "getTableRegions");
941       if (result.isSetSuccess()) {
942         return result.success;
943       }
944       if (result.io != null) {
945         throw result.io;
946       }
947       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result");
948     }
949 
950     public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException
951     {
952       send_createTable(tableName, columnFamilies);
953       recv_createTable();
954     }
955 
956     public void send_createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws org.apache.thrift.TException
957     {
958       createTable_args args = new createTable_args();
959       args.setTableName(tableName);
960       args.setColumnFamilies(columnFamilies);
961       sendBase("createTable", args);
962     }
963 
964     public void recv_createTable() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException
965     {
966       createTable_result result = new createTable_result();
967       receiveBase(result, "createTable");
968       if (result.io != null) {
969         throw result.io;
970       }
971       if (result.ia != null) {
972         throw result.ia;
973       }
974       if (result.exist != null) {
975         throw result.exist;
976       }
977       return;
978     }
979 
980     public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
981     {
982       send_deleteTable(tableName);
983       recv_deleteTable();
984     }
985 
986     public void send_deleteTable(ByteBuffer tableName) throws org.apache.thrift.TException
987     {
988       deleteTable_args args = new deleteTable_args();
989       args.setTableName(tableName);
990       sendBase("deleteTable", args);
991     }
992 
993     public void recv_deleteTable() throws IOError, org.apache.thrift.TException
994     {
995       deleteTable_result result = new deleteTable_result();
996       receiveBase(result, "deleteTable");
997       if (result.io != null) {
998         throw result.io;
999       }
1000       return;
1001     }
1002 
1003     public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1004     {
1005       send_get(tableName, row, column, attributes);
1006       return recv_get();
1007     }
1008 
1009     public void send_get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1010     {
1011       get_args args = new get_args();
1012       args.setTableName(tableName);
1013       args.setRow(row);
1014       args.setColumn(column);
1015       args.setAttributes(attributes);
1016       sendBase("get", args);
1017     }
1018 
1019     public List<TCell> recv_get() throws IOError, org.apache.thrift.TException
1020     {
1021       get_result result = new get_result();
1022       receiveBase(result, "get");
1023       if (result.isSetSuccess()) {
1024         return result.success;
1025       }
1026       if (result.io != null) {
1027         throw result.io;
1028       }
1029       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result");
1030     }
1031 
1032     public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1033     {
1034       send_getVer(tableName, row, column, numVersions, attributes);
1035       return recv_getVer();
1036     }
1037 
1038     public void send_getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1039     {
1040       getVer_args args = new getVer_args();
1041       args.setTableName(tableName);
1042       args.setRow(row);
1043       args.setColumn(column);
1044       args.setNumVersions(numVersions);
1045       args.setAttributes(attributes);
1046       sendBase("getVer", args);
1047     }
1048 
1049     public List<TCell> recv_getVer() throws IOError, org.apache.thrift.TException
1050     {
1051       getVer_result result = new getVer_result();
1052       receiveBase(result, "getVer");
1053       if (result.isSetSuccess()) {
1054         return result.success;
1055       }
1056       if (result.io != null) {
1057         throw result.io;
1058       }
1059       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVer failed: unknown result");
1060     }
1061 
1062     public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1063     {
1064       send_getVerTs(tableName, row, column, timestamp, numVersions, attributes);
1065       return recv_getVerTs();
1066     }
1067 
1068     public void send_getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1069     {
1070       getVerTs_args args = new getVerTs_args();
1071       args.setTableName(tableName);
1072       args.setRow(row);
1073       args.setColumn(column);
1074       args.setTimestamp(timestamp);
1075       args.setNumVersions(numVersions);
1076       args.setAttributes(attributes);
1077       sendBase("getVerTs", args);
1078     }
1079 
1080     public List<TCell> recv_getVerTs() throws IOError, org.apache.thrift.TException
1081     {
1082       getVerTs_result result = new getVerTs_result();
1083       receiveBase(result, "getVerTs");
1084       if (result.isSetSuccess()) {
1085         return result.success;
1086       }
1087       if (result.io != null) {
1088         throw result.io;
1089       }
1090       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result");
1091     }
1092 
1093     public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1094     {
1095       send_getRow(tableName, row, attributes);
1096       return recv_getRow();
1097     }
1098 
1099     public void send_getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1100     {
1101       getRow_args args = new getRow_args();
1102       args.setTableName(tableName);
1103       args.setRow(row);
1104       args.setAttributes(attributes);
1105       sendBase("getRow", args);
1106     }
1107 
1108     public List<TRowResult> recv_getRow() throws IOError, org.apache.thrift.TException
1109     {
1110       getRow_result result = new getRow_result();
1111       receiveBase(result, "getRow");
1112       if (result.isSetSuccess()) {
1113         return result.success;
1114       }
1115       if (result.io != null) {
1116         throw result.io;
1117       }
1118       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRow failed: unknown result");
1119     }
1120 
1121     public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1122     {
1123       send_getRowWithColumns(tableName, row, columns, attributes);
1124       return recv_getRowWithColumns();
1125     }
1126 
1127     public void send_getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1128     {
1129       getRowWithColumns_args args = new getRowWithColumns_args();
1130       args.setTableName(tableName);
1131       args.setRow(row);
1132       args.setColumns(columns);
1133       args.setAttributes(attributes);
1134       sendBase("getRowWithColumns", args);
1135     }
1136 
1137     public List<TRowResult> recv_getRowWithColumns() throws IOError, org.apache.thrift.TException
1138     {
1139       getRowWithColumns_result result = new getRowWithColumns_result();
1140       receiveBase(result, "getRowWithColumns");
1141       if (result.isSetSuccess()) {
1142         return result.success;
1143       }
1144       if (result.io != null) {
1145         throw result.io;
1146       }
1147       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result");
1148     }
1149 
1150     public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1151     {
1152       send_getRowTs(tableName, row, timestamp, attributes);
1153       return recv_getRowTs();
1154     }
1155 
1156     public void send_getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1157     {
1158       getRowTs_args args = new getRowTs_args();
1159       args.setTableName(tableName);
1160       args.setRow(row);
1161       args.setTimestamp(timestamp);
1162       args.setAttributes(attributes);
1163       sendBase("getRowTs", args);
1164     }
1165 
1166     public List<TRowResult> recv_getRowTs() throws IOError, org.apache.thrift.TException
1167     {
1168       getRowTs_result result = new getRowTs_result();
1169       receiveBase(result, "getRowTs");
1170       if (result.isSetSuccess()) {
1171         return result.success;
1172       }
1173       if (result.io != null) {
1174         throw result.io;
1175       }
1176       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result");
1177     }
1178 
1179     public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1180     {
1181       send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes);
1182       return recv_getRowWithColumnsTs();
1183     }
1184 
1185     public void send_getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1186     {
1187       getRowWithColumnsTs_args args = new getRowWithColumnsTs_args();
1188       args.setTableName(tableName);
1189       args.setRow(row);
1190       args.setColumns(columns);
1191       args.setTimestamp(timestamp);
1192       args.setAttributes(attributes);
1193       sendBase("getRowWithColumnsTs", args);
1194     }
1195 
1196     public List<TRowResult> recv_getRowWithColumnsTs() throws IOError, org.apache.thrift.TException
1197     {
1198       getRowWithColumnsTs_result result = new getRowWithColumnsTs_result();
1199       receiveBase(result, "getRowWithColumnsTs");
1200       if (result.isSetSuccess()) {
1201         return result.success;
1202       }
1203       if (result.io != null) {
1204         throw result.io;
1205       }
1206       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result");
1207     }
1208 
1209     public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1210     {
1211       send_getRows(tableName, rows, attributes);
1212       return recv_getRows();
1213     }
1214 
1215     public void send_getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1216     {
1217       getRows_args args = new getRows_args();
1218       args.setTableName(tableName);
1219       args.setRows(rows);
1220       args.setAttributes(attributes);
1221       sendBase("getRows", args);
1222     }
1223 
1224     public List<TRowResult> recv_getRows() throws IOError, org.apache.thrift.TException
1225     {
1226       getRows_result result = new getRows_result();
1227       receiveBase(result, "getRows");
1228       if (result.isSetSuccess()) {
1229         return result.success;
1230       }
1231       if (result.io != null) {
1232         throw result.io;
1233       }
1234       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRows failed: unknown result");
1235     }
1236 
1237     public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1238     {
1239       send_getRowsWithColumns(tableName, rows, columns, attributes);
1240       return recv_getRowsWithColumns();
1241     }
1242 
1243     public void send_getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1244     {
1245       getRowsWithColumns_args args = new getRowsWithColumns_args();
1246       args.setTableName(tableName);
1247       args.setRows(rows);
1248       args.setColumns(columns);
1249       args.setAttributes(attributes);
1250       sendBase("getRowsWithColumns", args);
1251     }
1252 
1253     public List<TRowResult> recv_getRowsWithColumns() throws IOError, org.apache.thrift.TException
1254     {
1255       getRowsWithColumns_result result = new getRowsWithColumns_result();
1256       receiveBase(result, "getRowsWithColumns");
1257       if (result.isSetSuccess()) {
1258         return result.success;
1259       }
1260       if (result.io != null) {
1261         throw result.io;
1262       }
1263       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result");
1264     }
1265 
1266     public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1267     {
1268       send_getRowsTs(tableName, rows, timestamp, attributes);
1269       return recv_getRowsTs();
1270     }
1271 
1272     public void send_getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1273     {
1274       getRowsTs_args args = new getRowsTs_args();
1275       args.setTableName(tableName);
1276       args.setRows(rows);
1277       args.setTimestamp(timestamp);
1278       args.setAttributes(attributes);
1279       sendBase("getRowsTs", args);
1280     }
1281 
1282     public List<TRowResult> recv_getRowsTs() throws IOError, org.apache.thrift.TException
1283     {
1284       getRowsTs_result result = new getRowsTs_result();
1285       receiveBase(result, "getRowsTs");
1286       if (result.isSetSuccess()) {
1287         return result.success;
1288       }
1289       if (result.io != null) {
1290         throw result.io;
1291       }
1292       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result");
1293     }
1294 
1295     public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1296     {
1297       send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes);
1298       return recv_getRowsWithColumnsTs();
1299     }
1300 
1301     public void send_getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1302     {
1303       getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args();
1304       args.setTableName(tableName);
1305       args.setRows(rows);
1306       args.setColumns(columns);
1307       args.setTimestamp(timestamp);
1308       args.setAttributes(attributes);
1309       sendBase("getRowsWithColumnsTs", args);
1310     }
1311 
1312     public List<TRowResult> recv_getRowsWithColumnsTs() throws IOError, org.apache.thrift.TException
1313     {
1314       getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result();
1315       receiveBase(result, "getRowsWithColumnsTs");
1316       if (result.isSetSuccess()) {
1317         return result.success;
1318       }
1319       if (result.io != null) {
1320         throw result.io;
1321       }
1322       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result");
1323     }
1324 
1325     public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1326     {
1327       send_mutateRow(tableName, row, mutations, attributes);
1328       recv_mutateRow();
1329     }
1330 
1331     public void send_mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1332     {
1333       mutateRow_args args = new mutateRow_args();
1334       args.setTableName(tableName);
1335       args.setRow(row);
1336       args.setMutations(mutations);
1337       args.setAttributes(attributes);
1338       sendBase("mutateRow", args);
1339     }
1340 
1341     public void recv_mutateRow() throws IOError, IllegalArgument, org.apache.thrift.TException
1342     {
1343       mutateRow_result result = new mutateRow_result();
1344       receiveBase(result, "mutateRow");
1345       if (result.io != null) {
1346         throw result.io;
1347       }
1348       if (result.ia != null) {
1349         throw result.ia;
1350       }
1351       return;
1352     }
1353 
1354     public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1355     {
1356       send_mutateRowTs(tableName, row, mutations, timestamp, attributes);
1357       recv_mutateRowTs();
1358     }
1359 
1360     public void send_mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1361     {
1362       mutateRowTs_args args = new mutateRowTs_args();
1363       args.setTableName(tableName);
1364       args.setRow(row);
1365       args.setMutations(mutations);
1366       args.setTimestamp(timestamp);
1367       args.setAttributes(attributes);
1368       sendBase("mutateRowTs", args);
1369     }
1370 
1371     public void recv_mutateRowTs() throws IOError, IllegalArgument, org.apache.thrift.TException
1372     {
1373       mutateRowTs_result result = new mutateRowTs_result();
1374       receiveBase(result, "mutateRowTs");
1375       if (result.io != null) {
1376         throw result.io;
1377       }
1378       if (result.ia != null) {
1379         throw result.ia;
1380       }
1381       return;
1382     }
1383 
1384     public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1385     {
1386       send_mutateRows(tableName, rowBatches, attributes);
1387       recv_mutateRows();
1388     }
1389 
1390     public void send_mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1391     {
1392       mutateRows_args args = new mutateRows_args();
1393       args.setTableName(tableName);
1394       args.setRowBatches(rowBatches);
1395       args.setAttributes(attributes);
1396       sendBase("mutateRows", args);
1397     }
1398 
1399     public void recv_mutateRows() throws IOError, IllegalArgument, org.apache.thrift.TException
1400     {
1401       mutateRows_result result = new mutateRows_result();
1402       receiveBase(result, "mutateRows");
1403       if (result.io != null) {
1404         throw result.io;
1405       }
1406       if (result.ia != null) {
1407         throw result.ia;
1408       }
1409       return;
1410     }
1411 
1412     public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1413     {
1414       send_mutateRowsTs(tableName, rowBatches, timestamp, attributes);
1415       recv_mutateRowsTs();
1416     }
1417 
1418     public void send_mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1419     {
1420       mutateRowsTs_args args = new mutateRowsTs_args();
1421       args.setTableName(tableName);
1422       args.setRowBatches(rowBatches);
1423       args.setTimestamp(timestamp);
1424       args.setAttributes(attributes);
1425       sendBase("mutateRowsTs", args);
1426     }
1427 
1428     public void recv_mutateRowsTs() throws IOError, IllegalArgument, org.apache.thrift.TException
1429     {
1430       mutateRowsTs_result result = new mutateRowsTs_result();
1431       receiveBase(result, "mutateRowsTs");
1432       if (result.io != null) {
1433         throw result.io;
1434       }
1435       if (result.ia != null) {
1436         throw result.ia;
1437       }
1438       return;
1439     }
1440 
1441     public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException
1442     {
1443       send_atomicIncrement(tableName, row, column, value);
1444       return recv_atomicIncrement();
1445     }
1446 
1447     public void send_atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws org.apache.thrift.TException
1448     {
1449       atomicIncrement_args args = new atomicIncrement_args();
1450       args.setTableName(tableName);
1451       args.setRow(row);
1452       args.setColumn(column);
1453       args.setValue(value);
1454       sendBase("atomicIncrement", args);
1455     }
1456 
1457     public long recv_atomicIncrement() throws IOError, IllegalArgument, org.apache.thrift.TException
1458     {
1459       atomicIncrement_result result = new atomicIncrement_result();
1460       receiveBase(result, "atomicIncrement");
1461       if (result.isSetSuccess()) {
1462         return result.success;
1463       }
1464       if (result.io != null) {
1465         throw result.io;
1466       }
1467       if (result.ia != null) {
1468         throw result.ia;
1469       }
1470       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result");
1471     }
1472 
1473     public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1474     {
1475       send_deleteAll(tableName, row, column, attributes);
1476       recv_deleteAll();
1477     }
1478 
1479     public void send_deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1480     {
1481       deleteAll_args args = new deleteAll_args();
1482       args.setTableName(tableName);
1483       args.setRow(row);
1484       args.setColumn(column);
1485       args.setAttributes(attributes);
1486       sendBase("deleteAll", args);
1487     }
1488 
1489     public void recv_deleteAll() throws IOError, org.apache.thrift.TException
1490     {
1491       deleteAll_result result = new deleteAll_result();
1492       receiveBase(result, "deleteAll");
1493       if (result.io != null) {
1494         throw result.io;
1495       }
1496       return;
1497     }
1498 
1499     public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1500     {
1501       send_deleteAllTs(tableName, row, column, timestamp, attributes);
1502       recv_deleteAllTs();
1503     }
1504 
1505     public void send_deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1506     {
1507       deleteAllTs_args args = new deleteAllTs_args();
1508       args.setTableName(tableName);
1509       args.setRow(row);
1510       args.setColumn(column);
1511       args.setTimestamp(timestamp);
1512       args.setAttributes(attributes);
1513       sendBase("deleteAllTs", args);
1514     }
1515 
1516     public void recv_deleteAllTs() throws IOError, org.apache.thrift.TException
1517     {
1518       deleteAllTs_result result = new deleteAllTs_result();
1519       receiveBase(result, "deleteAllTs");
1520       if (result.io != null) {
1521         throw result.io;
1522       }
1523       return;
1524     }
1525 
1526     public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1527     {
1528       send_deleteAllRow(tableName, row, attributes);
1529       recv_deleteAllRow();
1530     }
1531 
1532     public void send_deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1533     {
1534       deleteAllRow_args args = new deleteAllRow_args();
1535       args.setTableName(tableName);
1536       args.setRow(row);
1537       args.setAttributes(attributes);
1538       sendBase("deleteAllRow", args);
1539     }
1540 
1541     public void recv_deleteAllRow() throws IOError, org.apache.thrift.TException
1542     {
1543       deleteAllRow_result result = new deleteAllRow_result();
1544       receiveBase(result, "deleteAllRow");
1545       if (result.io != null) {
1546         throw result.io;
1547       }
1548       return;
1549     }
1550 
1551     public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException
1552     {
1553       send_increment(increment);
1554       recv_increment();
1555     }
1556 
1557     public void send_increment(TIncrement increment) throws org.apache.thrift.TException
1558     {
1559       increment_args args = new increment_args();
1560       args.setIncrement(increment);
1561       sendBase("increment", args);
1562     }
1563 
1564     public void recv_increment() throws IOError, org.apache.thrift.TException
1565     {
1566       increment_result result = new increment_result();
1567       receiveBase(result, "increment");
1568       if (result.io != null) {
1569         throw result.io;
1570       }
1571       return;
1572     }
1573 
1574     public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException
1575     {
1576       send_incrementRows(increments);
1577       recv_incrementRows();
1578     }
1579 
1580     public void send_incrementRows(List<TIncrement> increments) throws org.apache.thrift.TException
1581     {
1582       incrementRows_args args = new incrementRows_args();
1583       args.setIncrements(increments);
1584       sendBase("incrementRows", args);
1585     }
1586 
1587     public void recv_incrementRows() throws IOError, org.apache.thrift.TException
1588     {
1589       incrementRows_result result = new incrementRows_result();
1590       receiveBase(result, "incrementRows");
1591       if (result.io != null) {
1592         throw result.io;
1593       }
1594       return;
1595     }
1596 
1597     public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1598     {
1599       send_deleteAllRowTs(tableName, row, timestamp, attributes);
1600       recv_deleteAllRowTs();
1601     }
1602 
1603     public void send_deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1604     {
1605       deleteAllRowTs_args args = new deleteAllRowTs_args();
1606       args.setTableName(tableName);
1607       args.setRow(row);
1608       args.setTimestamp(timestamp);
1609       args.setAttributes(attributes);
1610       sendBase("deleteAllRowTs", args);
1611     }
1612 
1613     public void recv_deleteAllRowTs() throws IOError, org.apache.thrift.TException
1614     {
1615       deleteAllRowTs_result result = new deleteAllRowTs_result();
1616       receiveBase(result, "deleteAllRowTs");
1617       if (result.io != null) {
1618         throw result.io;
1619       }
1620       return;
1621     }
1622 
1623     public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1624     {
1625       send_scannerOpenWithScan(tableName, scan, attributes);
1626       return recv_scannerOpenWithScan();
1627     }
1628 
1629     public void send_scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1630     {
1631       scannerOpenWithScan_args args = new scannerOpenWithScan_args();
1632       args.setTableName(tableName);
1633       args.setScan(scan);
1634       args.setAttributes(attributes);
1635       sendBase("scannerOpenWithScan", args);
1636     }
1637 
1638     public int recv_scannerOpenWithScan() throws IOError, org.apache.thrift.TException
1639     {
1640       scannerOpenWithScan_result result = new scannerOpenWithScan_result();
1641       receiveBase(result, "scannerOpenWithScan");
1642       if (result.isSetSuccess()) {
1643         return result.success;
1644       }
1645       if (result.io != null) {
1646         throw result.io;
1647       }
1648       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result");
1649     }
1650 
1651     public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1652     {
1653       send_scannerOpen(tableName, startRow, columns, attributes);
1654       return recv_scannerOpen();
1655     }
1656 
1657     public void send_scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1658     {
1659       scannerOpen_args args = new scannerOpen_args();
1660       args.setTableName(tableName);
1661       args.setStartRow(startRow);
1662       args.setColumns(columns);
1663       args.setAttributes(attributes);
1664       sendBase("scannerOpen", args);
1665     }
1666 
1667     public int recv_scannerOpen() throws IOError, org.apache.thrift.TException
1668     {
1669       scannerOpen_result result = new scannerOpen_result();
1670       receiveBase(result, "scannerOpen");
1671       if (result.isSetSuccess()) {
1672         return result.success;
1673       }
1674       if (result.io != null) {
1675         throw result.io;
1676       }
1677       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result");
1678     }
1679 
1680     public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1681     {
1682       send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes);
1683       return recv_scannerOpenWithStop();
1684     }
1685 
1686     public void send_scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1687     {
1688       scannerOpenWithStop_args args = new scannerOpenWithStop_args();
1689       args.setTableName(tableName);
1690       args.setStartRow(startRow);
1691       args.setStopRow(stopRow);
1692       args.setColumns(columns);
1693       args.setAttributes(attributes);
1694       sendBase("scannerOpenWithStop", args);
1695     }
1696 
1697     public int recv_scannerOpenWithStop() throws IOError, org.apache.thrift.TException
1698     {
1699       scannerOpenWithStop_result result = new scannerOpenWithStop_result();
1700       receiveBase(result, "scannerOpenWithStop");
1701       if (result.isSetSuccess()) {
1702         return result.success;
1703       }
1704       if (result.io != null) {
1705         throw result.io;
1706       }
1707       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result");
1708     }
1709 
1710     public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1711     {
1712       send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes);
1713       return recv_scannerOpenWithPrefix();
1714     }
1715 
1716     public void send_scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1717     {
1718       scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args();
1719       args.setTableName(tableName);
1720       args.setStartAndPrefix(startAndPrefix);
1721       args.setColumns(columns);
1722       args.setAttributes(attributes);
1723       sendBase("scannerOpenWithPrefix", args);
1724     }
1725 
1726     public int recv_scannerOpenWithPrefix() throws IOError, org.apache.thrift.TException
1727     {
1728       scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result();
1729       receiveBase(result, "scannerOpenWithPrefix");
1730       if (result.isSetSuccess()) {
1731         return result.success;
1732       }
1733       if (result.io != null) {
1734         throw result.io;
1735       }
1736       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result");
1737     }
1738 
1739     public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1740     {
1741       send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes);
1742       return recv_scannerOpenTs();
1743     }
1744 
1745     public void send_scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1746     {
1747       scannerOpenTs_args args = new scannerOpenTs_args();
1748       args.setTableName(tableName);
1749       args.setStartRow(startRow);
1750       args.setColumns(columns);
1751       args.setTimestamp(timestamp);
1752       args.setAttributes(attributes);
1753       sendBase("scannerOpenTs", args);
1754     }
1755 
1756     public int recv_scannerOpenTs() throws IOError, org.apache.thrift.TException
1757     {
1758       scannerOpenTs_result result = new scannerOpenTs_result();
1759       receiveBase(result, "scannerOpenTs");
1760       if (result.isSetSuccess()) {
1761         return result.success;
1762       }
1763       if (result.io != null) {
1764         throw result.io;
1765       }
1766       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result");
1767     }
1768 
1769     public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1770     {
1771       send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes);
1772       return recv_scannerOpenWithStopTs();
1773     }
1774 
1775     public void send_scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1776     {
1777       scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args();
1778       args.setTableName(tableName);
1779       args.setStartRow(startRow);
1780       args.setStopRow(stopRow);
1781       args.setColumns(columns);
1782       args.setTimestamp(timestamp);
1783       args.setAttributes(attributes);
1784       sendBase("scannerOpenWithStopTs", args);
1785     }
1786 
1787     public int recv_scannerOpenWithStopTs() throws IOError, org.apache.thrift.TException
1788     {
1789       scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result();
1790       receiveBase(result, "scannerOpenWithStopTs");
1791       if (result.isSetSuccess()) {
1792         return result.success;
1793       }
1794       if (result.io != null) {
1795         throw result.io;
1796       }
1797       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result");
1798     }
1799 
1800     public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException
1801     {
1802       send_scannerGet(id);
1803       return recv_scannerGet();
1804     }
1805 
1806     public void send_scannerGet(int id) throws org.apache.thrift.TException
1807     {
1808       scannerGet_args args = new scannerGet_args();
1809       args.setId(id);
1810       sendBase("scannerGet", args);
1811     }
1812 
1813     public List<TRowResult> recv_scannerGet() throws IOError, IllegalArgument, org.apache.thrift.TException
1814     {
1815       scannerGet_result result = new scannerGet_result();
1816       receiveBase(result, "scannerGet");
1817       if (result.isSetSuccess()) {
1818         return result.success;
1819       }
1820       if (result.io != null) {
1821         throw result.io;
1822       }
1823       if (result.ia != null) {
1824         throw result.ia;
1825       }
1826       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result");
1827     }
1828 
1829     public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException
1830     {
1831       send_scannerGetList(id, nbRows);
1832       return recv_scannerGetList();
1833     }
1834 
1835     public void send_scannerGetList(int id, int nbRows) throws org.apache.thrift.TException
1836     {
1837       scannerGetList_args args = new scannerGetList_args();
1838       args.setId(id);
1839       args.setNbRows(nbRows);
1840       sendBase("scannerGetList", args);
1841     }
1842 
1843     public List<TRowResult> recv_scannerGetList() throws IOError, IllegalArgument, org.apache.thrift.TException
1844     {
1845       scannerGetList_result result = new scannerGetList_result();
1846       receiveBase(result, "scannerGetList");
1847       if (result.isSetSuccess()) {
1848         return result.success;
1849       }
1850       if (result.io != null) {
1851         throw result.io;
1852       }
1853       if (result.ia != null) {
1854         throw result.ia;
1855       }
1856       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result");
1857     }
1858 
1859     public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException
1860     {
1861       send_scannerClose(id);
1862       recv_scannerClose();
1863     }
1864 
1865     public void send_scannerClose(int id) throws org.apache.thrift.TException
1866     {
1867       scannerClose_args args = new scannerClose_args();
1868       args.setId(id);
1869       sendBase("scannerClose", args);
1870     }
1871 
1872     public void recv_scannerClose() throws IOError, IllegalArgument, org.apache.thrift.TException
1873     {
1874       scannerClose_result result = new scannerClose_result();
1875       receiveBase(result, "scannerClose");
1876       if (result.io != null) {
1877         throw result.io;
1878       }
1879       if (result.ia != null) {
1880         throw result.ia;
1881       }
1882       return;
1883     }
1884 
1885     public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException
1886     {
1887       send_getRegionInfo(row);
1888       return recv_getRegionInfo();
1889     }
1890 
1891     public void send_getRegionInfo(ByteBuffer row) throws org.apache.thrift.TException
1892     {
1893       getRegionInfo_args args = new getRegionInfo_args();
1894       args.setRow(row);
1895       sendBase("getRegionInfo", args);
1896     }
1897 
1898     public TRegionInfo recv_getRegionInfo() throws IOError, org.apache.thrift.TException
1899     {
1900       getRegionInfo_result result = new getRegionInfo_result();
1901       receiveBase(result, "getRegionInfo");
1902       if (result.isSetSuccess()) {
1903         return result.success;
1904       }
1905       if (result.io != null) {
1906         throw result.io;
1907       }
1908       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result");
1909     }
1910 
1911     public List<TCell> append(TAppend append) throws IOError, org.apache.thrift.TException
1912     {
1913       send_append(append);
1914       return recv_append();
1915     }
1916 
1917     public void send_append(TAppend append) throws org.apache.thrift.TException
1918     {
1919       append_args args = new append_args();
1920       args.setAppend(append);
1921       sendBase("append", args);
1922     }
1923 
1924     public List<TCell> recv_append() throws IOError, org.apache.thrift.TException
1925     {
1926       append_result result = new append_result();
1927       receiveBase(result, "append");
1928       if (result.isSetSuccess()) {
1929         return result.success;
1930       }
1931       if (result.io != null) {
1932         throw result.io;
1933       }
1934       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append failed: unknown result");
1935     }
1936 
1937     public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1938     {
1939       send_checkAndPut(tableName, row, column, value, mput, attributes);
1940       return recv_checkAndPut();
1941     }
1942 
1943     public void send_checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1944     {
1945       checkAndPut_args args = new checkAndPut_args();
1946       args.setTableName(tableName);
1947       args.setRow(row);
1948       args.setColumn(column);
1949       args.setValue(value);
1950       args.setMput(mput);
1951       args.setAttributes(attributes);
1952       sendBase("checkAndPut", args);
1953     }
1954 
1955     public boolean recv_checkAndPut() throws IOError, IllegalArgument, org.apache.thrift.TException
1956     {
1957       checkAndPut_result result = new checkAndPut_result();
1958       receiveBase(result, "checkAndPut");
1959       if (result.isSetSuccess()) {
1960         return result.success;
1961       }
1962       if (result.io != null) {
1963         throw result.io;
1964       }
1965       if (result.ia != null) {
1966         throw result.ia;
1967       }
1968       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndPut failed: unknown result");
1969     }
1970 
1971   }
1972   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
1973     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1974       private org.apache.thrift.async.TAsyncClientManager clientManager;
1975       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1976       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1977         this.clientManager = clientManager;
1978         this.protocolFactory = protocolFactory;
1979       }
1980       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1981         return new AsyncClient(protocolFactory, clientManager, transport);
1982       }
1983     }
1984 
1985     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1986       super(protocolFactory, clientManager, transport);
1987     }
1988 
1989     public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler) throws org.apache.thrift.TException {
1990       checkReady();
1991       enableTable_call method_call = new enableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
1992       this.___currentMethod = method_call;
1993       ___manager.call(method_call);
1994     }
1995 
1996     public static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall {
1997       private ByteBuffer tableName;
1998       public enableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1999         super(client, protocolFactory, transport, resultHandler, false);
2000         this.tableName = tableName;
2001       }
2002 
2003       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2004         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2005         enableTable_args args = new enableTable_args();
2006         args.setTableName(tableName);
2007         args.write(prot);
2008         prot.writeMessageEnd();
2009       }
2010 
2011       public void getResult() throws IOError, org.apache.thrift.TException {
2012         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2013           throw new IllegalStateException("Method call not finished!");
2014         }
2015         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2016         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2017         (new Client(prot)).recv_enableTable();
2018       }
2019     }
2020 
2021     public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler) throws org.apache.thrift.TException {
2022       checkReady();
2023       disableTable_call method_call = new disableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2024       this.___currentMethod = method_call;
2025       ___manager.call(method_call);
2026     }
2027 
2028     public static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2029       private ByteBuffer tableName;
2030       public disableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2031         super(client, protocolFactory, transport, resultHandler, false);
2032         this.tableName = tableName;
2033       }
2034 
2035       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2036         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2037         disableTable_args args = new disableTable_args();
2038         args.setTableName(tableName);
2039         args.write(prot);
2040         prot.writeMessageEnd();
2041       }
2042 
2043       public void getResult() throws IOError, org.apache.thrift.TException {
2044         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2045           throw new IllegalStateException("Method call not finished!");
2046         }
2047         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2048         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2049         (new Client(prot)).recv_disableTable();
2050       }
2051     }
2052 
2053     public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler) throws org.apache.thrift.TException {
2054       checkReady();
2055       isTableEnabled_call method_call = new isTableEnabled_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2056       this.___currentMethod = method_call;
2057       ___manager.call(method_call);
2058     }
2059 
2060     public static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall {
2061       private ByteBuffer tableName;
2062       public isTableEnabled_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2063         super(client, protocolFactory, transport, resultHandler, false);
2064         this.tableName = tableName;
2065       }
2066 
2067       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2068         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isTableEnabled", org.apache.thrift.protocol.TMessageType.CALL, 0));
2069         isTableEnabled_args args = new isTableEnabled_args();
2070         args.setTableName(tableName);
2071         args.write(prot);
2072         prot.writeMessageEnd();
2073       }
2074 
2075       public boolean getResult() throws IOError, org.apache.thrift.TException {
2076         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2077           throw new IllegalStateException("Method call not finished!");
2078         }
2079         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2080         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2081         return (new Client(prot)).recv_isTableEnabled();
2082       }
2083     }
2084 
2085     public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler) throws org.apache.thrift.TException {
2086       checkReady();
2087       compact_call method_call = new compact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport);
2088       this.___currentMethod = method_call;
2089       ___manager.call(method_call);
2090     }
2091 
2092     public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall {
2093       private ByteBuffer tableNameOrRegionName;
2094       public compact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2095         super(client, protocolFactory, transport, resultHandler, false);
2096         this.tableNameOrRegionName = tableNameOrRegionName;
2097       }
2098 
2099       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2100         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("compact", org.apache.thrift.protocol.TMessageType.CALL, 0));
2101         compact_args args = new compact_args();
2102         args.setTableNameOrRegionName(tableNameOrRegionName);
2103         args.write(prot);
2104         prot.writeMessageEnd();
2105       }
2106 
2107       public void getResult() throws IOError, org.apache.thrift.TException {
2108         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2109           throw new IllegalStateException("Method call not finished!");
2110         }
2111         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2112         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2113         (new Client(prot)).recv_compact();
2114       }
2115     }
2116 
2117     public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler) throws org.apache.thrift.TException {
2118       checkReady();
2119       majorCompact_call method_call = new majorCompact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport);
2120       this.___currentMethod = method_call;
2121       ___manager.call(method_call);
2122     }
2123 
2124     public static class majorCompact_call extends org.apache.thrift.async.TAsyncMethodCall {
2125       private ByteBuffer tableNameOrRegionName;
2126       public majorCompact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2127         super(client, protocolFactory, transport, resultHandler, false);
2128         this.tableNameOrRegionName = tableNameOrRegionName;
2129       }
2130 
2131       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2132         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("majorCompact", org.apache.thrift.protocol.TMessageType.CALL, 0));
2133         majorCompact_args args = new majorCompact_args();
2134         args.setTableNameOrRegionName(tableNameOrRegionName);
2135         args.write(prot);
2136         prot.writeMessageEnd();
2137       }
2138 
2139       public void getResult() throws IOError, org.apache.thrift.TException {
2140         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2141           throw new IllegalStateException("Method call not finished!");
2142         }
2143         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2144         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2145         (new Client(prot)).recv_majorCompact();
2146       }
2147     }
2148 
2149     public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler) throws org.apache.thrift.TException {
2150       checkReady();
2151       getTableNames_call method_call = new getTableNames_call(resultHandler, this, ___protocolFactory, ___transport);
2152       this.___currentMethod = method_call;
2153       ___manager.call(method_call);
2154     }
2155 
2156     public static class getTableNames_call extends org.apache.thrift.async.TAsyncMethodCall {
2157       public getTableNames_call(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2158         super(client, protocolFactory, transport, resultHandler, false);
2159       }
2160 
2161       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2162         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableNames", org.apache.thrift.protocol.TMessageType.CALL, 0));
2163         getTableNames_args args = new getTableNames_args();
2164         args.write(prot);
2165         prot.writeMessageEnd();
2166       }
2167 
2168       public List<ByteBuffer> getResult() throws IOError, org.apache.thrift.TException {
2169         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2170           throw new IllegalStateException("Method call not finished!");
2171         }
2172         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2173         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2174         return (new Client(prot)).recv_getTableNames();
2175       }
2176     }
2177 
2178     public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException {
2179       checkReady();
2180       getColumnDescriptors_call method_call = new getColumnDescriptors_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2181       this.___currentMethod = method_call;
2182       ___manager.call(method_call);
2183     }
2184 
2185     public static class getColumnDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall {
2186       private ByteBuffer tableName;
2187       public getColumnDescriptors_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2188         super(client, protocolFactory, transport, resultHandler, false);
2189         this.tableName = tableName;
2190       }
2191 
2192       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2193         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getColumnDescriptors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2194         getColumnDescriptors_args args = new getColumnDescriptors_args();
2195         args.setTableName(tableName);
2196         args.write(prot);
2197         prot.writeMessageEnd();
2198       }
2199 
2200       public Map<ByteBuffer,ColumnDescriptor> getResult() throws IOError, org.apache.thrift.TException {
2201         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2202           throw new IllegalStateException("Method call not finished!");
2203         }
2204         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2205         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2206         return (new Client(prot)).recv_getColumnDescriptors();
2207       }
2208     }
2209 
2210     public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler) throws org.apache.thrift.TException {
2211       checkReady();
2212       getTableRegions_call method_call = new getTableRegions_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2213       this.___currentMethod = method_call;
2214       ___manager.call(method_call);
2215     }
2216 
2217     public static class getTableRegions_call extends org.apache.thrift.async.TAsyncMethodCall {
2218       private ByteBuffer tableName;
2219       public getTableRegions_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2220         super(client, protocolFactory, transport, resultHandler, false);
2221         this.tableName = tableName;
2222       }
2223 
2224       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2225         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableRegions", org.apache.thrift.protocol.TMessageType.CALL, 0));
2226         getTableRegions_args args = new getTableRegions_args();
2227         args.setTableName(tableName);
2228         args.write(prot);
2229         prot.writeMessageEnd();
2230       }
2231 
2232       public List<TRegionInfo> getResult() throws IOError, org.apache.thrift.TException {
2233         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2234           throw new IllegalStateException("Method call not finished!");
2235         }
2236         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2237         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2238         return (new Client(prot)).recv_getTableRegions();
2239       }
2240     }
2241 
2242     public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler) throws org.apache.thrift.TException {
2243       checkReady();
2244       createTable_call method_call = new createTable_call(tableName, columnFamilies, resultHandler, this, ___protocolFactory, ___transport);
2245       this.___currentMethod = method_call;
2246       ___manager.call(method_call);
2247     }
2248 
2249     public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2250       private ByteBuffer tableName;
2251       private List<ColumnDescriptor> columnFamilies;
2252       public createTable_call(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2253         super(client, protocolFactory, transport, resultHandler, false);
2254         this.tableName = tableName;
2255         this.columnFamilies = columnFamilies;
2256       }
2257 
2258       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2259         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2260         createTable_args args = new createTable_args();
2261         args.setTableName(tableName);
2262         args.setColumnFamilies(columnFamilies);
2263         args.write(prot);
2264         prot.writeMessageEnd();
2265       }
2266 
2267       public void getResult() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException {
2268         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2269           throw new IllegalStateException("Method call not finished!");
2270         }
2271         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2272         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2273         (new Client(prot)).recv_createTable();
2274       }
2275     }
2276 
2277     public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler) throws org.apache.thrift.TException {
2278       checkReady();
2279       deleteTable_call method_call = new deleteTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2280       this.___currentMethod = method_call;
2281       ___manager.call(method_call);
2282     }
2283 
2284     public static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2285       private ByteBuffer tableName;
2286       public deleteTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2287         super(client, protocolFactory, transport, resultHandler, false);
2288         this.tableName = tableName;
2289       }
2290 
2291       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2292         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2293         deleteTable_args args = new deleteTable_args();
2294         args.setTableName(tableName);
2295         args.write(prot);
2296         prot.writeMessageEnd();
2297       }
2298 
2299       public void getResult() throws IOError, org.apache.thrift.TException {
2300         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2301           throw new IllegalStateException("Method call not finished!");
2302         }
2303         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2304         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2305         (new Client(prot)).recv_deleteTable();
2306       }
2307     }
2308 
2309     public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler) throws org.apache.thrift.TException {
2310       checkReady();
2311       get_call method_call = new get_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport);
2312       this.___currentMethod = method_call;
2313       ___manager.call(method_call);
2314     }
2315 
2316     public static class get_call extends org.apache.thrift.async.TAsyncMethodCall {
2317       private ByteBuffer tableName;
2318       private ByteBuffer row;
2319       private ByteBuffer column;
2320       private Map<ByteBuffer,ByteBuffer> attributes;
2321       public get_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2322         super(client, protocolFactory, transport, resultHandler, false);
2323         this.tableName = tableName;
2324         this.row = row;
2325         this.column = column;
2326         this.attributes = attributes;
2327       }
2328 
2329       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2330         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get", org.apache.thrift.protocol.TMessageType.CALL, 0));
2331         get_args args = new get_args();
2332         args.setTableName(tableName);
2333         args.setRow(row);
2334         args.setColumn(column);
2335         args.setAttributes(attributes);
2336         args.write(prot);
2337         prot.writeMessageEnd();
2338       }
2339 
2340       public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2341         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2342           throw new IllegalStateException("Method call not finished!");
2343         }
2344         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2345         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2346         return (new Client(prot)).recv_get();
2347       }
2348     }
2349 
2350     public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler) throws org.apache.thrift.TException {
2351       checkReady();
2352       getVer_call method_call = new getVer_call(tableName, row, column, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport);
2353       this.___currentMethod = method_call;
2354       ___manager.call(method_call);
2355     }
2356 
2357     public static class getVer_call extends org.apache.thrift.async.TAsyncMethodCall {
2358       private ByteBuffer tableName;
2359       private ByteBuffer row;
2360       private ByteBuffer column;
2361       private int numVersions;
2362       private Map<ByteBuffer,ByteBuffer> attributes;
2363       public getVer_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2364         super(client, protocolFactory, transport, resultHandler, false);
2365         this.tableName = tableName;
2366         this.row = row;
2367         this.column = column;
2368         this.numVersions = numVersions;
2369         this.attributes = attributes;
2370       }
2371 
2372       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2373         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2374         getVer_args args = new getVer_args();
2375         args.setTableName(tableName);
2376         args.setRow(row);
2377         args.setColumn(column);
2378         args.setNumVersions(numVersions);
2379         args.setAttributes(attributes);
2380         args.write(prot);
2381         prot.writeMessageEnd();
2382       }
2383 
2384       public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2385         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2386           throw new IllegalStateException("Method call not finished!");
2387         }
2388         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2389         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2390         return (new Client(prot)).recv_getVer();
2391       }
2392     }
2393 
2394     public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler) throws org.apache.thrift.TException {
2395       checkReady();
2396       getVerTs_call method_call = new getVerTs_call(tableName, row, column, timestamp, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport);
2397       this.___currentMethod = method_call;
2398       ___manager.call(method_call);
2399     }
2400 
2401     public static class getVerTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2402       private ByteBuffer tableName;
2403       private ByteBuffer row;
2404       private ByteBuffer column;
2405       private long timestamp;
2406       private int numVersions;
2407       private Map<ByteBuffer,ByteBuffer> attributes;
2408       public getVerTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2409         super(client, protocolFactory, transport, resultHandler, false);
2410         this.tableName = tableName;
2411         this.row = row;
2412         this.column = column;
2413         this.timestamp = timestamp;
2414         this.numVersions = numVersions;
2415         this.attributes = attributes;
2416       }
2417 
2418       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2419         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVerTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2420         getVerTs_args args = new getVerTs_args();
2421         args.setTableName(tableName);
2422         args.setRow(row);
2423         args.setColumn(column);
2424         args.setTimestamp(timestamp);
2425         args.setNumVersions(numVersions);
2426         args.setAttributes(attributes);
2427         args.write(prot);
2428         prot.writeMessageEnd();
2429       }
2430 
2431       public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2432         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2433           throw new IllegalStateException("Method call not finished!");
2434         }
2435         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2436         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2437         return (new Client(prot)).recv_getVerTs();
2438       }
2439     }
2440 
2441     public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler) throws org.apache.thrift.TException {
2442       checkReady();
2443       getRow_call method_call = new getRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport);
2444       this.___currentMethod = method_call;
2445       ___manager.call(method_call);
2446     }
2447 
2448     public static class getRow_call extends org.apache.thrift.async.TAsyncMethodCall {
2449       private ByteBuffer tableName;
2450       private ByteBuffer row;
2451       private Map<ByteBuffer,ByteBuffer> attributes;
2452       public getRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2453         super(client, protocolFactory, transport, resultHandler, false);
2454         this.tableName = tableName;
2455         this.row = row;
2456         this.attributes = attributes;
2457       }
2458 
2459       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2460         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
2461         getRow_args args = new getRow_args();
2462         args.setTableName(tableName);
2463         args.setRow(row);
2464         args.setAttributes(attributes);
2465         args.write(prot);
2466         prot.writeMessageEnd();
2467       }
2468 
2469       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2470         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2471           throw new IllegalStateException("Method call not finished!");
2472         }
2473         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2474         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2475         return (new Client(prot)).recv_getRow();
2476       }
2477     }
2478 
2479     public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException {
2480       checkReady();
2481       getRowWithColumns_call method_call = new getRowWithColumns_call(tableName, row, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
2482       this.___currentMethod = method_call;
2483       ___manager.call(method_call);
2484     }
2485 
2486     public static class getRowWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
2487       private ByteBuffer tableName;
2488       private ByteBuffer row;
2489       private List<ByteBuffer> columns;
2490       private Map<ByteBuffer,ByteBuffer> attributes;
2491       public getRowWithColumns_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2492         super(client, protocolFactory, transport, resultHandler, false);
2493         this.tableName = tableName;
2494         this.row = row;
2495         this.columns = columns;
2496         this.attributes = attributes;
2497       }
2498 
2499       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2500         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
2501         getRowWithColumns_args args = new getRowWithColumns_args();
2502         args.setTableName(tableName);
2503         args.setRow(row);
2504         args.setColumns(columns);
2505         args.setAttributes(attributes);
2506         args.write(prot);
2507         prot.writeMessageEnd();
2508       }
2509 
2510       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2511         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2512           throw new IllegalStateException("Method call not finished!");
2513         }
2514         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2515         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2516         return (new Client(prot)).recv_getRowWithColumns();
2517       }
2518     }
2519 
2520     public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler) throws org.apache.thrift.TException {
2521       checkReady();
2522       getRowTs_call method_call = new getRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2523       this.___currentMethod = method_call;
2524       ___manager.call(method_call);
2525     }
2526 
2527     public static class getRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2528       private ByteBuffer tableName;
2529       private ByteBuffer row;
2530       private long timestamp;
2531       private Map<ByteBuffer,ByteBuffer> attributes;
2532       public getRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2533         super(client, protocolFactory, transport, resultHandler, false);
2534         this.tableName = tableName;
2535         this.row = row;
2536         this.timestamp = timestamp;
2537         this.attributes = attributes;
2538       }
2539 
2540       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2541         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2542         getRowTs_args args = new getRowTs_args();
2543         args.setTableName(tableName);
2544         args.setRow(row);
2545         args.setTimestamp(timestamp);
2546         args.setAttributes(attributes);
2547         args.write(prot);
2548         prot.writeMessageEnd();
2549       }
2550 
2551       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2552         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2553           throw new IllegalStateException("Method call not finished!");
2554         }
2555         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2556         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2557         return (new Client(prot)).recv_getRowTs();
2558       }
2559     }
2560 
2561     public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException {
2562       checkReady();
2563       getRowWithColumnsTs_call method_call = new getRowWithColumnsTs_call(tableName, row, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2564       this.___currentMethod = method_call;
2565       ___manager.call(method_call);
2566     }
2567 
2568     public static class getRowWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2569       private ByteBuffer tableName;
2570       private ByteBuffer row;
2571       private List<ByteBuffer> columns;
2572       private long timestamp;
2573       private Map<ByteBuffer,ByteBuffer> attributes;
2574       public getRowWithColumnsTs_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2575         super(client, protocolFactory, transport, resultHandler, false);
2576         this.tableName = tableName;
2577         this.row = row;
2578         this.columns = columns;
2579         this.timestamp = timestamp;
2580         this.attributes = attributes;
2581       }
2582 
2583       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2584         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2585         getRowWithColumnsTs_args args = new getRowWithColumnsTs_args();
2586         args.setTableName(tableName);
2587         args.setRow(row);
2588         args.setColumns(columns);
2589         args.setTimestamp(timestamp);
2590         args.setAttributes(attributes);
2591         args.write(prot);
2592         prot.writeMessageEnd();
2593       }
2594 
2595       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2596         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2597           throw new IllegalStateException("Method call not finished!");
2598         }
2599         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2600         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2601         return (new Client(prot)).recv_getRowWithColumnsTs();
2602       }
2603     }
2604 
2605     public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler) throws org.apache.thrift.TException {
2606       checkReady();
2607       getRows_call method_call = new getRows_call(tableName, rows, attributes, resultHandler, this, ___protocolFactory, ___transport);
2608       this.___currentMethod = method_call;
2609       ___manager.call(method_call);
2610     }
2611 
2612     public static class getRows_call extends org.apache.thrift.async.TAsyncMethodCall {
2613       private ByteBuffer tableName;
2614       private List<ByteBuffer> rows;
2615       private Map<ByteBuffer,ByteBuffer> attributes;
2616       public getRows_call(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2617         super(client, protocolFactory, transport, resultHandler, false);
2618         this.tableName = tableName;
2619         this.rows = rows;
2620         this.attributes = attributes;
2621       }
2622 
2623       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2624         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
2625         getRows_args args = new getRows_args();
2626         args.setTableName(tableName);
2627         args.setRows(rows);
2628         args.setAttributes(attributes);
2629         args.write(prot);
2630         prot.writeMessageEnd();
2631       }
2632 
2633       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2634         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2635           throw new IllegalStateException("Method call not finished!");
2636         }
2637         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2638         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2639         return (new Client(prot)).recv_getRows();
2640       }
2641     }
2642 
2643     public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException {
2644       checkReady();
2645       getRowsWithColumns_call method_call = new getRowsWithColumns_call(tableName, rows, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
2646       this.___currentMethod = method_call;
2647       ___manager.call(method_call);
2648     }
2649 
2650     public static class getRowsWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
2651       private ByteBuffer tableName;
2652       private List<ByteBuffer> rows;
2653       private List<ByteBuffer> columns;
2654       private Map<ByteBuffer,ByteBuffer> attributes;
2655       public getRowsWithColumns_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2656         super(client, protocolFactory, transport, resultHandler, false);
2657         this.tableName = tableName;
2658         this.rows = rows;
2659         this.columns = columns;
2660         this.attributes = attributes;
2661       }
2662 
2663       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2664         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
2665         getRowsWithColumns_args args = new getRowsWithColumns_args();
2666         args.setTableName(tableName);
2667         args.setRows(rows);
2668         args.setColumns(columns);
2669         args.setAttributes(attributes);
2670         args.write(prot);
2671         prot.writeMessageEnd();
2672       }
2673 
2674       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2675         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2676           throw new IllegalStateException("Method call not finished!");
2677         }
2678         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2679         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2680         return (new Client(prot)).recv_getRowsWithColumns();
2681       }
2682     }
2683 
2684     public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler) throws org.apache.thrift.TException {
2685       checkReady();
2686       getRowsTs_call method_call = new getRowsTs_call(tableName, rows, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2687       this.___currentMethod = method_call;
2688       ___manager.call(method_call);
2689     }
2690 
2691     public static class getRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2692       private ByteBuffer tableName;
2693       private List<ByteBuffer> rows;
2694       private long timestamp;
2695       private Map<ByteBuffer,ByteBuffer> attributes;
2696       public getRowsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2697         super(client, protocolFactory, transport, resultHandler, false);
2698         this.tableName = tableName;
2699         this.rows = rows;
2700         this.timestamp = timestamp;
2701         this.attributes = attributes;
2702       }
2703 
2704       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2705         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2706         getRowsTs_args args = new getRowsTs_args();
2707         args.setTableName(tableName);
2708         args.setRows(rows);
2709         args.setTimestamp(timestamp);
2710         args.setAttributes(attributes);
2711         args.write(prot);
2712         prot.writeMessageEnd();
2713       }
2714 
2715       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2716         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2717           throw new IllegalStateException("Method call not finished!");
2718         }
2719         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2720         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2721         return (new Client(prot)).recv_getRowsTs();
2722       }
2723     }
2724 
2725     public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException {
2726       checkReady();
2727       getRowsWithColumnsTs_call method_call = new getRowsWithColumnsTs_call(tableName, rows, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2728       this.___currentMethod = method_call;
2729       ___manager.call(method_call);
2730     }
2731 
2732     public static class getRowsWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2733       private ByteBuffer tableName;
2734       private List<ByteBuffer> rows;
2735       private List<ByteBuffer> columns;
2736       private long timestamp;
2737       private Map<ByteBuffer,ByteBuffer> attributes;
2738       public getRowsWithColumnsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2739         super(client, protocolFactory, transport, resultHandler, false);
2740         this.tableName = tableName;
2741         this.rows = rows;
2742         this.columns = columns;
2743         this.timestamp = timestamp;
2744         this.attributes = attributes;
2745       }
2746 
2747       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2748         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2749         getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args();
2750         args.setTableName(tableName);
2751         args.setRows(rows);
2752         args.setColumns(columns);
2753         args.setTimestamp(timestamp);
2754         args.setAttributes(attributes);
2755         args.write(prot);
2756         prot.writeMessageEnd();
2757       }
2758 
2759       public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2760         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2761           throw new IllegalStateException("Method call not finished!");
2762         }
2763         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2764         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2765         return (new Client(prot)).recv_getRowsWithColumnsTs();
2766       }
2767     }
2768 
2769     public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler) throws org.apache.thrift.TException {
2770       checkReady();
2771       mutateRow_call method_call = new mutateRow_call(tableName, row, mutations, attributes, resultHandler, this, ___protocolFactory, ___transport);
2772       this.___currentMethod = method_call;
2773       ___manager.call(method_call);
2774     }
2775 
2776     public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall {
2777       private ByteBuffer tableName;
2778       private ByteBuffer row;
2779       private List<Mutation> mutations;
2780       private Map<ByteBuffer,ByteBuffer> attributes;
2781       public mutateRow_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2782         super(client, protocolFactory, transport, resultHandler, false);
2783         this.tableName = tableName;
2784         this.row = row;
2785         this.mutations = mutations;
2786         this.attributes = attributes;
2787       }
2788 
2789       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2790         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
2791         mutateRow_args args = new mutateRow_args();
2792         args.setTableName(tableName);
2793         args.setRow(row);
2794         args.setMutations(mutations);
2795         args.setAttributes(attributes);
2796         args.write(prot);
2797         prot.writeMessageEnd();
2798       }
2799 
2800       public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2801         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2802           throw new IllegalStateException("Method call not finished!");
2803         }
2804         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2805         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2806         (new Client(prot)).recv_mutateRow();
2807       }
2808     }
2809 
2810     public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler) throws org.apache.thrift.TException {
2811       checkReady();
2812       mutateRowTs_call method_call = new mutateRowTs_call(tableName, row, mutations, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2813       this.___currentMethod = method_call;
2814       ___manager.call(method_call);
2815     }
2816 
2817     public static class mutateRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2818       private ByteBuffer tableName;
2819       private ByteBuffer row;
2820       private List<Mutation> mutations;
2821       private long timestamp;
2822       private Map<ByteBuffer,ByteBuffer> attributes;
2823       public mutateRowTs_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2824         super(client, protocolFactory, transport, resultHandler, false);
2825         this.tableName = tableName;
2826         this.row = row;
2827         this.mutations = mutations;
2828         this.timestamp = timestamp;
2829         this.attributes = attributes;
2830       }
2831 
2832       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2833         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2834         mutateRowTs_args args = new mutateRowTs_args();
2835         args.setTableName(tableName);
2836         args.setRow(row);
2837         args.setMutations(mutations);
2838         args.setTimestamp(timestamp);
2839         args.setAttributes(attributes);
2840         args.write(prot);
2841         prot.writeMessageEnd();
2842       }
2843 
2844       public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2845         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2846           throw new IllegalStateException("Method call not finished!");
2847         }
2848         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2849         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2850         (new Client(prot)).recv_mutateRowTs();
2851       }
2852     }
2853 
2854     public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler) throws org.apache.thrift.TException {
2855       checkReady();
2856       mutateRows_call method_call = new mutateRows_call(tableName, rowBatches, attributes, resultHandler, this, ___protocolFactory, ___transport);
2857       this.___currentMethod = method_call;
2858       ___manager.call(method_call);
2859     }
2860 
2861     public static class mutateRows_call extends org.apache.thrift.async.TAsyncMethodCall {
2862       private ByteBuffer tableName;
2863       private List<BatchMutation> rowBatches;
2864       private Map<ByteBuffer,ByteBuffer> attributes;
2865       public mutateRows_call(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2866         super(client, protocolFactory, transport, resultHandler, false);
2867         this.tableName = tableName;
2868         this.rowBatches = rowBatches;
2869         this.attributes = attributes;
2870       }
2871 
2872       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2873         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
2874         mutateRows_args args = new mutateRows_args();
2875         args.setTableName(tableName);
2876         args.setRowBatches(rowBatches);
2877         args.setAttributes(attributes);
2878         args.write(prot);
2879         prot.writeMessageEnd();
2880       }
2881 
2882       public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2883         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2884           throw new IllegalStateException("Method call not finished!");
2885         }
2886         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2887         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2888         (new Client(prot)).recv_mutateRows();
2889       }
2890     }
2891 
2892     public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException {
2893       checkReady();
2894       mutateRowsTs_call method_call = new mutateRowsTs_call(tableName, rowBatches, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2895       this.___currentMethod = method_call;
2896       ___manager.call(method_call);
2897     }
2898 
2899     public static class mutateRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2900       private ByteBuffer tableName;
2901       private List<BatchMutation> rowBatches;
2902       private long timestamp;
2903       private Map<ByteBuffer,ByteBuffer> attributes;
2904       public mutateRowsTs_call(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2905         super(client, protocolFactory, transport, resultHandler, false);
2906         this.tableName = tableName;
2907         this.rowBatches = rowBatches;
2908         this.timestamp = timestamp;
2909         this.attributes = attributes;
2910       }
2911 
2912       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2913         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2914         mutateRowsTs_args args = new mutateRowsTs_args();
2915         args.setTableName(tableName);
2916         args.setRowBatches(rowBatches);
2917         args.setTimestamp(timestamp);
2918         args.setAttributes(attributes);
2919         args.write(prot);
2920         prot.writeMessageEnd();
2921       }
2922 
2923       public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2924         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2925           throw new IllegalStateException("Method call not finished!");
2926         }
2927         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2928         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2929         (new Client(prot)).recv_mutateRowsTs();
2930       }
2931     }
2932 
2933     public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler) throws org.apache.thrift.TException {
2934       checkReady();
2935       atomicIncrement_call method_call = new atomicIncrement_call(tableName, row, column, value, resultHandler, this, ___protocolFactory, ___transport);
2936       this.___currentMethod = method_call;
2937       ___manager.call(method_call);
2938     }
2939 
2940     public static class atomicIncrement_call extends org.apache.thrift.async.TAsyncMethodCall {
2941       private ByteBuffer tableName;
2942       private ByteBuffer row;
2943       private ByteBuffer column;
2944       private long value;
2945       public atomicIncrement_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2946         super(client, protocolFactory, transport, resultHandler, false);
2947         this.tableName = tableName;
2948         this.row = row;
2949         this.column = column;
2950         this.value = value;
2951       }
2952 
2953       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2954         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("atomicIncrement", org.apache.thrift.protocol.TMessageType.CALL, 0));
2955         atomicIncrement_args args = new atomicIncrement_args();
2956         args.setTableName(tableName);
2957         args.setRow(row);
2958         args.setColumn(column);
2959         args.setValue(value);
2960         args.write(prot);
2961         prot.writeMessageEnd();
2962       }
2963 
2964       public long getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2965         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2966           throw new IllegalStateException("Method call not finished!");
2967         }
2968         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2969         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2970         return (new Client(prot)).recv_atomicIncrement();
2971       }
2972     }
2973 
2974     public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler) throws org.apache.thrift.TException {
2975       checkReady();
2976       deleteAll_call method_call = new deleteAll_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport);
2977       this.___currentMethod = method_call;
2978       ___manager.call(method_call);
2979     }
2980 
2981     public static class deleteAll_call extends org.apache.thrift.async.TAsyncMethodCall {
2982       private ByteBuffer tableName;
2983       private ByteBuffer row;
2984       private ByteBuffer column;
2985       private Map<ByteBuffer,ByteBuffer> attributes;
2986       public deleteAll_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2987         super(client, protocolFactory, transport, resultHandler, false);
2988         this.tableName = tableName;
2989         this.row = row;
2990         this.column = column;
2991         this.attributes = attributes;
2992       }
2993 
2994       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2995         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAll", org.apache.thrift.protocol.TMessageType.CALL, 0));
2996         deleteAll_args args = new deleteAll_args();
2997         args.setTableName(tableName);
2998         args.setRow(row);
2999         args.setColumn(column);
3000         args.setAttributes(attributes);
3001         args.write(prot);
3002         prot.writeMessageEnd();
3003       }
3004 
3005       public void getResult() throws IOError, org.apache.thrift.TException {
3006         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3007           throw new IllegalStateException("Method call not finished!");
3008         }
3009         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3010         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3011         (new Client(prot)).recv_deleteAll();
3012       }
3013     }
3014 
3015     public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler) throws org.apache.thrift.TException {
3016       checkReady();
3017       deleteAllTs_call method_call = new deleteAllTs_call(tableName, row, column, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3018       this.___currentMethod = method_call;
3019       ___manager.call(method_call);
3020     }
3021 
3022     public static class deleteAllTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3023       private ByteBuffer tableName;
3024       private ByteBuffer row;
3025       private ByteBuffer column;
3026       private long timestamp;
3027       private Map<ByteBuffer,ByteBuffer> attributes;
3028       public deleteAllTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3029         super(client, protocolFactory, transport, resultHandler, false);
3030         this.tableName = tableName;
3031         this.row = row;
3032         this.column = column;
3033         this.timestamp = timestamp;
3034         this.attributes = attributes;
3035       }
3036 
3037       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3038         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3039         deleteAllTs_args args = new deleteAllTs_args();
3040         args.setTableName(tableName);
3041         args.setRow(row);
3042         args.setColumn(column);
3043         args.setTimestamp(timestamp);
3044         args.setAttributes(attributes);
3045         args.write(prot);
3046         prot.writeMessageEnd();
3047       }
3048 
3049       public void getResult() throws IOError, org.apache.thrift.TException {
3050         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3051           throw new IllegalStateException("Method call not finished!");
3052         }
3053         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3054         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3055         (new Client(prot)).recv_deleteAllTs();
3056       }
3057     }
3058 
3059     public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler) throws org.apache.thrift.TException {
3060       checkReady();
3061       deleteAllRow_call method_call = new deleteAllRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport);
3062       this.___currentMethod = method_call;
3063       ___manager.call(method_call);
3064     }
3065 
3066     public static class deleteAllRow_call extends org.apache.thrift.async.TAsyncMethodCall {
3067       private ByteBuffer tableName;
3068       private ByteBuffer row;
3069       private Map<ByteBuffer,ByteBuffer> attributes;
3070       public deleteAllRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3071         super(client, protocolFactory, transport, resultHandler, false);
3072         this.tableName = tableName;
3073         this.row = row;
3074         this.attributes = attributes;
3075       }
3076 
3077       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3078         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
3079         deleteAllRow_args args = new deleteAllRow_args();
3080         args.setTableName(tableName);
3081         args.setRow(row);
3082         args.setAttributes(attributes);
3083         args.write(prot);
3084         prot.writeMessageEnd();
3085       }
3086 
3087       public void getResult() throws IOError, org.apache.thrift.TException {
3088         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3089           throw new IllegalStateException("Method call not finished!");
3090         }
3091         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3092         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3093         (new Client(prot)).recv_deleteAllRow();
3094       }
3095     }
3096 
3097     public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler) throws org.apache.thrift.TException {
3098       checkReady();
3099       increment_call method_call = new increment_call(increment, resultHandler, this, ___protocolFactory, ___transport);
3100       this.___currentMethod = method_call;
3101       ___manager.call(method_call);
3102     }
3103 
3104     public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall {
3105       private TIncrement increment;
3106       public increment_call(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3107         super(client, protocolFactory, transport, resultHandler, false);
3108         this.increment = increment;
3109       }
3110 
3111       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3112         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increment", org.apache.thrift.protocol.TMessageType.CALL, 0));
3113         increment_args args = new increment_args();
3114         args.setIncrement(increment);
3115         args.write(prot);
3116         prot.writeMessageEnd();
3117       }
3118 
3119       public void getResult() throws IOError, org.apache.thrift.TException {
3120         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3121           throw new IllegalStateException("Method call not finished!");
3122         }
3123         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3124         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3125         (new Client(prot)).recv_increment();
3126       }
3127     }
3128 
3129     public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler) throws org.apache.thrift.TException {
3130       checkReady();
3131       incrementRows_call method_call = new incrementRows_call(increments, resultHandler, this, ___protocolFactory, ___transport);
3132       this.___currentMethod = method_call;
3133       ___manager.call(method_call);
3134     }
3135 
3136     public static class incrementRows_call extends org.apache.thrift.async.TAsyncMethodCall {
3137       private List<TIncrement> increments;
3138       public incrementRows_call(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3139         super(client, protocolFactory, transport, resultHandler, false);
3140         this.increments = increments;
3141       }
3142 
3143       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3144         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("incrementRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
3145         incrementRows_args args = new incrementRows_args();
3146         args.setIncrements(increments);
3147         args.write(prot);
3148         prot.writeMessageEnd();
3149       }
3150 
3151       public void getResult() throws IOError, org.apache.thrift.TException {
3152         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3153           throw new IllegalStateException("Method call not finished!");
3154         }
3155         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3156         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3157         (new Client(prot)).recv_incrementRows();
3158       }
3159     }
3160 
3161     public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException {
3162       checkReady();
3163       deleteAllRowTs_call method_call = new deleteAllRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3164       this.___currentMethod = method_call;
3165       ___manager.call(method_call);
3166     }
3167 
3168     public static class deleteAllRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3169       private ByteBuffer tableName;
3170       private ByteBuffer row;
3171       private long timestamp;
3172       private Map<ByteBuffer,ByteBuffer> attributes;
3173       public deleteAllRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3174         super(client, protocolFactory, transport, resultHandler, false);
3175         this.tableName = tableName;
3176         this.row = row;
3177         this.timestamp = timestamp;
3178         this.attributes = attributes;
3179       }
3180 
3181       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3182         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3183         deleteAllRowTs_args args = new deleteAllRowTs_args();
3184         args.setTableName(tableName);
3185         args.setRow(row);
3186         args.setTimestamp(timestamp);
3187         args.setAttributes(attributes);
3188         args.write(prot);
3189         prot.writeMessageEnd();
3190       }
3191 
3192       public void getResult() throws IOError, org.apache.thrift.TException {
3193         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3194           throw new IllegalStateException("Method call not finished!");
3195         }
3196         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3197         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3198         (new Client(prot)).recv_deleteAllRowTs();
3199       }
3200     }
3201 
3202     public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException {
3203       checkReady();
3204       scannerOpenWithScan_call method_call = new scannerOpenWithScan_call(tableName, scan, attributes, resultHandler, this, ___protocolFactory, ___transport);
3205       this.___currentMethod = method_call;
3206       ___manager.call(method_call);
3207     }
3208 
3209     public static class scannerOpenWithScan_call extends org.apache.thrift.async.TAsyncMethodCall {
3210       private ByteBuffer tableName;
3211       private TScan scan;
3212       private Map<ByteBuffer,ByteBuffer> attributes;
3213       public scannerOpenWithScan_call(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3214         super(client, protocolFactory, transport, resultHandler, false);
3215         this.tableName = tableName;
3216         this.scan = scan;
3217         this.attributes = attributes;
3218       }
3219 
3220       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3221         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
3222         scannerOpenWithScan_args args = new scannerOpenWithScan_args();
3223         args.setTableName(tableName);
3224         args.setScan(scan);
3225         args.setAttributes(attributes);
3226         args.write(prot);
3227         prot.writeMessageEnd();
3228       }
3229 
3230       public int getResult() throws IOError, org.apache.thrift.TException {
3231         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3232           throw new IllegalStateException("Method call not finished!");
3233         }
3234         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3235         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3236         return (new Client(prot)).recv_scannerOpenWithScan();
3237       }
3238     }
3239 
3240     public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler) throws org.apache.thrift.TException {
3241       checkReady();
3242       scannerOpen_call method_call = new scannerOpen_call(tableName, startRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3243       this.___currentMethod = method_call;
3244       ___manager.call(method_call);
3245     }
3246 
3247     public static class scannerOpen_call extends org.apache.thrift.async.TAsyncMethodCall {
3248       private ByteBuffer tableName;
3249       private ByteBuffer startRow;
3250       private List<ByteBuffer> columns;
3251       private Map<ByteBuffer,ByteBuffer> attributes;
3252       public scannerOpen_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3253         super(client, protocolFactory, transport, resultHandler, false);
3254         this.tableName = tableName;
3255         this.startRow = startRow;
3256         this.columns = columns;
3257         this.attributes = attributes;
3258       }
3259 
3260       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3261         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpen", org.apache.thrift.protocol.TMessageType.CALL, 0));
3262         scannerOpen_args args = new scannerOpen_args();
3263         args.setTableName(tableName);
3264         args.setStartRow(startRow);
3265         args.setColumns(columns);
3266         args.setAttributes(attributes);
3267         args.write(prot);
3268         prot.writeMessageEnd();
3269       }
3270 
3271       public int getResult() throws IOError, org.apache.thrift.TException {
3272         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3273           throw new IllegalStateException("Method call not finished!");
3274         }
3275         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3276         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3277         return (new Client(prot)).recv_scannerOpen();
3278       }
3279     }
3280 
3281     public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException {
3282       checkReady();
3283       scannerOpenWithStop_call method_call = new scannerOpenWithStop_call(tableName, startRow, stopRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3284       this.___currentMethod = method_call;
3285       ___manager.call(method_call);
3286     }
3287 
3288     public static class scannerOpenWithStop_call extends org.apache.thrift.async.TAsyncMethodCall {
3289       private ByteBuffer tableName;
3290       private ByteBuffer startRow;
3291       private ByteBuffer stopRow;
3292       private List<ByteBuffer> columns;
3293       private Map<ByteBuffer,ByteBuffer> attributes;
3294       public scannerOpenWithStop_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3295         super(client, protocolFactory, transport, resultHandler, false);
3296         this.tableName = tableName;
3297         this.startRow = startRow;
3298         this.stopRow = stopRow;
3299         this.columns = columns;
3300         this.attributes = attributes;
3301       }
3302 
3303       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3304         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStop", org.apache.thrift.protocol.TMessageType.CALL, 0));
3305         scannerOpenWithStop_args args = new scannerOpenWithStop_args();
3306         args.setTableName(tableName);
3307         args.setStartRow(startRow);
3308         args.setStopRow(stopRow);
3309         args.setColumns(columns);
3310         args.setAttributes(attributes);
3311         args.write(prot);
3312         prot.writeMessageEnd();
3313       }
3314 
3315       public int getResult() throws IOError, org.apache.thrift.TException {
3316         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3317           throw new IllegalStateException("Method call not finished!");
3318         }
3319         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3320         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3321         return (new Client(prot)).recv_scannerOpenWithStop();
3322       }
3323     }
3324 
3325     public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException {
3326       checkReady();
3327       scannerOpenWithPrefix_call method_call = new scannerOpenWithPrefix_call(tableName, startAndPrefix, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3328       this.___currentMethod = method_call;
3329       ___manager.call(method_call);
3330     }
3331 
3332     public static class scannerOpenWithPrefix_call extends org.apache.thrift.async.TAsyncMethodCall {
3333       private ByteBuffer tableName;
3334       private ByteBuffer startAndPrefix;
3335       private List<ByteBuffer> columns;
3336       private Map<ByteBuffer,ByteBuffer> attributes;
3337       public scannerOpenWithPrefix_call(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3338         super(client, protocolFactory, transport, resultHandler, false);
3339         this.tableName = tableName;
3340         this.startAndPrefix = startAndPrefix;
3341         this.columns = columns;
3342         this.attributes = attributes;
3343       }
3344 
3345       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3346         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithPrefix", org.apache.thrift.protocol.TMessageType.CALL, 0));
3347         scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args();
3348         args.setTableName(tableName);
3349         args.setStartAndPrefix(startAndPrefix);
3350         args.setColumns(columns);
3351         args.setAttributes(attributes);
3352         args.write(prot);
3353         prot.writeMessageEnd();
3354       }
3355 
3356       public int getResult() throws IOError, org.apache.thrift.TException {
3357         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3358           throw new IllegalStateException("Method call not finished!");
3359         }
3360         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3361         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3362         return (new Client(prot)).recv_scannerOpenWithPrefix();
3363       }
3364     }
3365 
3366     public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException {
3367       checkReady();
3368       scannerOpenTs_call method_call = new scannerOpenTs_call(tableName, startRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3369       this.___currentMethod = method_call;
3370       ___manager.call(method_call);
3371     }
3372 
3373     public static class scannerOpenTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3374       private ByteBuffer tableName;
3375       private ByteBuffer startRow;
3376       private List<ByteBuffer> columns;
3377       private long timestamp;
3378       private Map<ByteBuffer,ByteBuffer> attributes;
3379       public scannerOpenTs_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3380         super(client, protocolFactory, transport, resultHandler, false);
3381         this.tableName = tableName;
3382         this.startRow = startRow;
3383         this.columns = columns;
3384         this.timestamp = timestamp;
3385         this.attributes = attributes;
3386       }
3387 
3388       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3389         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390         scannerOpenTs_args args = new scannerOpenTs_args();
3391         args.setTableName(tableName);
3392         args.setStartRow(startRow);
3393         args.setColumns(columns);
3394         args.setTimestamp(timestamp);
3395         args.setAttributes(attributes);
3396         args.write(prot);
3397         prot.writeMessageEnd();
3398       }
3399 
3400       public int getResult() throws IOError, org.apache.thrift.TException {
3401         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3402           throw new IllegalStateException("Method call not finished!");
3403         }
3404         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3405         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3406         return (new Client(prot)).recv_scannerOpenTs();
3407       }
3408     }
3409 
3410     public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException {
3411       checkReady();
3412       scannerOpenWithStopTs_call method_call = new scannerOpenWithStopTs_call(tableName, startRow, stopRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3413       this.___currentMethod = method_call;
3414       ___manager.call(method_call);
3415     }
3416 
3417     public static class scannerOpenWithStopTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3418       private ByteBuffer tableName;
3419       private ByteBuffer startRow;
3420       private ByteBuffer stopRow;
3421       private List<ByteBuffer> columns;
3422       private long timestamp;
3423       private Map<ByteBuffer,ByteBuffer> attributes;
3424       public scannerOpenWithStopTs_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3425         super(client, protocolFactory, transport, resultHandler, false);
3426         this.tableName = tableName;
3427         this.startRow = startRow;
3428         this.stopRow = stopRow;
3429         this.columns = columns;
3430         this.timestamp = timestamp;
3431         this.attributes = attributes;
3432       }
3433 
3434       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3435         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStopTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3436         scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args();
3437         args.setTableName(tableName);
3438         args.setStartRow(startRow);
3439         args.setStopRow(stopRow);
3440         args.setColumns(columns);
3441         args.setTimestamp(timestamp);
3442         args.setAttributes(attributes);
3443         args.write(prot);
3444         prot.writeMessageEnd();
3445       }
3446 
3447       public int getResult() throws IOError, org.apache.thrift.TException {
3448         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3449           throw new IllegalStateException("Method call not finished!");
3450         }
3451         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3452         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3453         return (new Client(prot)).recv_scannerOpenWithStopTs();
3454       }
3455     }
3456 
3457     public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler) throws org.apache.thrift.TException {
3458       checkReady();
3459       scannerGet_call method_call = new scannerGet_call(id, resultHandler, this, ___protocolFactory, ___transport);
3460       this.___currentMethod = method_call;
3461       ___manager.call(method_call);
3462     }
3463 
3464     public static class scannerGet_call extends org.apache.thrift.async.TAsyncMethodCall {
3465       private int id;
3466       public scannerGet_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3467         super(client, protocolFactory, transport, resultHandler, false);
3468         this.id = id;
3469       }
3470 
3471       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3472         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGet", org.apache.thrift.protocol.TMessageType.CALL, 0));
3473         scannerGet_args args = new scannerGet_args();
3474         args.setId(id);
3475         args.write(prot);
3476         prot.writeMessageEnd();
3477       }
3478 
3479       public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3480         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3481           throw new IllegalStateException("Method call not finished!");
3482         }
3483         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3484         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3485         return (new Client(prot)).recv_scannerGet();
3486       }
3487     }
3488 
3489     public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler) throws org.apache.thrift.TException {
3490       checkReady();
3491       scannerGetList_call method_call = new scannerGetList_call(id, nbRows, resultHandler, this, ___protocolFactory, ___transport);
3492       this.___currentMethod = method_call;
3493       ___manager.call(method_call);
3494     }
3495 
3496     public static class scannerGetList_call extends org.apache.thrift.async.TAsyncMethodCall {
3497       private int id;
3498       private int nbRows;
3499       public scannerGetList_call(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3500         super(client, protocolFactory, transport, resultHandler, false);
3501         this.id = id;
3502         this.nbRows = nbRows;
3503       }
3504 
3505       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3506         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGetList", org.apache.thrift.protocol.TMessageType.CALL, 0));
3507         scannerGetList_args args = new scannerGetList_args();
3508         args.setId(id);
3509         args.setNbRows(nbRows);
3510         args.write(prot);
3511         prot.writeMessageEnd();
3512       }
3513 
3514       public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3515         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3516           throw new IllegalStateException("Method call not finished!");
3517         }
3518         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3519         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3520         return (new Client(prot)).recv_scannerGetList();
3521       }
3522     }
3523 
3524     public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler) throws org.apache.thrift.TException {
3525       checkReady();
3526       scannerClose_call method_call = new scannerClose_call(id, resultHandler, this, ___protocolFactory, ___transport);
3527       this.___currentMethod = method_call;
3528       ___manager.call(method_call);
3529     }
3530 
3531     public static class scannerClose_call extends org.apache.thrift.async.TAsyncMethodCall {
3532       private int id;
3533       public scannerClose_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3534         super(client, protocolFactory, transport, resultHandler, false);
3535         this.id = id;
3536       }
3537 
3538       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3539         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerClose", org.apache.thrift.protocol.TMessageType.CALL, 0));
3540         scannerClose_args args = new scannerClose_args();
3541         args.setId(id);
3542         args.write(prot);
3543         prot.writeMessageEnd();
3544       }
3545 
3546       public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3547         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3548           throw new IllegalStateException("Method call not finished!");
3549         }
3550         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3551         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3552         (new Client(prot)).recv_scannerClose();
3553       }
3554     }
3555 
3556     public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler) throws org.apache.thrift.TException {
3557       checkReady();
3558       getRegionInfo_call method_call = new getRegionInfo_call(row, resultHandler, this, ___protocolFactory, ___transport);
3559       this.___currentMethod = method_call;
3560       ___manager.call(method_call);
3561     }
3562 
3563     public static class getRegionInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
3564       private ByteBuffer row;
3565       public getRegionInfo_call(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3566         super(client, protocolFactory, transport, resultHandler, false);
3567         this.row = row;
3568       }
3569 
3570       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3571         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRegionInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
3572         getRegionInfo_args args = new getRegionInfo_args();
3573         args.setRow(row);
3574         args.write(prot);
3575         prot.writeMessageEnd();
3576       }
3577 
3578       public TRegionInfo getResult() throws IOError, org.apache.thrift.TException {
3579         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3580           throw new IllegalStateException("Method call not finished!");
3581         }
3582         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3583         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3584         return (new Client(prot)).recv_getRegionInfo();
3585       }
3586     }
3587 
3588     public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback<append_call> resultHandler) throws org.apache.thrift.TException {
3589       checkReady();
3590       append_call method_call = new append_call(append, resultHandler, this, ___protocolFactory, ___transport);
3591       this.___currentMethod = method_call;
3592       ___manager.call(method_call);
3593     }
3594 
3595     public static class append_call extends org.apache.thrift.async.TAsyncMethodCall {
3596       private TAppend append;
3597       public append_call(TAppend append, org.apache.thrift.async.AsyncMethodCallback<append_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3598         super(client, protocolFactory, transport, resultHandler, false);
3599         this.append = append;
3600       }
3601 
3602       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3603         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("append", org.apache.thrift.protocol.TMessageType.CALL, 0));
3604         append_args args = new append_args();
3605         args.setAppend(append);
3606         args.write(prot);
3607         prot.writeMessageEnd();
3608       }
3609 
3610       public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
3611         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3612           throw new IllegalStateException("Method call not finished!");
3613         }
3614         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3615         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3616         return (new Client(prot)).recv_append();
3617       }
3618     }
3619 
3620     public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<checkAndPut_call> resultHandler) throws org.apache.thrift.TException {
3621       checkReady();
3622       checkAndPut_call method_call = new checkAndPut_call(tableName, row, column, value, mput, attributes, resultHandler, this, ___protocolFactory, ___transport);
3623       this.___currentMethod = method_call;
3624       ___manager.call(method_call);
3625     }
3626 
3627     public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall {
3628       private ByteBuffer tableName;
3629       private ByteBuffer row;
3630       private ByteBuffer column;
3631       private ByteBuffer value;
3632       private Mutation mput;
3633       private Map<ByteBuffer,ByteBuffer> attributes;
3634       public checkAndPut_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<checkAndPut_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3635         super(client, protocolFactory, transport, resultHandler, false);
3636         this.tableName = tableName;
3637         this.row = row;
3638         this.column = column;
3639         this.value = value;
3640         this.mput = mput;
3641         this.attributes = attributes;
3642       }
3643 
3644       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3645         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkAndPut", org.apache.thrift.protocol.TMessageType.CALL, 0));
3646         checkAndPut_args args = new checkAndPut_args();
3647         args.setTableName(tableName);
3648         args.setRow(row);
3649         args.setColumn(column);
3650         args.setValue(value);
3651         args.setMput(mput);
3652         args.setAttributes(attributes);
3653         args.write(prot);
3654         prot.writeMessageEnd();
3655       }
3656 
3657       public boolean getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3658         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3659           throw new IllegalStateException("Method call not finished!");
3660         }
3661         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3662         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3663         return (new Client(prot)).recv_checkAndPut();
3664       }
3665     }
3666 
3667   }
3668 
3669   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
3670     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3671     public Processor(I iface) {
3672       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3673     }
3674 
3675     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3676       super(iface, getProcessMap(processMap));
3677     }
3678 
3679     private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3680       processMap.put("enableTable", new enableTable());
3681       processMap.put("disableTable", new disableTable());
3682       processMap.put("isTableEnabled", new isTableEnabled());
3683       processMap.put("compact", new compact());
3684       processMap.put("majorCompact", new majorCompact());
3685       processMap.put("getTableNames", new getTableNames());
3686       processMap.put("getColumnDescriptors", new getColumnDescriptors());
3687       processMap.put("getTableRegions", new getTableRegions());
3688       processMap.put("createTable", new createTable());
3689       processMap.put("deleteTable", new deleteTable());
3690       processMap.put("get", new get());
3691       processMap.put("getVer", new getVer());
3692       processMap.put("getVerTs", new getVerTs());
3693       processMap.put("getRow", new getRow());
3694       processMap.put("getRowWithColumns", new getRowWithColumns());
3695       processMap.put("getRowTs", new getRowTs());
3696       processMap.put("getRowWithColumnsTs", new getRowWithColumnsTs());
3697       processMap.put("getRows", new getRows());
3698       processMap.put("getRowsWithColumns", new getRowsWithColumns());
3699       processMap.put("getRowsTs", new getRowsTs());
3700       processMap.put("getRowsWithColumnsTs", new getRowsWithColumnsTs());
3701       processMap.put("mutateRow", new mutateRow());
3702       processMap.put("mutateRowTs", new mutateRowTs());
3703       processMap.put("mutateRows", new mutateRows());
3704       processMap.put("mutateRowsTs", new mutateRowsTs());
3705       processMap.put("atomicIncrement", new atomicIncrement());
3706       processMap.put("deleteAll", new deleteAll());
3707       processMap.put("deleteAllTs", new deleteAllTs());
3708       processMap.put("deleteAllRow", new deleteAllRow());
3709       processMap.put("increment", new increment());
3710       processMap.put("incrementRows", new incrementRows());
3711       processMap.put("deleteAllRowTs", new deleteAllRowTs());
3712       processMap.put("scannerOpenWithScan", new scannerOpenWithScan());
3713       processMap.put("scannerOpen", new scannerOpen());
3714       processMap.put("scannerOpenWithStop", new scannerOpenWithStop());
3715       processMap.put("scannerOpenWithPrefix", new scannerOpenWithPrefix());
3716       processMap.put("scannerOpenTs", new scannerOpenTs());
3717       processMap.put("scannerOpenWithStopTs", new scannerOpenWithStopTs());
3718       processMap.put("scannerGet", new scannerGet());
3719       processMap.put("scannerGetList", new scannerGetList());
3720       processMap.put("scannerClose", new scannerClose());
3721       processMap.put("getRegionInfo", new getRegionInfo());
3722       processMap.put("append", new append());
3723       processMap.put("checkAndPut", new checkAndPut());
3724       return processMap;
3725     }
3726 
3727     public static class enableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableTable_args> {
3728       public enableTable() {
3729         super("enableTable");
3730       }
3731 
3732       public enableTable_args getEmptyArgsInstance() {
3733         return new enableTable_args();
3734       }
3735 
3736       protected boolean isOneway() {
3737         return false;
3738       }
3739 
3740       public enableTable_result getResult(I iface, enableTable_args args) throws org.apache.thrift.TException {
3741         enableTable_result result = new enableTable_result();
3742         try {
3743           iface.enableTable(args.tableName);
3744         } catch (IOError io) {
3745           result.io = io;
3746         }
3747         return result;
3748       }
3749     }
3750 
3751     public static class disableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableTable_args> {
3752       public disableTable() {
3753         super("disableTable");
3754       }
3755 
3756       public disableTable_args getEmptyArgsInstance() {
3757         return new disableTable_args();
3758       }
3759 
3760       protected boolean isOneway() {
3761         return false;
3762       }
3763 
3764       public disableTable_result getResult(I iface, disableTable_args args) throws org.apache.thrift.TException {
3765         disableTable_result result = new disableTable_result();
3766         try {
3767           iface.disableTable(args.tableName);
3768         } catch (IOError io) {
3769           result.io = io;
3770         }
3771         return result;
3772       }
3773     }
3774 
3775     public static class isTableEnabled<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isTableEnabled_args> {
3776       public isTableEnabled() {
3777         super("isTableEnabled");
3778       }
3779 
3780       public isTableEnabled_args getEmptyArgsInstance() {
3781         return new isTableEnabled_args();
3782       }
3783 
3784       protected boolean isOneway() {
3785         return false;
3786       }
3787 
3788       public isTableEnabled_result getResult(I iface, isTableEnabled_args args) throws org.apache.thrift.TException {
3789         isTableEnabled_result result = new isTableEnabled_result();
3790         try {
3791           result.success = iface.isTableEnabled(args.tableName);
3792           result.setSuccessIsSet(true);
3793         } catch (IOError io) {
3794           result.io = io;
3795         }
3796         return result;
3797       }
3798     }
3799 
3800     public static class compact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, compact_args> {
3801       public compact() {
3802         super("compact");
3803       }
3804 
3805       public compact_args getEmptyArgsInstance() {
3806         return new compact_args();
3807       }
3808 
3809       protected boolean isOneway() {
3810         return false;
3811       }
3812 
3813       public compact_result getResult(I iface, compact_args args) throws org.apache.thrift.TException {
3814         compact_result result = new compact_result();
3815         try {
3816           iface.compact(args.tableNameOrRegionName);
3817         } catch (IOError io) {
3818           result.io = io;
3819         }
3820         return result;
3821       }
3822     }
3823 
3824     public static class majorCompact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, majorCompact_args> {
3825       public majorCompact() {
3826         super("majorCompact");
3827       }
3828 
3829       public majorCompact_args getEmptyArgsInstance() {
3830         return new majorCompact_args();
3831       }
3832 
3833       protected boolean isOneway() {
3834         return false;
3835       }
3836 
3837       public majorCompact_result getResult(I iface, majorCompact_args args) throws org.apache.thrift.TException {
3838         majorCompact_result result = new majorCompact_result();
3839         try {
3840           iface.majorCompact(args.tableNameOrRegionName);
3841         } catch (IOError io) {
3842           result.io = io;
3843         }
3844         return result;
3845       }
3846     }
3847 
3848     public static class getTableNames<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableNames_args> {
3849       public getTableNames() {
3850         super("getTableNames");
3851       }
3852 
3853       public getTableNames_args getEmptyArgsInstance() {
3854         return new getTableNames_args();
3855       }
3856 
3857       protected boolean isOneway() {
3858         return false;
3859       }
3860 
3861       public getTableNames_result getResult(I iface, getTableNames_args args) throws org.apache.thrift.TException {
3862         getTableNames_result result = new getTableNames_result();
3863         try {
3864           result.success = iface.getTableNames();
3865         } catch (IOError io) {
3866           result.io = io;
3867         }
3868         return result;
3869       }
3870     }
3871 
3872     public static class getColumnDescriptors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getColumnDescriptors_args> {
3873       public getColumnDescriptors() {
3874         super("getColumnDescriptors");
3875       }
3876 
3877       public getColumnDescriptors_args getEmptyArgsInstance() {
3878         return new getColumnDescriptors_args();
3879       }
3880 
3881       protected boolean isOneway() {
3882         return false;
3883       }
3884 
3885       public getColumnDescriptors_result getResult(I iface, getColumnDescriptors_args args) throws org.apache.thrift.TException {
3886         getColumnDescriptors_result result = new getColumnDescriptors_result();
3887         try {
3888           result.success = iface.getColumnDescriptors(args.tableName);
3889         } catch (IOError io) {
3890           result.io = io;
3891         }
3892         return result;
3893       }
3894     }
3895 
3896     public static class getTableRegions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableRegions_args> {
3897       public getTableRegions() {
3898         super("getTableRegions");
3899       }
3900 
3901       public getTableRegions_args getEmptyArgsInstance() {
3902         return new getTableRegions_args();
3903       }
3904 
3905       protected boolean isOneway() {
3906         return false;
3907       }
3908 
3909       public getTableRegions_result getResult(I iface, getTableRegions_args args) throws org.apache.thrift.TException {
3910         getTableRegions_result result = new getTableRegions_result();
3911         try {
3912           result.success = iface.getTableRegions(args.tableName);
3913         } catch (IOError io) {
3914           result.io = io;
3915         }
3916         return result;
3917       }
3918     }
3919 
3920     public static class createTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTable_args> {
3921       public createTable() {
3922         super("createTable");
3923       }
3924 
3925       public createTable_args getEmptyArgsInstance() {
3926         return new createTable_args();
3927       }
3928 
3929       protected boolean isOneway() {
3930         return false;
3931       }
3932 
3933       public createTable_result getResult(I iface, createTable_args args) throws org.apache.thrift.TException {
3934         createTable_result result = new createTable_result();
3935         try {
3936           iface.createTable(args.tableName, args.columnFamilies);
3937         } catch (IOError io) {
3938           result.io = io;
3939         } catch (IllegalArgument ia) {
3940           result.ia = ia;
3941         } catch (AlreadyExists exist) {
3942           result.exist = exist;
3943         }
3944         return result;
3945       }
3946     }
3947 
3948     public static class deleteTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteTable_args> {
3949       public deleteTable() {
3950         super("deleteTable");
3951       }
3952 
3953       public deleteTable_args getEmptyArgsInstance() {
3954         return new deleteTable_args();
3955       }
3956 
3957       protected boolean isOneway() {
3958         return false;
3959       }
3960 
3961       public deleteTable_result getResult(I iface, deleteTable_args args) throws org.apache.thrift.TException {
3962         deleteTable_result result = new deleteTable_result();
3963         try {
3964           iface.deleteTable(args.tableName);
3965         } catch (IOError io) {
3966           result.io = io;
3967         }
3968         return result;
3969       }
3970     }
3971 
3972     public static class get<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_args> {
3973       public get() {
3974         super("get");
3975       }
3976 
3977       public get_args getEmptyArgsInstance() {
3978         return new get_args();
3979       }
3980 
3981       protected boolean isOneway() {
3982         return false;
3983       }
3984 
3985       public get_result getResult(I iface, get_args args) throws org.apache.thrift.TException {
3986         get_result result = new get_result();
3987         try {
3988           result.success = iface.get(args.tableName, args.row, args.column, args.attributes);
3989         } catch (IOError io) {
3990           result.io = io;
3991         }
3992         return result;
3993       }
3994     }
3995 
3996     public static class getVer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVer_args> {
3997       public getVer() {
3998         super("getVer");
3999       }
4000 
4001       public getVer_args getEmptyArgsInstance() {
4002         return new getVer_args();
4003       }
4004 
4005       protected boolean isOneway() {
4006         return false;
4007       }
4008 
4009       public getVer_result getResult(I iface, getVer_args args) throws org.apache.thrift.TException {
4010         getVer_result result = new getVer_result();
4011         try {
4012           result.success = iface.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes);
4013         } catch (IOError io) {
4014           result.io = io;
4015         }
4016         return result;
4017       }
4018     }
4019 
4020     public static class getVerTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVerTs_args> {
4021       public getVerTs() {
4022         super("getVerTs");
4023       }
4024 
4025       public getVerTs_args getEmptyArgsInstance() {
4026         return new getVerTs_args();
4027       }
4028 
4029       protected boolean isOneway() {
4030         return false;
4031       }
4032 
4033       public getVerTs_result getResult(I iface, getVerTs_args args) throws org.apache.thrift.TException {
4034         getVerTs_result result = new getVerTs_result();
4035         try {
4036           result.success = iface.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes);
4037         } catch (IOError io) {
4038           result.io = io;
4039         }
4040         return result;
4041       }
4042     }
4043 
4044     public static class getRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRow_args> {
4045       public getRow() {
4046         super("getRow");
4047       }
4048 
4049       public getRow_args getEmptyArgsInstance() {
4050         return new getRow_args();
4051       }
4052 
4053       protected boolean isOneway() {
4054         return false;
4055       }
4056 
4057       public getRow_result getResult(I iface, getRow_args args) throws org.apache.thrift.TException {
4058         getRow_result result = new getRow_result();
4059         try {
4060           result.success = iface.getRow(args.tableName, args.row, args.attributes);
4061         } catch (IOError io) {
4062           result.io = io;
4063         }
4064         return result;
4065       }
4066     }
4067 
4068     public static class getRowWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumns_args> {
4069       public getRowWithColumns() {
4070         super("getRowWithColumns");
4071       }
4072 
4073       public getRowWithColumns_args getEmptyArgsInstance() {
4074         return new getRowWithColumns_args();
4075       }
4076 
4077       protected boolean isOneway() {
4078         return false;
4079       }
4080 
4081       public getRowWithColumns_result getResult(I iface, getRowWithColumns_args args) throws org.apache.thrift.TException {
4082         getRowWithColumns_result result = new getRowWithColumns_result();
4083         try {
4084           result.success = iface.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes);
4085         } catch (IOError io) {
4086           result.io = io;
4087         }
4088         return result;
4089       }
4090     }
4091 
4092     public static class getRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowTs_args> {
4093       public getRowTs() {
4094         super("getRowTs");
4095       }
4096 
4097       public getRowTs_args getEmptyArgsInstance() {
4098         return new getRowTs_args();
4099       }
4100 
4101       protected boolean isOneway() {
4102         return false;
4103       }
4104 
4105       public getRowTs_result getResult(I iface, getRowTs_args args) throws org.apache.thrift.TException {
4106         getRowTs_result result = new getRowTs_result();
4107         try {
4108           result.success = iface.getRowTs(args.tableName, args.row, args.timestamp, args.attributes);
4109         } catch (IOError io) {
4110           result.io = io;
4111         }
4112         return result;
4113       }
4114     }
4115 
4116     public static class getRowWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumnsTs_args> {
4117       public getRowWithColumnsTs() {
4118         super("getRowWithColumnsTs");
4119       }
4120 
4121       public getRowWithColumnsTs_args getEmptyArgsInstance() {
4122         return new getRowWithColumnsTs_args();
4123       }
4124 
4125       protected boolean isOneway() {
4126         return false;
4127       }
4128 
4129       public getRowWithColumnsTs_result getResult(I iface, getRowWithColumnsTs_args args) throws org.apache.thrift.TException {
4130         getRowWithColumnsTs_result result = new getRowWithColumnsTs_result();
4131         try {
4132           result.success = iface.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes);
4133         } catch (IOError io) {
4134           result.io = io;
4135         }
4136         return result;
4137       }
4138     }
4139 
4140     public static class getRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRows_args> {
4141       public getRows() {
4142         super("getRows");
4143       }
4144 
4145       public getRows_args getEmptyArgsInstance() {
4146         return new getRows_args();
4147       }
4148 
4149       protected boolean isOneway() {
4150         return false;
4151       }
4152 
4153       public getRows_result getResult(I iface, getRows_args args) throws org.apache.thrift.TException {
4154         getRows_result result = new getRows_result();
4155         try {
4156           result.success = iface.getRows(args.tableName, args.rows, args.attributes);
4157         } catch (IOError io) {
4158           result.io = io;
4159         }
4160         return result;
4161       }
4162     }
4163 
4164     public static class getRowsWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumns_args> {
4165       public getRowsWithColumns() {
4166         super("getRowsWithColumns");
4167       }
4168 
4169       public getRowsWithColumns_args getEmptyArgsInstance() {
4170         return new getRowsWithColumns_args();
4171       }
4172 
4173       protected boolean isOneway() {
4174         return false;
4175       }
4176 
4177       public getRowsWithColumns_result getResult(I iface, getRowsWithColumns_args args) throws org.apache.thrift.TException {
4178         getRowsWithColumns_result result = new getRowsWithColumns_result();
4179         try {
4180           result.success = iface.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes);
4181         } catch (IOError io) {
4182           result.io = io;
4183         }
4184         return result;
4185       }
4186     }
4187 
4188     public static class getRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsTs_args> {
4189       public getRowsTs() {
4190         super("getRowsTs");
4191       }
4192 
4193       public getRowsTs_args getEmptyArgsInstance() {
4194         return new getRowsTs_args();
4195       }
4196 
4197       protected boolean isOneway() {
4198         return false;
4199       }
4200 
4201       public getRowsTs_result getResult(I iface, getRowsTs_args args) throws org.apache.thrift.TException {
4202         getRowsTs_result result = new getRowsTs_result();
4203         try {
4204           result.success = iface.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes);
4205         } catch (IOError io) {
4206           result.io = io;
4207         }
4208         return result;
4209       }
4210     }
4211 
4212     public static class getRowsWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumnsTs_args> {
4213       public getRowsWithColumnsTs() {
4214         super("getRowsWithColumnsTs");
4215       }
4216 
4217       public getRowsWithColumnsTs_args getEmptyArgsInstance() {
4218         return new getRowsWithColumnsTs_args();
4219       }
4220 
4221       protected boolean isOneway() {
4222         return false;
4223       }
4224 
4225       public getRowsWithColumnsTs_result getResult(I iface, getRowsWithColumnsTs_args args) throws org.apache.thrift.TException {
4226         getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result();
4227         try {
4228           result.success = iface.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes);
4229         } catch (IOError io) {
4230           result.io = io;
4231         }
4232         return result;
4233       }
4234     }
4235 
4236     public static class mutateRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRow_args> {
4237       public mutateRow() {
4238         super("mutateRow");
4239       }
4240 
4241       public mutateRow_args getEmptyArgsInstance() {
4242         return new mutateRow_args();
4243       }
4244 
4245       protected boolean isOneway() {
4246         return false;
4247       }
4248 
4249       public mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException {
4250         mutateRow_result result = new mutateRow_result();
4251         try {
4252           iface.mutateRow(args.tableName, args.row, args.mutations, args.attributes);
4253         } catch (IOError io) {
4254           result.io = io;
4255         } catch (IllegalArgument ia) {
4256           result.ia = ia;
4257         }
4258         return result;
4259       }
4260     }
4261 
4262     public static class mutateRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowTs_args> {
4263       public mutateRowTs() {
4264         super("mutateRowTs");
4265       }
4266 
4267       public mutateRowTs_args getEmptyArgsInstance() {
4268         return new mutateRowTs_args();
4269       }
4270 
4271       protected boolean isOneway() {
4272         return false;
4273       }
4274 
4275       public mutateRowTs_result getResult(I iface, mutateRowTs_args args) throws org.apache.thrift.TException {
4276         mutateRowTs_result result = new mutateRowTs_result();
4277         try {
4278           iface.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes);
4279         } catch (IOError io) {
4280           result.io = io;
4281         } catch (IllegalArgument ia) {
4282           result.ia = ia;
4283         }
4284         return result;
4285       }
4286     }
4287 
4288     public static class mutateRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRows_args> {
4289       public mutateRows() {
4290         super("mutateRows");
4291       }
4292 
4293       public mutateRows_args getEmptyArgsInstance() {
4294         return new mutateRows_args();
4295       }
4296 
4297       protected boolean isOneway() {
4298         return false;
4299       }
4300 
4301       public mutateRows_result getResult(I iface, mutateRows_args args) throws org.apache.thrift.TException {
4302         mutateRows_result result = new mutateRows_result();
4303         try {
4304           iface.mutateRows(args.tableName, args.rowBatches, args.attributes);
4305         } catch (IOError io) {
4306           result.io = io;
4307         } catch (IllegalArgument ia) {
4308           result.ia = ia;
4309         }
4310         return result;
4311       }
4312     }
4313 
4314     public static class mutateRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowsTs_args> {
4315       public mutateRowsTs() {
4316         super("mutateRowsTs");
4317       }
4318 
4319       public mutateRowsTs_args getEmptyArgsInstance() {
4320         return new mutateRowsTs_args();
4321       }
4322 
4323       protected boolean isOneway() {
4324         return false;
4325       }
4326 
4327       public mutateRowsTs_result getResult(I iface, mutateRowsTs_args args) throws org.apache.thrift.TException {
4328         mutateRowsTs_result result = new mutateRowsTs_result();
4329         try {
4330           iface.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes);
4331         } catch (IOError io) {
4332           result.io = io;
4333         } catch (IllegalArgument ia) {
4334           result.ia = ia;
4335         }
4336         return result;
4337       }
4338     }
4339 
4340     public static class atomicIncrement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, atomicIncrement_args> {
4341       public atomicIncrement() {
4342         super("atomicIncrement");
4343       }
4344 
4345       public atomicIncrement_args getEmptyArgsInstance() {
4346         return new atomicIncrement_args();
4347       }
4348 
4349       protected boolean isOneway() {
4350         return false;
4351       }
4352 
4353       public atomicIncrement_result getResult(I iface, atomicIncrement_args args) throws org.apache.thrift.TException {
4354         atomicIncrement_result result = new atomicIncrement_result();
4355         try {
4356           result.success = iface.atomicIncrement(args.tableName, args.row, args.column, args.value);
4357           result.setSuccessIsSet(true);
4358         } catch (IOError io) {
4359           result.io = io;
4360         } catch (IllegalArgument ia) {
4361           result.ia = ia;
4362         }
4363         return result;
4364       }
4365     }
4366 
4367     public static class deleteAll<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAll_args> {
4368       public deleteAll() {
4369         super("deleteAll");
4370       }
4371 
4372       public deleteAll_args getEmptyArgsInstance() {
4373         return new deleteAll_args();
4374       }
4375 
4376       protected boolean isOneway() {
4377         return false;
4378       }
4379 
4380       public deleteAll_result getResult(I iface, deleteAll_args args) throws org.apache.thrift.TException {
4381         deleteAll_result result = new deleteAll_result();
4382         try {
4383           iface.deleteAll(args.tableName, args.row, args.column, args.attributes);
4384         } catch (IOError io) {
4385           result.io = io;
4386         }
4387         return result;
4388       }
4389     }
4390 
4391     public static class deleteAllTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllTs_args> {
4392       public deleteAllTs() {
4393         super("deleteAllTs");
4394       }
4395 
4396       public deleteAllTs_args getEmptyArgsInstance() {
4397         return new deleteAllTs_args();
4398       }
4399 
4400       protected boolean isOneway() {
4401         return false;
4402       }
4403 
4404       public deleteAllTs_result getResult(I iface, deleteAllTs_args args) throws org.apache.thrift.TException {
4405         deleteAllTs_result result = new deleteAllTs_result();
4406         try {
4407           iface.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes);
4408         } catch (IOError io) {
4409           result.io = io;
4410         }
4411         return result;
4412       }
4413     }
4414 
4415     public static class deleteAllRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRow_args> {
4416       public deleteAllRow() {
4417         super("deleteAllRow");
4418       }
4419 
4420       public deleteAllRow_args getEmptyArgsInstance() {
4421         return new deleteAllRow_args();
4422       }
4423 
4424       protected boolean isOneway() {
4425         return false;
4426       }
4427 
4428       public deleteAllRow_result getResult(I iface, deleteAllRow_args args) throws org.apache.thrift.TException {
4429         deleteAllRow_result result = new deleteAllRow_result();
4430         try {
4431           iface.deleteAllRow(args.tableName, args.row, args.attributes);
4432         } catch (IOError io) {
4433           result.io = io;
4434         }
4435         return result;
4436       }
4437     }
4438 
4439     public static class increment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increment_args> {
4440       public increment() {
4441         super("increment");
4442       }
4443 
4444       public increment_args getEmptyArgsInstance() {
4445         return new increment_args();
4446       }
4447 
4448       protected boolean isOneway() {
4449         return false;
4450       }
4451 
4452       public increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException {
4453         increment_result result = new increment_result();
4454         try {
4455           iface.increment(args.increment);
4456         } catch (IOError io) {
4457           result.io = io;
4458         }
4459         return result;
4460       }
4461     }
4462 
4463     public static class incrementRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, incrementRows_args> {
4464       public incrementRows() {
4465         super("incrementRows");
4466       }
4467 
4468       public incrementRows_args getEmptyArgsInstance() {
4469         return new incrementRows_args();
4470       }
4471 
4472       protected boolean isOneway() {
4473         return false;
4474       }
4475 
4476       public incrementRows_result getResult(I iface, incrementRows_args args) throws org.apache.thrift.TException {
4477         incrementRows_result result = new incrementRows_result();
4478         try {
4479           iface.incrementRows(args.increments);
4480         } catch (IOError io) {
4481           result.io = io;
4482         }
4483         return result;
4484       }
4485     }
4486 
4487     public static class deleteAllRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRowTs_args> {
4488       public deleteAllRowTs() {
4489         super("deleteAllRowTs");
4490       }
4491 
4492       public deleteAllRowTs_args getEmptyArgsInstance() {
4493         return new deleteAllRowTs_args();
4494       }
4495 
4496       protected boolean isOneway() {
4497         return false;
4498       }
4499 
4500       public deleteAllRowTs_result getResult(I iface, deleteAllRowTs_args args) throws org.apache.thrift.TException {
4501         deleteAllRowTs_result result = new deleteAllRowTs_result();
4502         try {
4503           iface.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes);
4504         } catch (IOError io) {
4505           result.io = io;
4506         }
4507         return result;
4508       }
4509     }
4510 
4511     public static class scannerOpenWithScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithScan_args> {
4512       public scannerOpenWithScan() {
4513         super("scannerOpenWithScan");
4514       }
4515 
4516       public scannerOpenWithScan_args getEmptyArgsInstance() {
4517         return new scannerOpenWithScan_args();
4518       }
4519 
4520       protected boolean isOneway() {
4521         return false;
4522       }
4523 
4524       public scannerOpenWithScan_result getResult(I iface, scannerOpenWithScan_args args) throws org.apache.thrift.TException {
4525         scannerOpenWithScan_result result = new scannerOpenWithScan_result();
4526         try {
4527           result.success = iface.scannerOpenWithScan(args.tableName, args.scan, args.attributes);
4528           result.setSuccessIsSet(true);
4529         } catch (IOError io) {
4530           result.io = io;
4531         }
4532         return result;
4533       }
4534     }
4535 
4536     public static class scannerOpen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpen_args> {
4537       public scannerOpen() {
4538         super("scannerOpen");
4539       }
4540 
4541       public scannerOpen_args getEmptyArgsInstance() {
4542         return new scannerOpen_args();
4543       }
4544 
4545       protected boolean isOneway() {
4546         return false;
4547       }
4548 
4549       public scannerOpen_result getResult(I iface, scannerOpen_args args) throws org.apache.thrift.TException {
4550         scannerOpen_result result = new scannerOpen_result();
4551         try {
4552           result.success = iface.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes);
4553           result.setSuccessIsSet(true);
4554         } catch (IOError io) {
4555           result.io = io;
4556         }
4557         return result;
4558       }
4559     }
4560 
4561     public static class scannerOpenWithStop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStop_args> {
4562       public scannerOpenWithStop() {
4563         super("scannerOpenWithStop");
4564       }
4565 
4566       public scannerOpenWithStop_args getEmptyArgsInstance() {
4567         return new scannerOpenWithStop_args();
4568       }
4569 
4570       protected boolean isOneway() {
4571         return false;
4572       }
4573 
4574       public scannerOpenWithStop_result getResult(I iface, scannerOpenWithStop_args args) throws org.apache.thrift.TException {
4575         scannerOpenWithStop_result result = new scannerOpenWithStop_result();
4576         try {
4577           result.success = iface.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes);
4578           result.setSuccessIsSet(true);
4579         } catch (IOError io) {
4580           result.io = io;
4581         }
4582         return result;
4583       }
4584     }
4585 
4586     public static class scannerOpenWithPrefix<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithPrefix_args> {
4587       public scannerOpenWithPrefix() {
4588         super("scannerOpenWithPrefix");
4589       }
4590 
4591       public scannerOpenWithPrefix_args getEmptyArgsInstance() {
4592         return new scannerOpenWithPrefix_args();
4593       }
4594 
4595       protected boolean isOneway() {
4596         return false;
4597       }
4598 
4599       public scannerOpenWithPrefix_result getResult(I iface, scannerOpenWithPrefix_args args) throws org.apache.thrift.TException {
4600         scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result();
4601         try {
4602           result.success = iface.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes);
4603           result.setSuccessIsSet(true);
4604         } catch (IOError io) {
4605           result.io = io;
4606         }
4607         return result;
4608       }
4609     }
4610 
4611     public static class scannerOpenTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenTs_args> {
4612       public scannerOpenTs() {
4613         super("scannerOpenTs");
4614       }
4615 
4616       public scannerOpenTs_args getEmptyArgsInstance() {
4617         return new scannerOpenTs_args();
4618       }
4619 
4620       protected boolean isOneway() {
4621         return false;
4622       }
4623 
4624       public scannerOpenTs_result getResult(I iface, scannerOpenTs_args args) throws org.apache.thrift.TException {
4625         scannerOpenTs_result result = new scannerOpenTs_result();
4626         try {
4627           result.success = iface.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes);
4628           result.setSuccessIsSet(true);
4629         } catch (IOError io) {
4630           result.io = io;
4631         }
4632         return result;
4633       }
4634     }
4635 
4636     public static class scannerOpenWithStopTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStopTs_args> {
4637       public scannerOpenWithStopTs() {
4638         super("scannerOpenWithStopTs");
4639       }
4640 
4641       public scannerOpenWithStopTs_args getEmptyArgsInstance() {
4642         return new scannerOpenWithStopTs_args();
4643       }
4644 
4645       protected boolean isOneway() {
4646         return false;
4647       }
4648 
4649       public scannerOpenWithStopTs_result getResult(I iface, scannerOpenWithStopTs_args args) throws org.apache.thrift.TException {
4650         scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result();
4651         try {
4652           result.success = iface.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes);
4653           result.setSuccessIsSet(true);
4654         } catch (IOError io) {
4655           result.io = io;
4656         }
4657         return result;
4658       }
4659     }
4660 
4661     public static class scannerGet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGet_args> {
4662       public scannerGet() {
4663         super("scannerGet");
4664       }
4665 
4666       public scannerGet_args getEmptyArgsInstance() {
4667         return new scannerGet_args();
4668       }
4669 
4670       protected boolean isOneway() {
4671         return false;
4672       }
4673 
4674       public scannerGet_result getResult(I iface, scannerGet_args args) throws org.apache.thrift.TException {
4675         scannerGet_result result = new scannerGet_result();
4676         try {
4677           result.success = iface.scannerGet(args.id);
4678         } catch (IOError io) {
4679           result.io = io;
4680         } catch (IllegalArgument ia) {
4681           result.ia = ia;
4682         }
4683         return result;
4684       }
4685     }
4686 
4687     public static class scannerGetList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGetList_args> {
4688       public scannerGetList() {
4689         super("scannerGetList");
4690       }
4691 
4692       public scannerGetList_args getEmptyArgsInstance() {
4693         return new scannerGetList_args();
4694       }
4695 
4696       protected boolean isOneway() {
4697         return false;
4698       }
4699 
4700       public scannerGetList_result getResult(I iface, scannerGetList_args args) throws org.apache.thrift.TException {
4701         scannerGetList_result result = new scannerGetList_result();
4702         try {
4703           result.success = iface.scannerGetList(args.id, args.nbRows);
4704         } catch (IOError io) {
4705           result.io = io;
4706         } catch (IllegalArgument ia) {
4707           result.ia = ia;
4708         }
4709         return result;
4710       }
4711     }
4712 
4713     public static class scannerClose<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerClose_args> {
4714       public scannerClose() {
4715         super("scannerClose");
4716       }
4717 
4718       public scannerClose_args getEmptyArgsInstance() {
4719         return new scannerClose_args();
4720       }
4721 
4722       protected boolean isOneway() {
4723         return false;
4724       }
4725 
4726       public scannerClose_result getResult(I iface, scannerClose_args args) throws org.apache.thrift.TException {
4727         scannerClose_result result = new scannerClose_result();
4728         try {
4729           iface.scannerClose(args.id);
4730         } catch (IOError io) {
4731           result.io = io;
4732         } catch (IllegalArgument ia) {
4733           result.ia = ia;
4734         }
4735         return result;
4736       }
4737     }
4738 
4739     public static class getRegionInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRegionInfo_args> {
4740       public getRegionInfo() {
4741         super("getRegionInfo");
4742       }
4743 
4744       public getRegionInfo_args getEmptyArgsInstance() {
4745         return new getRegionInfo_args();
4746       }
4747 
4748       protected boolean isOneway() {
4749         return false;
4750       }
4751 
4752       public getRegionInfo_result getResult(I iface, getRegionInfo_args args) throws org.apache.thrift.TException {
4753         getRegionInfo_result result = new getRegionInfo_result();
4754         try {
4755           result.success = iface.getRegionInfo(args.row);
4756         } catch (IOError io) {
4757           result.io = io;
4758         }
4759         return result;
4760       }
4761     }
4762 
4763     public static class append<I extends Iface> extends org.apache.thrift.ProcessFunction<I, append_args> {
4764       public append() {
4765         super("append");
4766       }
4767 
4768       public append_args getEmptyArgsInstance() {
4769         return new append_args();
4770       }
4771 
4772       protected boolean isOneway() {
4773         return false;
4774       }
4775 
4776       public append_result getResult(I iface, append_args args) throws org.apache.thrift.TException {
4777         append_result result = new append_result();
4778         try {
4779           result.success = iface.append(args.append);
4780         } catch (IOError io) {
4781           result.io = io;
4782         }
4783         return result;
4784       }
4785     }
4786 
4787     public static class checkAndPut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkAndPut_args> {
4788       public checkAndPut() {
4789         super("checkAndPut");
4790       }
4791 
4792       public checkAndPut_args getEmptyArgsInstance() {
4793         return new checkAndPut_args();
4794       }
4795 
4796       protected boolean isOneway() {
4797         return false;
4798       }
4799 
4800       public checkAndPut_result getResult(I iface, checkAndPut_args args) throws org.apache.thrift.TException {
4801         checkAndPut_result result = new checkAndPut_result();
4802         try {
4803           result.success = iface.checkAndPut(args.tableName, args.row, args.column, args.value, args.mput, args.attributes);
4804           result.setSuccessIsSet(true);
4805         } catch (IOError io) {
4806           result.io = io;
4807         } catch (IllegalArgument ia) {
4808           result.ia = ia;
4809         }
4810         return result;
4811       }
4812     }
4813 
4814   }
4815 
4816   public static class enableTable_args implements org.apache.thrift.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable   {
4817     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_args");
4818 
4819     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
4820 
4821     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4822     static {
4823       schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory());
4824       schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory());
4825     }
4826 
4827     /**
4828      * name of the table
4829      */
4830     public ByteBuffer tableName; // required
4831 
4832     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4833     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4834       /**
4835        * name of the table
4836        */
4837       TABLE_NAME((short)1, "tableName");
4838 
4839       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4840 
4841       static {
4842         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4843           byName.put(field.getFieldName(), field);
4844         }
4845       }
4846 
4847       /**
4848        * Find the _Fields constant that matches fieldId, or null if its not found.
4849        */
4850       public static _Fields findByThriftId(int fieldId) {
4851         switch(fieldId) {
4852           case 1: // TABLE_NAME
4853             return TABLE_NAME;
4854           default:
4855             return null;
4856         }
4857       }
4858 
4859       /**
4860        * Find the _Fields constant that matches fieldId, throwing an exception
4861        * if it is not found.
4862        */
4863       public static _Fields findByThriftIdOrThrow(int fieldId) {
4864         _Fields fields = findByThriftId(fieldId);
4865         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4866         return fields;
4867       }
4868 
4869       /**
4870        * Find the _Fields constant that matches name, or null if its not found.
4871        */
4872       public static _Fields findByName(String name) {
4873         return byName.get(name);
4874       }
4875 
4876       private final short _thriftId;
4877       private final String _fieldName;
4878 
4879       _Fields(short thriftId, String fieldName) {
4880         _thriftId = thriftId;
4881         _fieldName = fieldName;
4882       }
4883 
4884       public short getThriftFieldId() {
4885         return _thriftId;
4886       }
4887 
4888       public String getFieldName() {
4889         return _fieldName;
4890       }
4891     }
4892 
4893     // isset id assignments
4894     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4895     static {
4896       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4897       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4898           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Bytes")));
4899       metaDataMap = Collections.unmodifiableMap(tmpMap);
4900       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap);
4901     }
4902 
4903     public enableTable_args() {
4904     }
4905 
4906     public enableTable_args(
4907       ByteBuffer tableName)
4908     {
4909       this();
4910       this.tableName = tableName;
4911     }
4912 
4913     /**
4914      * Performs a deep copy on <i>other</i>.
4915      */
4916     public enableTable_args(enableTable_args other) {
4917       if (other.isSetTableName()) {
4918         this.tableName = other.tableName;
4919       }
4920     }
4921 
4922     public enableTable_args deepCopy() {
4923       return new enableTable_args(this);
4924     }
4925 
4926     @Override
4927     public void clear() {
4928       this.tableName = null;
4929     }
4930 
4931     /**
4932      * name of the table
4933      */
4934     public byte[] getTableName() {
4935       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
4936       return tableName == null ? null : tableName.array();
4937     }
4938 
4939     public ByteBuffer bufferForTableName() {
4940       return tableName;
4941     }
4942 
4943     /**
4944      * name of the table
4945      */
4946     public enableTable_args setTableName(byte[] tableName) {
4947       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
4948       return this;
4949     }
4950 
4951     public enableTable_args setTableName(ByteBuffer tableName) {
4952       this.tableName = tableName;
4953       return this;
4954     }
4955 
4956     public void unsetTableName() {
4957       this.tableName = null;
4958     }
4959 
4960     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
4961     public boolean isSetTableName() {
4962       return this.tableName != null;
4963     }
4964 
4965     public void setTableNameIsSet(boolean value) {
4966       if (!value) {
4967         this.tableName = null;
4968       }
4969     }
4970 
4971     public void setFieldValue(_Fields field, Object value) {
4972       switch (field) {
4973       case TABLE_NAME:
4974         if (value == null) {
4975           unsetTableName();
4976         } else {
4977           setTableName((ByteBuffer)value);
4978         }
4979         break;
4980 
4981       }
4982     }
4983 
4984     public Object getFieldValue(_Fields field) {
4985       switch (field) {
4986       case TABLE_NAME:
4987         return getTableName();
4988 
4989       }
4990       throw new IllegalStateException();
4991     }
4992 
4993     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4994     public boolean isSet(_Fields field) {
4995       if (field == null) {
4996         throw new IllegalArgumentException();
4997       }
4998 
4999       switch (field) {
5000       case TABLE_NAME:
5001         return isSetTableName();
5002       }
5003       throw new IllegalStateException();
5004     }
5005 
5006     @Override
5007     public boolean equals(Object that) {
5008       if (that == null)
5009         return false;
5010       if (that instanceof enableTable_args)
5011         return this.equals((enableTable_args)that);
5012       return false;
5013     }
5014 
5015     public boolean equals(enableTable_args that) {
5016       if (that == null)
5017         return false;
5018 
5019       boolean this_present_tableName = true && this.isSetTableName();
5020       boolean that_present_tableName = true && that.isSetTableName();
5021       if (this_present_tableName || that_present_tableName) {
5022         if (!(this_present_tableName && that_present_tableName))
5023           return false;
5024         if (!this.tableName.equals(that.tableName))
5025           return false;
5026       }
5027 
5028       return true;
5029     }
5030 
5031     @Override
5032     public int hashCode() {
5033       HashCodeBuilder builder = new HashCodeBuilder();
5034 
5035       boolean present_tableName = true && (isSetTableName());
5036       builder.append(present_tableName);
5037       if (present_tableName)
5038         builder.append(tableName);
5039 
5040       return builder.toHashCode();
5041     }
5042 
5043     public int compareTo(enableTable_args other) {
5044       if (!getClass().equals(other.getClass())) {
5045         return getClass().getName().compareTo(other.getClass().getName());
5046       }
5047 
5048       int lastComparison = 0;
5049       enableTable_args typedOther = (enableTable_args)other;
5050 
5051       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
5052       if (lastComparison != 0) {
5053         return lastComparison;
5054       }
5055       if (isSetTableName()) {
5056         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
5057         if (lastComparison != 0) {
5058           return lastComparison;
5059         }
5060       }
5061       return 0;
5062     }
5063 
5064     public _Fields fieldForId(int fieldId) {
5065       return _Fields.findByThriftId(fieldId);
5066     }
5067 
5068     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5069       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5070     }
5071 
5072     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5073       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5074     }
5075 
5076     @Override
5077     public String toString() {
5078       StringBuilder sb = new StringBuilder("enableTable_args(");
5079       boolean first = true;
5080 
5081       sb.append("tableName:");
5082       if (this.tableName == null) {
5083         sb.append("null");
5084       } else {
5085         sb.append(this.tableName);
5086       }
5087       first = false;
5088       sb.append(")");
5089       return sb.toString();
5090     }
5091 
5092     public void validate() throws org.apache.thrift.TException {
5093       // check for required fields
5094       // check for sub-struct validity
5095     }
5096 
5097     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5098       try {
5099         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5100       } catch (org.apache.thrift.TException te) {
5101         throw new java.io.IOException(te);
5102       }
5103     }
5104 
5105     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5106       try {
5107         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5108       } catch (org.apache.thrift.TException te) {
5109         throw new java.io.IOException(te);
5110       }
5111     }
5112 
5113     private static class enableTable_argsStandardSchemeFactory implements SchemeFactory {
5114       public enableTable_argsStandardScheme getScheme() {
5115         return new enableTable_argsStandardScheme();
5116       }
5117     }
5118 
5119     private static class enableTable_argsStandardScheme extends StandardScheme<enableTable_args> {
5120 
5121       public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException {
5122         org.apache.thrift.protocol.TField schemeField;
5123         iprot.readStructBegin();
5124         while (true)
5125         {
5126           schemeField = iprot.readFieldBegin();
5127           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5128             break;
5129           }
5130           switch (schemeField.id) {
5131             case 1: // TABLE_NAME
5132               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5133                 struct.tableName = iprot.readBinary();
5134                 struct.setTableNameIsSet(true);
5135               } else { 
5136                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5137               }
5138               break;
5139             default:
5140               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5141           }
5142           iprot.readFieldEnd();
5143         }
5144         iprot.readStructEnd();
5145 
5146         // check for required fields of primitive type, which can't be checked in the validate method
5147         struct.validate();
5148       }
5149 
5150       public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.thrift.TException {
5151         struct.validate();
5152 
5153         oprot.writeStructBegin(STRUCT_DESC);
5154         if (struct.tableName != null) {
5155           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
5156           oprot.writeBinary(struct.tableName);
5157           oprot.writeFieldEnd();
5158         }
5159         oprot.writeFieldStop();
5160         oprot.writeStructEnd();
5161       }
5162 
5163     }
5164 
5165     private static class enableTable_argsTupleSchemeFactory implements SchemeFactory {
5166       public enableTable_argsTupleScheme getScheme() {
5167         return new enableTable_argsTupleScheme();
5168       }
5169     }
5170 
5171     private static class enableTable_argsTupleScheme extends TupleScheme<enableTable_args> {
5172 
5173       @Override
5174       public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException {
5175         TTupleProtocol oprot = (TTupleProtocol) prot;
5176         BitSet optionals = new BitSet();
5177         if (struct.isSetTableName()) {
5178           optionals.set(0);
5179         }
5180         oprot.writeBitSet(optionals, 1);
5181         if (struct.isSetTableName()) {
5182           oprot.writeBinary(struct.tableName);
5183         }
5184       }
5185 
5186       @Override
5187       public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException {
5188         TTupleProtocol iprot = (TTupleProtocol) prot;
5189         BitSet incoming = iprot.readBitSet(1);
5190         if (incoming.get(0)) {
5191           struct.tableName = iprot.readBinary();
5192           struct.setTableNameIsSet(true);
5193         }
5194       }
5195     }
5196 
5197   }
5198 
5199   public static class enableTable_result implements org.apache.thrift.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable   {
5200     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_result");
5201 
5202     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5203 
5204     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5205     static {
5206       schemes.put(StandardScheme.class, new enableTable_resultStandardSchemeFactory());
5207       schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory());
5208     }
5209 
5210     public IOError io; // required
5211 
5212     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5213     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5214       IO((short)1, "io");
5215 
5216       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5217 
5218       static {
5219         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5220           byName.put(field.getFieldName(), field);
5221         }
5222       }
5223 
5224       /**
5225        * Find the _Fields constant that matches fieldId, or null if its not found.
5226        */
5227       public static _Fields findByThriftId(int fieldId) {
5228         switch(fieldId) {
5229           case 1: // IO
5230             return IO;
5231           default:
5232             return null;
5233         }
5234       }
5235 
5236       /**
5237        * Find the _Fields constant that matches fieldId, throwing an exception
5238        * if it is not found.
5239        */
5240       public static _Fields findByThriftIdOrThrow(int fieldId) {
5241         _Fields fields = findByThriftId(fieldId);
5242         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5243         return fields;
5244       }
5245 
5246       /**
5247        * Find the _Fields constant that matches name, or null if its not found.
5248        */
5249       public static _Fields findByName(String name) {
5250         return byName.get(name);
5251       }
5252 
5253       private final short _thriftId;
5254       private final String _fieldName;
5255 
5256       _Fields(short thriftId, String fieldName) {
5257         _thriftId = thriftId;
5258         _fieldName = fieldName;
5259       }
5260 
5261       public short getThriftFieldId() {
5262         return _thriftId;
5263       }
5264 
5265       public String getFieldName() {
5266         return _fieldName;
5267       }
5268     }
5269 
5270     // isset id assignments
5271     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5272     static {
5273       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5274       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5275           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5276       metaDataMap = Collections.unmodifiableMap(tmpMap);
5277       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap);
5278     }
5279 
5280     public enableTable_result() {
5281     }
5282 
5283     public enableTable_result(
5284       IOError io)
5285     {
5286       this();
5287       this.io = io;
5288     }
5289 
5290     /**
5291      * Performs a deep copy on <i>other</i>.
5292      */
5293     public enableTable_result(enableTable_result other) {
5294       if (other.isSetIo()) {
5295         this.io = new IOError(other.io);
5296       }
5297     }
5298 
5299     public enableTable_result deepCopy() {
5300       return new enableTable_result(this);
5301     }
5302 
5303     @Override
5304     public void clear() {
5305       this.io = null;
5306     }
5307 
5308     public IOError getIo() {
5309       return this.io;
5310     }
5311 
5312     public enableTable_result setIo(IOError io) {
5313       this.io = io;
5314       return this;
5315     }
5316 
5317     public void unsetIo() {
5318       this.io = null;
5319     }
5320 
5321     /** Returns true if field io is set (has been assigned a value) and false otherwise */
5322     public boolean isSetIo() {
5323       return this.io != null;
5324     }
5325 
5326     public void setIoIsSet(boolean value) {
5327       if (!value) {
5328         this.io = null;
5329       }
5330     }
5331 
5332     public void setFieldValue(_Fields field, Object value) {
5333       switch (field) {
5334       case IO:
5335         if (value == null) {
5336           unsetIo();
5337         } else {
5338           setIo((IOError)value);
5339         }
5340         break;
5341 
5342       }
5343     }
5344 
5345     public Object getFieldValue(_Fields field) {
5346       switch (field) {
5347       case IO:
5348         return getIo();
5349 
5350       }
5351       throw new IllegalStateException();
5352     }
5353 
5354     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5355     public boolean isSet(_Fields field) {
5356       if (field == null) {
5357         throw new IllegalArgumentException();
5358       }
5359 
5360       switch (field) {
5361       case IO:
5362         return isSetIo();
5363       }
5364       throw new IllegalStateException();
5365     }
5366 
5367     @Override
5368     public boolean equals(Object that) {
5369       if (that == null)
5370         return false;
5371       if (that instanceof enableTable_result)
5372         return this.equals((enableTable_result)that);
5373       return false;
5374     }
5375 
5376     public boolean equals(enableTable_result that) {
5377       if (that == null)
5378         return false;
5379 
5380       boolean this_present_io = true && this.isSetIo();
5381       boolean that_present_io = true && that.isSetIo();
5382       if (this_present_io || that_present_io) {
5383         if (!(this_present_io && that_present_io))
5384           return false;
5385         if (!this.io.equals(that.io))
5386           return false;
5387       }
5388 
5389       return true;
5390     }
5391 
5392     @Override
5393     public int hashCode() {
5394       HashCodeBuilder builder = new HashCodeBuilder();
5395 
5396       boolean present_io = true && (isSetIo());
5397       builder.append(present_io);
5398       if (present_io)
5399         builder.append(io);
5400 
5401       return builder.toHashCode();
5402     }
5403 
5404     public int compareTo(enableTable_result other) {
5405       if (!getClass().equals(other.getClass())) {
5406         return getClass().getName().compareTo(other.getClass().getName());
5407       }
5408 
5409       int lastComparison = 0;
5410       enableTable_result typedOther = (enableTable_result)other;
5411 
5412       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
5413       if (lastComparison != 0) {
5414         return lastComparison;
5415       }
5416       if (isSetIo()) {
5417         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
5418         if (lastComparison != 0) {
5419           return lastComparison;
5420         }
5421       }
5422       return 0;
5423     }
5424 
5425     public _Fields fieldForId(int fieldId) {
5426       return _Fields.findByThriftId(fieldId);
5427     }
5428 
5429     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5430       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5431     }
5432 
5433     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5434       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5435       }
5436 
5437     @Override
5438     public String toString() {
5439       StringBuilder sb = new StringBuilder("enableTable_result(");
5440       boolean first = true;
5441 
5442       sb.append("io:");
5443       if (this.io == null) {
5444         sb.append("null");
5445       } else {
5446         sb.append(this.io);
5447       }
5448       first = false;
5449       sb.append(")");
5450       return sb.toString();
5451     }
5452 
5453     public void validate() throws org.apache.thrift.TException {
5454       // check for required fields
5455       // check for sub-struct validity
5456     }
5457 
5458     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5459       try {
5460         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5461       } catch (org.apache.thrift.TException te) {
5462         throw new java.io.IOException(te);
5463       }
5464     }
5465 
5466     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5467       try {
5468         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5469       } catch (org.apache.thrift.TException te) {
5470         throw new java.io.IOException(te);
5471       }
5472     }
5473 
5474     private static class enableTable_resultStandardSchemeFactory implements SchemeFactory {
5475       public enableTable_resultStandardScheme getScheme() {
5476         return new enableTable_resultStandardScheme();
5477       }
5478     }
5479 
5480     private static class enableTable_resultStandardScheme extends StandardScheme<enableTable_result> {
5481 
5482       public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException {
5483         org.apache.thrift.protocol.TField schemeField;
5484         iprot.readStructBegin();
5485         while (true)
5486         {
5487           schemeField = iprot.readFieldBegin();
5488           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5489             break;
5490           }
5491           switch (schemeField.id) {
5492             case 1: // IO
5493               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5494                 struct.io = new IOError();
5495                 struct.io.read(iprot);
5496                 struct.setIoIsSet(true);
5497               } else { 
5498                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5499               }
5500               break;
5501             default:
5502               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5503           }
5504           iprot.readFieldEnd();
5505         }
5506         iprot.readStructEnd();
5507 
5508         // check for required fields of primitive type, which can't be checked in the validate method
5509         struct.validate();
5510       }
5511 
5512       public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.thrift.TException {
5513         struct.validate();
5514 
5515         oprot.writeStructBegin(STRUCT_DESC);
5516         if (struct.io != null) {
5517           oprot.writeFieldBegin(IO_FIELD_DESC);
5518           struct.io.write(oprot);
5519           oprot.writeFieldEnd();
5520         }
5521         oprot.writeFieldStop();
5522         oprot.writeStructEnd();
5523       }
5524 
5525     }
5526 
5527     private static class enableTable_resultTupleSchemeFactory implements SchemeFactory {
5528       public enableTable_resultTupleScheme getScheme() {
5529         return new enableTable_resultTupleScheme();
5530       }
5531     }
5532 
5533     private static class enableTable_resultTupleScheme extends TupleScheme<enableTable_result> {
5534 
5535       @Override
5536       public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException {
5537         TTupleProtocol oprot = (TTupleProtocol) prot;
5538         BitSet optionals = new BitSet();
5539         if (struct.isSetIo()) {
5540           optionals.set(0);
5541         }
5542         oprot.writeBitSet(optionals, 1);
5543         if (struct.isSetIo()) {
5544           struct.io.write(oprot);
5545         }
5546       }
5547 
5548       @Override
5549       public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException {
5550         TTupleProtocol iprot = (TTupleProtocol) prot;
5551         BitSet incoming = iprot.readBitSet(1);
5552         if (incoming.get(0)) {
5553           struct.io = new IOError();
5554           struct.io.read(iprot);
5555           struct.setIoIsSet(true);
5556         }
5557       }
5558     }
5559 
5560   }
5561 
5562   public static class disableTable_args implements org.apache.thrift.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable   {
5563     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_args");
5564 
5565     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
5566 
5567     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5568     static {
5569       schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory());
5570       schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory());
5571     }
5572 
5573     /**
5574      * name of the table
5575      */
5576     public ByteBuffer tableName; // required
5577 
5578     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5579     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5580       /**
5581        * name of the table
5582        */
5583       TABLE_NAME((short)1, "tableName");
5584 
5585       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5586 
5587       static {
5588         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5589           byName.put(field.getFieldName(), field);
5590         }
5591       }
5592 
5593       /**
5594        * Find the _Fields constant that matches fieldId, or null if its not found.
5595        */
5596       public static _Fields findByThriftId(int fieldId) {
5597         switch(fieldId) {
5598           case 1: // TABLE_NAME
5599             return TABLE_NAME;
5600           default:
5601             return null;
5602         }
5603       }
5604 
5605       /**
5606        * Find the _Fields constant that matches fieldId, throwing an exception
5607        * if it is not found.
5608        */
5609       public static _Fields findByThriftIdOrThrow(int fieldId) {
5610         _Fields fields = findByThriftId(fieldId);
5611         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5612         return fields;
5613       }
5614 
5615       /**
5616        * Find the _Fields constant that matches name, or null if its not found.
5617        */
5618       public static _Fields findByName(String name) {
5619         return byName.get(name);
5620       }
5621 
5622       private final short _thriftId;
5623       private final String _fieldName;
5624 
5625       _Fields(short thriftId, String fieldName) {
5626         _thriftId = thriftId;
5627         _fieldName = fieldName;
5628       }
5629 
5630       public short getThriftFieldId() {
5631         return _thriftId;
5632       }
5633 
5634       public String getFieldName() {
5635         return _fieldName;
5636       }
5637     }
5638 
5639     // isset id assignments
5640     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5641     static {
5642       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5643       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5644           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Bytes")));
5645       metaDataMap = Collections.unmodifiableMap(tmpMap);
5646       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap);
5647     }
5648 
5649     public disableTable_args() {
5650     }
5651 
5652     public disableTable_args(
5653       ByteBuffer tableName)
5654     {
5655       this();
5656       this.tableName = tableName;
5657     }
5658 
5659     /**
5660      * Performs a deep copy on <i>other</i>.
5661      */
5662     public disableTable_args(disableTable_args other) {
5663       if (other.isSetTableName()) {
5664         this.tableName = other.tableName;
5665       }
5666     }
5667 
5668     public disableTable_args deepCopy() {
5669       return new disableTable_args(this);
5670     }
5671 
5672     @Override
5673     public void clear() {
5674       this.tableName = null;
5675     }
5676 
5677     /**
5678      * name of the table
5679      */
5680     public byte[] getTableName() {
5681       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
5682       return tableName == null ? null : tableName.array();
5683     }
5684 
5685     public ByteBuffer bufferForTableName() {
5686       return tableName;
5687     }
5688 
5689     /**
5690      * name of the table
5691      */
5692     public disableTable_args setTableName(byte[] tableName) {
5693       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
5694       return this;
5695     }
5696 
5697     public disableTable_args setTableName(ByteBuffer tableName) {
5698       this.tableName = tableName;
5699       return this;
5700     }
5701 
5702     public void unsetTableName() {
5703       this.tableName = null;
5704     }
5705 
5706     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
5707     public boolean isSetTableName() {
5708       return this.tableName != null;
5709     }
5710 
5711     public void setTableNameIsSet(boolean value) {
5712       if (!value) {
5713         this.tableName = null;
5714       }
5715     }
5716 
5717     public void setFieldValue(_Fields field, Object value) {
5718       switch (field) {
5719       case TABLE_NAME:
5720         if (value == null) {
5721           unsetTableName();
5722         } else {
5723           setTableName((ByteBuffer)value);
5724         }
5725         break;
5726 
5727       }
5728     }
5729 
5730     public Object getFieldValue(_Fields field) {
5731       switch (field) {
5732       case TABLE_NAME:
5733         return getTableName();
5734 
5735       }
5736       throw new IllegalStateException();
5737     }
5738 
5739     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5740     public boolean isSet(_Fields field) {
5741       if (field == null) {
5742         throw new IllegalArgumentException();
5743       }
5744 
5745       switch (field) {
5746       case TABLE_NAME:
5747         return isSetTableName();
5748       }
5749       throw new IllegalStateException();
5750     }
5751 
5752     @Override
5753     public boolean equals(Object that) {
5754       if (that == null)
5755         return false;
5756       if (that instanceof disableTable_args)
5757         return this.equals((disableTable_args)that);
5758       return false;
5759     }
5760 
5761     public boolean equals(disableTable_args that) {
5762       if (that == null)
5763         return false;
5764 
5765       boolean this_present_tableName = true && this.isSetTableName();
5766       boolean that_present_tableName = true && that.isSetTableName();
5767       if (this_present_tableName || that_present_tableName) {
5768         if (!(this_present_tableName && that_present_tableName))
5769           return false;
5770         if (!this.tableName.equals(that.tableName))
5771           return false;
5772       }
5773 
5774       return true;
5775     }
5776 
5777     @Override
5778     public int hashCode() {
5779       HashCodeBuilder builder = new HashCodeBuilder();
5780 
5781       boolean present_tableName = true && (isSetTableName());
5782       builder.append(present_tableName);
5783       if (present_tableName)
5784         builder.append(tableName);
5785 
5786       return builder.toHashCode();
5787     }
5788 
5789     public int compareTo(disableTable_args other) {
5790       if (!getClass().equals(other.getClass())) {
5791         return getClass().getName().compareTo(other.getClass().getName());
5792       }
5793 
5794       int lastComparison = 0;
5795       disableTable_args typedOther = (disableTable_args)other;
5796 
5797       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
5798       if (lastComparison != 0) {
5799         return lastComparison;
5800       }
5801       if (isSetTableName()) {
5802         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
5803         if (lastComparison != 0) {
5804           return lastComparison;
5805         }
5806       }
5807       return 0;
5808     }
5809 
5810     public _Fields fieldForId(int fieldId) {
5811       return _Fields.findByThriftId(fieldId);
5812     }
5813 
5814     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5815       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5816     }
5817 
5818     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5819       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5820     }
5821 
5822     @Override
5823     public String toString() {
5824       StringBuilder sb = new StringBuilder("disableTable_args(");
5825       boolean first = true;
5826 
5827       sb.append("tableName:");
5828       if (this.tableName == null) {
5829         sb.append("null");
5830       } else {
5831         sb.append(this.tableName);
5832       }
5833       first = false;
5834       sb.append(")");
5835       return sb.toString();
5836     }
5837 
5838     public void validate() throws org.apache.thrift.TException {
5839       // check for required fields
5840       // check for sub-struct validity
5841     }
5842 
5843     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5844       try {
5845         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5846       } catch (org.apache.thrift.TException te) {
5847         throw new java.io.IOException(te);
5848       }
5849     }
5850 
5851     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5852       try {
5853         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5854       } catch (org.apache.thrift.TException te) {
5855         throw new java.io.IOException(te);
5856       }
5857     }
5858 
5859     private static class disableTable_argsStandardSchemeFactory implements SchemeFactory {
5860       public disableTable_argsStandardScheme getScheme() {
5861         return new disableTable_argsStandardScheme();
5862       }
5863     }
5864 
5865     private static class disableTable_argsStandardScheme extends StandardScheme<disableTable_args> {
5866 
5867       public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException {
5868         org.apache.thrift.protocol.TField schemeField;
5869         iprot.readStructBegin();
5870         while (true)
5871         {
5872           schemeField = iprot.readFieldBegin();
5873           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5874             break;
5875           }
5876           switch (schemeField.id) {
5877             case 1: // TABLE_NAME
5878               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5879                 struct.tableName = iprot.readBinary();
5880                 struct.setTableNameIsSet(true);
5881               } else { 
5882                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5883               }
5884               break;
5885             default:
5886               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5887           }
5888           iprot.readFieldEnd();
5889         }
5890         iprot.readStructEnd();
5891 
5892         // check for required fields of primitive type, which can't be checked in the validate method
5893         struct.validate();
5894       }
5895 
5896       public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.thrift.TException {
5897         struct.validate();
5898 
5899         oprot.writeStructBegin(STRUCT_DESC);
5900         if (struct.tableName != null) {
5901           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
5902           oprot.writeBinary(struct.tableName);
5903           oprot.writeFieldEnd();
5904         }
5905         oprot.writeFieldStop();
5906         oprot.writeStructEnd();
5907       }
5908 
5909     }
5910 
5911     private static class disableTable_argsTupleSchemeFactory implements SchemeFactory {
5912       public disableTable_argsTupleScheme getScheme() {
5913         return new disableTable_argsTupleScheme();
5914       }
5915     }
5916 
5917     private static class disableTable_argsTupleScheme extends TupleScheme<disableTable_args> {
5918 
5919       @Override
5920       public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException {
5921         TTupleProtocol oprot = (TTupleProtocol) prot;
5922         BitSet optionals = new BitSet();
5923         if (struct.isSetTableName()) {
5924           optionals.set(0);
5925         }
5926         oprot.writeBitSet(optionals, 1);
5927         if (struct.isSetTableName()) {
5928           oprot.writeBinary(struct.tableName);
5929         }
5930       }
5931 
5932       @Override
5933       public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException {
5934         TTupleProtocol iprot = (TTupleProtocol) prot;
5935         BitSet incoming = iprot.readBitSet(1);
5936         if (incoming.get(0)) {
5937           struct.tableName = iprot.readBinary();
5938           struct.setTableNameIsSet(true);
5939         }
5940       }
5941     }
5942 
5943   }
5944 
5945   public static class disableTable_result implements org.apache.thrift.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable   {
5946     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_result");
5947 
5948     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5949 
5950     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5951     static {
5952       schemes.put(StandardScheme.class, new disableTable_resultStandardSchemeFactory());
5953       schemes.put(TupleScheme.class, new disableTable_resultTupleSchemeFactory());
5954     }
5955 
5956     public IOError io; // required
5957 
5958     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5959     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5960       IO((short)1, "io");
5961 
5962       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5963 
5964       static {
5965         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5966           byName.put(field.getFieldName(), field);
5967         }
5968       }
5969 
5970       /**
5971        * Find the _Fields constant that matches fieldId, or null if its not found.
5972        */
5973       public static _Fields findByThriftId(int fieldId) {
5974         switch(fieldId) {
5975           case 1: // IO
5976             return IO;
5977           default:
5978             return null;
5979         }
5980       }
5981 
5982       /**
5983        * Find the _Fields constant that matches fieldId, throwing an exception
5984        * if it is not found.
5985        */
5986       public static _Fields findByThriftIdOrThrow(int fieldId) {
5987         _Fields fields = findByThriftId(fieldId);
5988         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5989         return fields;
5990       }
5991 
5992       /**
5993        * Find the _Fields constant that matches name, or null if its not found.
5994        */
5995       public static _Fields findByName(String name) {
5996         return byName.get(name);
5997       }
5998 
5999       private final short _thriftId;
6000       private final String _fieldName;
6001 
6002       _Fields(short thriftId, String fieldName) {
6003         _thriftId = thriftId;
6004         _fieldName = fieldName;
6005       }
6006 
6007       public short getThriftFieldId() {
6008         return _thriftId;
6009       }
6010 
6011       public String getFieldName() {
6012         return _fieldName;
6013       }
6014     }
6015 
6016     // isset id assignments
6017     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6018     static {
6019       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6020       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6021           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6022       metaDataMap = Collections.unmodifiableMap(tmpMap);
6023       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap);
6024     }
6025 
6026     public disableTable_result() {
6027     }
6028 
6029     public disableTable_result(
6030       IOError io)
6031     {
6032       this();
6033       this.io = io;
6034     }
6035 
6036     /**
6037      * Performs a deep copy on <i>other</i>.
6038      */
6039     public disableTable_result(disableTable_result other) {
6040       if (other.isSetIo()) {
6041         this.io = new IOError(other.io);
6042       }
6043     }
6044 
6045     public disableTable_result deepCopy() {
6046       return new disableTable_result(this);
6047     }
6048 
6049     @Override
6050     public void clear() {
6051       this.io = null;
6052     }
6053 
6054     public IOError getIo() {
6055       return this.io;
6056     }
6057 
6058     public disableTable_result setIo(IOError io) {
6059       this.io = io;
6060       return this;
6061     }
6062 
6063     public void unsetIo() {
6064       this.io = null;
6065     }
6066 
6067     /** Returns true if field io is set (has been assigned a value) and false otherwise */
6068     public boolean isSetIo() {
6069       return this.io != null;
6070     }
6071 
6072     public void setIoIsSet(boolean value) {
6073       if (!value) {
6074         this.io = null;
6075       }
6076     }
6077 
6078     public void setFieldValue(_Fields field, Object value) {
6079       switch (field) {
6080       case IO:
6081         if (value == null) {
6082           unsetIo();
6083         } else {
6084           setIo((IOError)value);
6085         }
6086         break;
6087 
6088       }
6089     }
6090 
6091     public Object getFieldValue(_Fields field) {
6092       switch (field) {
6093       case IO:
6094         return getIo();
6095 
6096       }
6097       throw new IllegalStateException();
6098     }
6099 
6100     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6101     public boolean isSet(_Fields field) {
6102       if (field == null) {
6103         throw new IllegalArgumentException();
6104       }
6105 
6106       switch (field) {
6107       case IO:
6108         return isSetIo();
6109       }
6110       throw new IllegalStateException();
6111     }
6112 
6113     @Override
6114     public boolean equals(Object that) {
6115       if (that == null)
6116         return false;
6117       if (that instanceof disableTable_result)
6118         return this.equals((disableTable_result)that);
6119       return false;
6120     }
6121 
6122     public boolean equals(disableTable_result that) {
6123       if (that == null)
6124         return false;
6125 
6126       boolean this_present_io = true && this.isSetIo();
6127       boolean that_present_io = true && that.isSetIo();
6128       if (this_present_io || that_present_io) {
6129         if (!(this_present_io && that_present_io))
6130           return false;
6131         if (!this.io.equals(that.io))
6132           return false;
6133       }
6134 
6135       return true;
6136     }
6137 
6138     @Override
6139     public int hashCode() {
6140       HashCodeBuilder builder = new HashCodeBuilder();
6141 
6142       boolean present_io = true && (isSetIo());
6143       builder.append(present_io);
6144       if (present_io)
6145         builder.append(io);
6146 
6147       return builder.toHashCode();
6148     }
6149 
6150     public int compareTo(disableTable_result other) {
6151       if (!getClass().equals(other.getClass())) {
6152         return getClass().getName().compareTo(other.getClass().getName());
6153       }
6154 
6155       int lastComparison = 0;
6156       disableTable_result typedOther = (disableTable_result)other;
6157 
6158       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
6159       if (lastComparison != 0) {
6160         return lastComparison;
6161       }
6162       if (isSetIo()) {
6163         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
6164         if (lastComparison != 0) {
6165           return lastComparison;
6166         }
6167       }
6168       return 0;
6169     }
6170 
6171     public _Fields fieldForId(int fieldId) {
6172       return _Fields.findByThriftId(fieldId);
6173     }
6174 
6175     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6176       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6177     }
6178 
6179     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6180       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6181       }
6182 
6183     @Override
6184     public String toString() {
6185       StringBuilder sb = new StringBuilder("disableTable_result(");
6186       boolean first = true;
6187 
6188       sb.append("io:");
6189       if (this.io == null) {
6190         sb.append("null");
6191       } else {
6192         sb.append(this.io);
6193       }
6194       first = false;
6195       sb.append(")");
6196       return sb.toString();
6197     }
6198 
6199     public void validate() throws org.apache.thrift.TException {
6200       // check for required fields
6201       // check for sub-struct validity
6202     }
6203 
6204     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6205       try {
6206         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6207       } catch (org.apache.thrift.TException te) {
6208         throw new java.io.IOException(te);
6209       }
6210     }
6211 
6212     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6213       try {
6214         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6215       } catch (org.apache.thrift.TException te) {
6216         throw new java.io.IOException(te);
6217       }
6218     }
6219 
6220     private static class disableTable_resultStandardSchemeFactory implements SchemeFactory {
6221       public disableTable_resultStandardScheme getScheme() {
6222         return new disableTable_resultStandardScheme();
6223       }
6224     }
6225 
6226     private static class disableTable_resultStandardScheme extends StandardScheme<disableTable_result> {
6227 
6228       public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException {
6229         org.apache.thrift.protocol.TField schemeField;
6230         iprot.readStructBegin();
6231         while (true)
6232         {
6233           schemeField = iprot.readFieldBegin();
6234           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6235             break;
6236           }
6237           switch (schemeField.id) {
6238             case 1: // IO
6239               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6240                 struct.io = new IOError();
6241                 struct.io.read(iprot);
6242                 struct.setIoIsSet(true);
6243               } else { 
6244                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6245               }
6246               break;
6247             default:
6248               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6249           }
6250           iprot.readFieldEnd();
6251         }
6252         iprot.readStructEnd();
6253 
6254         // check for required fields of primitive type, which can't be checked in the validate method
6255         struct.validate();
6256       }
6257 
6258       public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.thrift.TException {
6259         struct.validate();
6260 
6261         oprot.writeStructBegin(STRUCT_DESC);
6262         if (struct.io != null) {
6263           oprot.writeFieldBegin(IO_FIELD_DESC);
6264           struct.io.write(oprot);
6265           oprot.writeFieldEnd();
6266         }
6267         oprot.writeFieldStop();
6268         oprot.writeStructEnd();
6269       }
6270 
6271     }
6272 
6273     private static class disableTable_resultTupleSchemeFactory implements SchemeFactory {
6274       public disableTable_resultTupleScheme getScheme() {
6275         return new disableTable_resultTupleScheme();
6276       }
6277     }
6278 
6279     private static class disableTable_resultTupleScheme extends TupleScheme<disableTable_result> {
6280 
6281       @Override
6282       public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException {
6283         TTupleProtocol oprot = (TTupleProtocol) prot;
6284         BitSet optionals = new BitSet();
6285         if (struct.isSetIo()) {
6286           optionals.set(0);
6287         }
6288         oprot.writeBitSet(optionals, 1);
6289         if (struct.isSetIo()) {
6290           struct.io.write(oprot);
6291         }
6292       }
6293 
6294       @Override
6295       public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException {
6296         TTupleProtocol iprot = (TTupleProtocol) prot;
6297         BitSet incoming = iprot.readBitSet(1);
6298         if (incoming.get(0)) {
6299           struct.io = new IOError();
6300           struct.io.read(iprot);
6301           struct.setIoIsSet(true);
6302         }
6303       }
6304     }
6305 
6306   }
6307 
6308   public static class isTableEnabled_args implements org.apache.thrift.TBase<isTableEnabled_args, isTableEnabled_args._Fields>, java.io.Serializable, Cloneable   {
6309     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_args");
6310 
6311     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
6312 
6313     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6314     static {
6315       schemes.put(StandardScheme.class, new isTableEnabled_argsStandardSchemeFactory());
6316       schemes.put(TupleScheme.class, new isTableEnabled_argsTupleSchemeFactory());
6317     }
6318 
6319     /**
6320      * name of the table to check
6321      */
6322     public ByteBuffer tableName; // required
6323 
6324     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6325     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6326       /**
6327        * name of the table to check
6328        */
6329       TABLE_NAME((short)1, "tableName");
6330 
6331       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6332 
6333       static {
6334         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6335           byName.put(field.getFieldName(), field);
6336         }
6337       }
6338 
6339       /**
6340        * Find the _Fields constant that matches fieldId, or null if its not found.
6341        */
6342       public static _Fields findByThriftId(int fieldId) {
6343         switch(fieldId) {
6344           case 1: // TABLE_NAME
6345             return TABLE_NAME;
6346           default:
6347             return null;
6348         }
6349       }
6350 
6351       /**
6352        * Find the _Fields constant that matches fieldId, throwing an exception
6353        * if it is not found.
6354        */
6355       public static _Fields findByThriftIdOrThrow(int fieldId) {
6356         _Fields fields = findByThriftId(fieldId);
6357         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6358         return fields;
6359       }
6360 
6361       /**
6362        * Find the _Fields constant that matches name, or null if its not found.
6363        */
6364       public static _Fields findByName(String name) {
6365         return byName.get(name);
6366       }
6367 
6368       private final short _thriftId;
6369       private final String _fieldName;
6370 
6371       _Fields(short thriftId, String fieldName) {
6372         _thriftId = thriftId;
6373         _fieldName = fieldName;
6374       }
6375 
6376       public short getThriftFieldId() {
6377         return _thriftId;
6378       }
6379 
6380       public String getFieldName() {
6381         return _fieldName;
6382       }
6383     }
6384 
6385     // isset id assignments
6386     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6387     static {
6388       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6389       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6390           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Bytes")));
6391       metaDataMap = Collections.unmodifiableMap(tmpMap);
6392       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap);
6393     }
6394 
6395     public isTableEnabled_args() {
6396     }
6397 
6398     public isTableEnabled_args(
6399       ByteBuffer tableName)
6400     {
6401       this();
6402       this.tableName = tableName;
6403     }
6404 
6405     /**
6406      * Performs a deep copy on <i>other</i>.
6407      */
6408     public isTableEnabled_args(isTableEnabled_args other) {
6409       if (other.isSetTableName()) {
6410         this.tableName = other.tableName;
6411       }
6412     }
6413 
6414     public isTableEnabled_args deepCopy() {
6415       return new isTableEnabled_args(this);
6416     }
6417 
6418     @Override
6419     public void clear() {
6420       this.tableName = null;
6421     }
6422 
6423     /**
6424      * name of the table to check
6425      */
6426     public byte[] getTableName() {
6427       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
6428       return tableName == null ? null : tableName.array();
6429     }
6430 
6431     public ByteBuffer bufferForTableName() {
6432       return tableName;
6433     }
6434 
6435     /**
6436      * name of the table to check
6437      */
6438     public isTableEnabled_args setTableName(byte[] tableName) {
6439       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
6440       return this;
6441     }
6442 
6443     public isTableEnabled_args setTableName(ByteBuffer tableName) {
6444       this.tableName = tableName;
6445       return this;
6446     }
6447 
6448     public void unsetTableName() {
6449       this.tableName = null;
6450     }
6451 
6452     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
6453     public boolean isSetTableName() {
6454       return this.tableName != null;
6455     }
6456 
6457     public void setTableNameIsSet(boolean value) {
6458       if (!value) {
6459         this.tableName = null;
6460       }
6461     }
6462 
6463     public void setFieldValue(_Fields field, Object value) {
6464       switch (field) {
6465       case TABLE_NAME:
6466         if (value == null) {
6467           unsetTableName();
6468         } else {
6469           setTableName((ByteBuffer)value);
6470         }
6471         break;
6472 
6473       }
6474     }
6475 
6476     public Object getFieldValue(_Fields field) {
6477       switch (field) {
6478       case TABLE_NAME:
6479         return getTableName();
6480 
6481       }
6482       throw new IllegalStateException();
6483     }
6484 
6485     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6486     public boolean isSet(_Fields field) {
6487       if (field == null) {
6488         throw new IllegalArgumentException();
6489       }
6490 
6491       switch (field) {
6492       case TABLE_NAME:
6493         return isSetTableName();
6494       }
6495       throw new IllegalStateException();
6496     }
6497 
6498     @Override
6499     public boolean equals(Object that) {
6500       if (that == null)
6501         return false;
6502       if (that instanceof isTableEnabled_args)
6503         return this.equals((isTableEnabled_args)that);
6504       return false;
6505     }
6506 
6507     public boolean equals(isTableEnabled_args that) {
6508       if (that == null)
6509         return false;
6510 
6511       boolean this_present_tableName = true && this.isSetTableName();
6512       boolean that_present_tableName = true && that.isSetTableName();
6513       if (this_present_tableName || that_present_tableName) {
6514         if (!(this_present_tableName && that_present_tableName))
6515           return false;
6516         if (!this.tableName.equals(that.tableName))
6517           return false;
6518       }
6519 
6520       return true;
6521     }
6522 
6523     @Override
6524     public int hashCode() {
6525       HashCodeBuilder builder = new HashCodeBuilder();
6526 
6527       boolean present_tableName = true && (isSetTableName());
6528       builder.append(present_tableName);
6529       if (present_tableName)
6530         builder.append(tableName);
6531 
6532       return builder.toHashCode();
6533     }
6534 
6535     public int compareTo(isTableEnabled_args other) {
6536       if (!getClass().equals(other.getClass())) {
6537         return getClass().getName().compareTo(other.getClass().getName());
6538       }
6539 
6540       int lastComparison = 0;
6541       isTableEnabled_args typedOther = (isTableEnabled_args)other;
6542 
6543       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
6544       if (lastComparison != 0) {
6545         return lastComparison;
6546       }
6547       if (isSetTableName()) {
6548         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
6549         if (lastComparison != 0) {
6550           return lastComparison;
6551         }
6552       }
6553       return 0;
6554     }
6555 
6556     public _Fields fieldForId(int fieldId) {
6557       return _Fields.findByThriftId(fieldId);
6558     }
6559 
6560     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6561       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6562     }
6563 
6564     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6565       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6566     }
6567 
6568     @Override
6569     public String toString() {
6570       StringBuilder sb = new StringBuilder("isTableEnabled_args(");
6571       boolean first = true;
6572 
6573       sb.append("tableName:");
6574       if (this.tableName == null) {
6575         sb.append("null");
6576       } else {
6577         sb.append(this.tableName);
6578       }
6579       first = false;
6580       sb.append(")");
6581       return sb.toString();
6582     }
6583 
6584     public void validate() throws org.apache.thrift.TException {
6585       // check for required fields
6586       // check for sub-struct validity
6587     }
6588 
6589     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6590       try {
6591         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6592       } catch (org.apache.thrift.TException te) {
6593         throw new java.io.IOException(te);
6594       }
6595     }
6596 
6597     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6598       try {
6599         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6600       } catch (org.apache.thrift.TException te) {
6601         throw new java.io.IOException(te);
6602       }
6603     }
6604 
6605     private static class isTableEnabled_argsStandardSchemeFactory implements SchemeFactory {
6606       public isTableEnabled_argsStandardScheme getScheme() {
6607         return new isTableEnabled_argsStandardScheme();
6608       }
6609     }
6610 
6611     private static class isTableEnabled_argsStandardScheme extends StandardScheme<isTableEnabled_args> {
6612 
6613       public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6614         org.apache.thrift.protocol.TField schemeField;
6615         iprot.readStructBegin();
6616         while (true)
6617         {
6618           schemeField = iprot.readFieldBegin();
6619           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6620             break;
6621           }
6622           switch (schemeField.id) {
6623             case 1: // TABLE_NAME
6624               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6625                 struct.tableName = iprot.readBinary();
6626                 struct.setTableNameIsSet(true);
6627               } else { 
6628                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6629               }
6630               break;
6631             default:
6632               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6633           }
6634           iprot.readFieldEnd();
6635         }
6636         iprot.readStructEnd();
6637 
6638         // check for required fields of primitive type, which can't be checked in the validate method
6639         struct.validate();
6640       }
6641 
6642       public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6643         struct.validate();
6644 
6645         oprot.writeStructBegin(STRUCT_DESC);
6646         if (struct.tableName != null) {
6647           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
6648           oprot.writeBinary(struct.tableName);
6649           oprot.writeFieldEnd();
6650         }
6651         oprot.writeFieldStop();
6652         oprot.writeStructEnd();
6653       }
6654 
6655     }
6656 
6657     private static class isTableEnabled_argsTupleSchemeFactory implements SchemeFactory {
6658       public isTableEnabled_argsTupleScheme getScheme() {
6659         return new isTableEnabled_argsTupleScheme();
6660       }
6661     }
6662 
6663     private static class isTableEnabled_argsTupleScheme extends TupleScheme<isTableEnabled_args> {
6664 
6665       @Override
6666       public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6667         TTupleProtocol oprot = (TTupleProtocol) prot;
6668         BitSet optionals = new BitSet();
6669         if (struct.isSetTableName()) {
6670           optionals.set(0);
6671         }
6672         oprot.writeBitSet(optionals, 1);
6673         if (struct.isSetTableName()) {
6674           oprot.writeBinary(struct.tableName);
6675         }
6676       }
6677 
6678       @Override
6679       public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6680         TTupleProtocol iprot = (TTupleProtocol) prot;
6681         BitSet incoming = iprot.readBitSet(1);
6682         if (incoming.get(0)) {
6683           struct.tableName = iprot.readBinary();
6684           struct.setTableNameIsSet(true);
6685         }
6686       }
6687     }
6688 
6689   }
6690 
6691   public static class isTableEnabled_result implements org.apache.thrift.TBase<isTableEnabled_result, isTableEnabled_result._Fields>, java.io.Serializable, Cloneable   {
6692     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_result");
6693 
6694     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
6695     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6696 
6697     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6698     static {
6699       schemes.put(StandardScheme.class, new isTableEnabled_resultStandardSchemeFactory());
6700       schemes.put(TupleScheme.class, new isTableEnabled_resultTupleSchemeFactory());
6701     }
6702 
6703     public boolean success; // required
6704     public IOError io; // required
6705 
6706     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6707     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6708       SUCCESS((short)0, "success"),
6709       IO((short)1, "io");
6710 
6711       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6712 
6713       static {
6714         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6715           byName.put(field.getFieldName(), field);
6716         }
6717       }
6718 
6719       /**
6720        * Find the _Fields constant that matches fieldId, or null if its not found.
6721        */
6722       public static _Fields findByThriftId(int fieldId) {
6723         switch(fieldId) {
6724           case 0: // SUCCESS
6725             return SUCCESS;
6726           case 1: // IO
6727             return IO;
6728           default:
6729             return null;
6730         }
6731       }
6732 
6733       /**
6734        * Find the _Fields constant that matches fieldId, throwing an exception
6735        * if it is not found.
6736        */
6737       public static _Fields findByThriftIdOrThrow(int fieldId) {
6738         _Fields fields = findByThriftId(fieldId);
6739         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6740         return fields;
6741       }
6742 
6743       /**
6744        * Find the _Fields constant that matches name, or null if its not found.
6745        */
6746       public static _Fields findByName(String name) {
6747         return byName.get(name);
6748       }
6749 
6750       private final short _thriftId;
6751       private final String _fieldName;
6752 
6753       _Fields(short thriftId, String fieldName) {
6754         _thriftId = thriftId;
6755         _fieldName = fieldName;
6756       }
6757 
6758       public short getThriftFieldId() {
6759         return _thriftId;
6760       }
6761 
6762       public String getFieldName() {
6763         return _fieldName;
6764       }
6765     }
6766 
6767     // isset id assignments
6768     private static final int __SUCCESS_ISSET_ID = 0;
6769     private byte __isset_bitfield = 0;
6770     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6771     static {
6772       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6773       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6774           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6775       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6776           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6777       metaDataMap = Collections.unmodifiableMap(tmpMap);
6778       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap);
6779     }
6780 
6781     public isTableEnabled_result() {
6782     }
6783 
6784     public isTableEnabled_result(
6785       boolean success,
6786       IOError io)
6787     {
6788       this();
6789       this.success = success;
6790       setSuccessIsSet(true);
6791       this.io = io;
6792     }
6793 
6794     /**
6795      * Performs a deep copy on <i>other</i>.
6796      */
6797     public isTableEnabled_result(isTableEnabled_result other) {
6798       __isset_bitfield = other.__isset_bitfield;
6799       this.success = other.success;
6800       if (other.isSetIo()) {
6801         this.io = new IOError(other.io);
6802       }
6803     }
6804 
6805     public isTableEnabled_result deepCopy() {
6806       return new isTableEnabled_result(this);
6807     }
6808 
6809     @Override
6810     public void clear() {
6811       setSuccessIsSet(false);
6812       this.success = false;
6813       this.io = null;
6814     }
6815 
6816     public boolean isSuccess() {
6817       return this.success;
6818     }
6819 
6820     public isTableEnabled_result setSuccess(boolean success) {
6821       this.success = success;
6822       setSuccessIsSet(true);
6823       return this;
6824     }
6825 
6826     public void unsetSuccess() {
6827       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6828     }
6829 
6830     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6831     public boolean isSetSuccess() {
6832       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6833     }
6834 
6835     public void setSuccessIsSet(boolean value) {
6836       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6837     }
6838 
6839     public IOError getIo() {
6840       return this.io;
6841     }
6842 
6843     public isTableEnabled_result setIo(IOError io) {
6844       this.io = io;
6845       return this;
6846     }
6847 
6848     public void unsetIo() {
6849       this.io = null;
6850     }
6851 
6852     /** Returns true if field io is set (has been assigned a value) and false otherwise */
6853     public boolean isSetIo() {
6854       return this.io != null;
6855     }
6856 
6857     public void setIoIsSet(boolean value) {
6858       if (!value) {
6859         this.io = null;
6860       }
6861     }
6862 
6863     public void setFieldValue(_Fields field, Object value) {
6864       switch (field) {
6865       case SUCCESS:
6866         if (value == null) {
6867           unsetSuccess();
6868         } else {
6869           setSuccess((Boolean)value);
6870         }
6871         break;
6872 
6873       case IO:
6874         if (value == null) {
6875           unsetIo();
6876         } else {
6877           setIo((IOError)value);
6878         }
6879         break;
6880 
6881       }
6882     }
6883 
6884     public Object getFieldValue(_Fields field) {
6885       switch (field) {
6886       case SUCCESS:
6887         return Boolean.valueOf(isSuccess());
6888 
6889       case IO:
6890         return getIo();
6891 
6892       }
6893       throw new IllegalStateException();
6894     }
6895 
6896     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6897     public boolean isSet(_Fields field) {
6898       if (field == null) {
6899         throw new IllegalArgumentException();
6900       }
6901 
6902       switch (field) {
6903       case SUCCESS:
6904         return isSetSuccess();
6905       case IO:
6906         return isSetIo();
6907       }
6908       throw new IllegalStateException();
6909     }
6910 
6911     @Override
6912     public boolean equals(Object that) {
6913       if (that == null)
6914         return false;
6915       if (that instanceof isTableEnabled_result)
6916         return this.equals((isTableEnabled_result)that);
6917       return false;
6918     }
6919 
6920     public boolean equals(isTableEnabled_result that) {
6921       if (that == null)
6922         return false;
6923 
6924       boolean this_present_success = true;
6925       boolean that_present_success = true;
6926       if (this_present_success || that_present_success) {
6927         if (!(this_present_success && that_present_success))
6928           return false;
6929         if (this.success != that.success)
6930           return false;
6931       }
6932 
6933       boolean this_present_io = true && this.isSetIo();
6934       boolean that_present_io = true && that.isSetIo();
6935       if (this_present_io || that_present_io) {
6936         if (!(this_present_io && that_present_io))
6937           return false;
6938         if (!this.io.equals(that.io))
6939           return false;
6940       }
6941 
6942       return true;
6943     }
6944 
6945     @Override
6946     public int hashCode() {
6947       HashCodeBuilder builder = new HashCodeBuilder();
6948 
6949       boolean present_success = true;
6950       builder.append(present_success);
6951       if (present_success)
6952         builder.append(success);
6953 
6954       boolean present_io = true && (isSetIo());
6955       builder.append(present_io);
6956       if (present_io)
6957         builder.append(io);
6958 
6959       return builder.toHashCode();
6960     }
6961 
6962     public int compareTo(isTableEnabled_result other) {
6963       if (!getClass().equals(other.getClass())) {
6964         return getClass().getName().compareTo(other.getClass().getName());
6965       }
6966 
6967       int lastComparison = 0;
6968       isTableEnabled_result typedOther = (isTableEnabled_result)other;
6969 
6970       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6971       if (lastComparison != 0) {
6972         return lastComparison;
6973       }
6974       if (isSetSuccess()) {
6975         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6976         if (lastComparison != 0) {
6977           return lastComparison;
6978         }
6979       }
6980       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
6981       if (lastComparison != 0) {
6982         return lastComparison;
6983       }
6984       if (isSetIo()) {
6985         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
6986         if (lastComparison != 0) {
6987           return lastComparison;
6988         }
6989       }
6990       return 0;
6991     }
6992 
6993     public _Fields fieldForId(int fieldId) {
6994       return _Fields.findByThriftId(fieldId);
6995     }
6996 
6997     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6998       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6999     }
7000 
7001     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7002       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7003       }
7004 
7005     @Override
7006     public String toString() {
7007       StringBuilder sb = new StringBuilder("isTableEnabled_result(");
7008       boolean first = true;
7009 
7010       sb.append("success:");
7011       sb.append(this.success);
7012       first = false;
7013       if (!first) sb.append(", ");
7014       sb.append("io:");
7015       if (this.io == null) {
7016         sb.append("null");
7017       } else {
7018         sb.append(this.io);
7019       }
7020       first = false;
7021       sb.append(")");
7022       return sb.toString();
7023     }
7024 
7025     public void validate() throws org.apache.thrift.TException {
7026       // check for required fields
7027       // check for sub-struct validity
7028     }
7029 
7030     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7031       try {
7032         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7033       } catch (org.apache.thrift.TException te) {
7034         throw new java.io.IOException(te);
7035       }
7036     }
7037 
7038     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7039       try {
7040         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7041         __isset_bitfield = 0;
7042         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7043       } catch (org.apache.thrift.TException te) {
7044         throw new java.io.IOException(te);
7045       }
7046     }
7047 
7048     private static class isTableEnabled_resultStandardSchemeFactory implements SchemeFactory {
7049       public isTableEnabled_resultStandardScheme getScheme() {
7050         return new isTableEnabled_resultStandardScheme();
7051       }
7052     }
7053 
7054     private static class isTableEnabled_resultStandardScheme extends StandardScheme<isTableEnabled_result> {
7055 
7056       public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7057         org.apache.thrift.protocol.TField schemeField;
7058         iprot.readStructBegin();
7059         while (true)
7060         {
7061           schemeField = iprot.readFieldBegin();
7062           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7063             break;
7064           }
7065           switch (schemeField.id) {
7066             case 0: // SUCCESS
7067               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
7068                 struct.success = iprot.readBool();
7069                 struct.setSuccessIsSet(true);
7070               } else { 
7071                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7072               }
7073               break;
7074             case 1: // IO
7075               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7076                 struct.io = new IOError();
7077                 struct.io.read(iprot);
7078                 struct.setIoIsSet(true);
7079               } else { 
7080                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7081               }
7082               break;
7083             default:
7084               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7085           }
7086           iprot.readFieldEnd();
7087         }
7088         iprot.readStructEnd();
7089 
7090         // check for required fields of primitive type, which can't be checked in the validate method
7091         struct.validate();
7092       }
7093 
7094       public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7095         struct.validate();
7096 
7097         oprot.writeStructBegin(STRUCT_DESC);
7098         if (struct.isSetSuccess()) {
7099           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7100           oprot.writeBool(struct.success);
7101           oprot.writeFieldEnd();
7102         }
7103         if (struct.io != null) {
7104           oprot.writeFieldBegin(IO_FIELD_DESC);
7105           struct.io.write(oprot);
7106           oprot.writeFieldEnd();
7107         }
7108         oprot.writeFieldStop();
7109         oprot.writeStructEnd();
7110       }
7111 
7112     }
7113 
7114     private static class isTableEnabled_resultTupleSchemeFactory implements SchemeFactory {
7115       public isTableEnabled_resultTupleScheme getScheme() {
7116         return new isTableEnabled_resultTupleScheme();
7117       }
7118     }
7119 
7120     private static class isTableEnabled_resultTupleScheme extends TupleScheme<isTableEnabled_result> {
7121 
7122       @Override
7123       public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7124         TTupleProtocol oprot = (TTupleProtocol) prot;
7125         BitSet optionals = new BitSet();
7126         if (struct.isSetSuccess()) {
7127           optionals.set(0);
7128         }
7129         if (struct.isSetIo()) {
7130           optionals.set(1);
7131         }
7132         oprot.writeBitSet(optionals, 2);
7133         if (struct.isSetSuccess()) {
7134           oprot.writeBool(struct.success);
7135         }
7136         if (struct.isSetIo()) {
7137           struct.io.write(oprot);
7138         }
7139       }
7140 
7141       @Override
7142       public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7143         TTupleProtocol iprot = (TTupleProtocol) prot;
7144         BitSet incoming = iprot.readBitSet(2);
7145         if (incoming.get(0)) {
7146           struct.success = iprot.readBool();
7147           struct.setSuccessIsSet(true);
7148         }
7149         if (incoming.get(1)) {
7150           struct.io = new IOError();
7151           struct.io.read(iprot);
7152           struct.setIoIsSet(true);
7153         }
7154       }
7155     }
7156 
7157   }
7158 
7159   public static class compact_args implements org.apache.thrift.TBase<compact_args, compact_args._Fields>, java.io.Serializable, Cloneable   {
7160     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args");
7161 
7162     private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1);
7163 
7164     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7165     static {
7166       schemes.put(StandardScheme.class, new compact_argsStandardSchemeFactory());
7167       schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory());
7168     }
7169 
7170     public ByteBuffer tableNameOrRegionName; // required
7171 
7172     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7173     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7174       TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName");
7175 
7176       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7177 
7178       static {
7179         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7180           byName.put(field.getFieldName(), field);
7181         }
7182       }
7183 
7184       /**
7185        * Find the _Fields constant that matches fieldId, or null if its not found.
7186        */
7187       public static _Fields findByThriftId(int fieldId) {
7188         switch(fieldId) {
7189           case 1: // TABLE_NAME_OR_REGION_NAME
7190             return TABLE_NAME_OR_REGION_NAME;
7191           default:
7192             return null;
7193         }
7194       }
7195 
7196       /**
7197        * Find the _Fields constant that matches fieldId, throwing an exception
7198        * if it is not found.
7199        */
7200       public static _Fields findByThriftIdOrThrow(int fieldId) {
7201         _Fields fields = findByThriftId(fieldId);
7202         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7203         return fields;
7204       }
7205 
7206       /**
7207        * Find the _Fields constant that matches name, or null if its not found.
7208        */
7209       public static _Fields findByName(String name) {
7210         return byName.get(name);
7211       }
7212 
7213       private final short _thriftId;
7214       private final String _fieldName;
7215 
7216       _Fields(short thriftId, String fieldName) {
7217         _thriftId = thriftId;
7218         _fieldName = fieldName;
7219       }
7220 
7221       public short getThriftFieldId() {
7222         return _thriftId;
7223       }
7224 
7225       public String getFieldName() {
7226         return _fieldName;
7227       }
7228     }
7229 
7230     // isset id assignments
7231     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7232     static {
7233       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7234       tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7235           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Bytes")));
7236       metaDataMap = Collections.unmodifiableMap(tmpMap);
7237       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap);
7238     }
7239 
7240     public compact_args() {
7241     }
7242 
7243     public compact_args(
7244       ByteBuffer tableNameOrRegionName)
7245     {
7246       this();
7247       this.tableNameOrRegionName = tableNameOrRegionName;
7248     }
7249 
7250     /**
7251      * Performs a deep copy on <i>other</i>.
7252      */
7253     public compact_args(compact_args other) {
7254       if (other.isSetTableNameOrRegionName()) {
7255         this.tableNameOrRegionName = other.tableNameOrRegionName;
7256       }
7257     }
7258 
7259     public compact_args deepCopy() {
7260       return new compact_args(this);
7261     }
7262 
7263     @Override
7264     public void clear() {
7265       this.tableNameOrRegionName = null;
7266     }
7267 
7268     public byte[] getTableNameOrRegionName() {
7269       setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName));
7270       return tableNameOrRegionName == null ? null : tableNameOrRegionName.array();
7271     }
7272 
7273     public ByteBuffer bufferForTableNameOrRegionName() {
7274       return tableNameOrRegionName;
7275     }
7276 
7277     public compact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) {
7278       setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName));
7279       return this;
7280     }
7281 
7282     public compact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) {
7283       this.tableNameOrRegionName = tableNameOrRegionName;
7284       return this;
7285     }
7286 
7287     public void unsetTableNameOrRegionName() {
7288       this.tableNameOrRegionName = null;
7289     }
7290 
7291     /** Returns true if field tableNameOrRegionName is set (has been assigned a value) and false otherwise */
7292     public boolean isSetTableNameOrRegionName() {
7293       return this.tableNameOrRegionName != null;
7294     }
7295 
7296     public void setTableNameOrRegionNameIsSet(boolean value) {
7297       if (!value) {
7298         this.tableNameOrRegionName = null;
7299       }
7300     }
7301 
7302     public void setFieldValue(_Fields field, Object value) {
7303       switch (field) {
7304       case TABLE_NAME_OR_REGION_NAME:
7305         if (value == null) {
7306           unsetTableNameOrRegionName();
7307         } else {
7308           setTableNameOrRegionName((ByteBuffer)value);
7309         }
7310         break;
7311 
7312       }
7313     }
7314 
7315     public Object getFieldValue(_Fields field) {
7316       switch (field) {
7317       case TABLE_NAME_OR_REGION_NAME:
7318         return getTableNameOrRegionName();
7319 
7320       }
7321       throw new IllegalStateException();
7322     }
7323 
7324     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7325     public boolean isSet(_Fields field) {
7326       if (field == null) {
7327         throw new IllegalArgumentException();
7328       }
7329 
7330       switch (field) {
7331       case TABLE_NAME_OR_REGION_NAME:
7332         return isSetTableNameOrRegionName();
7333       }
7334       throw new IllegalStateException();
7335     }
7336 
7337     @Override
7338     public boolean equals(Object that) {
7339       if (that == null)
7340         return false;
7341       if (that instanceof compact_args)
7342         return this.equals((compact_args)that);
7343       return false;
7344     }
7345 
7346     public boolean equals(compact_args that) {
7347       if (that == null)
7348         return false;
7349 
7350       boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName();
7351       boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName();
7352       if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) {
7353         if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName))
7354           return false;
7355         if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName))
7356           return false;
7357       }
7358 
7359       return true;
7360     }
7361 
7362     @Override
7363     public int hashCode() {
7364       HashCodeBuilder builder = new HashCodeBuilder();
7365 
7366       boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName());
7367       builder.append(present_tableNameOrRegionName);
7368       if (present_tableNameOrRegionName)
7369         builder.append(tableNameOrRegionName);
7370 
7371       return builder.toHashCode();
7372     }
7373 
7374     public int compareTo(compact_args other) {
7375       if (!getClass().equals(other.getClass())) {
7376         return getClass().getName().compareTo(other.getClass().getName());
7377       }
7378 
7379       int lastComparison = 0;
7380       compact_args typedOther = (compact_args)other;
7381 
7382       lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName());
7383       if (lastComparison != 0) {
7384         return lastComparison;
7385       }
7386       if (isSetTableNameOrRegionName()) {
7387         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName);
7388         if (lastComparison != 0) {
7389           return lastComparison;
7390         }
7391       }
7392       return 0;
7393     }
7394 
7395     public _Fields fieldForId(int fieldId) {
7396       return _Fields.findByThriftId(fieldId);
7397     }
7398 
7399     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7400       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7401     }
7402 
7403     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7404       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7405     }
7406 
7407     @Override
7408     public String toString() {
7409       StringBuilder sb = new StringBuilder("compact_args(");
7410       boolean first = true;
7411 
7412       sb.append("tableNameOrRegionName:");
7413       if (this.tableNameOrRegionName == null) {
7414         sb.append("null");
7415       } else {
7416         sb.append(this.tableNameOrRegionName);
7417       }
7418       first = false;
7419       sb.append(")");
7420       return sb.toString();
7421     }
7422 
7423     public void validate() throws org.apache.thrift.TException {
7424       // check for required fields
7425       // check for sub-struct validity
7426     }
7427 
7428     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7429       try {
7430         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7431       } catch (org.apache.thrift.TException te) {
7432         throw new java.io.IOException(te);
7433       }
7434     }
7435 
7436     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7437       try {
7438         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7439       } catch (org.apache.thrift.TException te) {
7440         throw new java.io.IOException(te);
7441       }
7442     }
7443 
7444     private static class compact_argsStandardSchemeFactory implements SchemeFactory {
7445       public compact_argsStandardScheme getScheme() {
7446         return new compact_argsStandardScheme();
7447       }
7448     }
7449 
7450     private static class compact_argsStandardScheme extends StandardScheme<compact_args> {
7451 
7452       public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct) throws org.apache.thrift.TException {
7453         org.apache.thrift.protocol.TField schemeField;
7454         iprot.readStructBegin();
7455         while (true)
7456         {
7457           schemeField = iprot.readFieldBegin();
7458           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7459             break;
7460           }
7461           switch (schemeField.id) {
7462             case 1: // TABLE_NAME_OR_REGION_NAME
7463               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7464                 struct.tableNameOrRegionName = iprot.readBinary();
7465                 struct.setTableNameOrRegionNameIsSet(true);
7466               } else { 
7467                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7468               }
7469               break;
7470             default:
7471               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7472           }
7473           iprot.readFieldEnd();
7474         }
7475         iprot.readStructEnd();
7476 
7477         // check for required fields of primitive type, which can't be checked in the validate method
7478         struct.validate();
7479       }
7480 
7481       public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struct) throws org.apache.thrift.TException {
7482         struct.validate();
7483 
7484         oprot.writeStructBegin(STRUCT_DESC);
7485         if (struct.tableNameOrRegionName != null) {
7486           oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC);
7487           oprot.writeBinary(struct.tableNameOrRegionName);
7488           oprot.writeFieldEnd();
7489         }
7490         oprot.writeFieldStop();
7491         oprot.writeStructEnd();
7492       }
7493 
7494     }
7495 
7496     private static class compact_argsTupleSchemeFactory implements SchemeFactory {
7497       public compact_argsTupleScheme getScheme() {
7498         return new compact_argsTupleScheme();
7499       }
7500     }
7501 
7502     private static class compact_argsTupleScheme extends TupleScheme<compact_args> {
7503 
7504       @Override
7505       public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException {
7506         TTupleProtocol oprot = (TTupleProtocol) prot;
7507         BitSet optionals = new BitSet();
7508         if (struct.isSetTableNameOrRegionName()) {
7509           optionals.set(0);
7510         }
7511         oprot.writeBitSet(optionals, 1);
7512         if (struct.isSetTableNameOrRegionName()) {
7513           oprot.writeBinary(struct.tableNameOrRegionName);
7514         }
7515       }
7516 
7517       @Override
7518       public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException {
7519         TTupleProtocol iprot = (TTupleProtocol) prot;
7520         BitSet incoming = iprot.readBitSet(1);
7521         if (incoming.get(0)) {
7522           struct.tableNameOrRegionName = iprot.readBinary();
7523           struct.setTableNameOrRegionNameIsSet(true);
7524         }
7525       }
7526     }
7527 
7528   }
7529 
7530   public static class compact_result implements org.apache.thrift.TBase<compact_result, compact_result._Fields>, java.io.Serializable, Cloneable   {
7531     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result");
7532 
7533     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7534 
7535     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7536     static {
7537       schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory());
7538       schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory());
7539     }
7540 
7541     public IOError io; // required
7542 
7543     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7544     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7545       IO((short)1, "io");
7546 
7547       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7548 
7549       static {
7550         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7551           byName.put(field.getFieldName(), field);
7552         }
7553       }
7554 
7555       /**
7556        * Find the _Fields constant that matches fieldId, or null if its not found.
7557        */
7558       public static _Fields findByThriftId(int fieldId) {
7559         switch(fieldId) {
7560           case 1: // IO
7561             return IO;
7562           default:
7563             return null;
7564         }
7565       }
7566 
7567       /**
7568        * Find the _Fields constant that matches fieldId, throwing an exception
7569        * if it is not found.
7570        */
7571       public static _Fields findByThriftIdOrThrow(int fieldId) {
7572         _Fields fields = findByThriftId(fieldId);
7573         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7574         return fields;
7575       }
7576 
7577       /**
7578        * Find the _Fields constant that matches name, or null if its not found.
7579        */
7580       public static _Fields findByName(String name) {
7581         return byName.get(name);
7582       }
7583 
7584       private final short _thriftId;
7585       private final String _fieldName;
7586 
7587       _Fields(short thriftId, String fieldName) {
7588         _thriftId = thriftId;
7589         _fieldName = fieldName;
7590       }
7591 
7592       public short getThriftFieldId() {
7593         return _thriftId;
7594       }
7595 
7596       public String getFieldName() {
7597         return _fieldName;
7598       }
7599     }
7600 
7601     // isset id assignments
7602     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7603     static {
7604       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7605       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7606           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7607       metaDataMap = Collections.unmodifiableMap(tmpMap);
7608       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap);
7609     }
7610 
7611     public compact_result() {
7612     }
7613 
7614     public compact_result(
7615       IOError io)
7616     {
7617       this();
7618       this.io = io;
7619     }
7620 
7621     /**
7622      * Performs a deep copy on <i>other</i>.
7623      */
7624     public compact_result(compact_result other) {
7625       if (other.isSetIo()) {
7626         this.io = new IOError(other.io);
7627       }
7628     }
7629 
7630     public compact_result deepCopy() {
7631       return new compact_result(this);
7632     }
7633 
7634     @Override
7635     public void clear() {
7636       this.io = null;
7637     }
7638 
7639     public IOError getIo() {
7640       return this.io;
7641     }
7642 
7643     public compact_result setIo(IOError io) {
7644       this.io = io;
7645       return this;
7646     }
7647 
7648     public void unsetIo() {
7649       this.io = null;
7650     }
7651 
7652     /** Returns true if field io is set (has been assigned a value) and false otherwise */
7653     public boolean isSetIo() {
7654       return this.io != null;
7655     }
7656 
7657     public void setIoIsSet(boolean value) {
7658       if (!value) {
7659         this.io = null;
7660       }
7661     }
7662 
7663     public void setFieldValue(_Fields field, Object value) {
7664       switch (field) {
7665       case IO:
7666         if (value == null) {
7667           unsetIo();
7668         } else {
7669           setIo((IOError)value);
7670         }
7671         break;
7672 
7673       }
7674     }
7675 
7676     public Object getFieldValue(_Fields field) {
7677       switch (field) {
7678       case IO:
7679         return getIo();
7680 
7681       }
7682       throw new IllegalStateException();
7683     }
7684 
7685     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7686     public boolean isSet(_Fields field) {
7687       if (field == null) {
7688         throw new IllegalArgumentException();
7689       }
7690 
7691       switch (field) {
7692       case IO:
7693         return isSetIo();
7694       }
7695       throw new IllegalStateException();
7696     }
7697 
7698     @Override
7699     public boolean equals(Object that) {
7700       if (that == null)
7701         return false;
7702       if (that instanceof compact_result)
7703         return this.equals((compact_result)that);
7704       return false;
7705     }
7706 
7707     public boolean equals(compact_result that) {
7708       if (that == null)
7709         return false;
7710 
7711       boolean this_present_io = true && this.isSetIo();
7712       boolean that_present_io = true && that.isSetIo();
7713       if (this_present_io || that_present_io) {
7714         if (!(this_present_io && that_present_io))
7715           return false;
7716         if (!this.io.equals(that.io))
7717           return false;
7718       }
7719 
7720       return true;
7721     }
7722 
7723     @Override
7724     public int hashCode() {
7725       HashCodeBuilder builder = new HashCodeBuilder();
7726 
7727       boolean present_io = true && (isSetIo());
7728       builder.append(present_io);
7729       if (present_io)
7730         builder.append(io);
7731 
7732       return builder.toHashCode();
7733     }
7734 
7735     public int compareTo(compact_result other) {
7736       if (!getClass().equals(other.getClass())) {
7737         return getClass().getName().compareTo(other.getClass().getName());
7738       }
7739 
7740       int lastComparison = 0;
7741       compact_result typedOther = (compact_result)other;
7742 
7743       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
7744       if (lastComparison != 0) {
7745         return lastComparison;
7746       }
7747       if (isSetIo()) {
7748         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
7749         if (lastComparison != 0) {
7750           return lastComparison;
7751         }
7752       }
7753       return 0;
7754     }
7755 
7756     public _Fields fieldForId(int fieldId) {
7757       return _Fields.findByThriftId(fieldId);
7758     }
7759 
7760     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7761       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7762     }
7763 
7764     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7765       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7766       }
7767 
7768     @Override
7769     public String toString() {
7770       StringBuilder sb = new StringBuilder("compact_result(");
7771       boolean first = true;
7772 
7773       sb.append("io:");
7774       if (this.io == null) {
7775         sb.append("null");
7776       } else {
7777         sb.append(this.io);
7778       }
7779       first = false;
7780       sb.append(")");
7781       return sb.toString();
7782     }
7783 
7784     public void validate() throws org.apache.thrift.TException {
7785       // check for required fields
7786       // check for sub-struct validity
7787     }
7788 
7789     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7790       try {
7791         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7792       } catch (org.apache.thrift.TException te) {
7793         throw new java.io.IOException(te);
7794       }
7795     }
7796 
7797     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7798       try {
7799         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7800       } catch (org.apache.thrift.TException te) {
7801         throw new java.io.IOException(te);
7802       }
7803     }
7804 
7805     private static class compact_resultStandardSchemeFactory implements SchemeFactory {
7806       public compact_resultStandardScheme getScheme() {
7807         return new compact_resultStandardScheme();
7808       }
7809     }
7810 
7811     private static class compact_resultStandardScheme extends StandardScheme<compact_result> {
7812 
7813       public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException {
7814         org.apache.thrift.protocol.TField schemeField;
7815         iprot.readStructBegin();
7816         while (true)
7817         {
7818           schemeField = iprot.readFieldBegin();
7819           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7820             break;
7821           }
7822           switch (schemeField.id) {
7823             case 1: // IO
7824               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7825                 struct.io = new IOError();
7826                 struct.io.read(iprot);
7827                 struct.setIoIsSet(true);
7828               } else { 
7829                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7830               }
7831               break;
7832             default:
7833               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7834           }
7835           iprot.readFieldEnd();
7836         }
7837         iprot.readStructEnd();
7838 
7839         // check for required fields of primitive type, which can't be checked in the validate method
7840         struct.validate();
7841       }
7842 
7843       public void write(org.apache.thrift.protocol.TProtocol oprot, compact_result struct) throws org.apache.thrift.TException {
7844         struct.validate();
7845 
7846         oprot.writeStructBegin(STRUCT_DESC);
7847         if (struct.io != null) {
7848           oprot.writeFieldBegin(IO_FIELD_DESC);
7849           struct.io.write(oprot);
7850           oprot.writeFieldEnd();
7851         }
7852         oprot.writeFieldStop();
7853         oprot.writeStructEnd();
7854       }
7855 
7856     }
7857 
7858     private static class compact_resultTupleSchemeFactory implements SchemeFactory {
7859       public compact_resultTupleScheme getScheme() {
7860         return new compact_resultTupleScheme();
7861       }
7862     }
7863 
7864     private static class compact_resultTupleScheme extends TupleScheme<compact_result> {
7865 
7866       @Override
7867       public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException {
7868         TTupleProtocol oprot = (TTupleProtocol) prot;
7869         BitSet optionals = new BitSet();
7870         if (struct.isSetIo()) {
7871           optionals.set(0);
7872         }
7873         oprot.writeBitSet(optionals, 1);
7874         if (struct.isSetIo()) {
7875           struct.io.write(oprot);
7876         }
7877       }
7878 
7879       @Override
7880       public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException {
7881         TTupleProtocol iprot = (TTupleProtocol) prot;
7882         BitSet incoming = iprot.readBitSet(1);
7883         if (incoming.get(0)) {
7884           struct.io = new IOError();
7885           struct.io.read(iprot);
7886           struct.setIoIsSet(true);
7887         }
7888       }
7889     }
7890 
7891   }
7892 
7893   public static class majorCompact_args implements org.apache.thrift.TBase<majorCompact_args, majorCompact_args._Fields>, java.io.Serializable, Cloneable   {
7894     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_args");
7895 
7896     private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1);
7897 
7898     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7899     static {
7900       schemes.put(StandardScheme.class, new majorCompact_argsStandardSchemeFactory());
7901       schemes.put(TupleScheme.class, new majorCompact_argsTupleSchemeFactory());
7902     }
7903 
7904     public ByteBuffer tableNameOrRegionName; // required
7905 
7906     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7907     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7908       TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName");
7909 
7910       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7911 
7912       static {
7913         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7914           byName.put(field.getFieldName(), field);
7915         }
7916       }
7917 
7918       /**
7919        * Find the _Fields constant that matches fieldId, or null if its not found.
7920        */
7921       public static _Fields findByThriftId(int fieldId) {
7922         switch(fieldId) {
7923           case 1: // TABLE_NAME_OR_REGION_NAME
7924             return TABLE_NAME_OR_REGION_NAME;
7925           default:
7926             return null;
7927         }
7928       }
7929 
7930       /**
7931        * Find the _Fields constant that matches fieldId, throwing an exception
7932        * if it is not found.
7933        */
7934       public static _Fields findByThriftIdOrThrow(int fieldId) {
7935         _Fields fields = findByThriftId(fieldId);
7936         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7937         return fields;
7938       }
7939 
7940       /**
7941        * Find the _Fields constant that matches name, or null if its not found.
7942        */
7943       public static _Fields findByName(String name) {
7944         return byName.get(name);
7945       }
7946 
7947       private final short _thriftId;
7948       private final String _fieldName;
7949 
7950       _Fields(short thriftId, String fieldName) {
7951         _thriftId = thriftId;
7952         _fieldName = fieldName;
7953       }
7954 
7955       public short getThriftFieldId() {
7956         return _thriftId;
7957       }
7958 
7959       public String getFieldName() {
7960         return _fieldName;
7961       }
7962     }
7963 
7964     // isset id assignments
7965     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7966     static {
7967       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7968       tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7969           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Bytes")));
7970       metaDataMap = Collections.unmodifiableMap(tmpMap);
7971       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_args.class, metaDataMap);
7972     }
7973 
7974     public majorCompact_args() {
7975     }
7976 
7977     public majorCompact_args(
7978       ByteBuffer tableNameOrRegionName)
7979     {
7980       this();
7981       this.tableNameOrRegionName = tableNameOrRegionName;
7982     }
7983 
7984     /**
7985      * Performs a deep copy on <i>other</i>.
7986      */
7987     public majorCompact_args(majorCompact_args other) {
7988       if (other.isSetTableNameOrRegionName()) {
7989         this.tableNameOrRegionName = other.tableNameOrRegionName;
7990       }
7991     }
7992 
7993     public majorCompact_args deepCopy() {
7994       return new majorCompact_args(this);
7995     }
7996 
7997     @Override
7998     public void clear() {
7999       this.tableNameOrRegionName = null;
8000     }
8001 
8002     public byte[] getTableNameOrRegionName() {
8003       setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName));
8004       return tableNameOrRegionName == null ? null : tableNameOrRegionName.array();
8005     }
8006 
8007     public ByteBuffer bufferForTableNameOrRegionName() {
8008       return tableNameOrRegionName;
8009     }
8010 
8011     public majorCompact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) {
8012       setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName));
8013       return this;
8014     }
8015 
8016     public majorCompact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) {
8017       this.tableNameOrRegionName = tableNameOrRegionName;
8018       return this;
8019     }
8020 
8021     public void unsetTableNameOrRegionName() {
8022       this.tableNameOrRegionName = null;
8023     }
8024 
8025     /** Returns true if field tableNameOrRegionName is set (has been assigned a value) and false otherwise */
8026     public boolean isSetTableNameOrRegionName() {
8027       return this.tableNameOrRegionName != null;
8028     }
8029 
8030     public void setTableNameOrRegionNameIsSet(boolean value) {
8031       if (!value) {
8032         this.tableNameOrRegionName = null;
8033       }
8034     }
8035 
8036     public void setFieldValue(_Fields field, Object value) {
8037       switch (field) {
8038       case TABLE_NAME_OR_REGION_NAME:
8039         if (value == null) {
8040           unsetTableNameOrRegionName();
8041         } else {
8042           setTableNameOrRegionName((ByteBuffer)value);
8043         }
8044         break;
8045 
8046       }
8047     }
8048 
8049     public Object getFieldValue(_Fields field) {
8050       switch (field) {
8051       case TABLE_NAME_OR_REGION_NAME:
8052         return getTableNameOrRegionName();
8053 
8054       }
8055       throw new IllegalStateException();
8056     }
8057 
8058     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8059     public boolean isSet(_Fields field) {
8060       if (field == null) {
8061         throw new IllegalArgumentException();
8062       }
8063 
8064       switch (field) {
8065       case TABLE_NAME_OR_REGION_NAME:
8066         return isSetTableNameOrRegionName();
8067       }
8068       throw new IllegalStateException();
8069     }
8070 
8071     @Override
8072     public boolean equals(Object that) {
8073       if (that == null)
8074         return false;
8075       if (that instanceof majorCompact_args)
8076         return this.equals((majorCompact_args)that);
8077       return false;
8078     }
8079 
8080     public boolean equals(majorCompact_args that) {
8081       if (that == null)
8082         return false;
8083 
8084       boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName();
8085       boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName();
8086       if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) {
8087         if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName))
8088           return false;
8089         if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName))
8090           return false;
8091       }
8092 
8093       return true;
8094     }
8095 
8096     @Override
8097     public int hashCode() {
8098       HashCodeBuilder builder = new HashCodeBuilder();
8099 
8100       boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName());
8101       builder.append(present_tableNameOrRegionName);
8102       if (present_tableNameOrRegionName)
8103         builder.append(tableNameOrRegionName);
8104 
8105       return builder.toHashCode();
8106     }
8107 
8108     public int compareTo(majorCompact_args other) {
8109       if (!getClass().equals(other.getClass())) {
8110         return getClass().getName().compareTo(other.getClass().getName());
8111       }
8112 
8113       int lastComparison = 0;
8114       majorCompact_args typedOther = (majorCompact_args)other;
8115 
8116       lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName());
8117       if (lastComparison != 0) {
8118         return lastComparison;
8119       }
8120       if (isSetTableNameOrRegionName()) {
8121         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName);
8122         if (lastComparison != 0) {
8123           return lastComparison;
8124         }
8125       }
8126       return 0;
8127     }
8128 
8129     public _Fields fieldForId(int fieldId) {
8130       return _Fields.findByThriftId(fieldId);
8131     }
8132 
8133     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8134       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8135     }
8136 
8137     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8138       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8139     }
8140 
8141     @Override
8142     public String toString() {
8143       StringBuilder sb = new StringBuilder("majorCompact_args(");
8144       boolean first = true;
8145 
8146       sb.append("tableNameOrRegionName:");
8147       if (this.tableNameOrRegionName == null) {
8148         sb.append("null");
8149       } else {
8150         sb.append(this.tableNameOrRegionName);
8151       }
8152       first = false;
8153       sb.append(")");
8154       return sb.toString();
8155     }
8156 
8157     public void validate() throws org.apache.thrift.TException {
8158       // check for required fields
8159       // check for sub-struct validity
8160     }
8161 
8162     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8163       try {
8164         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8165       } catch (org.apache.thrift.TException te) {
8166         throw new java.io.IOException(te);
8167       }
8168     }
8169 
8170     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8171       try {
8172         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8173       } catch (org.apache.thrift.TException te) {
8174         throw new java.io.IOException(te);
8175       }
8176     }
8177 
8178     private static class majorCompact_argsStandardSchemeFactory implements SchemeFactory {
8179       public majorCompact_argsStandardScheme getScheme() {
8180         return new majorCompact_argsStandardScheme();
8181       }
8182     }
8183 
8184     private static class majorCompact_argsStandardScheme extends StandardScheme<majorCompact_args> {
8185 
8186       public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_args struct) throws org.apache.thrift.TException {
8187         org.apache.thrift.protocol.TField schemeField;
8188         iprot.readStructBegin();
8189         while (true)
8190         {
8191           schemeField = iprot.readFieldBegin();
8192           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8193             break;
8194           }
8195           switch (schemeField.id) {
8196             case 1: // TABLE_NAME_OR_REGION_NAME
8197               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8198                 struct.tableNameOrRegionName = iprot.readBinary();
8199                 struct.setTableNameOrRegionNameIsSet(true);
8200               } else { 
8201                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8202               }
8203               break;
8204             default:
8205               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8206           }
8207           iprot.readFieldEnd();
8208         }
8209         iprot.readStructEnd();
8210 
8211         // check for required fields of primitive type, which can't be checked in the validate method
8212         struct.validate();
8213       }
8214 
8215       public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_args struct) throws org.apache.thrift.TException {
8216         struct.validate();
8217 
8218         oprot.writeStructBegin(STRUCT_DESC);
8219         if (struct.tableNameOrRegionName != null) {
8220           oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC);
8221           oprot.writeBinary(struct.tableNameOrRegionName);
8222           oprot.writeFieldEnd();
8223         }
8224         oprot.writeFieldStop();
8225         oprot.writeStructEnd();
8226       }
8227 
8228     }
8229 
8230     private static class majorCompact_argsTupleSchemeFactory implements SchemeFactory {
8231       public majorCompact_argsTupleScheme getScheme() {
8232         return new majorCompact_argsTupleScheme();
8233       }
8234     }
8235 
8236     private static class majorCompact_argsTupleScheme extends TupleScheme<majorCompact_args> {
8237 
8238       @Override
8239       public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException {
8240         TTupleProtocol oprot = (TTupleProtocol) prot;
8241         BitSet optionals = new BitSet();
8242         if (struct.isSetTableNameOrRegionName()) {
8243           optionals.set(0);
8244         }
8245         oprot.writeBitSet(optionals, 1);
8246         if (struct.isSetTableNameOrRegionName()) {
8247           oprot.writeBinary(struct.tableNameOrRegionName);
8248         }
8249       }
8250 
8251       @Override
8252       public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException {
8253         TTupleProtocol iprot = (TTupleProtocol) prot;
8254         BitSet incoming = iprot.readBitSet(1);
8255         if (incoming.get(0)) {
8256           struct.tableNameOrRegionName = iprot.readBinary();
8257           struct.setTableNameOrRegionNameIsSet(true);
8258         }
8259       }
8260     }
8261 
8262   }
8263 
8264   public static class majorCompact_result implements org.apache.thrift.TBase<majorCompact_result, majorCompact_result._Fields>, java.io.Serializable, Cloneable   {
8265     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_result");
8266 
8267     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8268 
8269     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8270     static {
8271       schemes.put(StandardScheme.class, new majorCompact_resultStandardSchemeFactory());
8272       schemes.put(TupleScheme.class, new majorCompact_resultTupleSchemeFactory());
8273     }
8274 
8275     public IOError io; // required
8276 
8277     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8278     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8279       IO((short)1, "io");
8280 
8281       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8282 
8283       static {
8284         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8285           byName.put(field.getFieldName(), field);
8286         }
8287       }
8288 
8289       /**
8290        * Find the _Fields constant that matches fieldId, or null if its not found.
8291        */
8292       public static _Fields findByThriftId(int fieldId) {
8293         switch(fieldId) {
8294           case 1: // IO
8295             return IO;
8296           default:
8297             return null;
8298         }
8299       }
8300 
8301       /**
8302        * Find the _Fields constant that matches fieldId, throwing an exception
8303        * if it is not found.
8304        */
8305       public static _Fields findByThriftIdOrThrow(int fieldId) {
8306         _Fields fields = findByThriftId(fieldId);
8307         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8308         return fields;
8309       }
8310 
8311       /**
8312        * Find the _Fields constant that matches name, or null if its not found.
8313        */
8314       public static _Fields findByName(String name) {
8315         return byName.get(name);
8316       }
8317 
8318       private final short _thriftId;
8319       private final String _fieldName;
8320 
8321       _Fields(short thriftId, String fieldName) {
8322         _thriftId = thriftId;
8323         _fieldName = fieldName;
8324       }
8325 
8326       public short getThriftFieldId() {
8327         return _thriftId;
8328       }
8329 
8330       public String getFieldName() {
8331         return _fieldName;
8332       }
8333     }
8334 
8335     // isset id assignments
8336     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8337     static {
8338       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8339       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8340           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8341       metaDataMap = Collections.unmodifiableMap(tmpMap);
8342       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_result.class, metaDataMap);
8343     }
8344 
8345     public majorCompact_result() {
8346     }
8347 
8348     public majorCompact_result(
8349       IOError io)
8350     {
8351       this();
8352       this.io = io;
8353     }
8354 
8355     /**
8356      * Performs a deep copy on <i>other</i>.
8357      */
8358     public majorCompact_result(majorCompact_result other) {
8359       if (other.isSetIo()) {
8360         this.io = new IOError(other.io);
8361       }
8362     }
8363 
8364     public majorCompact_result deepCopy() {
8365       return new majorCompact_result(this);
8366     }
8367 
8368     @Override
8369     public void clear() {
8370       this.io = null;
8371     }
8372 
8373     public IOError getIo() {
8374       return this.io;
8375     }
8376 
8377     public majorCompact_result setIo(IOError io) {
8378       this.io = io;
8379       return this;
8380     }
8381 
8382     public void unsetIo() {
8383       this.io = null;
8384     }
8385 
8386     /** Returns true if field io is set (has been assigned a value) and false otherwise */
8387     public boolean isSetIo() {
8388       return this.io != null;
8389     }
8390 
8391     public void setIoIsSet(boolean value) {
8392       if (!value) {
8393         this.io = null;
8394       }
8395     }
8396 
8397     public void setFieldValue(_Fields field, Object value) {
8398       switch (field) {
8399       case IO:
8400         if (value == null) {
8401           unsetIo();
8402         } else {
8403           setIo((IOError)value);
8404         }
8405         break;
8406 
8407       }
8408     }
8409 
8410     public Object getFieldValue(_Fields field) {
8411       switch (field) {
8412       case IO:
8413         return getIo();
8414 
8415       }
8416       throw new IllegalStateException();
8417     }
8418 
8419     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8420     public boolean isSet(_Fields field) {
8421       if (field == null) {
8422         throw new IllegalArgumentException();
8423       }
8424 
8425       switch (field) {
8426       case IO:
8427         return isSetIo();
8428       }
8429       throw new IllegalStateException();
8430     }
8431 
8432     @Override
8433     public boolean equals(Object that) {
8434       if (that == null)
8435         return false;
8436       if (that instanceof majorCompact_result)
8437         return this.equals((majorCompact_result)that);
8438       return false;
8439     }
8440 
8441     public boolean equals(majorCompact_result that) {
8442       if (that == null)
8443         return false;
8444 
8445       boolean this_present_io = true && this.isSetIo();
8446       boolean that_present_io = true && that.isSetIo();
8447       if (this_present_io || that_present_io) {
8448         if (!(this_present_io && that_present_io))
8449           return false;
8450         if (!this.io.equals(that.io))
8451           return false;
8452       }
8453 
8454       return true;
8455     }
8456 
8457     @Override
8458     public int hashCode() {
8459       HashCodeBuilder builder = new HashCodeBuilder();
8460 
8461       boolean present_io = true && (isSetIo());
8462       builder.append(present_io);
8463       if (present_io)
8464         builder.append(io);
8465 
8466       return builder.toHashCode();
8467     }
8468 
8469     public int compareTo(majorCompact_result other) {
8470       if (!getClass().equals(other.getClass())) {
8471         return getClass().getName().compareTo(other.getClass().getName());
8472       }
8473 
8474       int lastComparison = 0;
8475       majorCompact_result typedOther = (majorCompact_result)other;
8476 
8477       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
8478       if (lastComparison != 0) {
8479         return lastComparison;
8480       }
8481       if (isSetIo()) {
8482         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
8483         if (lastComparison != 0) {
8484           return lastComparison;
8485         }
8486       }
8487       return 0;
8488     }
8489 
8490     public _Fields fieldForId(int fieldId) {
8491       return _Fields.findByThriftId(fieldId);
8492     }
8493 
8494     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8495       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8496     }
8497 
8498     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8499       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8500       }
8501 
8502     @Override
8503     public String toString() {
8504       StringBuilder sb = new StringBuilder("majorCompact_result(");
8505       boolean first = true;
8506 
8507       sb.append("io:");
8508       if (this.io == null) {
8509         sb.append("null");
8510       } else {
8511         sb.append(this.io);
8512       }
8513       first = false;
8514       sb.append(")");
8515       return sb.toString();
8516     }
8517 
8518     public void validate() throws org.apache.thrift.TException {
8519       // check for required fields
8520       // check for sub-struct validity
8521     }
8522 
8523     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8524       try {
8525         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8526       } catch (org.apache.thrift.TException te) {
8527         throw new java.io.IOException(te);
8528       }
8529     }
8530 
8531     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8532       try {
8533         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8534       } catch (org.apache.thrift.TException te) {
8535         throw new java.io.IOException(te);
8536       }
8537     }
8538 
8539     private static class majorCompact_resultStandardSchemeFactory implements SchemeFactory {
8540       public majorCompact_resultStandardScheme getScheme() {
8541         return new majorCompact_resultStandardScheme();
8542       }
8543     }
8544 
8545     private static class majorCompact_resultStandardScheme extends StandardScheme<majorCompact_result> {
8546 
8547       public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_result struct) throws org.apache.thrift.TException {
8548         org.apache.thrift.protocol.TField schemeField;
8549         iprot.readStructBegin();
8550         while (true)
8551         {
8552           schemeField = iprot.readFieldBegin();
8553           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8554             break;
8555           }
8556           switch (schemeField.id) {
8557             case 1: // IO
8558               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8559                 struct.io = new IOError();
8560                 struct.io.read(iprot);
8561                 struct.setIoIsSet(true);
8562               } else { 
8563                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8564               }
8565               break;
8566             default:
8567               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8568           }
8569           iprot.readFieldEnd();
8570         }
8571         iprot.readStructEnd();
8572 
8573         // check for required fields of primitive type, which can't be checked in the validate method
8574         struct.validate();
8575       }
8576 
8577       public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_result struct) throws org.apache.thrift.TException {
8578         struct.validate();
8579 
8580         oprot.writeStructBegin(STRUCT_DESC);
8581         if (struct.io != null) {
8582           oprot.writeFieldBegin(IO_FIELD_DESC);
8583           struct.io.write(oprot);
8584           oprot.writeFieldEnd();
8585         }
8586         oprot.writeFieldStop();
8587         oprot.writeStructEnd();
8588       }
8589 
8590     }
8591 
8592     private static class majorCompact_resultTupleSchemeFactory implements SchemeFactory {
8593       public majorCompact_resultTupleScheme getScheme() {
8594         return new majorCompact_resultTupleScheme();
8595       }
8596     }
8597 
8598     private static class majorCompact_resultTupleScheme extends TupleScheme<majorCompact_result> {
8599 
8600       @Override
8601       public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException {
8602         TTupleProtocol oprot = (TTupleProtocol) prot;
8603         BitSet optionals = new BitSet();
8604         if (struct.isSetIo()) {
8605           optionals.set(0);
8606         }
8607         oprot.writeBitSet(optionals, 1);
8608         if (struct.isSetIo()) {
8609           struct.io.write(oprot);
8610         }
8611       }
8612 
8613       @Override
8614       public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException {
8615         TTupleProtocol iprot = (TTupleProtocol) prot;
8616         BitSet incoming = iprot.readBitSet(1);
8617         if (incoming.get(0)) {
8618           struct.io = new IOError();
8619           struct.io.read(iprot);
8620           struct.setIoIsSet(true);
8621         }
8622       }
8623     }
8624 
8625   }
8626 
8627   public static class getTableNames_args implements org.apache.thrift.TBase<getTableNames_args, getTableNames_args._Fields>, java.io.Serializable, Cloneable   {
8628     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_args");
8629 
8630 
8631     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8632     static {
8633       schemes.put(StandardScheme.class, new getTableNames_argsStandardSchemeFactory());
8634       schemes.put(TupleScheme.class, new getTableNames_argsTupleSchemeFactory());
8635     }
8636 
8637 
8638     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8639     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8640 ;
8641 
8642       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8643 
8644       static {
8645         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8646           byName.put(field.getFieldName(), field);
8647         }
8648       }
8649 
8650       /**
8651        * Find the _Fields constant that matches fieldId, or null if its not found.
8652        */
8653       public static _Fields findByThriftId(int fieldId) {
8654         switch(fieldId) {
8655           default:
8656             return null;
8657         }
8658       }
8659 
8660       /**
8661        * Find the _Fields constant that matches fieldId, throwing an exception
8662        * if it is not found.
8663        */
8664       public static _Fields findByThriftIdOrThrow(int fieldId) {
8665         _Fields fields = findByThriftId(fieldId);
8666         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8667         return fields;
8668       }
8669 
8670       /**
8671        * Find the _Fields constant that matches name, or null if its not found.
8672        */
8673       public static _Fields findByName(String name) {
8674         return byName.get(name);
8675       }
8676 
8677       private final short _thriftId;
8678       private final String _fieldName;
8679 
8680       _Fields(short thriftId, String fieldName) {
8681         _thriftId = thriftId;
8682         _fieldName = fieldName;
8683       }
8684 
8685       public short getThriftFieldId() {
8686         return _thriftId;
8687       }
8688 
8689       public String getFieldName() {
8690         return _fieldName;
8691       }
8692     }
8693     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8694     static {
8695       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8696       metaDataMap = Collections.unmodifiableMap(tmpMap);
8697       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_args.class, metaDataMap);
8698     }
8699 
8700     public getTableNames_args() {
8701     }
8702 
8703     /**
8704      * Performs a deep copy on <i>other</i>.
8705      */
8706     public getTableNames_args(getTableNames_args other) {
8707     }
8708 
8709     public getTableNames_args deepCopy() {
8710       return new getTableNames_args(this);
8711     }
8712 
8713     @Override
8714     public void clear() {
8715     }
8716 
8717     public void setFieldValue(_Fields field, Object value) {
8718       switch (field) {
8719       }
8720     }
8721 
8722     public Object getFieldValue(_Fields field) {
8723       switch (field) {
8724       }
8725       throw new IllegalStateException();
8726     }
8727 
8728     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8729     public boolean isSet(_Fields field) {
8730       if (field == null) {
8731         throw new IllegalArgumentException();
8732       }
8733 
8734       switch (field) {
8735       }
8736       throw new IllegalStateException();
8737     }
8738 
8739     @Override
8740     public boolean equals(Object that) {
8741       if (that == null)
8742         return false;
8743       if (that instanceof getTableNames_args)
8744         return this.equals((getTableNames_args)that);
8745       return false;
8746     }
8747 
8748     public boolean equals(getTableNames_args that) {
8749       if (that == null)
8750         return false;
8751 
8752       return true;
8753     }
8754 
8755     @Override
8756     public int hashCode() {
8757       HashCodeBuilder builder = new HashCodeBuilder();
8758 
8759       return builder.toHashCode();
8760     }
8761 
8762     public int compareTo(getTableNames_args other) {
8763       if (!getClass().equals(other.getClass())) {
8764         return getClass().getName().compareTo(other.getClass().getName());
8765       }
8766 
8767       int lastComparison = 0;
8768       getTableNames_args typedOther = (getTableNames_args)other;
8769 
8770       return 0;
8771     }
8772 
8773     public _Fields fieldForId(int fieldId) {
8774       return _Fields.findByThriftId(fieldId);
8775     }
8776 
8777     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8778       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8779     }
8780 
8781     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8782       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8783     }
8784 
8785     @Override
8786     public String toString() {
8787       StringBuilder sb = new StringBuilder("getTableNames_args(");
8788       boolean first = true;
8789 
8790       sb.append(")");
8791       return sb.toString();
8792     }
8793 
8794     public void validate() throws org.apache.thrift.TException {
8795       // check for required fields
8796       // check for sub-struct validity
8797     }
8798 
8799     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8800       try {
8801         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8802       } catch (org.apache.thrift.TException te) {
8803         throw new java.io.IOException(te);
8804       }
8805     }
8806 
8807     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8808       try {
8809         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8810       } catch (org.apache.thrift.TException te) {
8811         throw new java.io.IOException(te);
8812       }
8813     }
8814 
8815     private static class getTableNames_argsStandardSchemeFactory implements SchemeFactory {
8816       public getTableNames_argsStandardScheme getScheme() {
8817         return new getTableNames_argsStandardScheme();
8818       }
8819     }
8820 
8821     private static class getTableNames_argsStandardScheme extends StandardScheme<getTableNames_args> {
8822 
8823       public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_args struct) throws org.apache.thrift.TException {
8824         org.apache.thrift.protocol.TField schemeField;
8825         iprot.readStructBegin();
8826         while (true)
8827         {
8828           schemeField = iprot.readFieldBegin();
8829           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8830             break;
8831           }
8832           switch (schemeField.id) {
8833             default:
8834               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8835           }
8836           iprot.readFieldEnd();
8837         }
8838         iprot.readStructEnd();
8839 
8840         // check for required fields of primitive type, which can't be checked in the validate method
8841         struct.validate();
8842       }
8843 
8844       public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_args struct) throws org.apache.thrift.TException {
8845         struct.validate();
8846 
8847         oprot.writeStructBegin(STRUCT_DESC);
8848         oprot.writeFieldStop();
8849         oprot.writeStructEnd();
8850       }
8851 
8852     }
8853 
8854     private static class getTableNames_argsTupleSchemeFactory implements SchemeFactory {
8855       public getTableNames_argsTupleScheme getScheme() {
8856         return new getTableNames_argsTupleScheme();
8857       }
8858     }
8859 
8860     private static class getTableNames_argsTupleScheme extends TupleScheme<getTableNames_args> {
8861 
8862       @Override
8863       public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException {
8864         TTupleProtocol oprot = (TTupleProtocol) prot;
8865       }
8866 
8867       @Override
8868       public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException {
8869         TTupleProtocol iprot = (TTupleProtocol) prot;
8870       }
8871     }
8872 
8873   }
8874 
8875   public static class getTableNames_result implements org.apache.thrift.TBase<getTableNames_result, getTableNames_result._Fields>, java.io.Serializable, Cloneable   {
8876     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_result");
8877 
8878     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
8879     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8880 
8881     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8882     static {
8883       schemes.put(StandardScheme.class, new getTableNames_resultStandardSchemeFactory());
8884       schemes.put(TupleScheme.class, new getTableNames_resultTupleSchemeFactory());
8885     }
8886 
8887     public List<ByteBuffer> success; // required
8888     public IOError io; // required
8889 
8890     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8891     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8892       SUCCESS((short)0, "success"),
8893       IO((short)1, "io");
8894 
8895       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8896 
8897       static {
8898         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8899           byName.put(field.getFieldName(), field);
8900         }
8901       }
8902 
8903       /**
8904        * Find the _Fields constant that matches fieldId, or null if its not found.
8905        */
8906       public static _Fields findByThriftId(int fieldId) {
8907         switch(fieldId) {
8908           case 0: // SUCCESS
8909             return SUCCESS;
8910           case 1: // IO
8911             return IO;
8912           default:
8913             return null;
8914         }
8915       }
8916 
8917       /**
8918        * Find the _Fields constant that matches fieldId, throwing an exception
8919        * if it is not found.
8920        */
8921       public static _Fields findByThriftIdOrThrow(int fieldId) {
8922         _Fields fields = findByThriftId(fieldId);
8923         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8924         return fields;
8925       }
8926 
8927       /**
8928        * Find the _Fields constant that matches name, or null if its not found.
8929        */
8930       public static _Fields findByName(String name) {
8931         return byName.get(name);
8932       }
8933 
8934       private final short _thriftId;
8935       private final String _fieldName;
8936 
8937       _Fields(short thriftId, String fieldName) {
8938         _thriftId = thriftId;
8939         _fieldName = fieldName;
8940       }
8941 
8942       public short getThriftFieldId() {
8943         return _thriftId;
8944       }
8945 
8946       public String getFieldName() {
8947         return _fieldName;
8948       }
8949     }
8950 
8951     // isset id assignments
8952     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8953     static {
8954       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8955       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8956           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8957               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
8958       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8959           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8960       metaDataMap = Collections.unmodifiableMap(tmpMap);
8961       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_result.class, metaDataMap);
8962     }
8963 
8964     public getTableNames_result() {
8965     }
8966 
8967     public getTableNames_result(
8968       List<ByteBuffer> success,
8969       IOError io)
8970     {
8971       this();
8972       this.success = success;
8973       this.io = io;
8974     }
8975 
8976     /**
8977      * Performs a deep copy on <i>other</i>.
8978      */
8979     public getTableNames_result(getTableNames_result other) {
8980       if (other.isSetSuccess()) {
8981         List<ByteBuffer> __this__success = new ArrayList<ByteBuffer>();
8982         for (ByteBuffer other_element : other.success) {
8983           __this__success.add(other_element);
8984         }
8985         this.success = __this__success;
8986       }
8987       if (other.isSetIo()) {
8988         this.io = new IOError(other.io);
8989       }
8990     }
8991 
8992     public getTableNames_result deepCopy() {
8993       return new getTableNames_result(this);
8994     }
8995 
8996     @Override
8997     public void clear() {
8998       this.success = null;
8999       this.io = null;
9000     }
9001 
9002     public int getSuccessSize() {
9003       return (this.success == null) ? 0 : this.success.size();
9004     }
9005 
9006     public java.util.Iterator<ByteBuffer> getSuccessIterator() {
9007       return (this.success == null) ? null : this.success.iterator();
9008     }
9009 
9010     public void addToSuccess(ByteBuffer elem) {
9011       if (this.success == null) {
9012         this.success = new ArrayList<ByteBuffer>();
9013       }
9014       this.success.add(elem);
9015     }
9016 
9017     public List<ByteBuffer> getSuccess() {
9018       return this.success;
9019     }
9020 
9021     public getTableNames_result setSuccess(List<ByteBuffer> success) {
9022       this.success = success;
9023       return this;
9024     }
9025 
9026     public void unsetSuccess() {
9027       this.success = null;
9028     }
9029 
9030     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9031     public boolean isSetSuccess() {
9032       return this.success != null;
9033     }
9034 
9035     public void setSuccessIsSet(boolean value) {
9036       if (!value) {
9037         this.success = null;
9038       }
9039     }
9040 
9041     public IOError getIo() {
9042       return this.io;
9043     }
9044 
9045     public getTableNames_result setIo(IOError io) {
9046       this.io = io;
9047       return this;
9048     }
9049 
9050     public void unsetIo() {
9051       this.io = null;
9052     }
9053 
9054     /** Returns true if field io is set (has been assigned a value) and false otherwise */
9055     public boolean isSetIo() {
9056       return this.io != null;
9057     }
9058 
9059     public void setIoIsSet(boolean value) {
9060       if (!value) {
9061         this.io = null;
9062       }
9063     }
9064 
9065     public void setFieldValue(_Fields field, Object value) {
9066       switch (field) {
9067       case SUCCESS:
9068         if (value == null) {
9069           unsetSuccess();
9070         } else {
9071           setSuccess((List<ByteBuffer>)value);
9072         }
9073         break;
9074 
9075       case IO:
9076         if (value == null) {
9077           unsetIo();
9078         } else {
9079           setIo((IOError)value);
9080         }
9081         break;
9082 
9083       }
9084     }
9085 
9086     public Object getFieldValue(_Fields field) {
9087       switch (field) {
9088       case SUCCESS:
9089         return getSuccess();
9090 
9091       case IO:
9092         return getIo();
9093 
9094       }
9095       throw new IllegalStateException();
9096     }
9097 
9098     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9099     public boolean isSet(_Fields field) {
9100       if (field == null) {
9101         throw new IllegalArgumentException();
9102       }
9103 
9104       switch (field) {
9105       case SUCCESS:
9106         return isSetSuccess();
9107       case IO:
9108         return isSetIo();
9109       }
9110       throw new IllegalStateException();
9111     }
9112 
9113     @Override
9114     public boolean equals(Object that) {
9115       if (that == null)
9116         return false;
9117       if (that instanceof getTableNames_result)
9118         return this.equals((getTableNames_result)that);
9119       return false;
9120     }
9121 
9122     public boolean equals(getTableNames_result that) {
9123       if (that == null)
9124         return false;
9125 
9126       boolean this_present_success = true && this.isSetSuccess();
9127       boolean that_present_success = true && that.isSetSuccess();
9128       if (this_present_success || that_present_success) {
9129         if (!(this_present_success && that_present_success))
9130           return false;
9131         if (!this.success.equals(that.success))
9132           return false;
9133       }
9134 
9135       boolean this_present_io = true && this.isSetIo();
9136       boolean that_present_io = true && that.isSetIo();
9137       if (this_present_io || that_present_io) {
9138         if (!(this_present_io && that_present_io))
9139           return false;
9140         if (!this.io.equals(that.io))
9141           return false;
9142       }
9143 
9144       return true;
9145     }
9146 
9147     @Override
9148     public int hashCode() {
9149       HashCodeBuilder builder = new HashCodeBuilder();
9150 
9151       boolean present_success = true && (isSetSuccess());
9152       builder.append(present_success);
9153       if (present_success)
9154         builder.append(success);
9155 
9156       boolean present_io = true && (isSetIo());
9157       builder.append(present_io);
9158       if (present_io)
9159         builder.append(io);
9160 
9161       return builder.toHashCode();
9162     }
9163 
9164     public int compareTo(getTableNames_result other) {
9165       if (!getClass().equals(other.getClass())) {
9166         return getClass().getName().compareTo(other.getClass().getName());
9167       }
9168 
9169       int lastComparison = 0;
9170       getTableNames_result typedOther = (getTableNames_result)other;
9171 
9172       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9173       if (lastComparison != 0) {
9174         return lastComparison;
9175       }
9176       if (isSetSuccess()) {
9177         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9178         if (lastComparison != 0) {
9179           return lastComparison;
9180         }
9181       }
9182       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
9183       if (lastComparison != 0) {
9184         return lastComparison;
9185       }
9186       if (isSetIo()) {
9187         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
9188         if (lastComparison != 0) {
9189           return lastComparison;
9190         }
9191       }
9192       return 0;
9193     }
9194 
9195     public _Fields fieldForId(int fieldId) {
9196       return _Fields.findByThriftId(fieldId);
9197     }
9198 
9199     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9200       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9201     }
9202 
9203     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9204       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9205       }
9206 
9207     @Override
9208     public String toString() {
9209       StringBuilder sb = new StringBuilder("getTableNames_result(");
9210       boolean first = true;
9211 
9212       sb.append("success:");
9213       if (this.success == null) {
9214         sb.append("null");
9215       } else {
9216         sb.append(this.success);
9217       }
9218       first = false;
9219       if (!first) sb.append(", ");
9220       sb.append("io:");
9221       if (this.io == null) {
9222         sb.append("null");
9223       } else {
9224         sb.append(this.io);
9225       }
9226       first = false;
9227       sb.append(")");
9228       return sb.toString();
9229     }
9230 
9231     public void validate() throws org.apache.thrift.TException {
9232       // check for required fields
9233       // check for sub-struct validity
9234     }
9235 
9236     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9237       try {
9238         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9239       } catch (org.apache.thrift.TException te) {
9240         throw new java.io.IOException(te);
9241       }
9242     }
9243 
9244     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9245       try {
9246         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9247       } catch (org.apache.thrift.TException te) {
9248         throw new java.io.IOException(te);
9249       }
9250     }
9251 
9252     private static class getTableNames_resultStandardSchemeFactory implements SchemeFactory {
9253       public getTableNames_resultStandardScheme getScheme() {
9254         return new getTableNames_resultStandardScheme();
9255       }
9256     }
9257 
9258     private static class getTableNames_resultStandardScheme extends StandardScheme<getTableNames_result> {
9259 
9260       public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_result struct) throws org.apache.thrift.TException {
9261         org.apache.thrift.protocol.TField schemeField;
9262         iprot.readStructBegin();
9263         while (true)
9264         {
9265           schemeField = iprot.readFieldBegin();
9266           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9267             break;
9268           }
9269           switch (schemeField.id) {
9270             case 0: // SUCCESS
9271               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9272                 {
9273                   org.apache.thrift.protocol.TList _list50 = iprot.readListBegin();
9274                   struct.success = new ArrayList<ByteBuffer>(_list50.size);
9275                   for (int _i51 = 0; _i51 < _list50.size; ++_i51)
9276                   {
9277                     ByteBuffer _elem52; // required
9278                     _elem52 = iprot.readBinary();
9279                     struct.success.add(_elem52);
9280                   }
9281                   iprot.readListEnd();
9282                 }
9283                 struct.setSuccessIsSet(true);
9284               } else { 
9285                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9286               }
9287               break;
9288             case 1: // IO
9289               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9290                 struct.io = new IOError();
9291                 struct.io.read(iprot);
9292                 struct.setIoIsSet(true);
9293               } else { 
9294                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9295               }
9296               break;
9297             default:
9298               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9299           }
9300           iprot.readFieldEnd();
9301         }
9302         iprot.readStructEnd();
9303 
9304         // check for required fields of primitive type, which can't be checked in the validate method
9305         struct.validate();
9306       }
9307 
9308       public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_result struct) throws org.apache.thrift.TException {
9309         struct.validate();
9310 
9311         oprot.writeStructBegin(STRUCT_DESC);
9312         if (struct.success != null) {
9313           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9314           {
9315             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
9316             for (ByteBuffer _iter53 : struct.success)
9317             {
9318               oprot.writeBinary(_iter53);
9319             }
9320             oprot.writeListEnd();
9321           }
9322           oprot.writeFieldEnd();
9323         }
9324         if (struct.io != null) {
9325           oprot.writeFieldBegin(IO_FIELD_DESC);
9326           struct.io.write(oprot);
9327           oprot.writeFieldEnd();
9328         }
9329         oprot.writeFieldStop();
9330         oprot.writeStructEnd();
9331       }
9332 
9333     }
9334 
9335     private static class getTableNames_resultTupleSchemeFactory implements SchemeFactory {
9336       public getTableNames_resultTupleScheme getScheme() {
9337         return new getTableNames_resultTupleScheme();
9338       }
9339     }
9340 
9341     private static class getTableNames_resultTupleScheme extends TupleScheme<getTableNames_result> {
9342 
9343       @Override
9344       public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException {
9345         TTupleProtocol oprot = (TTupleProtocol) prot;
9346         BitSet optionals = new BitSet();
9347         if (struct.isSetSuccess()) {
9348           optionals.set(0);
9349         }
9350         if (struct.isSetIo()) {
9351           optionals.set(1);
9352         }
9353         oprot.writeBitSet(optionals, 2);
9354         if (struct.isSetSuccess()) {
9355           {
9356             oprot.writeI32(struct.success.size());
9357             for (ByteBuffer _iter54 : struct.success)
9358             {
9359               oprot.writeBinary(_iter54);
9360             }
9361           }
9362         }
9363         if (struct.isSetIo()) {
9364           struct.io.write(oprot);
9365         }
9366       }
9367 
9368       @Override
9369       public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException {
9370         TTupleProtocol iprot = (TTupleProtocol) prot;
9371         BitSet incoming = iprot.readBitSet(2);
9372         if (incoming.get(0)) {
9373           {
9374             org.apache.thrift.protocol.TList _list55 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9375             struct.success = new ArrayList<ByteBuffer>(_list55.size);
9376             for (int _i56 = 0; _i56 < _list55.size; ++_i56)
9377             {
9378               ByteBuffer _elem57; // required
9379               _elem57 = iprot.readBinary();
9380               struct.success.add(_elem57);
9381             }
9382           }
9383           struct.setSuccessIsSet(true);
9384         }
9385         if (incoming.get(1)) {
9386           struct.io = new IOError();
9387           struct.io.read(iprot);
9388           struct.setIoIsSet(true);
9389         }
9390       }
9391     }
9392 
9393   }
9394 
9395   public static class getColumnDescriptors_args implements org.apache.thrift.TBase<getColumnDescriptors_args, getColumnDescriptors_args._Fields>, java.io.Serializable, Cloneable   {
9396     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_args");
9397 
9398     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
9399 
9400     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9401     static {
9402       schemes.put(StandardScheme.class, new getColumnDescriptors_argsStandardSchemeFactory());
9403       schemes.put(TupleScheme.class, new getColumnDescriptors_argsTupleSchemeFactory());
9404     }
9405 
9406     /**
9407      * table name
9408      */
9409     public ByteBuffer tableName; // required
9410 
9411     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9412     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9413       /**
9414        * table name
9415        */
9416       TABLE_NAME((short)1, "tableName");
9417 
9418       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9419 
9420       static {
9421         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9422           byName.put(field.getFieldName(), field);
9423         }
9424       }
9425 
9426       /**
9427        * Find the _Fields constant that matches fieldId, or null if its not found.
9428        */
9429       public static _Fields findByThriftId(int fieldId) {
9430         switch(fieldId) {
9431           case 1: // TABLE_NAME
9432             return TABLE_NAME;
9433           default:
9434             return null;
9435         }
9436       }
9437 
9438       /**
9439        * Find the _Fields constant that matches fieldId, throwing an exception
9440        * if it is not found.
9441        */
9442       public static _Fields findByThriftIdOrThrow(int fieldId) {
9443         _Fields fields = findByThriftId(fieldId);
9444         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9445         return fields;
9446       }
9447 
9448       /**
9449        * Find the _Fields constant that matches name, or null if its not found.
9450        */
9451       public static _Fields findByName(String name) {
9452         return byName.get(name);
9453       }
9454 
9455       private final short _thriftId;
9456       private final String _fieldName;
9457 
9458       _Fields(short thriftId, String fieldName) {
9459         _thriftId = thriftId;
9460         _fieldName = fieldName;
9461       }
9462 
9463       public short getThriftFieldId() {
9464         return _thriftId;
9465       }
9466 
9467       public String getFieldName() {
9468         return _fieldName;
9469       }
9470     }
9471 
9472     // isset id assignments
9473     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9474     static {
9475       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9476       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9477           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
9478       metaDataMap = Collections.unmodifiableMap(tmpMap);
9479       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_args.class, metaDataMap);
9480     }
9481 
9482     public getColumnDescriptors_args() {
9483     }
9484 
9485     public getColumnDescriptors_args(
9486       ByteBuffer tableName)
9487     {
9488       this();
9489       this.tableName = tableName;
9490     }
9491 
9492     /**
9493      * Performs a deep copy on <i>other</i>.
9494      */
9495     public getColumnDescriptors_args(getColumnDescriptors_args other) {
9496       if (other.isSetTableName()) {
9497         this.tableName = other.tableName;
9498       }
9499     }
9500 
9501     public getColumnDescriptors_args deepCopy() {
9502       return new getColumnDescriptors_args(this);
9503     }
9504 
9505     @Override
9506     public void clear() {
9507       this.tableName = null;
9508     }
9509 
9510     /**
9511      * table name
9512      */
9513     public byte[] getTableName() {
9514       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
9515       return tableName == null ? null : tableName.array();
9516     }
9517 
9518     public ByteBuffer bufferForTableName() {
9519       return tableName;
9520     }
9521 
9522     /**
9523      * table name
9524      */
9525     public getColumnDescriptors_args setTableName(byte[] tableName) {
9526       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
9527       return this;
9528     }
9529 
9530     public getColumnDescriptors_args setTableName(ByteBuffer tableName) {
9531       this.tableName = tableName;
9532       return this;
9533     }
9534 
9535     public void unsetTableName() {
9536       this.tableName = null;
9537     }
9538 
9539     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
9540     public boolean isSetTableName() {
9541       return this.tableName != null;
9542     }
9543 
9544     public void setTableNameIsSet(boolean value) {
9545       if (!value) {
9546         this.tableName = null;
9547       }
9548     }
9549 
9550     public void setFieldValue(_Fields field, Object value) {
9551       switch (field) {
9552       case TABLE_NAME:
9553         if (value == null) {
9554           unsetTableName();
9555         } else {
9556           setTableName((ByteBuffer)value);
9557         }
9558         break;
9559 
9560       }
9561     }
9562 
9563     public Object getFieldValue(_Fields field) {
9564       switch (field) {
9565       case TABLE_NAME:
9566         return getTableName();
9567 
9568       }
9569       throw new IllegalStateException();
9570     }
9571 
9572     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9573     public boolean isSet(_Fields field) {
9574       if (field == null) {
9575         throw new IllegalArgumentException();
9576       }
9577 
9578       switch (field) {
9579       case TABLE_NAME:
9580         return isSetTableName();
9581       }
9582       throw new IllegalStateException();
9583     }
9584 
9585     @Override
9586     public boolean equals(Object that) {
9587       if (that == null)
9588         return false;
9589       if (that instanceof getColumnDescriptors_args)
9590         return this.equals((getColumnDescriptors_args)that);
9591       return false;
9592     }
9593 
9594     public boolean equals(getColumnDescriptors_args that) {
9595       if (that == null)
9596         return false;
9597 
9598       boolean this_present_tableName = true && this.isSetTableName();
9599       boolean that_present_tableName = true && that.isSetTableName();
9600       if (this_present_tableName || that_present_tableName) {
9601         if (!(this_present_tableName && that_present_tableName))
9602           return false;
9603         if (!this.tableName.equals(that.tableName))
9604           return false;
9605       }
9606 
9607       return true;
9608     }
9609 
9610     @Override
9611     public int hashCode() {
9612       HashCodeBuilder builder = new HashCodeBuilder();
9613 
9614       boolean present_tableName = true && (isSetTableName());
9615       builder.append(present_tableName);
9616       if (present_tableName)
9617         builder.append(tableName);
9618 
9619       return builder.toHashCode();
9620     }
9621 
9622     public int compareTo(getColumnDescriptors_args other) {
9623       if (!getClass().equals(other.getClass())) {
9624         return getClass().getName().compareTo(other.getClass().getName());
9625       }
9626 
9627       int lastComparison = 0;
9628       getColumnDescriptors_args typedOther = (getColumnDescriptors_args)other;
9629 
9630       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
9631       if (lastComparison != 0) {
9632         return lastComparison;
9633       }
9634       if (isSetTableName()) {
9635         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
9636         if (lastComparison != 0) {
9637           return lastComparison;
9638         }
9639       }
9640       return 0;
9641     }
9642 
9643     public _Fields fieldForId(int fieldId) {
9644       return _Fields.findByThriftId(fieldId);
9645     }
9646 
9647     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9648       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9649     }
9650 
9651     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9652       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9653     }
9654 
9655     @Override
9656     public String toString() {
9657       StringBuilder sb = new StringBuilder("getColumnDescriptors_args(");
9658       boolean first = true;
9659 
9660       sb.append("tableName:");
9661       if (this.tableName == null) {
9662         sb.append("null");
9663       } else {
9664         sb.append(this.tableName);
9665       }
9666       first = false;
9667       sb.append(")");
9668       return sb.toString();
9669     }
9670 
9671     public void validate() throws org.apache.thrift.TException {
9672       // check for required fields
9673       // check for sub-struct validity
9674     }
9675 
9676     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9677       try {
9678         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9679       } catch (org.apache.thrift.TException te) {
9680         throw new java.io.IOException(te);
9681       }
9682     }
9683 
9684     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9685       try {
9686         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9687       } catch (org.apache.thrift.TException te) {
9688         throw new java.io.IOException(te);
9689       }
9690     }
9691 
9692     private static class getColumnDescriptors_argsStandardSchemeFactory implements SchemeFactory {
9693       public getColumnDescriptors_argsStandardScheme getScheme() {
9694         return new getColumnDescriptors_argsStandardScheme();
9695       }
9696     }
9697 
9698     private static class getColumnDescriptors_argsStandardScheme extends StandardScheme<getColumnDescriptors_args> {
9699 
9700       public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9701         org.apache.thrift.protocol.TField schemeField;
9702         iprot.readStructBegin();
9703         while (true)
9704         {
9705           schemeField = iprot.readFieldBegin();
9706           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9707             break;
9708           }
9709           switch (schemeField.id) {
9710             case 1: // TABLE_NAME
9711               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9712                 struct.tableName = iprot.readBinary();
9713                 struct.setTableNameIsSet(true);
9714               } else { 
9715                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9716               }
9717               break;
9718             default:
9719               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9720           }
9721           iprot.readFieldEnd();
9722         }
9723         iprot.readStructEnd();
9724 
9725         // check for required fields of primitive type, which can't be checked in the validate method
9726         struct.validate();
9727       }
9728 
9729       public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9730         struct.validate();
9731 
9732         oprot.writeStructBegin(STRUCT_DESC);
9733         if (struct.tableName != null) {
9734           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
9735           oprot.writeBinary(struct.tableName);
9736           oprot.writeFieldEnd();
9737         }
9738         oprot.writeFieldStop();
9739         oprot.writeStructEnd();
9740       }
9741 
9742     }
9743 
9744     private static class getColumnDescriptors_argsTupleSchemeFactory implements SchemeFactory {
9745       public getColumnDescriptors_argsTupleScheme getScheme() {
9746         return new getColumnDescriptors_argsTupleScheme();
9747       }
9748     }
9749 
9750     private static class getColumnDescriptors_argsTupleScheme extends TupleScheme<getColumnDescriptors_args> {
9751 
9752       @Override
9753       public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9754         TTupleProtocol oprot = (TTupleProtocol) prot;
9755         BitSet optionals = new BitSet();
9756         if (struct.isSetTableName()) {
9757           optionals.set(0);
9758         }
9759         oprot.writeBitSet(optionals, 1);
9760         if (struct.isSetTableName()) {
9761           oprot.writeBinary(struct.tableName);
9762         }
9763       }
9764 
9765       @Override
9766       public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9767         TTupleProtocol iprot = (TTupleProtocol) prot;
9768         BitSet incoming = iprot.readBitSet(1);
9769         if (incoming.get(0)) {
9770           struct.tableName = iprot.readBinary();
9771           struct.setTableNameIsSet(true);
9772         }
9773       }
9774     }
9775 
9776   }
9777 
9778   public static class getColumnDescriptors_result implements org.apache.thrift.TBase<getColumnDescriptors_result, getColumnDescriptors_result._Fields>, java.io.Serializable, Cloneable   {
9779     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_result");
9780 
9781     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
9782     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9783 
9784     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9785     static {
9786       schemes.put(StandardScheme.class, new getColumnDescriptors_resultStandardSchemeFactory());
9787       schemes.put(TupleScheme.class, new getColumnDescriptors_resultTupleSchemeFactory());
9788     }
9789 
9790     public Map<ByteBuffer,ColumnDescriptor> success; // required
9791     public IOError io; // required
9792 
9793     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9794     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9795       SUCCESS((short)0, "success"),
9796       IO((short)1, "io");
9797 
9798       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9799 
9800       static {
9801         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9802           byName.put(field.getFieldName(), field);
9803         }
9804       }
9805 
9806       /**
9807        * Find the _Fields constant that matches fieldId, or null if its not found.
9808        */
9809       public static _Fields findByThriftId(int fieldId) {
9810         switch(fieldId) {
9811           case 0: // SUCCESS
9812             return SUCCESS;
9813           case 1: // IO
9814             return IO;
9815           default:
9816             return null;
9817         }
9818       }
9819 
9820       /**
9821        * Find the _Fields constant that matches fieldId, throwing an exception
9822        * if it is not found.
9823        */
9824       public static _Fields findByThriftIdOrThrow(int fieldId) {
9825         _Fields fields = findByThriftId(fieldId);
9826         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9827         return fields;
9828       }
9829 
9830       /**
9831        * Find the _Fields constant that matches name, or null if its not found.
9832        */
9833       public static _Fields findByName(String name) {
9834         return byName.get(name);
9835       }
9836 
9837       private final short _thriftId;
9838       private final String _fieldName;
9839 
9840       _Fields(short thriftId, String fieldName) {
9841         _thriftId = thriftId;
9842         _fieldName = fieldName;
9843       }
9844 
9845       public short getThriftFieldId() {
9846         return _thriftId;
9847       }
9848 
9849       public String getFieldName() {
9850         return _fieldName;
9851       }
9852     }
9853 
9854     // isset id assignments
9855     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9856     static {
9857       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9858       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9859           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
9860               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
9861               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class))));
9862       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9863           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9864       metaDataMap = Collections.unmodifiableMap(tmpMap);
9865       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_result.class, metaDataMap);
9866     }
9867 
9868     public getColumnDescriptors_result() {
9869     }
9870 
9871     public getColumnDescriptors_result(
9872       Map<ByteBuffer,ColumnDescriptor> success,
9873       IOError io)
9874     {
9875       this();
9876       this.success = success;
9877       this.io = io;
9878     }
9879 
9880     /**
9881      * Performs a deep copy on <i>other</i>.
9882      */
9883     public getColumnDescriptors_result(getColumnDescriptors_result other) {
9884       if (other.isSetSuccess()) {
9885         Map<ByteBuffer,ColumnDescriptor> __this__success = new HashMap<ByteBuffer,ColumnDescriptor>();
9886         for (Map.Entry<ByteBuffer, ColumnDescriptor> other_element : other.success.entrySet()) {
9887 
9888           ByteBuffer other_element_key = other_element.getKey();
9889           ColumnDescriptor other_element_value = other_element.getValue();
9890 
9891           ByteBuffer __this__success_copy_key = other_element_key;
9892 
9893           ColumnDescriptor __this__success_copy_value = new ColumnDescriptor(other_element_value);
9894 
9895           __this__success.put(__this__success_copy_key, __this__success_copy_value);
9896         }
9897         this.success = __this__success;
9898       }
9899       if (other.isSetIo()) {
9900         this.io = new IOError(other.io);
9901       }
9902     }
9903 
9904     public getColumnDescriptors_result deepCopy() {
9905       return new getColumnDescriptors_result(this);
9906     }
9907 
9908     @Override
9909     public void clear() {
9910       this.success = null;
9911       this.io = null;
9912     }
9913 
9914     public int getSuccessSize() {
9915       return (this.success == null) ? 0 : this.success.size();
9916     }
9917 
9918     public void putToSuccess(ByteBuffer key, ColumnDescriptor val) {
9919       if (this.success == null) {
9920         this.success = new HashMap<ByteBuffer,ColumnDescriptor>();
9921       }
9922       this.success.put(key, val);
9923     }
9924 
9925     public Map<ByteBuffer,ColumnDescriptor> getSuccess() {
9926       return this.success;
9927     }
9928 
9929     public getColumnDescriptors_result setSuccess(Map<ByteBuffer,ColumnDescriptor> success) {
9930       this.success = success;
9931       return this;
9932     }
9933 
9934     public void unsetSuccess() {
9935       this.success = null;
9936     }
9937 
9938     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9939     public boolean isSetSuccess() {
9940       return this.success != null;
9941     }
9942 
9943     public void setSuccessIsSet(boolean value) {
9944       if (!value) {
9945         this.success = null;
9946       }
9947     }
9948 
9949     public IOError getIo() {
9950       return this.io;
9951     }
9952 
9953     public getColumnDescriptors_result setIo(IOError io) {
9954       this.io = io;
9955       return this;
9956     }
9957 
9958     public void unsetIo() {
9959       this.io = null;
9960     }
9961 
9962     /** Returns true if field io is set (has been assigned a value) and false otherwise */
9963     public boolean isSetIo() {
9964       return this.io != null;
9965     }
9966 
9967     public void setIoIsSet(boolean value) {
9968       if (!value) {
9969         this.io = null;
9970       }
9971     }
9972 
9973     public void setFieldValue(_Fields field, Object value) {
9974       switch (field) {
9975       case SUCCESS:
9976         if (value == null) {
9977           unsetSuccess();
9978         } else {
9979           setSuccess((Map<ByteBuffer,ColumnDescriptor>)value);
9980         }
9981         break;
9982 
9983       case IO:
9984         if (value == null) {
9985           unsetIo();
9986         } else {
9987           setIo((IOError)value);
9988         }
9989         break;
9990 
9991       }
9992     }
9993 
9994     public Object getFieldValue(_Fields field) {
9995       switch (field) {
9996       case SUCCESS:
9997         return getSuccess();
9998 
9999       case IO:
10000         return getIo();
10001 
10002       }
10003       throw new IllegalStateException();
10004     }
10005 
10006     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10007     public boolean isSet(_Fields field) {
10008       if (field == null) {
10009         throw new IllegalArgumentException();
10010       }
10011 
10012       switch (field) {
10013       case SUCCESS:
10014         return isSetSuccess();
10015       case IO:
10016         return isSetIo();
10017       }
10018       throw new IllegalStateException();
10019     }
10020 
10021     @Override
10022     public boolean equals(Object that) {
10023       if (that == null)
10024         return false;
10025       if (that instanceof getColumnDescriptors_result)
10026         return this.equals((getColumnDescriptors_result)that);
10027       return false;
10028     }
10029 
10030     public boolean equals(getColumnDescriptors_result that) {
10031       if (that == null)
10032         return false;
10033 
10034       boolean this_present_success = true && this.isSetSuccess();
10035       boolean that_present_success = true && that.isSetSuccess();
10036       if (this_present_success || that_present_success) {
10037         if (!(this_present_success && that_present_success))
10038           return false;
10039         if (!this.success.equals(that.success))
10040           return false;
10041       }
10042 
10043       boolean this_present_io = true && this.isSetIo();
10044       boolean that_present_io = true && that.isSetIo();
10045       if (this_present_io || that_present_io) {
10046         if (!(this_present_io && that_present_io))
10047           return false;
10048         if (!this.io.equals(that.io))
10049           return false;
10050       }
10051 
10052       return true;
10053     }
10054 
10055     @Override
10056     public int hashCode() {
10057       HashCodeBuilder builder = new HashCodeBuilder();
10058 
10059       boolean present_success = true && (isSetSuccess());
10060       builder.append(present_success);
10061       if (present_success)
10062         builder.append(success);
10063 
10064       boolean present_io = true && (isSetIo());
10065       builder.append(present_io);
10066       if (present_io)
10067         builder.append(io);
10068 
10069       return builder.toHashCode();
10070     }
10071 
10072     public int compareTo(getColumnDescriptors_result other) {
10073       if (!getClass().equals(other.getClass())) {
10074         return getClass().getName().compareTo(other.getClass().getName());
10075       }
10076 
10077       int lastComparison = 0;
10078       getColumnDescriptors_result typedOther = (getColumnDescriptors_result)other;
10079 
10080       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10081       if (lastComparison != 0) {
10082         return lastComparison;
10083       }
10084       if (isSetSuccess()) {
10085         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10086         if (lastComparison != 0) {
10087           return lastComparison;
10088         }
10089       }
10090       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
10091       if (lastComparison != 0) {
10092         return lastComparison;
10093       }
10094       if (isSetIo()) {
10095         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
10096         if (lastComparison != 0) {
10097           return lastComparison;
10098         }
10099       }
10100       return 0;
10101     }
10102 
10103     public _Fields fieldForId(int fieldId) {
10104       return _Fields.findByThriftId(fieldId);
10105     }
10106 
10107     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10108       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10109     }
10110 
10111     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10112       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10113       }
10114 
10115     @Override
10116     public String toString() {
10117       StringBuilder sb = new StringBuilder("getColumnDescriptors_result(");
10118       boolean first = true;
10119 
10120       sb.append("success:");
10121       if (this.success == null) {
10122         sb.append("null");
10123       } else {
10124         sb.append(this.success);
10125       }
10126       first = false;
10127       if (!first) sb.append(", ");
10128       sb.append("io:");
10129       if (this.io == null) {
10130         sb.append("null");
10131       } else {
10132         sb.append(this.io);
10133       }
10134       first = false;
10135       sb.append(")");
10136       return sb.toString();
10137     }
10138 
10139     public void validate() throws org.apache.thrift.TException {
10140       // check for required fields
10141       // check for sub-struct validity
10142     }
10143 
10144     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10145       try {
10146         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10147       } catch (org.apache.thrift.TException te) {
10148         throw new java.io.IOException(te);
10149       }
10150     }
10151 
10152     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10153       try {
10154         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10155       } catch (org.apache.thrift.TException te) {
10156         throw new java.io.IOException(te);
10157       }
10158     }
10159 
10160     private static class getColumnDescriptors_resultStandardSchemeFactory implements SchemeFactory {
10161       public getColumnDescriptors_resultStandardScheme getScheme() {
10162         return new getColumnDescriptors_resultStandardScheme();
10163       }
10164     }
10165 
10166     private static class getColumnDescriptors_resultStandardScheme extends StandardScheme<getColumnDescriptors_result> {
10167 
10168       public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10169         org.apache.thrift.protocol.TField schemeField;
10170         iprot.readStructBegin();
10171         while (true)
10172         {
10173           schemeField = iprot.readFieldBegin();
10174           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10175             break;
10176           }
10177           switch (schemeField.id) {
10178             case 0: // SUCCESS
10179               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
10180                 {
10181                   org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin();
10182                   struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map58.size);
10183                   for (int _i59 = 0; _i59 < _map58.size; ++_i59)
10184                   {
10185                     ByteBuffer _key60; // required
10186                     ColumnDescriptor _val61; // required
10187                     _key60 = iprot.readBinary();
10188                     _val61 = new ColumnDescriptor();
10189                     _val61.read(iprot);
10190                     struct.success.put(_key60, _val61);
10191                   }
10192                   iprot.readMapEnd();
10193                 }
10194                 struct.setSuccessIsSet(true);
10195               } else { 
10196                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10197               }
10198               break;
10199             case 1: // IO
10200               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10201                 struct.io = new IOError();
10202                 struct.io.read(iprot);
10203                 struct.setIoIsSet(true);
10204               } else { 
10205                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10206               }
10207               break;
10208             default:
10209               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10210           }
10211           iprot.readFieldEnd();
10212         }
10213         iprot.readStructEnd();
10214 
10215         // check for required fields of primitive type, which can't be checked in the validate method
10216         struct.validate();
10217       }
10218 
10219       public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10220         struct.validate();
10221 
10222         oprot.writeStructBegin(STRUCT_DESC);
10223         if (struct.success != null) {
10224           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10225           {
10226             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
10227             for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter62 : struct.success.entrySet())
10228             {
10229               oprot.writeBinary(_iter62.getKey());
10230               _iter62.getValue().write(oprot);
10231             }
10232             oprot.writeMapEnd();
10233           }
10234           oprot.writeFieldEnd();
10235         }
10236         if (struct.io != null) {
10237           oprot.writeFieldBegin(IO_FIELD_DESC);
10238           struct.io.write(oprot);
10239           oprot.writeFieldEnd();
10240         }
10241         oprot.writeFieldStop();
10242         oprot.writeStructEnd();
10243       }
10244 
10245     }
10246 
10247     private static class getColumnDescriptors_resultTupleSchemeFactory implements SchemeFactory {
10248       public getColumnDescriptors_resultTupleScheme getScheme() {
10249         return new getColumnDescriptors_resultTupleScheme();
10250       }
10251     }
10252 
10253     private static class getColumnDescriptors_resultTupleScheme extends TupleScheme<getColumnDescriptors_result> {
10254 
10255       @Override
10256       public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10257         TTupleProtocol oprot = (TTupleProtocol) prot;
10258         BitSet optionals = new BitSet();
10259         if (struct.isSetSuccess()) {
10260           optionals.set(0);
10261         }
10262         if (struct.isSetIo()) {
10263           optionals.set(1);
10264         }
10265         oprot.writeBitSet(optionals, 2);
10266         if (struct.isSetSuccess()) {
10267           {
10268             oprot.writeI32(struct.success.size());
10269             for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter63 : struct.success.entrySet())
10270             {
10271               oprot.writeBinary(_iter63.getKey());
10272               _iter63.getValue().write(oprot);
10273             }
10274           }
10275         }
10276         if (struct.isSetIo()) {
10277           struct.io.write(oprot);
10278         }
10279       }
10280 
10281       @Override
10282       public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10283         TTupleProtocol iprot = (TTupleProtocol) prot;
10284         BitSet incoming = iprot.readBitSet(2);
10285         if (incoming.get(0)) {
10286           {
10287             org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
10288             struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map64.size);
10289             for (int _i65 = 0; _i65 < _map64.size; ++_i65)
10290             {
10291               ByteBuffer _key66; // required
10292               ColumnDescriptor _val67; // required
10293               _key66 = iprot.readBinary();
10294               _val67 = new ColumnDescriptor();
10295               _val67.read(iprot);
10296               struct.success.put(_key66, _val67);
10297             }
10298           }
10299           struct.setSuccessIsSet(true);
10300         }
10301         if (incoming.get(1)) {
10302           struct.io = new IOError();
10303           struct.io.read(iprot);
10304           struct.setIoIsSet(true);
10305         }
10306       }
10307     }
10308 
10309   }
10310 
10311   public static class getTableRegions_args implements org.apache.thrift.TBase<getTableRegions_args, getTableRegions_args._Fields>, java.io.Serializable, Cloneable   {
10312     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_args");
10313 
10314     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
10315 
10316     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10317     static {
10318       schemes.put(StandardScheme.class, new getTableRegions_argsStandardSchemeFactory());
10319       schemes.put(TupleScheme.class, new getTableRegions_argsTupleSchemeFactory());
10320     }
10321 
10322     /**
10323      * table name
10324      */
10325     public ByteBuffer tableName; // required
10326 
10327     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10328     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10329       /**
10330        * table name
10331        */
10332       TABLE_NAME((short)1, "tableName");
10333 
10334       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10335 
10336       static {
10337         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10338           byName.put(field.getFieldName(), field);
10339         }
10340       }
10341 
10342       /**
10343        * Find the _Fields constant that matches fieldId, or null if its not found.
10344        */
10345       public static _Fields findByThriftId(int fieldId) {
10346         switch(fieldId) {
10347           case 1: // TABLE_NAME
10348             return TABLE_NAME;
10349           default:
10350             return null;
10351         }
10352       }
10353 
10354       /**
10355        * Find the _Fields constant that matches fieldId, throwing an exception
10356        * if it is not found.
10357        */
10358       public static _Fields findByThriftIdOrThrow(int fieldId) {
10359         _Fields fields = findByThriftId(fieldId);
10360         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10361         return fields;
10362       }
10363 
10364       /**
10365        * Find the _Fields constant that matches name, or null if its not found.
10366        */
10367       public static _Fields findByName(String name) {
10368         return byName.get(name);
10369       }
10370 
10371       private final short _thriftId;
10372       private final String _fieldName;
10373 
10374       _Fields(short thriftId, String fieldName) {
10375         _thriftId = thriftId;
10376         _fieldName = fieldName;
10377       }
10378 
10379       public short getThriftFieldId() {
10380         return _thriftId;
10381       }
10382 
10383       public String getFieldName() {
10384         return _fieldName;
10385       }
10386     }
10387 
10388     // isset id assignments
10389     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10390     static {
10391       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10392       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10393           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
10394       metaDataMap = Collections.unmodifiableMap(tmpMap);
10395       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_args.class, metaDataMap);
10396     }
10397 
10398     public getTableRegions_args() {
10399     }
10400 
10401     public getTableRegions_args(
10402       ByteBuffer tableName)
10403     {
10404       this();
10405       this.tableName = tableName;
10406     }
10407 
10408     /**
10409      * Performs a deep copy on <i>other</i>.
10410      */
10411     public getTableRegions_args(getTableRegions_args other) {
10412       if (other.isSetTableName()) {
10413         this.tableName = other.tableName;
10414       }
10415     }
10416 
10417     public getTableRegions_args deepCopy() {
10418       return new getTableRegions_args(this);
10419     }
10420 
10421     @Override
10422     public void clear() {
10423       this.tableName = null;
10424     }
10425 
10426     /**
10427      * table name
10428      */
10429     public byte[] getTableName() {
10430       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
10431       return tableName == null ? null : tableName.array();
10432     }
10433 
10434     public ByteBuffer bufferForTableName() {
10435       return tableName;
10436     }
10437 
10438     /**
10439      * table name
10440      */
10441     public getTableRegions_args setTableName(byte[] tableName) {
10442       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
10443       return this;
10444     }
10445 
10446     public getTableRegions_args setTableName(ByteBuffer tableName) {
10447       this.tableName = tableName;
10448       return this;
10449     }
10450 
10451     public void unsetTableName() {
10452       this.tableName = null;
10453     }
10454 
10455     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
10456     public boolean isSetTableName() {
10457       return this.tableName != null;
10458     }
10459 
10460     public void setTableNameIsSet(boolean value) {
10461       if (!value) {
10462         this.tableName = null;
10463       }
10464     }
10465 
10466     public void setFieldValue(_Fields field, Object value) {
10467       switch (field) {
10468       case TABLE_NAME:
10469         if (value == null) {
10470           unsetTableName();
10471         } else {
10472           setTableName((ByteBuffer)value);
10473         }
10474         break;
10475 
10476       }
10477     }
10478 
10479     public Object getFieldValue(_Fields field) {
10480       switch (field) {
10481       case TABLE_NAME:
10482         return getTableName();
10483 
10484       }
10485       throw new IllegalStateException();
10486     }
10487 
10488     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10489     public boolean isSet(_Fields field) {
10490       if (field == null) {
10491         throw new IllegalArgumentException();
10492       }
10493 
10494       switch (field) {
10495       case TABLE_NAME:
10496         return isSetTableName();
10497       }
10498       throw new IllegalStateException();
10499     }
10500 
10501     @Override
10502     public boolean equals(Object that) {
10503       if (that == null)
10504         return false;
10505       if (that instanceof getTableRegions_args)
10506         return this.equals((getTableRegions_args)that);
10507       return false;
10508     }
10509 
10510     public boolean equals(getTableRegions_args that) {
10511       if (that == null)
10512         return false;
10513 
10514       boolean this_present_tableName = true && this.isSetTableName();
10515       boolean that_present_tableName = true && that.isSetTableName();
10516       if (this_present_tableName || that_present_tableName) {
10517         if (!(this_present_tableName && that_present_tableName))
10518           return false;
10519         if (!this.tableName.equals(that.tableName))
10520           return false;
10521       }
10522 
10523       return true;
10524     }
10525 
10526     @Override
10527     public int hashCode() {
10528       HashCodeBuilder builder = new HashCodeBuilder();
10529 
10530       boolean present_tableName = true && (isSetTableName());
10531       builder.append(present_tableName);
10532       if (present_tableName)
10533         builder.append(tableName);
10534 
10535       return builder.toHashCode();
10536     }
10537 
10538     public int compareTo(getTableRegions_args other) {
10539       if (!getClass().equals(other.getClass())) {
10540         return getClass().getName().compareTo(other.getClass().getName());
10541       }
10542 
10543       int lastComparison = 0;
10544       getTableRegions_args typedOther = (getTableRegions_args)other;
10545 
10546       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
10547       if (lastComparison != 0) {
10548         return lastComparison;
10549       }
10550       if (isSetTableName()) {
10551         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
10552         if (lastComparison != 0) {
10553           return lastComparison;
10554         }
10555       }
10556       return 0;
10557     }
10558 
10559     public _Fields fieldForId(int fieldId) {
10560       return _Fields.findByThriftId(fieldId);
10561     }
10562 
10563     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10564       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10565     }
10566 
10567     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10568       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10569     }
10570 
10571     @Override
10572     public String toString() {
10573       StringBuilder sb = new StringBuilder("getTableRegions_args(");
10574       boolean first = true;
10575 
10576       sb.append("tableName:");
10577       if (this.tableName == null) {
10578         sb.append("null");
10579       } else {
10580         sb.append(this.tableName);
10581       }
10582       first = false;
10583       sb.append(")");
10584       return sb.toString();
10585     }
10586 
10587     public void validate() throws org.apache.thrift.TException {
10588       // check for required fields
10589       // check for sub-struct validity
10590     }
10591 
10592     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10593       try {
10594         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10595       } catch (org.apache.thrift.TException te) {
10596         throw new java.io.IOException(te);
10597       }
10598     }
10599 
10600     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10601       try {
10602         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10603       } catch (org.apache.thrift.TException te) {
10604         throw new java.io.IOException(te);
10605       }
10606     }
10607 
10608     private static class getTableRegions_argsStandardSchemeFactory implements SchemeFactory {
10609       public getTableRegions_argsStandardScheme getScheme() {
10610         return new getTableRegions_argsStandardScheme();
10611       }
10612     }
10613 
10614     private static class getTableRegions_argsStandardScheme extends StandardScheme<getTableRegions_args> {
10615 
10616       public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_args struct) throws org.apache.thrift.TException {
10617         org.apache.thrift.protocol.TField schemeField;
10618         iprot.readStructBegin();
10619         while (true)
10620         {
10621           schemeField = iprot.readFieldBegin();
10622           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10623             break;
10624           }
10625           switch (schemeField.id) {
10626             case 1: // TABLE_NAME
10627               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10628                 struct.tableName = iprot.readBinary();
10629                 struct.setTableNameIsSet(true);
10630               } else { 
10631                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10632               }
10633               break;
10634             default:
10635               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10636           }
10637           iprot.readFieldEnd();
10638         }
10639         iprot.readStructEnd();
10640 
10641         // check for required fields of primitive type, which can't be checked in the validate method
10642         struct.validate();
10643       }
10644 
10645       public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_args struct) throws org.apache.thrift.TException {
10646         struct.validate();
10647 
10648         oprot.writeStructBegin(STRUCT_DESC);
10649         if (struct.tableName != null) {
10650           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
10651           oprot.writeBinary(struct.tableName);
10652           oprot.writeFieldEnd();
10653         }
10654         oprot.writeFieldStop();
10655         oprot.writeStructEnd();
10656       }
10657 
10658     }
10659 
10660     private static class getTableRegions_argsTupleSchemeFactory implements SchemeFactory {
10661       public getTableRegions_argsTupleScheme getScheme() {
10662         return new getTableRegions_argsTupleScheme();
10663       }
10664     }
10665 
10666     private static class getTableRegions_argsTupleScheme extends TupleScheme<getTableRegions_args> {
10667 
10668       @Override
10669       public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException {
10670         TTupleProtocol oprot = (TTupleProtocol) prot;
10671         BitSet optionals = new BitSet();
10672         if (struct.isSetTableName()) {
10673           optionals.set(0);
10674         }
10675         oprot.writeBitSet(optionals, 1);
10676         if (struct.isSetTableName()) {
10677           oprot.writeBinary(struct.tableName);
10678         }
10679       }
10680 
10681       @Override
10682       public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException {
10683         TTupleProtocol iprot = (TTupleProtocol) prot;
10684         BitSet incoming = iprot.readBitSet(1);
10685         if (incoming.get(0)) {
10686           struct.tableName = iprot.readBinary();
10687           struct.setTableNameIsSet(true);
10688         }
10689       }
10690     }
10691 
10692   }
10693 
10694   public static class getTableRegions_result implements org.apache.thrift.TBase<getTableRegions_result, getTableRegions_result._Fields>, java.io.Serializable, Cloneable   {
10695     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_result");
10696 
10697     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
10698     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10699 
10700     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10701     static {
10702       schemes.put(StandardScheme.class, new getTableRegions_resultStandardSchemeFactory());
10703       schemes.put(TupleScheme.class, new getTableRegions_resultTupleSchemeFactory());
10704     }
10705 
10706     public List<TRegionInfo> success; // required
10707     public IOError io; // required
10708 
10709     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10710     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10711       SUCCESS((short)0, "success"),
10712       IO((short)1, "io");
10713 
10714       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10715 
10716       static {
10717         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10718           byName.put(field.getFieldName(), field);
10719         }
10720       }
10721 
10722       /**
10723        * Find the _Fields constant that matches fieldId, or null if its not found.
10724        */
10725       public static _Fields findByThriftId(int fieldId) {
10726         switch(fieldId) {
10727           case 0: // SUCCESS
10728             return SUCCESS;
10729           case 1: // IO
10730             return IO;
10731           default:
10732             return null;
10733         }
10734       }
10735 
10736       /**
10737        * Find the _Fields constant that matches fieldId, throwing an exception
10738        * if it is not found.
10739        */
10740       public static _Fields findByThriftIdOrThrow(int fieldId) {
10741         _Fields fields = findByThriftId(fieldId);
10742         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10743         return fields;
10744       }
10745 
10746       /**
10747        * Find the _Fields constant that matches name, or null if its not found.
10748        */
10749       public static _Fields findByName(String name) {
10750         return byName.get(name);
10751       }
10752 
10753       private final short _thriftId;
10754       private final String _fieldName;
10755 
10756       _Fields(short thriftId, String fieldName) {
10757         _thriftId = thriftId;
10758         _fieldName = fieldName;
10759       }
10760 
10761       public short getThriftFieldId() {
10762         return _thriftId;
10763       }
10764 
10765       public String getFieldName() {
10766         return _fieldName;
10767       }
10768     }
10769 
10770     // isset id assignments
10771     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10772     static {
10773       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10774       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10775           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10776               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class))));
10777       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10778           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10779       metaDataMap = Collections.unmodifiableMap(tmpMap);
10780       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_result.class, metaDataMap);
10781     }
10782 
10783     public getTableRegions_result() {
10784     }
10785 
10786     public getTableRegions_result(
10787       List<TRegionInfo> success,
10788       IOError io)
10789     {
10790       this();
10791       this.success = success;
10792       this.io = io;
10793     }
10794 
10795     /**
10796      * Performs a deep copy on <i>other</i>.
10797      */
10798     public getTableRegions_result(getTableRegions_result other) {
10799       if (other.isSetSuccess()) {
10800         List<TRegionInfo> __this__success = new ArrayList<TRegionInfo>();
10801         for (TRegionInfo other_element : other.success) {
10802           __this__success.add(new TRegionInfo(other_element));
10803         }
10804         this.success = __this__success;
10805       }
10806       if (other.isSetIo()) {
10807         this.io = new IOError(other.io);
10808       }
10809     }
10810 
10811     public getTableRegions_result deepCopy() {
10812       return new getTableRegions_result(this);
10813     }
10814 
10815     @Override
10816     public void clear() {
10817       this.success = null;
10818       this.io = null;
10819     }
10820 
10821     public int getSuccessSize() {
10822       return (this.success == null) ? 0 : this.success.size();
10823     }
10824 
10825     public java.util.Iterator<TRegionInfo> getSuccessIterator() {
10826       return (this.success == null) ? null : this.success.iterator();
10827     }
10828 
10829     public void addToSuccess(TRegionInfo elem) {
10830       if (this.success == null) {
10831         this.success = new ArrayList<TRegionInfo>();
10832       }
10833       this.success.add(elem);
10834     }
10835 
10836     public List<TRegionInfo> getSuccess() {
10837       return this.success;
10838     }
10839 
10840     public getTableRegions_result setSuccess(List<TRegionInfo> success) {
10841       this.success = success;
10842       return this;
10843     }
10844 
10845     public void unsetSuccess() {
10846       this.success = null;
10847     }
10848 
10849     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10850     public boolean isSetSuccess() {
10851       return this.success != null;
10852     }
10853 
10854     public void setSuccessIsSet(boolean value) {
10855       if (!value) {
10856         this.success = null;
10857       }
10858     }
10859 
10860     public IOError getIo() {
10861       return this.io;
10862     }
10863 
10864     public getTableRegions_result setIo(IOError io) {
10865       this.io = io;
10866       return this;
10867     }
10868 
10869     public void unsetIo() {
10870       this.io = null;
10871     }
10872 
10873     /** Returns true if field io is set (has been assigned a value) and false otherwise */
10874     public boolean isSetIo() {
10875       return this.io != null;
10876     }
10877 
10878     public void setIoIsSet(boolean value) {
10879       if (!value) {
10880         this.io = null;
10881       }
10882     }
10883 
10884     public void setFieldValue(_Fields field, Object value) {
10885       switch (field) {
10886       case SUCCESS:
10887         if (value == null) {
10888           unsetSuccess();
10889         } else {
10890           setSuccess((List<TRegionInfo>)value);
10891         }
10892         break;
10893 
10894       case IO:
10895         if (value == null) {
10896           unsetIo();
10897         } else {
10898           setIo((IOError)value);
10899         }
10900         break;
10901 
10902       }
10903     }
10904 
10905     public Object getFieldValue(_Fields field) {
10906       switch (field) {
10907       case SUCCESS:
10908         return getSuccess();
10909 
10910       case IO:
10911         return getIo();
10912 
10913       }
10914       throw new IllegalStateException();
10915     }
10916 
10917     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10918     public boolean isSet(_Fields field) {
10919       if (field == null) {
10920         throw new IllegalArgumentException();
10921       }
10922 
10923       switch (field) {
10924       case SUCCESS:
10925         return isSetSuccess();
10926       case IO:
10927         return isSetIo();
10928       }
10929       throw new IllegalStateException();
10930     }
10931 
10932     @Override
10933     public boolean equals(Object that) {
10934       if (that == null)
10935         return false;
10936       if (that instanceof getTableRegions_result)
10937         return this.equals((getTableRegions_result)that);
10938       return false;
10939     }
10940 
10941     public boolean equals(getTableRegions_result that) {
10942       if (that == null)
10943         return false;
10944 
10945       boolean this_present_success = true && this.isSetSuccess();
10946       boolean that_present_success = true && that.isSetSuccess();
10947       if (this_present_success || that_present_success) {
10948         if (!(this_present_success && that_present_success))
10949           return false;
10950         if (!this.success.equals(that.success))
10951           return false;
10952       }
10953 
10954       boolean this_present_io = true && this.isSetIo();
10955       boolean that_present_io = true && that.isSetIo();
10956       if (this_present_io || that_present_io) {
10957         if (!(this_present_io && that_present_io))
10958           return false;
10959         if (!this.io.equals(that.io))
10960           return false;
10961       }
10962 
10963       return true;
10964     }
10965 
10966     @Override
10967     public int hashCode() {
10968       HashCodeBuilder builder = new HashCodeBuilder();
10969 
10970       boolean present_success = true && (isSetSuccess());
10971       builder.append(present_success);
10972       if (present_success)
10973         builder.append(success);
10974 
10975       boolean present_io = true && (isSetIo());
10976       builder.append(present_io);
10977       if (present_io)
10978         builder.append(io);
10979 
10980       return builder.toHashCode();
10981     }
10982 
10983     public int compareTo(getTableRegions_result other) {
10984       if (!getClass().equals(other.getClass())) {
10985         return getClass().getName().compareTo(other.getClass().getName());
10986       }
10987 
10988       int lastComparison = 0;
10989       getTableRegions_result typedOther = (getTableRegions_result)other;
10990 
10991       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10992       if (lastComparison != 0) {
10993         return lastComparison;
10994       }
10995       if (isSetSuccess()) {
10996         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10997         if (lastComparison != 0) {
10998           return lastComparison;
10999         }
11000       }
11001       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
11002       if (lastComparison != 0) {
11003         return lastComparison;
11004       }
11005       if (isSetIo()) {
11006         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
11007         if (lastComparison != 0) {
11008           return lastComparison;
11009         }
11010       }
11011       return 0;
11012     }
11013 
11014     public _Fields fieldForId(int fieldId) {
11015       return _Fields.findByThriftId(fieldId);
11016     }
11017 
11018     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11019       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11020     }
11021 
11022     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11023       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11024       }
11025 
11026     @Override
11027     public String toString() {
11028       StringBuilder sb = new StringBuilder("getTableRegions_result(");
11029       boolean first = true;
11030 
11031       sb.append("success:");
11032       if (this.success == null) {
11033         sb.append("null");
11034       } else {
11035         sb.append(this.success);
11036       }
11037       first = false;
11038       if (!first) sb.append(", ");
11039       sb.append("io:");
11040       if (this.io == null) {
11041         sb.append("null");
11042       } else {
11043         sb.append(this.io);
11044       }
11045       first = false;
11046       sb.append(")");
11047       return sb.toString();
11048     }
11049 
11050     public void validate() throws org.apache.thrift.TException {
11051       // check for required fields
11052       // check for sub-struct validity
11053     }
11054 
11055     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11056       try {
11057         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11058       } catch (org.apache.thrift.TException te) {
11059         throw new java.io.IOException(te);
11060       }
11061     }
11062 
11063     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11064       try {
11065         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11066       } catch (org.apache.thrift.TException te) {
11067         throw new java.io.IOException(te);
11068       }
11069     }
11070 
11071     private static class getTableRegions_resultStandardSchemeFactory implements SchemeFactory {
11072       public getTableRegions_resultStandardScheme getScheme() {
11073         return new getTableRegions_resultStandardScheme();
11074       }
11075     }
11076 
11077     private static class getTableRegions_resultStandardScheme extends StandardScheme<getTableRegions_result> {
11078 
11079       public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_result struct) throws org.apache.thrift.TException {
11080         org.apache.thrift.protocol.TField schemeField;
11081         iprot.readStructBegin();
11082         while (true)
11083         {
11084           schemeField = iprot.readFieldBegin();
11085           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11086             break;
11087           }
11088           switch (schemeField.id) {
11089             case 0: // SUCCESS
11090               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
11091                 {
11092                   org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
11093                   struct.success = new ArrayList<TRegionInfo>(_list68.size);
11094                   for (int _i69 = 0; _i69 < _list68.size; ++_i69)
11095                   {
11096                     TRegionInfo _elem70; // required
11097                     _elem70 = new TRegionInfo();
11098                     _elem70.read(iprot);
11099                     struct.success.add(_elem70);
11100                   }
11101                   iprot.readListEnd();
11102                 }
11103                 struct.setSuccessIsSet(true);
11104               } else { 
11105                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11106               }
11107               break;
11108             case 1: // IO
11109               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11110                 struct.io = new IOError();
11111                 struct.io.read(iprot);
11112                 struct.setIoIsSet(true);
11113               } else { 
11114                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11115               }
11116               break;
11117             default:
11118               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11119           }
11120           iprot.readFieldEnd();
11121         }
11122         iprot.readStructEnd();
11123 
11124         // check for required fields of primitive type, which can't be checked in the validate method
11125         struct.validate();
11126       }
11127 
11128       public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_result struct) throws org.apache.thrift.TException {
11129         struct.validate();
11130 
11131         oprot.writeStructBegin(STRUCT_DESC);
11132         if (struct.success != null) {
11133           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11134           {
11135             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
11136             for (TRegionInfo _iter71 : struct.success)
11137             {
11138               _iter71.write(oprot);
11139             }
11140             oprot.writeListEnd();
11141           }
11142           oprot.writeFieldEnd();
11143         }
11144         if (struct.io != null) {
11145           oprot.writeFieldBegin(IO_FIELD_DESC);
11146           struct.io.write(oprot);
11147           oprot.writeFieldEnd();
11148         }
11149         oprot.writeFieldStop();
11150         oprot.writeStructEnd();
11151       }
11152 
11153     }
11154 
11155     private static class getTableRegions_resultTupleSchemeFactory implements SchemeFactory {
11156       public getTableRegions_resultTupleScheme getScheme() {
11157         return new getTableRegions_resultTupleScheme();
11158       }
11159     }
11160 
11161     private static class getTableRegions_resultTupleScheme extends TupleScheme<getTableRegions_result> {
11162 
11163       @Override
11164       public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException {
11165         TTupleProtocol oprot = (TTupleProtocol) prot;
11166         BitSet optionals = new BitSet();
11167         if (struct.isSetSuccess()) {
11168           optionals.set(0);
11169         }
11170         if (struct.isSetIo()) {
11171           optionals.set(1);
11172         }
11173         oprot.writeBitSet(optionals, 2);
11174         if (struct.isSetSuccess()) {
11175           {
11176             oprot.writeI32(struct.success.size());
11177             for (TRegionInfo _iter72 : struct.success)
11178             {
11179               _iter72.write(oprot);
11180             }
11181           }
11182         }
11183         if (struct.isSetIo()) {
11184           struct.io.write(oprot);
11185         }
11186       }
11187 
11188       @Override
11189       public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException {
11190         TTupleProtocol iprot = (TTupleProtocol) prot;
11191         BitSet incoming = iprot.readBitSet(2);
11192         if (incoming.get(0)) {
11193           {
11194             org.apache.thrift.protocol.TList _list73 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
11195             struct.success = new ArrayList<TRegionInfo>(_list73.size);
11196             for (int _i74 = 0; _i74 < _list73.size; ++_i74)
11197             {
11198               TRegionInfo _elem75; // required
11199               _elem75 = new TRegionInfo();
11200               _elem75.read(iprot);
11201               struct.success.add(_elem75);
11202             }
11203           }
11204           struct.setSuccessIsSet(true);
11205         }
11206         if (incoming.get(1)) {
11207           struct.io = new IOError();
11208           struct.io.read(iprot);
11209           struct.setIoIsSet(true);
11210         }
11211       }
11212     }
11213 
11214   }
11215 
11216   public static class createTable_args implements org.apache.thrift.TBase<createTable_args, createTable_args._Fields>, java.io.Serializable, Cloneable   {
11217     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_args");
11218 
11219     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
11220     private static final org.apache.thrift.protocol.TField COLUMN_FAMILIES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamilies", org.apache.thrift.protocol.TType.LIST, (short)2);
11221 
11222     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11223     static {
11224       schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory());
11225       schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory());
11226     }
11227 
11228     /**
11229      * name of table to create
11230      */
11231     public ByteBuffer tableName; // required
11232     /**
11233      * list of column family descriptors
11234      */
11235     public List<ColumnDescriptor> columnFamilies; // required
11236 
11237     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11238     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11239       /**
11240        * name of table to create
11241        */
11242       TABLE_NAME((short)1, "tableName"),
11243       /**
11244        * list of column family descriptors
11245        */
11246       COLUMN_FAMILIES((short)2, "columnFamilies");
11247 
11248       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11249 
11250       static {
11251         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11252           byName.put(field.getFieldName(), field);
11253         }
11254       }
11255 
11256       /**
11257        * Find the _Fields constant that matches fieldId, or null if its not found.
11258        */
11259       public static _Fields findByThriftId(int fieldId) {
11260         switch(fieldId) {
11261           case 1: // TABLE_NAME
11262             return TABLE_NAME;
11263           case 2: // COLUMN_FAMILIES
11264             return COLUMN_FAMILIES;
11265           default:
11266             return null;
11267         }
11268       }
11269 
11270       /**
11271        * Find the _Fields constant that matches fieldId, throwing an exception
11272        * if it is not found.
11273        */
11274       public static _Fields findByThriftIdOrThrow(int fieldId) {
11275         _Fields fields = findByThriftId(fieldId);
11276         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11277         return fields;
11278       }
11279 
11280       /**
11281        * Find the _Fields constant that matches name, or null if its not found.
11282        */
11283       public static _Fields findByName(String name) {
11284         return byName.get(name);
11285       }
11286 
11287       private final short _thriftId;
11288       private final String _fieldName;
11289 
11290       _Fields(short thriftId, String fieldName) {
11291         _thriftId = thriftId;
11292         _fieldName = fieldName;
11293       }
11294 
11295       public short getThriftFieldId() {
11296         return _thriftId;
11297       }
11298 
11299       public String getFieldName() {
11300         return _fieldName;
11301       }
11302     }
11303 
11304     // isset id assignments
11305     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11306     static {
11307       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11308       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11309           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
11310       tmpMap.put(_Fields.COLUMN_FAMILIES, new org.apache.thrift.meta_data.FieldMetaData("columnFamilies", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11311           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11312               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class))));
11313       metaDataMap = Collections.unmodifiableMap(tmpMap);
11314       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap);
11315     }
11316 
11317     public createTable_args() {
11318     }
11319 
11320     public createTable_args(
11321       ByteBuffer tableName,
11322       List<ColumnDescriptor> columnFamilies)
11323     {
11324       this();
11325       this.tableName = tableName;
11326       this.columnFamilies = columnFamilies;
11327     }
11328 
11329     /**
11330      * Performs a deep copy on <i>other</i>.
11331      */
11332     public createTable_args(createTable_args other) {
11333       if (other.isSetTableName()) {
11334         this.tableName = other.tableName;
11335       }
11336       if (other.isSetColumnFamilies()) {
11337         List<ColumnDescriptor> __this__columnFamilies = new ArrayList<ColumnDescriptor>();
11338         for (ColumnDescriptor other_element : other.columnFamilies) {
11339           __this__columnFamilies.add(new ColumnDescriptor(other_element));
11340         }
11341         this.columnFamilies = __this__columnFamilies;
11342       }
11343     }
11344 
11345     public createTable_args deepCopy() {
11346       return new createTable_args(this);
11347     }
11348 
11349     @Override
11350     public void clear() {
11351       this.tableName = null;
11352       this.columnFamilies = null;
11353     }
11354 
11355     /**
11356      * name of table to create
11357      */
11358     public byte[] getTableName() {
11359       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
11360       return tableName == null ? null : tableName.array();
11361     }
11362 
11363     public ByteBuffer bufferForTableName() {
11364       return tableName;
11365     }
11366 
11367     /**
11368      * name of table to create
11369      */
11370     public createTable_args setTableName(byte[] tableName) {
11371       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
11372       return this;
11373     }
11374 
11375     public createTable_args setTableName(ByteBuffer tableName) {
11376       this.tableName = tableName;
11377       return this;
11378     }
11379 
11380     public void unsetTableName() {
11381       this.tableName = null;
11382     }
11383 
11384     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
11385     public boolean isSetTableName() {
11386       return this.tableName != null;
11387     }
11388 
11389     public void setTableNameIsSet(boolean value) {
11390       if (!value) {
11391         this.tableName = null;
11392       }
11393     }
11394 
11395     public int getColumnFamiliesSize() {
11396       return (this.columnFamilies == null) ? 0 : this.columnFamilies.size();
11397     }
11398 
11399     public java.util.Iterator<ColumnDescriptor> getColumnFamiliesIterator() {
11400       return (this.columnFamilies == null) ? null : this.columnFamilies.iterator();
11401     }
11402 
11403     public void addToColumnFamilies(ColumnDescriptor elem) {
11404       if (this.columnFamilies == null) {
11405         this.columnFamilies = new ArrayList<ColumnDescriptor>();
11406       }
11407       this.columnFamilies.add(elem);
11408     }
11409 
11410     /**
11411      * list of column family descriptors
11412      */
11413     public List<ColumnDescriptor> getColumnFamilies() {
11414       return this.columnFamilies;
11415     }
11416 
11417     /**
11418      * list of column family descriptors
11419      */
11420     public createTable_args setColumnFamilies(List<ColumnDescriptor> columnFamilies) {
11421       this.columnFamilies = columnFamilies;
11422       return this;
11423     }
11424 
11425     public void unsetColumnFamilies() {
11426       this.columnFamilies = null;
11427     }
11428 
11429     /** Returns true if field columnFamilies is set (has been assigned a value) and false otherwise */
11430     public boolean isSetColumnFamilies() {
11431       return this.columnFamilies != null;
11432     }
11433 
11434     public void setColumnFamiliesIsSet(boolean value) {
11435       if (!value) {
11436         this.columnFamilies = null;
11437       }
11438     }
11439 
11440     public void setFieldValue(_Fields field, Object value) {
11441       switch (field) {
11442       case TABLE_NAME:
11443         if (value == null) {
11444           unsetTableName();
11445         } else {
11446           setTableName((ByteBuffer)value);
11447         }
11448         break;
11449 
11450       case COLUMN_FAMILIES:
11451         if (value == null) {
11452           unsetColumnFamilies();
11453         } else {
11454           setColumnFamilies((List<ColumnDescriptor>)value);
11455         }
11456         break;
11457 
11458       }
11459     }
11460 
11461     public Object getFieldValue(_Fields field) {
11462       switch (field) {
11463       case TABLE_NAME:
11464         return getTableName();
11465 
11466       case COLUMN_FAMILIES:
11467         return getColumnFamilies();
11468 
11469       }
11470       throw new IllegalStateException();
11471     }
11472 
11473     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11474     public boolean isSet(_Fields field) {
11475       if (field == null) {
11476         throw new IllegalArgumentException();
11477       }
11478 
11479       switch (field) {
11480       case TABLE_NAME:
11481         return isSetTableName();
11482       case COLUMN_FAMILIES:
11483         return isSetColumnFamilies();
11484       }
11485       throw new IllegalStateException();
11486     }
11487 
11488     @Override
11489     public boolean equals(Object that) {
11490       if (that == null)
11491         return false;
11492       if (that instanceof createTable_args)
11493         return this.equals((createTable_args)that);
11494       return false;
11495     }
11496 
11497     public boolean equals(createTable_args that) {
11498       if (that == null)
11499         return false;
11500 
11501       boolean this_present_tableName = true && this.isSetTableName();
11502       boolean that_present_tableName = true && that.isSetTableName();
11503       if (this_present_tableName || that_present_tableName) {
11504         if (!(this_present_tableName && that_present_tableName))
11505           return false;
11506         if (!this.tableName.equals(that.tableName))
11507           return false;
11508       }
11509 
11510       boolean this_present_columnFamilies = true && this.isSetColumnFamilies();
11511       boolean that_present_columnFamilies = true && that.isSetColumnFamilies();
11512       if (this_present_columnFamilies || that_present_columnFamilies) {
11513         if (!(this_present_columnFamilies && that_present_columnFamilies))
11514           return false;
11515         if (!this.columnFamilies.equals(that.columnFamilies))
11516           return false;
11517       }
11518 
11519       return true;
11520     }
11521 
11522     @Override
11523     public int hashCode() {
11524       HashCodeBuilder builder = new HashCodeBuilder();
11525 
11526       boolean present_tableName = true && (isSetTableName());
11527       builder.append(present_tableName);
11528       if (present_tableName)
11529         builder.append(tableName);
11530 
11531       boolean present_columnFamilies = true && (isSetColumnFamilies());
11532       builder.append(present_columnFamilies);
11533       if (present_columnFamilies)
11534         builder.append(columnFamilies);
11535 
11536       return builder.toHashCode();
11537     }
11538 
11539     public int compareTo(createTable_args other) {
11540       if (!getClass().equals(other.getClass())) {
11541         return getClass().getName().compareTo(other.getClass().getName());
11542       }
11543 
11544       int lastComparison = 0;
11545       createTable_args typedOther = (createTable_args)other;
11546 
11547       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
11548       if (lastComparison != 0) {
11549         return lastComparison;
11550       }
11551       if (isSetTableName()) {
11552         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
11553         if (lastComparison != 0) {
11554           return lastComparison;
11555         }
11556       }
11557       lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(typedOther.isSetColumnFamilies());
11558       if (lastComparison != 0) {
11559         return lastComparison;
11560       }
11561       if (isSetColumnFamilies()) {
11562         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, typedOther.columnFamilies);
11563         if (lastComparison != 0) {
11564           return lastComparison;
11565         }
11566       }
11567       return 0;
11568     }
11569 
11570     public _Fields fieldForId(int fieldId) {
11571       return _Fields.findByThriftId(fieldId);
11572     }
11573 
11574     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11575       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11576     }
11577 
11578     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11579       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11580     }
11581 
11582     @Override
11583     public String toString() {
11584       StringBuilder sb = new StringBuilder("createTable_args(");
11585       boolean first = true;
11586 
11587       sb.append("tableName:");
11588       if (this.tableName == null) {
11589         sb.append("null");
11590       } else {
11591         sb.append(this.tableName);
11592       }
11593       first = false;
11594       if (!first) sb.append(", ");
11595       sb.append("columnFamilies:");
11596       if (this.columnFamilies == null) {
11597         sb.append("null");
11598       } else {
11599         sb.append(this.columnFamilies);
11600       }
11601       first = false;
11602       sb.append(")");
11603       return sb.toString();
11604     }
11605 
11606     public void validate() throws org.apache.thrift.TException {
11607       // check for required fields
11608       // check for sub-struct validity
11609     }
11610 
11611     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11612       try {
11613         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11614       } catch (org.apache.thrift.TException te) {
11615         throw new java.io.IOException(te);
11616       }
11617     }
11618 
11619     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11620       try {
11621         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11622       } catch (org.apache.thrift.TException te) {
11623         throw new java.io.IOException(te);
11624       }
11625     }
11626 
11627     private static class createTable_argsStandardSchemeFactory implements SchemeFactory {
11628       public createTable_argsStandardScheme getScheme() {
11629         return new createTable_argsStandardScheme();
11630       }
11631     }
11632 
11633     private static class createTable_argsStandardScheme extends StandardScheme<createTable_args> {
11634 
11635       public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_args struct) throws org.apache.thrift.TException {
11636         org.apache.thrift.protocol.TField schemeField;
11637         iprot.readStructBegin();
11638         while (true)
11639         {
11640           schemeField = iprot.readFieldBegin();
11641           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11642             break;
11643           }
11644           switch (schemeField.id) {
11645             case 1: // TABLE_NAME
11646               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11647                 struct.tableName = iprot.readBinary();
11648                 struct.setTableNameIsSet(true);
11649               } else { 
11650                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11651               }
11652               break;
11653             case 2: // COLUMN_FAMILIES
11654               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
11655                 {
11656                   org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
11657                   struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list76.size);
11658                   for (int _i77 = 0; _i77 < _list76.size; ++_i77)
11659                   {
11660                     ColumnDescriptor _elem78; // required
11661                     _elem78 = new ColumnDescriptor();
11662                     _elem78.read(iprot);
11663                     struct.columnFamilies.add(_elem78);
11664                   }
11665                   iprot.readListEnd();
11666                 }
11667                 struct.setColumnFamiliesIsSet(true);
11668               } else { 
11669                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11670               }
11671               break;
11672             default:
11673               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11674           }
11675           iprot.readFieldEnd();
11676         }
11677         iprot.readStructEnd();
11678 
11679         // check for required fields of primitive type, which can't be checked in the validate method
11680         struct.validate();
11681       }
11682 
11683       public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_args struct) throws org.apache.thrift.TException {
11684         struct.validate();
11685 
11686         oprot.writeStructBegin(STRUCT_DESC);
11687         if (struct.tableName != null) {
11688           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
11689           oprot.writeBinary(struct.tableName);
11690           oprot.writeFieldEnd();
11691         }
11692         if (struct.columnFamilies != null) {
11693           oprot.writeFieldBegin(COLUMN_FAMILIES_FIELD_DESC);
11694           {
11695             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columnFamilies.size()));
11696             for (ColumnDescriptor _iter79 : struct.columnFamilies)
11697             {
11698               _iter79.write(oprot);
11699             }
11700             oprot.writeListEnd();
11701           }
11702           oprot.writeFieldEnd();
11703         }
11704         oprot.writeFieldStop();
11705         oprot.writeStructEnd();
11706       }
11707 
11708     }
11709 
11710     private static class createTable_argsTupleSchemeFactory implements SchemeFactory {
11711       public createTable_argsTupleScheme getScheme() {
11712         return new createTable_argsTupleScheme();
11713       }
11714     }
11715 
11716     private static class createTable_argsTupleScheme extends TupleScheme<createTable_args> {
11717 
11718       @Override
11719       public void write(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
11720         TTupleProtocol oprot = (TTupleProtocol) prot;
11721         BitSet optionals = new BitSet();
11722         if (struct.isSetTableName()) {
11723           optionals.set(0);
11724         }
11725         if (struct.isSetColumnFamilies()) {
11726           optionals.set(1);
11727         }
11728         oprot.writeBitSet(optionals, 2);
11729         if (struct.isSetTableName()) {
11730           oprot.writeBinary(struct.tableName);
11731         }
11732         if (struct.isSetColumnFamilies()) {
11733           {
11734             oprot.writeI32(struct.columnFamilies.size());
11735             for (ColumnDescriptor _iter80 : struct.columnFamilies)
11736             {
11737               _iter80.write(oprot);
11738             }
11739           }
11740         }
11741       }
11742 
11743       @Override
11744       public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
11745         TTupleProtocol iprot = (TTupleProtocol) prot;
11746         BitSet incoming = iprot.readBitSet(2);
11747         if (incoming.get(0)) {
11748           struct.tableName = iprot.readBinary();
11749           struct.setTableNameIsSet(true);
11750         }
11751         if (incoming.get(1)) {
11752           {
11753             org.apache.thrift.protocol.TList _list81 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
11754             struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list81.size);
11755             for (int _i82 = 0; _i82 < _list81.size; ++_i82)
11756             {
11757               ColumnDescriptor _elem83; // required
11758               _elem83 = new ColumnDescriptor();
11759               _elem83.read(iprot);
11760               struct.columnFamilies.add(_elem83);
11761             }
11762           }
11763           struct.setColumnFamiliesIsSet(true);
11764         }
11765       }
11766     }
11767 
11768   }
11769 
11770   public static class createTable_result implements org.apache.thrift.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable   {
11771     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_result");
11772 
11773     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11774     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
11775     private static final org.apache.thrift.protocol.TField EXIST_FIELD_DESC = new org.apache.thrift.protocol.TField("exist", org.apache.thrift.protocol.TType.STRUCT, (short)3);
11776 
11777     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11778     static {
11779       schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory());
11780       schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory());
11781     }
11782 
11783     public IOError io; // required
11784     public IllegalArgument ia; // required
11785     public AlreadyExists exist; // required
11786 
11787     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11788     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11789       IO((short)1, "io"),
11790       IA((short)2, "ia"),
11791       EXIST((short)3, "exist");
11792 
11793       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11794 
11795       static {
11796         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11797           byName.put(field.getFieldName(), field);
11798         }
11799       }
11800 
11801       /**
11802        * Find the _Fields constant that matches fieldId, or null if its not found.
11803        */
11804       public static _Fields findByThriftId(int fieldId) {
11805         switch(fieldId) {
11806           case 1: // IO
11807             return IO;
11808           case 2: // IA
11809             return IA;
11810           case 3: // EXIST
11811             return EXIST;
11812           default:
11813             return null;
11814         }
11815       }
11816 
11817       /**
11818        * Find the _Fields constant that matches fieldId, throwing an exception
11819        * if it is not found.
11820        */
11821       public static _Fields findByThriftIdOrThrow(int fieldId) {
11822         _Fields fields = findByThriftId(fieldId);
11823         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11824         return fields;
11825       }
11826 
11827       /**
11828        * Find the _Fields constant that matches name, or null if its not found.
11829        */
11830       public static _Fields findByName(String name) {
11831         return byName.get(name);
11832       }
11833 
11834       private final short _thriftId;
11835       private final String _fieldName;
11836 
11837       _Fields(short thriftId, String fieldName) {
11838         _thriftId = thriftId;
11839         _fieldName = fieldName;
11840       }
11841 
11842       public short getThriftFieldId() {
11843         return _thriftId;
11844       }
11845 
11846       public String getFieldName() {
11847         return _fieldName;
11848       }
11849     }
11850 
11851     // isset id assignments
11852     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11853     static {
11854       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11855       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11856           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11857       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11858           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11859       tmpMap.put(_Fields.EXIST, new org.apache.thrift.meta_data.FieldMetaData("exist", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11860           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11861       metaDataMap = Collections.unmodifiableMap(tmpMap);
11862       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap);
11863     }
11864 
11865     public createTable_result() {
11866     }
11867 
11868     public createTable_result(
11869       IOError io,
11870       IllegalArgument ia,
11871       AlreadyExists exist)
11872     {
11873       this();
11874       this.io = io;
11875       this.ia = ia;
11876       this.exist = exist;
11877     }
11878 
11879     /**
11880      * Performs a deep copy on <i>other</i>.
11881      */
11882     public createTable_result(createTable_result other) {
11883       if (other.isSetIo()) {
11884         this.io = new IOError(other.io);
11885       }
11886       if (other.isSetIa()) {
11887         this.ia = new IllegalArgument(other.ia);
11888       }
11889       if (other.isSetExist()) {
11890         this.exist = new AlreadyExists(other.exist);
11891       }
11892     }
11893 
11894     public createTable_result deepCopy() {
11895       return new createTable_result(this);
11896     }
11897 
11898     @Override
11899     public void clear() {
11900       this.io = null;
11901       this.ia = null;
11902       this.exist = null;
11903     }
11904 
11905     public IOError getIo() {
11906       return this.io;
11907     }
11908 
11909     public createTable_result setIo(IOError io) {
11910       this.io = io;
11911       return this;
11912     }
11913 
11914     public void unsetIo() {
11915       this.io = null;
11916     }
11917 
11918     /** Returns true if field io is set (has been assigned a value) and false otherwise */
11919     public boolean isSetIo() {
11920       return this.io != null;
11921     }
11922 
11923     public void setIoIsSet(boolean value) {
11924       if (!value) {
11925         this.io = null;
11926       }
11927     }
11928 
11929     public IllegalArgument getIa() {
11930       return this.ia;
11931     }
11932 
11933     public createTable_result setIa(IllegalArgument ia) {
11934       this.ia = ia;
11935       return this;
11936     }
11937 
11938     public void unsetIa() {
11939       this.ia = null;
11940     }
11941 
11942     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
11943     public boolean isSetIa() {
11944       return this.ia != null;
11945     }
11946 
11947     public void setIaIsSet(boolean value) {
11948       if (!value) {
11949         this.ia = null;
11950       }
11951     }
11952 
11953     public AlreadyExists getExist() {
11954       return this.exist;
11955     }
11956 
11957     public createTable_result setExist(AlreadyExists exist) {
11958       this.exist = exist;
11959       return this;
11960     }
11961 
11962     public void unsetExist() {
11963       this.exist = null;
11964     }
11965 
11966     /** Returns true if field exist is set (has been assigned a value) and false otherwise */
11967     public boolean isSetExist() {
11968       return this.exist != null;
11969     }
11970 
11971     public void setExistIsSet(boolean value) {
11972       if (!value) {
11973         this.exist = null;
11974       }
11975     }
11976 
11977     public void setFieldValue(_Fields field, Object value) {
11978       switch (field) {
11979       case IO:
11980         if (value == null) {
11981           unsetIo();
11982         } else {
11983           setIo((IOError)value);
11984         }
11985         break;
11986 
11987       case IA:
11988         if (value == null) {
11989           unsetIa();
11990         } else {
11991           setIa((IllegalArgument)value);
11992         }
11993         break;
11994 
11995       case EXIST:
11996         if (value == null) {
11997           unsetExist();
11998         } else {
11999           setExist((AlreadyExists)value);
12000         }
12001         break;
12002 
12003       }
12004     }
12005 
12006     public Object getFieldValue(_Fields field) {
12007       switch (field) {
12008       case IO:
12009         return getIo();
12010 
12011       case IA:
12012         return getIa();
12013 
12014       case EXIST:
12015         return getExist();
12016 
12017       }
12018       throw new IllegalStateException();
12019     }
12020 
12021     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12022     public boolean isSet(_Fields field) {
12023       if (field == null) {
12024         throw new IllegalArgumentException();
12025       }
12026 
12027       switch (field) {
12028       case IO:
12029         return isSetIo();
12030       case IA:
12031         return isSetIa();
12032       case EXIST:
12033         return isSetExist();
12034       }
12035       throw new IllegalStateException();
12036     }
12037 
12038     @Override
12039     public boolean equals(Object that) {
12040       if (that == null)
12041         return false;
12042       if (that instanceof createTable_result)
12043         return this.equals((createTable_result)that);
12044       return false;
12045     }
12046 
12047     public boolean equals(createTable_result that) {
12048       if (that == null)
12049         return false;
12050 
12051       boolean this_present_io = true && this.isSetIo();
12052       boolean that_present_io = true && that.isSetIo();
12053       if (this_present_io || that_present_io) {
12054         if (!(this_present_io && that_present_io))
12055           return false;
12056         if (!this.io.equals(that.io))
12057           return false;
12058       }
12059 
12060       boolean this_present_ia = true && this.isSetIa();
12061       boolean that_present_ia = true && that.isSetIa();
12062       if (this_present_ia || that_present_ia) {
12063         if (!(this_present_ia && that_present_ia))
12064           return false;
12065         if (!this.ia.equals(that.ia))
12066           return false;
12067       }
12068 
12069       boolean this_present_exist = true && this.isSetExist();
12070       boolean that_present_exist = true && that.isSetExist();
12071       if (this_present_exist || that_present_exist) {
12072         if (!(this_present_exist && that_present_exist))
12073           return false;
12074         if (!this.exist.equals(that.exist))
12075           return false;
12076       }
12077 
12078       return true;
12079     }
12080 
12081     @Override
12082     public int hashCode() {
12083       HashCodeBuilder builder = new HashCodeBuilder();
12084 
12085       boolean present_io = true && (isSetIo());
12086       builder.append(present_io);
12087       if (present_io)
12088         builder.append(io);
12089 
12090       boolean present_ia = true && (isSetIa());
12091       builder.append(present_ia);
12092       if (present_ia)
12093         builder.append(ia);
12094 
12095       boolean present_exist = true && (isSetExist());
12096       builder.append(present_exist);
12097       if (present_exist)
12098         builder.append(exist);
12099 
12100       return builder.toHashCode();
12101     }
12102 
12103     public int compareTo(createTable_result other) {
12104       if (!getClass().equals(other.getClass())) {
12105         return getClass().getName().compareTo(other.getClass().getName());
12106       }
12107 
12108       int lastComparison = 0;
12109       createTable_result typedOther = (createTable_result)other;
12110 
12111       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
12112       if (lastComparison != 0) {
12113         return lastComparison;
12114       }
12115       if (isSetIo()) {
12116         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
12117         if (lastComparison != 0) {
12118           return lastComparison;
12119         }
12120       }
12121       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
12122       if (lastComparison != 0) {
12123         return lastComparison;
12124       }
12125       if (isSetIa()) {
12126         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
12127         if (lastComparison != 0) {
12128           return lastComparison;
12129         }
12130       }
12131       lastComparison = Boolean.valueOf(isSetExist()).compareTo(typedOther.isSetExist());
12132       if (lastComparison != 0) {
12133         return lastComparison;
12134       }
12135       if (isSetExist()) {
12136         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exist, typedOther.exist);
12137         if (lastComparison != 0) {
12138           return lastComparison;
12139         }
12140       }
12141       return 0;
12142     }
12143 
12144     public _Fields fieldForId(int fieldId) {
12145       return _Fields.findByThriftId(fieldId);
12146     }
12147 
12148     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12149       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12150     }
12151 
12152     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12153       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12154       }
12155 
12156     @Override
12157     public String toString() {
12158       StringBuilder sb = new StringBuilder("createTable_result(");
12159       boolean first = true;
12160 
12161       sb.append("io:");
12162       if (this.io == null) {
12163         sb.append("null");
12164       } else {
12165         sb.append(this.io);
12166       }
12167       first = false;
12168       if (!first) sb.append(", ");
12169       sb.append("ia:");
12170       if (this.ia == null) {
12171         sb.append("null");
12172       } else {
12173         sb.append(this.ia);
12174       }
12175       first = false;
12176       if (!first) sb.append(", ");
12177       sb.append("exist:");
12178       if (this.exist == null) {
12179         sb.append("null");
12180       } else {
12181         sb.append(this.exist);
12182       }
12183       first = false;
12184       sb.append(")");
12185       return sb.toString();
12186     }
12187 
12188     public void validate() throws org.apache.thrift.TException {
12189       // check for required fields
12190       // check for sub-struct validity
12191     }
12192 
12193     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12194       try {
12195         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12196       } catch (org.apache.thrift.TException te) {
12197         throw new java.io.IOException(te);
12198       }
12199     }
12200 
12201     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12202       try {
12203         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12204       } catch (org.apache.thrift.TException te) {
12205         throw new java.io.IOException(te);
12206       }
12207     }
12208 
12209     private static class createTable_resultStandardSchemeFactory implements SchemeFactory {
12210       public createTable_resultStandardScheme getScheme() {
12211         return new createTable_resultStandardScheme();
12212       }
12213     }
12214 
12215     private static class createTable_resultStandardScheme extends StandardScheme<createTable_result> {
12216 
12217       public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct) throws org.apache.thrift.TException {
12218         org.apache.thrift.protocol.TField schemeField;
12219         iprot.readStructBegin();
12220         while (true)
12221         {
12222           schemeField = iprot.readFieldBegin();
12223           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12224             break;
12225           }
12226           switch (schemeField.id) {
12227             case 1: // IO
12228               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12229                 struct.io = new IOError();
12230                 struct.io.read(iprot);
12231                 struct.setIoIsSet(true);
12232               } else { 
12233                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12234               }
12235               break;
12236             case 2: // IA
12237               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12238                 struct.ia = new IllegalArgument();
12239                 struct.ia.read(iprot);
12240                 struct.setIaIsSet(true);
12241               } else { 
12242                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12243               }
12244               break;
12245             case 3: // EXIST
12246               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12247                 struct.exist = new AlreadyExists();
12248                 struct.exist.read(iprot);
12249                 struct.setExistIsSet(true);
12250               } else { 
12251                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12252               }
12253               break;
12254             default:
12255               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12256           }
12257           iprot.readFieldEnd();
12258         }
12259         iprot.readStructEnd();
12260 
12261         // check for required fields of primitive type, which can't be checked in the validate method
12262         struct.validate();
12263       }
12264 
12265       public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result struct) throws org.apache.thrift.TException {
12266         struct.validate();
12267 
12268         oprot.writeStructBegin(STRUCT_DESC);
12269         if (struct.io != null) {
12270           oprot.writeFieldBegin(IO_FIELD_DESC);
12271           struct.io.write(oprot);
12272           oprot.writeFieldEnd();
12273         }
12274         if (struct.ia != null) {
12275           oprot.writeFieldBegin(IA_FIELD_DESC);
12276           struct.ia.write(oprot);
12277           oprot.writeFieldEnd();
12278         }
12279         if (struct.exist != null) {
12280           oprot.writeFieldBegin(EXIST_FIELD_DESC);
12281           struct.exist.write(oprot);
12282           oprot.writeFieldEnd();
12283         }
12284         oprot.writeFieldStop();
12285         oprot.writeStructEnd();
12286       }
12287 
12288     }
12289 
12290     private static class createTable_resultTupleSchemeFactory implements SchemeFactory {
12291       public createTable_resultTupleScheme getScheme() {
12292         return new createTable_resultTupleScheme();
12293       }
12294     }
12295 
12296     private static class createTable_resultTupleScheme extends TupleScheme<createTable_result> {
12297 
12298       @Override
12299       public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException {
12300         TTupleProtocol oprot = (TTupleProtocol) prot;
12301         BitSet optionals = new BitSet();
12302         if (struct.isSetIo()) {
12303           optionals.set(0);
12304         }
12305         if (struct.isSetIa()) {
12306           optionals.set(1);
12307         }
12308         if (struct.isSetExist()) {
12309           optionals.set(2);
12310         }
12311         oprot.writeBitSet(optionals, 3);
12312         if (struct.isSetIo()) {
12313           struct.io.write(oprot);
12314         }
12315         if (struct.isSetIa()) {
12316           struct.ia.write(oprot);
12317         }
12318         if (struct.isSetExist()) {
12319           struct.exist.write(oprot);
12320         }
12321       }
12322 
12323       @Override
12324       public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException {
12325         TTupleProtocol iprot = (TTupleProtocol) prot;
12326         BitSet incoming = iprot.readBitSet(3);
12327         if (incoming.get(0)) {
12328           struct.io = new IOError();
12329           struct.io.read(iprot);
12330           struct.setIoIsSet(true);
12331         }
12332         if (incoming.get(1)) {
12333           struct.ia = new IllegalArgument();
12334           struct.ia.read(iprot);
12335           struct.setIaIsSet(true);
12336         }
12337         if (incoming.get(2)) {
12338           struct.exist = new AlreadyExists();
12339           struct.exist.read(iprot);
12340           struct.setExistIsSet(true);
12341         }
12342       }
12343     }
12344 
12345   }
12346 
12347   public static class deleteTable_args implements org.apache.thrift.TBase<deleteTable_args, deleteTable_args._Fields>, java.io.Serializable, Cloneable   {
12348     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_args");
12349 
12350     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
12351 
12352     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12353     static {
12354       schemes.put(StandardScheme.class, new deleteTable_argsStandardSchemeFactory());
12355       schemes.put(TupleScheme.class, new deleteTable_argsTupleSchemeFactory());
12356     }
12357 
12358     /**
12359      * name of table to delete
12360      */
12361     public ByteBuffer tableName; // required
12362 
12363     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12364     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12365       /**
12366        * name of table to delete
12367        */
12368       TABLE_NAME((short)1, "tableName");
12369 
12370       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12371 
12372       static {
12373         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12374           byName.put(field.getFieldName(), field);
12375         }
12376       }
12377 
12378       /**
12379        * Find the _Fields constant that matches fieldId, or null if its not found.
12380        */
12381       public static _Fields findByThriftId(int fieldId) {
12382         switch(fieldId) {
12383           case 1: // TABLE_NAME
12384             return TABLE_NAME;
12385           default:
12386             return null;
12387         }
12388       }
12389 
12390       /**
12391        * Find the _Fields constant that matches fieldId, throwing an exception
12392        * if it is not found.
12393        */
12394       public static _Fields findByThriftIdOrThrow(int fieldId) {
12395         _Fields fields = findByThriftId(fieldId);
12396         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12397         return fields;
12398       }
12399 
12400       /**
12401        * Find the _Fields constant that matches name, or null if its not found.
12402        */
12403       public static _Fields findByName(String name) {
12404         return byName.get(name);
12405       }
12406 
12407       private final short _thriftId;
12408       private final String _fieldName;
12409 
12410       _Fields(short thriftId, String fieldName) {
12411         _thriftId = thriftId;
12412         _fieldName = fieldName;
12413       }
12414 
12415       public short getThriftFieldId() {
12416         return _thriftId;
12417       }
12418 
12419       public String getFieldName() {
12420         return _fieldName;
12421       }
12422     }
12423 
12424     // isset id assignments
12425     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12426     static {
12427       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12428       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12429           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
12430       metaDataMap = Collections.unmodifiableMap(tmpMap);
12431       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap);
12432     }
12433 
12434     public deleteTable_args() {
12435     }
12436 
12437     public deleteTable_args(
12438       ByteBuffer tableName)
12439     {
12440       this();
12441       this.tableName = tableName;
12442     }
12443 
12444     /**
12445      * Performs a deep copy on <i>other</i>.
12446      */
12447     public deleteTable_args(deleteTable_args other) {
12448       if (other.isSetTableName()) {
12449         this.tableName = other.tableName;
12450       }
12451     }
12452 
12453     public deleteTable_args deepCopy() {
12454       return new deleteTable_args(this);
12455     }
12456 
12457     @Override
12458     public void clear() {
12459       this.tableName = null;
12460     }
12461 
12462     /**
12463      * name of table to delete
12464      */
12465     public byte[] getTableName() {
12466       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
12467       return tableName == null ? null : tableName.array();
12468     }
12469 
12470     public ByteBuffer bufferForTableName() {
12471       return tableName;
12472     }
12473 
12474     /**
12475      * name of table to delete
12476      */
12477     public deleteTable_args setTableName(byte[] tableName) {
12478       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
12479       return this;
12480     }
12481 
12482     public deleteTable_args setTableName(ByteBuffer tableName) {
12483       this.tableName = tableName;
12484       return this;
12485     }
12486 
12487     public void unsetTableName() {
12488       this.tableName = null;
12489     }
12490 
12491     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
12492     public boolean isSetTableName() {
12493       return this.tableName != null;
12494     }
12495 
12496     public void setTableNameIsSet(boolean value) {
12497       if (!value) {
12498         this.tableName = null;
12499       }
12500     }
12501 
12502     public void setFieldValue(_Fields field, Object value) {
12503       switch (field) {
12504       case TABLE_NAME:
12505         if (value == null) {
12506           unsetTableName();
12507         } else {
12508           setTableName((ByteBuffer)value);
12509         }
12510         break;
12511 
12512       }
12513     }
12514 
12515     public Object getFieldValue(_Fields field) {
12516       switch (field) {
12517       case TABLE_NAME:
12518         return getTableName();
12519 
12520       }
12521       throw new IllegalStateException();
12522     }
12523 
12524     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12525     public boolean isSet(_Fields field) {
12526       if (field == null) {
12527         throw new IllegalArgumentException();
12528       }
12529 
12530       switch (field) {
12531       case TABLE_NAME:
12532         return isSetTableName();
12533       }
12534       throw new IllegalStateException();
12535     }
12536 
12537     @Override
12538     public boolean equals(Object that) {
12539       if (that == null)
12540         return false;
12541       if (that instanceof deleteTable_args)
12542         return this.equals((deleteTable_args)that);
12543       return false;
12544     }
12545 
12546     public boolean equals(deleteTable_args that) {
12547       if (that == null)
12548         return false;
12549 
12550       boolean this_present_tableName = true && this.isSetTableName();
12551       boolean that_present_tableName = true && that.isSetTableName();
12552       if (this_present_tableName || that_present_tableName) {
12553         if (!(this_present_tableName && that_present_tableName))
12554           return false;
12555         if (!this.tableName.equals(that.tableName))
12556           return false;
12557       }
12558 
12559       return true;
12560     }
12561 
12562     @Override
12563     public int hashCode() {
12564       HashCodeBuilder builder = new HashCodeBuilder();
12565 
12566       boolean present_tableName = true && (isSetTableName());
12567       builder.append(present_tableName);
12568       if (present_tableName)
12569         builder.append(tableName);
12570 
12571       return builder.toHashCode();
12572     }
12573 
12574     public int compareTo(deleteTable_args other) {
12575       if (!getClass().equals(other.getClass())) {
12576         return getClass().getName().compareTo(other.getClass().getName());
12577       }
12578 
12579       int lastComparison = 0;
12580       deleteTable_args typedOther = (deleteTable_args)other;
12581 
12582       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
12583       if (lastComparison != 0) {
12584         return lastComparison;
12585       }
12586       if (isSetTableName()) {
12587         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
12588         if (lastComparison != 0) {
12589           return lastComparison;
12590         }
12591       }
12592       return 0;
12593     }
12594 
12595     public _Fields fieldForId(int fieldId) {
12596       return _Fields.findByThriftId(fieldId);
12597     }
12598 
12599     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12600       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12601     }
12602 
12603     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12604       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12605     }
12606 
12607     @Override
12608     public String toString() {
12609       StringBuilder sb = new StringBuilder("deleteTable_args(");
12610       boolean first = true;
12611 
12612       sb.append("tableName:");
12613       if (this.tableName == null) {
12614         sb.append("null");
12615       } else {
12616         sb.append(this.tableName);
12617       }
12618       first = false;
12619       sb.append(")");
12620       return sb.toString();
12621     }
12622 
12623     public void validate() throws org.apache.thrift.TException {
12624       // check for required fields
12625       // check for sub-struct validity
12626     }
12627 
12628     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12629       try {
12630         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12631       } catch (org.apache.thrift.TException te) {
12632         throw new java.io.IOException(te);
12633       }
12634     }
12635 
12636     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12637       try {
12638         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12639       } catch (org.apache.thrift.TException te) {
12640         throw new java.io.IOException(te);
12641       }
12642     }
12643 
12644     private static class deleteTable_argsStandardSchemeFactory implements SchemeFactory {
12645       public deleteTable_argsStandardScheme getScheme() {
12646         return new deleteTable_argsStandardScheme();
12647       }
12648     }
12649 
12650     private static class deleteTable_argsStandardScheme extends StandardScheme<deleteTable_args> {
12651 
12652       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args struct) throws org.apache.thrift.TException {
12653         org.apache.thrift.protocol.TField schemeField;
12654         iprot.readStructBegin();
12655         while (true)
12656         {
12657           schemeField = iprot.readFieldBegin();
12658           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12659             break;
12660           }
12661           switch (schemeField.id) {
12662             case 1: // TABLE_NAME
12663               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12664                 struct.tableName = iprot.readBinary();
12665                 struct.setTableNameIsSet(true);
12666               } else { 
12667                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12668               }
12669               break;
12670             default:
12671               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12672           }
12673           iprot.readFieldEnd();
12674         }
12675         iprot.readStructEnd();
12676 
12677         // check for required fields of primitive type, which can't be checked in the validate method
12678         struct.validate();
12679       }
12680 
12681       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args struct) throws org.apache.thrift.TException {
12682         struct.validate();
12683 
12684         oprot.writeStructBegin(STRUCT_DESC);
12685         if (struct.tableName != null) {
12686           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
12687           oprot.writeBinary(struct.tableName);
12688           oprot.writeFieldEnd();
12689         }
12690         oprot.writeFieldStop();
12691         oprot.writeStructEnd();
12692       }
12693 
12694     }
12695 
12696     private static class deleteTable_argsTupleSchemeFactory implements SchemeFactory {
12697       public deleteTable_argsTupleScheme getScheme() {
12698         return new deleteTable_argsTupleScheme();
12699       }
12700     }
12701 
12702     private static class deleteTable_argsTupleScheme extends TupleScheme<deleteTable_args> {
12703 
12704       @Override
12705       public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException {
12706         TTupleProtocol oprot = (TTupleProtocol) prot;
12707         BitSet optionals = new BitSet();
12708         if (struct.isSetTableName()) {
12709           optionals.set(0);
12710         }
12711         oprot.writeBitSet(optionals, 1);
12712         if (struct.isSetTableName()) {
12713           oprot.writeBinary(struct.tableName);
12714         }
12715       }
12716 
12717       @Override
12718       public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException {
12719         TTupleProtocol iprot = (TTupleProtocol) prot;
12720         BitSet incoming = iprot.readBitSet(1);
12721         if (incoming.get(0)) {
12722           struct.tableName = iprot.readBinary();
12723           struct.setTableNameIsSet(true);
12724         }
12725       }
12726     }
12727 
12728   }
12729 
12730   public static class deleteTable_result implements org.apache.thrift.TBase<deleteTable_result, deleteTable_result._Fields>, java.io.Serializable, Cloneable   {
12731     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_result");
12732 
12733     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12734 
12735     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12736     static {
12737       schemes.put(StandardScheme.class, new deleteTable_resultStandardSchemeFactory());
12738       schemes.put(TupleScheme.class, new deleteTable_resultTupleSchemeFactory());
12739     }
12740 
12741     public IOError io; // required
12742 
12743     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12744     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12745       IO((short)1, "io");
12746 
12747       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12748 
12749       static {
12750         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12751           byName.put(field.getFieldName(), field);
12752         }
12753       }
12754 
12755       /**
12756        * Find the _Fields constant that matches fieldId, or null if its not found.
12757        */
12758       public static _Fields findByThriftId(int fieldId) {
12759         switch(fieldId) {
12760           case 1: // IO
12761             return IO;
12762           default:
12763             return null;
12764         }
12765       }
12766 
12767       /**
12768        * Find the _Fields constant that matches fieldId, throwing an exception
12769        * if it is not found.
12770        */
12771       public static _Fields findByThriftIdOrThrow(int fieldId) {
12772         _Fields fields = findByThriftId(fieldId);
12773         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12774         return fields;
12775       }
12776 
12777       /**
12778        * Find the _Fields constant that matches name, or null if its not found.
12779        */
12780       public static _Fields findByName(String name) {
12781         return byName.get(name);
12782       }
12783 
12784       private final short _thriftId;
12785       private final String _fieldName;
12786 
12787       _Fields(short thriftId, String fieldName) {
12788         _thriftId = thriftId;
12789         _fieldName = fieldName;
12790       }
12791 
12792       public short getThriftFieldId() {
12793         return _thriftId;
12794       }
12795 
12796       public String getFieldName() {
12797         return _fieldName;
12798       }
12799     }
12800 
12801     // isset id assignments
12802     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12803     static {
12804       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12805       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12806           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12807       metaDataMap = Collections.unmodifiableMap(tmpMap);
12808       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap);
12809     }
12810 
12811     public deleteTable_result() {
12812     }
12813 
12814     public deleteTable_result(
12815       IOError io)
12816     {
12817       this();
12818       this.io = io;
12819     }
12820 
12821     /**
12822      * Performs a deep copy on <i>other</i>.
12823      */
12824     public deleteTable_result(deleteTable_result other) {
12825       if (other.isSetIo()) {
12826         this.io = new IOError(other.io);
12827       }
12828     }
12829 
12830     public deleteTable_result deepCopy() {
12831       return new deleteTable_result(this);
12832     }
12833 
12834     @Override
12835     public void clear() {
12836       this.io = null;
12837     }
12838 
12839     public IOError getIo() {
12840       return this.io;
12841     }
12842 
12843     public deleteTable_result setIo(IOError io) {
12844       this.io = io;
12845       return this;
12846     }
12847 
12848     public void unsetIo() {
12849       this.io = null;
12850     }
12851 
12852     /** Returns true if field io is set (has been assigned a value) and false otherwise */
12853     public boolean isSetIo() {
12854       return this.io != null;
12855     }
12856 
12857     public void setIoIsSet(boolean value) {
12858       if (!value) {
12859         this.io = null;
12860       }
12861     }
12862 
12863     public void setFieldValue(_Fields field, Object value) {
12864       switch (field) {
12865       case IO:
12866         if (value == null) {
12867           unsetIo();
12868         } else {
12869           setIo((IOError)value);
12870         }
12871         break;
12872 
12873       }
12874     }
12875 
12876     public Object getFieldValue(_Fields field) {
12877       switch (field) {
12878       case IO:
12879         return getIo();
12880 
12881       }
12882       throw new IllegalStateException();
12883     }
12884 
12885     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12886     public boolean isSet(_Fields field) {
12887       if (field == null) {
12888         throw new IllegalArgumentException();
12889       }
12890 
12891       switch (field) {
12892       case IO:
12893         return isSetIo();
12894       }
12895       throw new IllegalStateException();
12896     }
12897 
12898     @Override
12899     public boolean equals(Object that) {
12900       if (that == null)
12901         return false;
12902       if (that instanceof deleteTable_result)
12903         return this.equals((deleteTable_result)that);
12904       return false;
12905     }
12906 
12907     public boolean equals(deleteTable_result that) {
12908       if (that == null)
12909         return false;
12910 
12911       boolean this_present_io = true && this.isSetIo();
12912       boolean that_present_io = true && that.isSetIo();
12913       if (this_present_io || that_present_io) {
12914         if (!(this_present_io && that_present_io))
12915           return false;
12916         if (!this.io.equals(that.io))
12917           return false;
12918       }
12919 
12920       return true;
12921     }
12922 
12923     @Override
12924     public int hashCode() {
12925       HashCodeBuilder builder = new HashCodeBuilder();
12926 
12927       boolean present_io = true && (isSetIo());
12928       builder.append(present_io);
12929       if (present_io)
12930         builder.append(io);
12931 
12932       return builder.toHashCode();
12933     }
12934 
12935     public int compareTo(deleteTable_result other) {
12936       if (!getClass().equals(other.getClass())) {
12937         return getClass().getName().compareTo(other.getClass().getName());
12938       }
12939 
12940       int lastComparison = 0;
12941       deleteTable_result typedOther = (deleteTable_result)other;
12942 
12943       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
12944       if (lastComparison != 0) {
12945         return lastComparison;
12946       }
12947       if (isSetIo()) {
12948         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
12949         if (lastComparison != 0) {
12950           return lastComparison;
12951         }
12952       }
12953       return 0;
12954     }
12955 
12956     public _Fields fieldForId(int fieldId) {
12957       return _Fields.findByThriftId(fieldId);
12958     }
12959 
12960     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12961       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12962     }
12963 
12964     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12965       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12966       }
12967 
12968     @Override
12969     public String toString() {
12970       StringBuilder sb = new StringBuilder("deleteTable_result(");
12971       boolean first = true;
12972 
12973       sb.append("io:");
12974       if (this.io == null) {
12975         sb.append("null");
12976       } else {
12977         sb.append(this.io);
12978       }
12979       first = false;
12980       sb.append(")");
12981       return sb.toString();
12982     }
12983 
12984     public void validate() throws org.apache.thrift.TException {
12985       // check for required fields
12986       // check for sub-struct validity
12987     }
12988 
12989     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12990       try {
12991         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12992       } catch (org.apache.thrift.TException te) {
12993         throw new java.io.IOException(te);
12994       }
12995     }
12996 
12997     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12998       try {
12999         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13000       } catch (org.apache.thrift.TException te) {
13001         throw new java.io.IOException(te);
13002       }
13003     }
13004 
13005     private static class deleteTable_resultStandardSchemeFactory implements SchemeFactory {
13006       public deleteTable_resultStandardScheme getScheme() {
13007         return new deleteTable_resultStandardScheme();
13008       }
13009     }
13010 
13011     private static class deleteTable_resultStandardScheme extends StandardScheme<deleteTable_result> {
13012 
13013       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException {
13014         org.apache.thrift.protocol.TField schemeField;
13015         iprot.readStructBegin();
13016         while (true)
13017         {
13018           schemeField = iprot.readFieldBegin();
13019           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13020             break;
13021           }
13022           switch (schemeField.id) {
13023             case 1: // IO
13024               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13025                 struct.io = new IOError();
13026                 struct.io.read(iprot);
13027                 struct.setIoIsSet(true);
13028               } else { 
13029                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13030               }
13031               break;
13032             default:
13033               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13034           }
13035           iprot.readFieldEnd();
13036         }
13037         iprot.readStructEnd();
13038 
13039         // check for required fields of primitive type, which can't be checked in the validate method
13040         struct.validate();
13041       }
13042 
13043       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result struct) throws org.apache.thrift.TException {
13044         struct.validate();
13045 
13046         oprot.writeStructBegin(STRUCT_DESC);
13047         if (struct.io != null) {
13048           oprot.writeFieldBegin(IO_FIELD_DESC);
13049           struct.io.write(oprot);
13050           oprot.writeFieldEnd();
13051         }
13052         oprot.writeFieldStop();
13053         oprot.writeStructEnd();
13054       }
13055 
13056     }
13057 
13058     private static class deleteTable_resultTupleSchemeFactory implements SchemeFactory {
13059       public deleteTable_resultTupleScheme getScheme() {
13060         return new deleteTable_resultTupleScheme();
13061       }
13062     }
13063 
13064     private static class deleteTable_resultTupleScheme extends TupleScheme<deleteTable_result> {
13065 
13066       @Override
13067       public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException {
13068         TTupleProtocol oprot = (TTupleProtocol) prot;
13069         BitSet optionals = new BitSet();
13070         if (struct.isSetIo()) {
13071           optionals.set(0);
13072         }
13073         oprot.writeBitSet(optionals, 1);
13074         if (struct.isSetIo()) {
13075           struct.io.write(oprot);
13076         }
13077       }
13078 
13079       @Override
13080       public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException {
13081         TTupleProtocol iprot = (TTupleProtocol) prot;
13082         BitSet incoming = iprot.readBitSet(1);
13083         if (incoming.get(0)) {
13084           struct.io = new IOError();
13085           struct.io.read(iprot);
13086           struct.setIoIsSet(true);
13087         }
13088       }
13089     }
13090 
13091   }
13092 
13093   public static class get_args implements org.apache.thrift.TBase<get_args, get_args._Fields>, java.io.Serializable, Cloneable   {
13094     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args");
13095 
13096     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
13097     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
13098     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
13099     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
13100 
13101     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13102     static {
13103       schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory());
13104       schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory());
13105     }
13106 
13107     /**
13108      * name of table
13109      */
13110     public ByteBuffer tableName; // required
13111     /**
13112      * row key
13113      */
13114     public ByteBuffer row; // required
13115     /**
13116      * column name
13117      */
13118     public ByteBuffer column; // required
13119     /**
13120      * Get attributes
13121      */
13122     public Map<ByteBuffer,ByteBuffer> attributes; // required
13123 
13124     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13125     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13126       /**
13127        * name of table
13128        */
13129       TABLE_NAME((short)1, "tableName"),
13130       /**
13131        * row key
13132        */
13133       ROW((short)2, "row"),
13134       /**
13135        * column name
13136        */
13137       COLUMN((short)3, "column"),
13138       /**
13139        * Get attributes
13140        */
13141       ATTRIBUTES((short)4, "attributes");
13142 
13143       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13144 
13145       static {
13146         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13147           byName.put(field.getFieldName(), field);
13148         }
13149       }
13150 
13151       /**
13152        * Find the _Fields constant that matches fieldId, or null if its not found.
13153        */
13154       public static _Fields findByThriftId(int fieldId) {
13155         switch(fieldId) {
13156           case 1: // TABLE_NAME
13157             return TABLE_NAME;
13158           case 2: // ROW
13159             return ROW;
13160           case 3: // COLUMN
13161             return COLUMN;
13162           case 4: // ATTRIBUTES
13163             return ATTRIBUTES;
13164           default:
13165             return null;
13166         }
13167       }
13168 
13169       /**
13170        * Find the _Fields constant that matches fieldId, throwing an exception
13171        * if it is not found.
13172        */
13173       public static _Fields findByThriftIdOrThrow(int fieldId) {
13174         _Fields fields = findByThriftId(fieldId);
13175         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13176         return fields;
13177       }
13178 
13179       /**
13180        * Find the _Fields constant that matches name, or null if its not found.
13181        */
13182       public static _Fields findByName(String name) {
13183         return byName.get(name);
13184       }
13185 
13186       private final short _thriftId;
13187       private final String _fieldName;
13188 
13189       _Fields(short thriftId, String fieldName) {
13190         _thriftId = thriftId;
13191         _fieldName = fieldName;
13192       }
13193 
13194       public short getThriftFieldId() {
13195         return _thriftId;
13196       }
13197 
13198       public String getFieldName() {
13199         return _fieldName;
13200       }
13201     }
13202 
13203     // isset id assignments
13204     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13205     static {
13206       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13207       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13208           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
13209       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13210           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
13211       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13212           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
13213       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13214           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
13215               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
13216               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
13217       metaDataMap = Collections.unmodifiableMap(tmpMap);
13218       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap);
13219     }
13220 
13221     public get_args() {
13222     }
13223 
13224     public get_args(
13225       ByteBuffer tableName,
13226       ByteBuffer row,
13227       ByteBuffer column,
13228       Map<ByteBuffer,ByteBuffer> attributes)
13229     {
13230       this();
13231       this.tableName = tableName;
13232       this.row = row;
13233       this.column = column;
13234       this.attributes = attributes;
13235     }
13236 
13237     /**
13238      * Performs a deep copy on <i>other</i>.
13239      */
13240     public get_args(get_args other) {
13241       if (other.isSetTableName()) {
13242         this.tableName = other.tableName;
13243       }
13244       if (other.isSetRow()) {
13245         this.row = other.row;
13246       }
13247       if (other.isSetColumn()) {
13248         this.column = other.column;
13249       }
13250       if (other.isSetAttributes()) {
13251         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
13252         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
13253 
13254           ByteBuffer other_element_key = other_element.getKey();
13255           ByteBuffer other_element_value = other_element.getValue();
13256 
13257           ByteBuffer __this__attributes_copy_key = other_element_key;
13258 
13259           ByteBuffer __this__attributes_copy_value = other_element_value;
13260 
13261           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
13262         }
13263         this.attributes = __this__attributes;
13264       }
13265     }
13266 
13267     public get_args deepCopy() {
13268       return new get_args(this);
13269     }
13270 
13271     @Override
13272     public void clear() {
13273       this.tableName = null;
13274       this.row = null;
13275       this.column = null;
13276       this.attributes = null;
13277     }
13278 
13279     /**
13280      * name of table
13281      */
13282     public byte[] getTableName() {
13283       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
13284       return tableName == null ? null : tableName.array();
13285     }
13286 
13287     public ByteBuffer bufferForTableName() {
13288       return tableName;
13289     }
13290 
13291     /**
13292      * name of table
13293      */
13294     public get_args setTableName(byte[] tableName) {
13295       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
13296       return this;
13297     }
13298 
13299     public get_args setTableName(ByteBuffer tableName) {
13300       this.tableName = tableName;
13301       return this;
13302     }
13303 
13304     public void unsetTableName() {
13305       this.tableName = null;
13306     }
13307 
13308     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
13309     public boolean isSetTableName() {
13310       return this.tableName != null;
13311     }
13312 
13313     public void setTableNameIsSet(boolean value) {
13314       if (!value) {
13315         this.tableName = null;
13316       }
13317     }
13318 
13319     /**
13320      * row key
13321      */
13322     public byte[] getRow() {
13323       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
13324       return row == null ? null : row.array();
13325     }
13326 
13327     public ByteBuffer bufferForRow() {
13328       return row;
13329     }
13330 
13331     /**
13332      * row key
13333      */
13334     public get_args setRow(byte[] row) {
13335       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
13336       return this;
13337     }
13338 
13339     public get_args setRow(ByteBuffer row) {
13340       this.row = row;
13341       return this;
13342     }
13343 
13344     public void unsetRow() {
13345       this.row = null;
13346     }
13347 
13348     /** Returns true if field row is set (has been assigned a value) and false otherwise */
13349     public boolean isSetRow() {
13350       return this.row != null;
13351     }
13352 
13353     public void setRowIsSet(boolean value) {
13354       if (!value) {
13355         this.row = null;
13356       }
13357     }
13358 
13359     /**
13360      * column name
13361      */
13362     public byte[] getColumn() {
13363       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
13364       return column == null ? null : column.array();
13365     }
13366 
13367     public ByteBuffer bufferForColumn() {
13368       return column;
13369     }
13370 
13371     /**
13372      * column name
13373      */
13374     public get_args setColumn(byte[] column) {
13375       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
13376       return this;
13377     }
13378 
13379     public get_args setColumn(ByteBuffer column) {
13380       this.column = column;
13381       return this;
13382     }
13383 
13384     public void unsetColumn() {
13385       this.column = null;
13386     }
13387 
13388     /** Returns true if field column is set (has been assigned a value) and false otherwise */
13389     public boolean isSetColumn() {
13390       return this.column != null;
13391     }
13392 
13393     public void setColumnIsSet(boolean value) {
13394       if (!value) {
13395         this.column = null;
13396       }
13397     }
13398 
13399     public int getAttributesSize() {
13400       return (this.attributes == null) ? 0 : this.attributes.size();
13401     }
13402 
13403     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
13404       if (this.attributes == null) {
13405         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
13406       }
13407       this.attributes.put(key, val);
13408     }
13409 
13410     /**
13411      * Get attributes
13412      */
13413     public Map<ByteBuffer,ByteBuffer> getAttributes() {
13414       return this.attributes;
13415     }
13416 
13417     /**
13418      * Get attributes
13419      */
13420     public get_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
13421       this.attributes = attributes;
13422       return this;
13423     }
13424 
13425     public void unsetAttributes() {
13426       this.attributes = null;
13427     }
13428 
13429     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
13430     public boolean isSetAttributes() {
13431       return this.attributes != null;
13432     }
13433 
13434     public void setAttributesIsSet(boolean value) {
13435       if (!value) {
13436         this.attributes = null;
13437       }
13438     }
13439 
13440     public void setFieldValue(_Fields field, Object value) {
13441       switch (field) {
13442       case TABLE_NAME:
13443         if (value == null) {
13444           unsetTableName();
13445         } else {
13446           setTableName((ByteBuffer)value);
13447         }
13448         break;
13449 
13450       case ROW:
13451         if (value == null) {
13452           unsetRow();
13453         } else {
13454           setRow((ByteBuffer)value);
13455         }
13456         break;
13457 
13458       case COLUMN:
13459         if (value == null) {
13460           unsetColumn();
13461         } else {
13462           setColumn((ByteBuffer)value);
13463         }
13464         break;
13465 
13466       case ATTRIBUTES:
13467         if (value == null) {
13468           unsetAttributes();
13469         } else {
13470           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
13471         }
13472         break;
13473 
13474       }
13475     }
13476 
13477     public Object getFieldValue(_Fields field) {
13478       switch (field) {
13479       case TABLE_NAME:
13480         return getTableName();
13481 
13482       case ROW:
13483         return getRow();
13484 
13485       case COLUMN:
13486         return getColumn();
13487 
13488       case ATTRIBUTES:
13489         return getAttributes();
13490 
13491       }
13492       throw new IllegalStateException();
13493     }
13494 
13495     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13496     public boolean isSet(_Fields field) {
13497       if (field == null) {
13498         throw new IllegalArgumentException();
13499       }
13500 
13501       switch (field) {
13502       case TABLE_NAME:
13503         return isSetTableName();
13504       case ROW:
13505         return isSetRow();
13506       case COLUMN:
13507         return isSetColumn();
13508       case ATTRIBUTES:
13509         return isSetAttributes();
13510       }
13511       throw new IllegalStateException();
13512     }
13513 
13514     @Override
13515     public boolean equals(Object that) {
13516       if (that == null)
13517         return false;
13518       if (that instanceof get_args)
13519         return this.equals((get_args)that);
13520       return false;
13521     }
13522 
13523     public boolean equals(get_args that) {
13524       if (that == null)
13525         return false;
13526 
13527       boolean this_present_tableName = true && this.isSetTableName();
13528       boolean that_present_tableName = true && that.isSetTableName();
13529       if (this_present_tableName || that_present_tableName) {
13530         if (!(this_present_tableName && that_present_tableName))
13531           return false;
13532         if (!this.tableName.equals(that.tableName))
13533           return false;
13534       }
13535 
13536       boolean this_present_row = true && this.isSetRow();
13537       boolean that_present_row = true && that.isSetRow();
13538       if (this_present_row || that_present_row) {
13539         if (!(this_present_row && that_present_row))
13540           return false;
13541         if (!this.row.equals(that.row))
13542           return false;
13543       }
13544 
13545       boolean this_present_column = true && this.isSetColumn();
13546       boolean that_present_column = true && that.isSetColumn();
13547       if (this_present_column || that_present_column) {
13548         if (!(this_present_column && that_present_column))
13549           return false;
13550         if (!this.column.equals(that.column))
13551           return false;
13552       }
13553 
13554       boolean this_present_attributes = true && this.isSetAttributes();
13555       boolean that_present_attributes = true && that.isSetAttributes();
13556       if (this_present_attributes || that_present_attributes) {
13557         if (!(this_present_attributes && that_present_attributes))
13558           return false;
13559         if (!this.attributes.equals(that.attributes))
13560           return false;
13561       }
13562 
13563       return true;
13564     }
13565 
13566     @Override
13567     public int hashCode() {
13568       HashCodeBuilder builder = new HashCodeBuilder();
13569 
13570       boolean present_tableName = true && (isSetTableName());
13571       builder.append(present_tableName);
13572       if (present_tableName)
13573         builder.append(tableName);
13574 
13575       boolean present_row = true && (isSetRow());
13576       builder.append(present_row);
13577       if (present_row)
13578         builder.append(row);
13579 
13580       boolean present_column = true && (isSetColumn());
13581       builder.append(present_column);
13582       if (present_column)
13583         builder.append(column);
13584 
13585       boolean present_attributes = true && (isSetAttributes());
13586       builder.append(present_attributes);
13587       if (present_attributes)
13588         builder.append(attributes);
13589 
13590       return builder.toHashCode();
13591     }
13592 
13593     public int compareTo(get_args other) {
13594       if (!getClass().equals(other.getClass())) {
13595         return getClass().getName().compareTo(other.getClass().getName());
13596       }
13597 
13598       int lastComparison = 0;
13599       get_args typedOther = (get_args)other;
13600 
13601       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
13602       if (lastComparison != 0) {
13603         return lastComparison;
13604       }
13605       if (isSetTableName()) {
13606         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
13607         if (lastComparison != 0) {
13608           return lastComparison;
13609         }
13610       }
13611       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
13612       if (lastComparison != 0) {
13613         return lastComparison;
13614       }
13615       if (isSetRow()) {
13616         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
13617         if (lastComparison != 0) {
13618           return lastComparison;
13619         }
13620       }
13621       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
13622       if (lastComparison != 0) {
13623         return lastComparison;
13624       }
13625       if (isSetColumn()) {
13626         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
13627         if (lastComparison != 0) {
13628           return lastComparison;
13629         }
13630       }
13631       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
13632       if (lastComparison != 0) {
13633         return lastComparison;
13634       }
13635       if (isSetAttributes()) {
13636         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
13637         if (lastComparison != 0) {
13638           return lastComparison;
13639         }
13640       }
13641       return 0;
13642     }
13643 
13644     public _Fields fieldForId(int fieldId) {
13645       return _Fields.findByThriftId(fieldId);
13646     }
13647 
13648     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13649       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13650     }
13651 
13652     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13653       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13654     }
13655 
13656     @Override
13657     public String toString() {
13658       StringBuilder sb = new StringBuilder("get_args(");
13659       boolean first = true;
13660 
13661       sb.append("tableName:");
13662       if (this.tableName == null) {
13663         sb.append("null");
13664       } else {
13665         sb.append(this.tableName);
13666       }
13667       first = false;
13668       if (!first) sb.append(", ");
13669       sb.append("row:");
13670       if (this.row == null) {
13671         sb.append("null");
13672       } else {
13673         sb.append(this.row);
13674       }
13675       first = false;
13676       if (!first) sb.append(", ");
13677       sb.append("column:");
13678       if (this.column == null) {
13679         sb.append("null");
13680       } else {
13681         sb.append(this.column);
13682       }
13683       first = false;
13684       if (!first) sb.append(", ");
13685       sb.append("attributes:");
13686       if (this.attributes == null) {
13687         sb.append("null");
13688       } else {
13689         sb.append(this.attributes);
13690       }
13691       first = false;
13692       sb.append(")");
13693       return sb.toString();
13694     }
13695 
13696     public void validate() throws org.apache.thrift.TException {
13697       // check for required fields
13698       // check for sub-struct validity
13699     }
13700 
13701     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13702       try {
13703         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13704       } catch (org.apache.thrift.TException te) {
13705         throw new java.io.IOException(te);
13706       }
13707     }
13708 
13709     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13710       try {
13711         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13712       } catch (org.apache.thrift.TException te) {
13713         throw new java.io.IOException(te);
13714       }
13715     }
13716 
13717     private static class get_argsStandardSchemeFactory implements SchemeFactory {
13718       public get_argsStandardScheme getScheme() {
13719         return new get_argsStandardScheme();
13720       }
13721     }
13722 
13723     private static class get_argsStandardScheme extends StandardScheme<get_args> {
13724 
13725       public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException {
13726         org.apache.thrift.protocol.TField schemeField;
13727         iprot.readStructBegin();
13728         while (true)
13729         {
13730           schemeField = iprot.readFieldBegin();
13731           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13732             break;
13733           }
13734           switch (schemeField.id) {
13735             case 1: // TABLE_NAME
13736               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13737                 struct.tableName = iprot.readBinary();
13738                 struct.setTableNameIsSet(true);
13739               } else { 
13740                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13741               }
13742               break;
13743             case 2: // ROW
13744               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13745                 struct.row = iprot.readBinary();
13746                 struct.setRowIsSet(true);
13747               } else { 
13748                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13749               }
13750               break;
13751             case 3: // COLUMN
13752               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13753                 struct.column = iprot.readBinary();
13754                 struct.setColumnIsSet(true);
13755               } else { 
13756                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13757               }
13758               break;
13759             case 4: // ATTRIBUTES
13760               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
13761                 {
13762                   org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
13763                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map84.size);
13764                   for (int _i85 = 0; _i85 < _map84.size; ++_i85)
13765                   {
13766                     ByteBuffer _key86; // required
13767                     ByteBuffer _val87; // required
13768                     _key86 = iprot.readBinary();
13769                     _val87 = iprot.readBinary();
13770                     struct.attributes.put(_key86, _val87);
13771                   }
13772                   iprot.readMapEnd();
13773                 }
13774                 struct.setAttributesIsSet(true);
13775               } else { 
13776                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13777               }
13778               break;
13779             default:
13780               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13781           }
13782           iprot.readFieldEnd();
13783         }
13784         iprot.readStructEnd();
13785 
13786         // check for required fields of primitive type, which can't be checked in the validate method
13787         struct.validate();
13788       }
13789 
13790       public void write(org.apache.thrift.protocol.TProtocol oprot, get_args struct) throws org.apache.thrift.TException {
13791         struct.validate();
13792 
13793         oprot.writeStructBegin(STRUCT_DESC);
13794         if (struct.tableName != null) {
13795           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
13796           oprot.writeBinary(struct.tableName);
13797           oprot.writeFieldEnd();
13798         }
13799         if (struct.row != null) {
13800           oprot.writeFieldBegin(ROW_FIELD_DESC);
13801           oprot.writeBinary(struct.row);
13802           oprot.writeFieldEnd();
13803         }
13804         if (struct.column != null) {
13805           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
13806           oprot.writeBinary(struct.column);
13807           oprot.writeFieldEnd();
13808         }
13809         if (struct.attributes != null) {
13810           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
13811           {
13812             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
13813             for (Map.Entry<ByteBuffer, ByteBuffer> _iter88 : struct.attributes.entrySet())
13814             {
13815               oprot.writeBinary(_iter88.getKey());
13816               oprot.writeBinary(_iter88.getValue());
13817             }
13818             oprot.writeMapEnd();
13819           }
13820           oprot.writeFieldEnd();
13821         }
13822         oprot.writeFieldStop();
13823         oprot.writeStructEnd();
13824       }
13825 
13826     }
13827 
13828     private static class get_argsTupleSchemeFactory implements SchemeFactory {
13829       public get_argsTupleScheme getScheme() {
13830         return new get_argsTupleScheme();
13831       }
13832     }
13833 
13834     private static class get_argsTupleScheme extends TupleScheme<get_args> {
13835 
13836       @Override
13837       public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException {
13838         TTupleProtocol oprot = (TTupleProtocol) prot;
13839         BitSet optionals = new BitSet();
13840         if (struct.isSetTableName()) {
13841           optionals.set(0);
13842         }
13843         if (struct.isSetRow()) {
13844           optionals.set(1);
13845         }
13846         if (struct.isSetColumn()) {
13847           optionals.set(2);
13848         }
13849         if (struct.isSetAttributes()) {
13850           optionals.set(3);
13851         }
13852         oprot.writeBitSet(optionals, 4);
13853         if (struct.isSetTableName()) {
13854           oprot.writeBinary(struct.tableName);
13855         }
13856         if (struct.isSetRow()) {
13857           oprot.writeBinary(struct.row);
13858         }
13859         if (struct.isSetColumn()) {
13860           oprot.writeBinary(struct.column);
13861         }
13862         if (struct.isSetAttributes()) {
13863           {
13864             oprot.writeI32(struct.attributes.size());
13865             for (Map.Entry<ByteBuffer, ByteBuffer> _iter89 : struct.attributes.entrySet())
13866             {
13867               oprot.writeBinary(_iter89.getKey());
13868               oprot.writeBinary(_iter89.getValue());
13869             }
13870           }
13871         }
13872       }
13873 
13874       @Override
13875       public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException {
13876         TTupleProtocol iprot = (TTupleProtocol) prot;
13877         BitSet incoming = iprot.readBitSet(4);
13878         if (incoming.get(0)) {
13879           struct.tableName = iprot.readBinary();
13880           struct.setTableNameIsSet(true);
13881         }
13882         if (incoming.get(1)) {
13883           struct.row = iprot.readBinary();
13884           struct.setRowIsSet(true);
13885         }
13886         if (incoming.get(2)) {
13887           struct.column = iprot.readBinary();
13888           struct.setColumnIsSet(true);
13889         }
13890         if (incoming.get(3)) {
13891           {
13892             org.apache.thrift.protocol.TMap _map90 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
13893             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map90.size);
13894             for (int _i91 = 0; _i91 < _map90.size; ++_i91)
13895             {
13896               ByteBuffer _key92; // required
13897               ByteBuffer _val93; // required
13898               _key92 = iprot.readBinary();
13899               _val93 = iprot.readBinary();
13900               struct.attributes.put(_key92, _val93);
13901             }
13902           }
13903           struct.setAttributesIsSet(true);
13904         }
13905       }
13906     }
13907 
13908   }
13909 
13910   public static class get_result implements org.apache.thrift.TBase<get_result, get_result._Fields>, java.io.Serializable, Cloneable   {
13911     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result");
13912 
13913     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
13914     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13915 
13916     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13917     static {
13918       schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory());
13919       schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory());
13920     }
13921 
13922     public List<TCell> success; // required
13923     public IOError io; // required
13924 
13925     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13926     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13927       SUCCESS((short)0, "success"),
13928       IO((short)1, "io");
13929 
13930       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13931 
13932       static {
13933         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13934           byName.put(field.getFieldName(), field);
13935         }
13936       }
13937 
13938       /**
13939        * Find the _Fields constant that matches fieldId, or null if its not found.
13940        */
13941       public static _Fields findByThriftId(int fieldId) {
13942         switch(fieldId) {
13943           case 0: // SUCCESS
13944             return SUCCESS;
13945           case 1: // IO
13946             return IO;
13947           default:
13948             return null;
13949         }
13950       }
13951 
13952       /**
13953        * Find the _Fields constant that matches fieldId, throwing an exception
13954        * if it is not found.
13955        */
13956       public static _Fields findByThriftIdOrThrow(int fieldId) {
13957         _Fields fields = findByThriftId(fieldId);
13958         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13959         return fields;
13960       }
13961 
13962       /**
13963        * Find the _Fields constant that matches name, or null if its not found.
13964        */
13965       public static _Fields findByName(String name) {
13966         return byName.get(name);
13967       }
13968 
13969       private final short _thriftId;
13970       private final String _fieldName;
13971 
13972       _Fields(short thriftId, String fieldName) {
13973         _thriftId = thriftId;
13974         _fieldName = fieldName;
13975       }
13976 
13977       public short getThriftFieldId() {
13978         return _thriftId;
13979       }
13980 
13981       public String getFieldName() {
13982         return _fieldName;
13983       }
13984     }
13985 
13986     // isset id assignments
13987     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13988     static {
13989       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13990       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13991           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13992               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
13993       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13994           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13995       metaDataMap = Collections.unmodifiableMap(tmpMap);
13996       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap);
13997     }
13998 
13999     public get_result() {
14000     }
14001 
14002     public get_result(
14003       List<TCell> success,
14004       IOError io)
14005     {
14006       this();
14007       this.success = success;
14008       this.io = io;
14009     }
14010 
14011     /**
14012      * Performs a deep copy on <i>other</i>.
14013      */
14014     public get_result(get_result other) {
14015       if (other.isSetSuccess()) {
14016         List<TCell> __this__success = new ArrayList<TCell>();
14017         for (TCell other_element : other.success) {
14018           __this__success.add(new TCell(other_element));
14019         }
14020         this.success = __this__success;
14021       }
14022       if (other.isSetIo()) {
14023         this.io = new IOError(other.io);
14024       }
14025     }
14026 
14027     public get_result deepCopy() {
14028       return new get_result(this);
14029     }
14030 
14031     @Override
14032     public void clear() {
14033       this.success = null;
14034       this.io = null;
14035     }
14036 
14037     public int getSuccessSize() {
14038       return (this.success == null) ? 0 : this.success.size();
14039     }
14040 
14041     public java.util.Iterator<TCell> getSuccessIterator() {
14042       return (this.success == null) ? null : this.success.iterator();
14043     }
14044 
14045     public void addToSuccess(TCell elem) {
14046       if (this.success == null) {
14047         this.success = new ArrayList<TCell>();
14048       }
14049       this.success.add(elem);
14050     }
14051 
14052     public List<TCell> getSuccess() {
14053       return this.success;
14054     }
14055 
14056     public get_result setSuccess(List<TCell> success) {
14057       this.success = success;
14058       return this;
14059     }
14060 
14061     public void unsetSuccess() {
14062       this.success = null;
14063     }
14064 
14065     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14066     public boolean isSetSuccess() {
14067       return this.success != null;
14068     }
14069 
14070     public void setSuccessIsSet(boolean value) {
14071       if (!value) {
14072         this.success = null;
14073       }
14074     }
14075 
14076     public IOError getIo() {
14077       return this.io;
14078     }
14079 
14080     public get_result setIo(IOError io) {
14081       this.io = io;
14082       return this;
14083     }
14084 
14085     public void unsetIo() {
14086       this.io = null;
14087     }
14088 
14089     /** Returns true if field io is set (has been assigned a value) and false otherwise */
14090     public boolean isSetIo() {
14091       return this.io != null;
14092     }
14093 
14094     public void setIoIsSet(boolean value) {
14095       if (!value) {
14096         this.io = null;
14097       }
14098     }
14099 
14100     public void setFieldValue(_Fields field, Object value) {
14101       switch (field) {
14102       case SUCCESS:
14103         if (value == null) {
14104           unsetSuccess();
14105         } else {
14106           setSuccess((List<TCell>)value);
14107         }
14108         break;
14109 
14110       case IO:
14111         if (value == null) {
14112           unsetIo();
14113         } else {
14114           setIo((IOError)value);
14115         }
14116         break;
14117 
14118       }
14119     }
14120 
14121     public Object getFieldValue(_Fields field) {
14122       switch (field) {
14123       case SUCCESS:
14124         return getSuccess();
14125 
14126       case IO:
14127         return getIo();
14128 
14129       }
14130       throw new IllegalStateException();
14131     }
14132 
14133     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14134     public boolean isSet(_Fields field) {
14135       if (field == null) {
14136         throw new IllegalArgumentException();
14137       }
14138 
14139       switch (field) {
14140       case SUCCESS:
14141         return isSetSuccess();
14142       case IO:
14143         return isSetIo();
14144       }
14145       throw new IllegalStateException();
14146     }
14147 
14148     @Override
14149     public boolean equals(Object that) {
14150       if (that == null)
14151         return false;
14152       if (that instanceof get_result)
14153         return this.equals((get_result)that);
14154       return false;
14155     }
14156 
14157     public boolean equals(get_result that) {
14158       if (that == null)
14159         return false;
14160 
14161       boolean this_present_success = true && this.isSetSuccess();
14162       boolean that_present_success = true && that.isSetSuccess();
14163       if (this_present_success || that_present_success) {
14164         if (!(this_present_success && that_present_success))
14165           return false;
14166         if (!this.success.equals(that.success))
14167           return false;
14168       }
14169 
14170       boolean this_present_io = true && this.isSetIo();
14171       boolean that_present_io = true && that.isSetIo();
14172       if (this_present_io || that_present_io) {
14173         if (!(this_present_io && that_present_io))
14174           return false;
14175         if (!this.io.equals(that.io))
14176           return false;
14177       }
14178 
14179       return true;
14180     }
14181 
14182     @Override
14183     public int hashCode() {
14184       HashCodeBuilder builder = new HashCodeBuilder();
14185 
14186       boolean present_success = true && (isSetSuccess());
14187       builder.append(present_success);
14188       if (present_success)
14189         builder.append(success);
14190 
14191       boolean present_io = true && (isSetIo());
14192       builder.append(present_io);
14193       if (present_io)
14194         builder.append(io);
14195 
14196       return builder.toHashCode();
14197     }
14198 
14199     public int compareTo(get_result other) {
14200       if (!getClass().equals(other.getClass())) {
14201         return getClass().getName().compareTo(other.getClass().getName());
14202       }
14203 
14204       int lastComparison = 0;
14205       get_result typedOther = (get_result)other;
14206 
14207       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14208       if (lastComparison != 0) {
14209         return lastComparison;
14210       }
14211       if (isSetSuccess()) {
14212         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14213         if (lastComparison != 0) {
14214           return lastComparison;
14215         }
14216       }
14217       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
14218       if (lastComparison != 0) {
14219         return lastComparison;
14220       }
14221       if (isSetIo()) {
14222         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
14223         if (lastComparison != 0) {
14224           return lastComparison;
14225         }
14226       }
14227       return 0;
14228     }
14229 
14230     public _Fields fieldForId(int fieldId) {
14231       return _Fields.findByThriftId(fieldId);
14232     }
14233 
14234     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14235       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14236     }
14237 
14238     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14239       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14240       }
14241 
14242     @Override
14243     public String toString() {
14244       StringBuilder sb = new StringBuilder("get_result(");
14245       boolean first = true;
14246 
14247       sb.append("success:");
14248       if (this.success == null) {
14249         sb.append("null");
14250       } else {
14251         sb.append(this.success);
14252       }
14253       first = false;
14254       if (!first) sb.append(", ");
14255       sb.append("io:");
14256       if (this.io == null) {
14257         sb.append("null");
14258       } else {
14259         sb.append(this.io);
14260       }
14261       first = false;
14262       sb.append(")");
14263       return sb.toString();
14264     }
14265 
14266     public void validate() throws org.apache.thrift.TException {
14267       // check for required fields
14268       // check for sub-struct validity
14269     }
14270 
14271     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14272       try {
14273         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14274       } catch (org.apache.thrift.TException te) {
14275         throw new java.io.IOException(te);
14276       }
14277     }
14278 
14279     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14280       try {
14281         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14282       } catch (org.apache.thrift.TException te) {
14283         throw new java.io.IOException(te);
14284       }
14285     }
14286 
14287     private static class get_resultStandardSchemeFactory implements SchemeFactory {
14288       public get_resultStandardScheme getScheme() {
14289         return new get_resultStandardScheme();
14290       }
14291     }
14292 
14293     private static class get_resultStandardScheme extends StandardScheme<get_result> {
14294 
14295       public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException {
14296         org.apache.thrift.protocol.TField schemeField;
14297         iprot.readStructBegin();
14298         while (true)
14299         {
14300           schemeField = iprot.readFieldBegin();
14301           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14302             break;
14303           }
14304           switch (schemeField.id) {
14305             case 0: // SUCCESS
14306               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
14307                 {
14308                   org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
14309                   struct.success = new ArrayList<TCell>(_list94.size);
14310                   for (int _i95 = 0; _i95 < _list94.size; ++_i95)
14311                   {
14312                     TCell _elem96; // required
14313                     _elem96 = new TCell();
14314                     _elem96.read(iprot);
14315                     struct.success.add(_elem96);
14316                   }
14317                   iprot.readListEnd();
14318                 }
14319                 struct.setSuccessIsSet(true);
14320               } else { 
14321                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14322               }
14323               break;
14324             case 1: // IO
14325               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14326                 struct.io = new IOError();
14327                 struct.io.read(iprot);
14328                 struct.setIoIsSet(true);
14329               } else { 
14330                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14331               }
14332               break;
14333             default:
14334               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14335           }
14336           iprot.readFieldEnd();
14337         }
14338         iprot.readStructEnd();
14339 
14340         // check for required fields of primitive type, which can't be checked in the validate method
14341         struct.validate();
14342       }
14343 
14344       public void write(org.apache.thrift.protocol.TProtocol oprot, get_result struct) throws org.apache.thrift.TException {
14345         struct.validate();
14346 
14347         oprot.writeStructBegin(STRUCT_DESC);
14348         if (struct.success != null) {
14349           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14350           {
14351             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
14352             for (TCell _iter97 : struct.success)
14353             {
14354               _iter97.write(oprot);
14355             }
14356             oprot.writeListEnd();
14357           }
14358           oprot.writeFieldEnd();
14359         }
14360         if (struct.io != null) {
14361           oprot.writeFieldBegin(IO_FIELD_DESC);
14362           struct.io.write(oprot);
14363           oprot.writeFieldEnd();
14364         }
14365         oprot.writeFieldStop();
14366         oprot.writeStructEnd();
14367       }
14368 
14369     }
14370 
14371     private static class get_resultTupleSchemeFactory implements SchemeFactory {
14372       public get_resultTupleScheme getScheme() {
14373         return new get_resultTupleScheme();
14374       }
14375     }
14376 
14377     private static class get_resultTupleScheme extends TupleScheme<get_result> {
14378 
14379       @Override
14380       public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException {
14381         TTupleProtocol oprot = (TTupleProtocol) prot;
14382         BitSet optionals = new BitSet();
14383         if (struct.isSetSuccess()) {
14384           optionals.set(0);
14385         }
14386         if (struct.isSetIo()) {
14387           optionals.set(1);
14388         }
14389         oprot.writeBitSet(optionals, 2);
14390         if (struct.isSetSuccess()) {
14391           {
14392             oprot.writeI32(struct.success.size());
14393             for (TCell _iter98 : struct.success)
14394             {
14395               _iter98.write(oprot);
14396             }
14397           }
14398         }
14399         if (struct.isSetIo()) {
14400           struct.io.write(oprot);
14401         }
14402       }
14403 
14404       @Override
14405       public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException {
14406         TTupleProtocol iprot = (TTupleProtocol) prot;
14407         BitSet incoming = iprot.readBitSet(2);
14408         if (incoming.get(0)) {
14409           {
14410             org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
14411             struct.success = new ArrayList<TCell>(_list99.size);
14412             for (int _i100 = 0; _i100 < _list99.size; ++_i100)
14413             {
14414               TCell _elem101; // required
14415               _elem101 = new TCell();
14416               _elem101.read(iprot);
14417               struct.success.add(_elem101);
14418             }
14419           }
14420           struct.setSuccessIsSet(true);
14421         }
14422         if (incoming.get(1)) {
14423           struct.io = new IOError();
14424           struct.io.read(iprot);
14425           struct.setIoIsSet(true);
14426         }
14427       }
14428     }
14429 
14430   }
14431 
14432   public static class getVer_args implements org.apache.thrift.TBase<getVer_args, getVer_args._Fields>, java.io.Serializable, Cloneable   {
14433     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_args");
14434 
14435     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
14436     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
14437     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
14438     private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)4);
14439     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
14440 
14441     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14442     static {
14443       schemes.put(StandardScheme.class, new getVer_argsStandardSchemeFactory());
14444       schemes.put(TupleScheme.class, new getVer_argsTupleSchemeFactory());
14445     }
14446 
14447     /**
14448      * name of table
14449      */
14450     public ByteBuffer tableName; // required
14451     /**
14452      * row key
14453      */
14454     public ByteBuffer row; // required
14455     /**
14456      * column name
14457      */
14458     public ByteBuffer column; // required
14459     /**
14460      * number of versions to retrieve
14461      */
14462     public int numVersions; // required
14463     /**
14464      * Get attributes
14465      */
14466     public Map<ByteBuffer,ByteBuffer> attributes; // required
14467 
14468     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14469     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14470       /**
14471        * name of table
14472        */
14473       TABLE_NAME((short)1, "tableName"),
14474       /**
14475        * row key
14476        */
14477       ROW((short)2, "row"),
14478       /**
14479        * column name
14480        */
14481       COLUMN((short)3, "column"),
14482       /**
14483        * number of versions to retrieve
14484        */
14485       NUM_VERSIONS((short)4, "numVersions"),
14486       /**
14487        * Get attributes
14488        */
14489       ATTRIBUTES((short)5, "attributes");
14490 
14491       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14492 
14493       static {
14494         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14495           byName.put(field.getFieldName(), field);
14496         }
14497       }
14498 
14499       /**
14500        * Find the _Fields constant that matches fieldId, or null if its not found.
14501        */
14502       public static _Fields findByThriftId(int fieldId) {
14503         switch(fieldId) {
14504           case 1: // TABLE_NAME
14505             return TABLE_NAME;
14506           case 2: // ROW
14507             return ROW;
14508           case 3: // COLUMN
14509             return COLUMN;
14510           case 4: // NUM_VERSIONS
14511             return NUM_VERSIONS;
14512           case 5: // ATTRIBUTES
14513             return ATTRIBUTES;
14514           default:
14515             return null;
14516         }
14517       }
14518 
14519       /**
14520        * Find the _Fields constant that matches fieldId, throwing an exception
14521        * if it is not found.
14522        */
14523       public static _Fields findByThriftIdOrThrow(int fieldId) {
14524         _Fields fields = findByThriftId(fieldId);
14525         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14526         return fields;
14527       }
14528 
14529       /**
14530        * Find the _Fields constant that matches name, or null if its not found.
14531        */
14532       public static _Fields findByName(String name) {
14533         return byName.get(name);
14534       }
14535 
14536       private final short _thriftId;
14537       private final String _fieldName;
14538 
14539       _Fields(short thriftId, String fieldName) {
14540         _thriftId = thriftId;
14541         _fieldName = fieldName;
14542       }
14543 
14544       public short getThriftFieldId() {
14545         return _thriftId;
14546       }
14547 
14548       public String getFieldName() {
14549         return _fieldName;
14550       }
14551     }
14552 
14553     // isset id assignments
14554     private static final int __NUMVERSIONS_ISSET_ID = 0;
14555     private byte __isset_bitfield = 0;
14556     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14557     static {
14558       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14559       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14560           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
14561       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14562           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
14563       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14564           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
14565       tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14566           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14567       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14568           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
14569               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
14570               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
14571       metaDataMap = Collections.unmodifiableMap(tmpMap);
14572       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_args.class, metaDataMap);
14573     }
14574 
14575     public getVer_args() {
14576     }
14577 
14578     public getVer_args(
14579       ByteBuffer tableName,
14580       ByteBuffer row,
14581       ByteBuffer column,
14582       int numVersions,
14583       Map<ByteBuffer,ByteBuffer> attributes)
14584     {
14585       this();
14586       this.tableName = tableName;
14587       this.row = row;
14588       this.column = column;
14589       this.numVersions = numVersions;
14590       setNumVersionsIsSet(true);
14591       this.attributes = attributes;
14592     }
14593 
14594     /**
14595      * Performs a deep copy on <i>other</i>.
14596      */
14597     public getVer_args(getVer_args other) {
14598       __isset_bitfield = other.__isset_bitfield;
14599       if (other.isSetTableName()) {
14600         this.tableName = other.tableName;
14601       }
14602       if (other.isSetRow()) {
14603         this.row = other.row;
14604       }
14605       if (other.isSetColumn()) {
14606         this.column = other.column;
14607       }
14608       this.numVersions = other.numVersions;
14609       if (other.isSetAttributes()) {
14610         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
14611         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
14612 
14613           ByteBuffer other_element_key = other_element.getKey();
14614           ByteBuffer other_element_value = other_element.getValue();
14615 
14616           ByteBuffer __this__attributes_copy_key = other_element_key;
14617 
14618           ByteBuffer __this__attributes_copy_value = other_element_value;
14619 
14620           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
14621         }
14622         this.attributes = __this__attributes;
14623       }
14624     }
14625 
14626     public getVer_args deepCopy() {
14627       return new getVer_args(this);
14628     }
14629 
14630     @Override
14631     public void clear() {
14632       this.tableName = null;
14633       this.row = null;
14634       this.column = null;
14635       setNumVersionsIsSet(false);
14636       this.numVersions = 0;
14637       this.attributes = null;
14638     }
14639 
14640     /**
14641      * name of table
14642      */
14643     public byte[] getTableName() {
14644       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
14645       return tableName == null ? null : tableName.array();
14646     }
14647 
14648     public ByteBuffer bufferForTableName() {
14649       return tableName;
14650     }
14651 
14652     /**
14653      * name of table
14654      */
14655     public getVer_args setTableName(byte[] tableName) {
14656       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
14657       return this;
14658     }
14659 
14660     public getVer_args setTableName(ByteBuffer tableName) {
14661       this.tableName = tableName;
14662       return this;
14663     }
14664 
14665     public void unsetTableName() {
14666       this.tableName = null;
14667     }
14668 
14669     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
14670     public boolean isSetTableName() {
14671       return this.tableName != null;
14672     }
14673 
14674     public void setTableNameIsSet(boolean value) {
14675       if (!value) {
14676         this.tableName = null;
14677       }
14678     }
14679 
14680     /**
14681      * row key
14682      */
14683     public byte[] getRow() {
14684       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
14685       return row == null ? null : row.array();
14686     }
14687 
14688     public ByteBuffer bufferForRow() {
14689       return row;
14690     }
14691 
14692     /**
14693      * row key
14694      */
14695     public getVer_args setRow(byte[] row) {
14696       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
14697       return this;
14698     }
14699 
14700     public getVer_args setRow(ByteBuffer row) {
14701       this.row = row;
14702       return this;
14703     }
14704 
14705     public void unsetRow() {
14706       this.row = null;
14707     }
14708 
14709     /** Returns true if field row is set (has been assigned a value) and false otherwise */
14710     public boolean isSetRow() {
14711       return this.row != null;
14712     }
14713 
14714     public void setRowIsSet(boolean value) {
14715       if (!value) {
14716         this.row = null;
14717       }
14718     }
14719 
14720     /**
14721      * column name
14722      */
14723     public byte[] getColumn() {
14724       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
14725       return column == null ? null : column.array();
14726     }
14727 
14728     public ByteBuffer bufferForColumn() {
14729       return column;
14730     }
14731 
14732     /**
14733      * column name
14734      */
14735     public getVer_args setColumn(byte[] column) {
14736       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
14737       return this;
14738     }
14739 
14740     public getVer_args setColumn(ByteBuffer column) {
14741       this.column = column;
14742       return this;
14743     }
14744 
14745     public void unsetColumn() {
14746       this.column = null;
14747     }
14748 
14749     /** Returns true if field column is set (has been assigned a value) and false otherwise */
14750     public boolean isSetColumn() {
14751       return this.column != null;
14752     }
14753 
14754     public void setColumnIsSet(boolean value) {
14755       if (!value) {
14756         this.column = null;
14757       }
14758     }
14759 
14760     /**
14761      * number of versions to retrieve
14762      */
14763     public int getNumVersions() {
14764       return this.numVersions;
14765     }
14766 
14767     /**
14768      * number of versions to retrieve
14769      */
14770     public getVer_args setNumVersions(int numVersions) {
14771       this.numVersions = numVersions;
14772       setNumVersionsIsSet(true);
14773       return this;
14774     }
14775 
14776     public void unsetNumVersions() {
14777       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
14778     }
14779 
14780     /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */
14781     public boolean isSetNumVersions() {
14782       return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
14783     }
14784 
14785     public void setNumVersionsIsSet(boolean value) {
14786       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value);
14787     }
14788 
14789     public int getAttributesSize() {
14790       return (this.attributes == null) ? 0 : this.attributes.size();
14791     }
14792 
14793     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
14794       if (this.attributes == null) {
14795         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
14796       }
14797       this.attributes.put(key, val);
14798     }
14799 
14800     /**
14801      * Get attributes
14802      */
14803     public Map<ByteBuffer,ByteBuffer> getAttributes() {
14804       return this.attributes;
14805     }
14806 
14807     /**
14808      * Get attributes
14809      */
14810     public getVer_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
14811       this.attributes = attributes;
14812       return this;
14813     }
14814 
14815     public void unsetAttributes() {
14816       this.attributes = null;
14817     }
14818 
14819     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
14820     public boolean isSetAttributes() {
14821       return this.attributes != null;
14822     }
14823 
14824     public void setAttributesIsSet(boolean value) {
14825       if (!value) {
14826         this.attributes = null;
14827       }
14828     }
14829 
14830     public void setFieldValue(_Fields field, Object value) {
14831       switch (field) {
14832       case TABLE_NAME:
14833         if (value == null) {
14834           unsetTableName();
14835         } else {
14836           setTableName((ByteBuffer)value);
14837         }
14838         break;
14839 
14840       case ROW:
14841         if (value == null) {
14842           unsetRow();
14843         } else {
14844           setRow((ByteBuffer)value);
14845         }
14846         break;
14847 
14848       case COLUMN:
14849         if (value == null) {
14850           unsetColumn();
14851         } else {
14852           setColumn((ByteBuffer)value);
14853         }
14854         break;
14855 
14856       case NUM_VERSIONS:
14857         if (value == null) {
14858           unsetNumVersions();
14859         } else {
14860           setNumVersions((Integer)value);
14861         }
14862         break;
14863 
14864       case ATTRIBUTES:
14865         if (value == null) {
14866           unsetAttributes();
14867         } else {
14868           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
14869         }
14870         break;
14871 
14872       }
14873     }
14874 
14875     public Object getFieldValue(_Fields field) {
14876       switch (field) {
14877       case TABLE_NAME:
14878         return getTableName();
14879 
14880       case ROW:
14881         return getRow();
14882 
14883       case COLUMN:
14884         return getColumn();
14885 
14886       case NUM_VERSIONS:
14887         return Integer.valueOf(getNumVersions());
14888 
14889       case ATTRIBUTES:
14890         return getAttributes();
14891 
14892       }
14893       throw new IllegalStateException();
14894     }
14895 
14896     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14897     public boolean isSet(_Fields field) {
14898       if (field == null) {
14899         throw new IllegalArgumentException();
14900       }
14901 
14902       switch (field) {
14903       case TABLE_NAME:
14904         return isSetTableName();
14905       case ROW:
14906         return isSetRow();
14907       case COLUMN:
14908         return isSetColumn();
14909       case NUM_VERSIONS:
14910         return isSetNumVersions();
14911       case ATTRIBUTES:
14912         return isSetAttributes();
14913       }
14914       throw new IllegalStateException();
14915     }
14916 
14917     @Override
14918     public boolean equals(Object that) {
14919       if (that == null)
14920         return false;
14921       if (that instanceof getVer_args)
14922         return this.equals((getVer_args)that);
14923       return false;
14924     }
14925 
14926     public boolean equals(getVer_args that) {
14927       if (that == null)
14928         return false;
14929 
14930       boolean this_present_tableName = true && this.isSetTableName();
14931       boolean that_present_tableName = true && that.isSetTableName();
14932       if (this_present_tableName || that_present_tableName) {
14933         if (!(this_present_tableName && that_present_tableName))
14934           return false;
14935         if (!this.tableName.equals(that.tableName))
14936           return false;
14937       }
14938 
14939       boolean this_present_row = true && this.isSetRow();
14940       boolean that_present_row = true && that.isSetRow();
14941       if (this_present_row || that_present_row) {
14942         if (!(this_present_row && that_present_row))
14943           return false;
14944         if (!this.row.equals(that.row))
14945           return false;
14946       }
14947 
14948       boolean this_present_column = true && this.isSetColumn();
14949       boolean that_present_column = true && that.isSetColumn();
14950       if (this_present_column || that_present_column) {
14951         if (!(this_present_column && that_present_column))
14952           return false;
14953         if (!this.column.equals(that.column))
14954           return false;
14955       }
14956 
14957       boolean this_present_numVersions = true;
14958       boolean that_present_numVersions = true;
14959       if (this_present_numVersions || that_present_numVersions) {
14960         if (!(this_present_numVersions && that_present_numVersions))
14961           return false;
14962         if (this.numVersions != that.numVersions)
14963           return false;
14964       }
14965 
14966       boolean this_present_attributes = true && this.isSetAttributes();
14967       boolean that_present_attributes = true && that.isSetAttributes();
14968       if (this_present_attributes || that_present_attributes) {
14969         if (!(this_present_attributes && that_present_attributes))
14970           return false;
14971         if (!this.attributes.equals(that.attributes))
14972           return false;
14973       }
14974 
14975       return true;
14976     }
14977 
14978     @Override
14979     public int hashCode() {
14980       HashCodeBuilder builder = new HashCodeBuilder();
14981 
14982       boolean present_tableName = true && (isSetTableName());
14983       builder.append(present_tableName);
14984       if (present_tableName)
14985         builder.append(tableName);
14986 
14987       boolean present_row = true && (isSetRow());
14988       builder.append(present_row);
14989       if (present_row)
14990         builder.append(row);
14991 
14992       boolean present_column = true && (isSetColumn());
14993       builder.append(present_column);
14994       if (present_column)
14995         builder.append(column);
14996 
14997       boolean present_numVersions = true;
14998       builder.append(present_numVersions);
14999       if (present_numVersions)
15000         builder.append(numVersions);
15001 
15002       boolean present_attributes = true && (isSetAttributes());
15003       builder.append(present_attributes);
15004       if (present_attributes)
15005         builder.append(attributes);
15006 
15007       return builder.toHashCode();
15008     }
15009 
15010     public int compareTo(getVer_args other) {
15011       if (!getClass().equals(other.getClass())) {
15012         return getClass().getName().compareTo(other.getClass().getName());
15013       }
15014 
15015       int lastComparison = 0;
15016       getVer_args typedOther = (getVer_args)other;
15017 
15018       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
15019       if (lastComparison != 0) {
15020         return lastComparison;
15021       }
15022       if (isSetTableName()) {
15023         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
15024         if (lastComparison != 0) {
15025           return lastComparison;
15026         }
15027       }
15028       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
15029       if (lastComparison != 0) {
15030         return lastComparison;
15031       }
15032       if (isSetRow()) {
15033         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
15034         if (lastComparison != 0) {
15035           return lastComparison;
15036         }
15037       }
15038       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
15039       if (lastComparison != 0) {
15040         return lastComparison;
15041       }
15042       if (isSetColumn()) {
15043         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
15044         if (lastComparison != 0) {
15045           return lastComparison;
15046         }
15047       }
15048       lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions());
15049       if (lastComparison != 0) {
15050         return lastComparison;
15051       }
15052       if (isSetNumVersions()) {
15053         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions);
15054         if (lastComparison != 0) {
15055           return lastComparison;
15056         }
15057       }
15058       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
15059       if (lastComparison != 0) {
15060         return lastComparison;
15061       }
15062       if (isSetAttributes()) {
15063         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
15064         if (lastComparison != 0) {
15065           return lastComparison;
15066         }
15067       }
15068       return 0;
15069     }
15070 
15071     public _Fields fieldForId(int fieldId) {
15072       return _Fields.findByThriftId(fieldId);
15073     }
15074 
15075     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15076       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15077     }
15078 
15079     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15080       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15081     }
15082 
15083     @Override
15084     public String toString() {
15085       StringBuilder sb = new StringBuilder("getVer_args(");
15086       boolean first = true;
15087 
15088       sb.append("tableName:");
15089       if (this.tableName == null) {
15090         sb.append("null");
15091       } else {
15092         sb.append(this.tableName);
15093       }
15094       first = false;
15095       if (!first) sb.append(", ");
15096       sb.append("row:");
15097       if (this.row == null) {
15098         sb.append("null");
15099       } else {
15100         sb.append(this.row);
15101       }
15102       first = false;
15103       if (!first) sb.append(", ");
15104       sb.append("column:");
15105       if (this.column == null) {
15106         sb.append("null");
15107       } else {
15108         sb.append(this.column);
15109       }
15110       first = false;
15111       if (!first) sb.append(", ");
15112       sb.append("numVersions:");
15113       sb.append(this.numVersions);
15114       first = false;
15115       if (!first) sb.append(", ");
15116       sb.append("attributes:");
15117       if (this.attributes == null) {
15118         sb.append("null");
15119       } else {
15120         sb.append(this.attributes);
15121       }
15122       first = false;
15123       sb.append(")");
15124       return sb.toString();
15125     }
15126 
15127     public void validate() throws org.apache.thrift.TException {
15128       // check for required fields
15129       // check for sub-struct validity
15130     }
15131 
15132     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15133       try {
15134         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15135       } catch (org.apache.thrift.TException te) {
15136         throw new java.io.IOException(te);
15137       }
15138     }
15139 
15140     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15141       try {
15142         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15143         __isset_bitfield = 0;
15144         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15145       } catch (org.apache.thrift.TException te) {
15146         throw new java.io.IOException(te);
15147       }
15148     }
15149 
15150     private static class getVer_argsStandardSchemeFactory implements SchemeFactory {
15151       public getVer_argsStandardScheme getScheme() {
15152         return new getVer_argsStandardScheme();
15153       }
15154     }
15155 
15156     private static class getVer_argsStandardScheme extends StandardScheme<getVer_args> {
15157 
15158       public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_args struct) throws org.apache.thrift.TException {
15159         org.apache.thrift.protocol.TField schemeField;
15160         iprot.readStructBegin();
15161         while (true)
15162         {
15163           schemeField = iprot.readFieldBegin();
15164           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15165             break;
15166           }
15167           switch (schemeField.id) {
15168             case 1: // TABLE_NAME
15169               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15170                 struct.tableName = iprot.readBinary();
15171                 struct.setTableNameIsSet(true);
15172               } else { 
15173                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15174               }
15175               break;
15176             case 2: // ROW
15177               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15178                 struct.row = iprot.readBinary();
15179                 struct.setRowIsSet(true);
15180               } else { 
15181                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15182               }
15183               break;
15184             case 3: // COLUMN
15185               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15186                 struct.column = iprot.readBinary();
15187                 struct.setColumnIsSet(true);
15188               } else { 
15189                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15190               }
15191               break;
15192             case 4: // NUM_VERSIONS
15193               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15194                 struct.numVersions = iprot.readI32();
15195                 struct.setNumVersionsIsSet(true);
15196               } else { 
15197                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15198               }
15199               break;
15200             case 5: // ATTRIBUTES
15201               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
15202                 {
15203                   org.apache.thrift.protocol.TMap _map102 = iprot.readMapBegin();
15204                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map102.size);
15205                   for (int _i103 = 0; _i103 < _map102.size; ++_i103)
15206                   {
15207                     ByteBuffer _key104; // required
15208                     ByteBuffer _val105; // required
15209                     _key104 = iprot.readBinary();
15210                     _val105 = iprot.readBinary();
15211                     struct.attributes.put(_key104, _val105);
15212                   }
15213                   iprot.readMapEnd();
15214                 }
15215                 struct.setAttributesIsSet(true);
15216               } else { 
15217                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15218               }
15219               break;
15220             default:
15221               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15222           }
15223           iprot.readFieldEnd();
15224         }
15225         iprot.readStructEnd();
15226 
15227         // check for required fields of primitive type, which can't be checked in the validate method
15228         struct.validate();
15229       }
15230 
15231       public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_args struct) throws org.apache.thrift.TException {
15232         struct.validate();
15233 
15234         oprot.writeStructBegin(STRUCT_DESC);
15235         if (struct.tableName != null) {
15236           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
15237           oprot.writeBinary(struct.tableName);
15238           oprot.writeFieldEnd();
15239         }
15240         if (struct.row != null) {
15241           oprot.writeFieldBegin(ROW_FIELD_DESC);
15242           oprot.writeBinary(struct.row);
15243           oprot.writeFieldEnd();
15244         }
15245         if (struct.column != null) {
15246           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
15247           oprot.writeBinary(struct.column);
15248           oprot.writeFieldEnd();
15249         }
15250         oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC);
15251         oprot.writeI32(struct.numVersions);
15252         oprot.writeFieldEnd();
15253         if (struct.attributes != null) {
15254           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
15255           {
15256             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
15257             for (Map.Entry<ByteBuffer, ByteBuffer> _iter106 : struct.attributes.entrySet())
15258             {
15259               oprot.writeBinary(_iter106.getKey());
15260               oprot.writeBinary(_iter106.getValue());
15261             }
15262             oprot.writeMapEnd();
15263           }
15264           oprot.writeFieldEnd();
15265         }
15266         oprot.writeFieldStop();
15267         oprot.writeStructEnd();
15268       }
15269 
15270     }
15271 
15272     private static class getVer_argsTupleSchemeFactory implements SchemeFactory {
15273       public getVer_argsTupleScheme getScheme() {
15274         return new getVer_argsTupleScheme();
15275       }
15276     }
15277 
15278     private static class getVer_argsTupleScheme extends TupleScheme<getVer_args> {
15279 
15280       @Override
15281       public void write(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException {
15282         TTupleProtocol oprot = (TTupleProtocol) prot;
15283         BitSet optionals = new BitSet();
15284         if (struct.isSetTableName()) {
15285           optionals.set(0);
15286         }
15287         if (struct.isSetRow()) {
15288           optionals.set(1);
15289         }
15290         if (struct.isSetColumn()) {
15291           optionals.set(2);
15292         }
15293         if (struct.isSetNumVersions()) {
15294           optionals.set(3);
15295         }
15296         if (struct.isSetAttributes()) {
15297           optionals.set(4);
15298         }
15299         oprot.writeBitSet(optionals, 5);
15300         if (struct.isSetTableName()) {
15301           oprot.writeBinary(struct.tableName);
15302         }
15303         if (struct.isSetRow()) {
15304           oprot.writeBinary(struct.row);
15305         }
15306         if (struct.isSetColumn()) {
15307           oprot.writeBinary(struct.column);
15308         }
15309         if (struct.isSetNumVersions()) {
15310           oprot.writeI32(struct.numVersions);
15311         }
15312         if (struct.isSetAttributes()) {
15313           {
15314             oprot.writeI32(struct.attributes.size());
15315             for (Map.Entry<ByteBuffer, ByteBuffer> _iter107 : struct.attributes.entrySet())
15316             {
15317               oprot.writeBinary(_iter107.getKey());
15318               oprot.writeBinary(_iter107.getValue());
15319             }
15320           }
15321         }
15322       }
15323 
15324       @Override
15325       public void read(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException {
15326         TTupleProtocol iprot = (TTupleProtocol) prot;
15327         BitSet incoming = iprot.readBitSet(5);
15328         if (incoming.get(0)) {
15329           struct.tableName = iprot.readBinary();
15330           struct.setTableNameIsSet(true);
15331         }
15332         if (incoming.get(1)) {
15333           struct.row = iprot.readBinary();
15334           struct.setRowIsSet(true);
15335         }
15336         if (incoming.get(2)) {
15337           struct.column = iprot.readBinary();
15338           struct.setColumnIsSet(true);
15339         }
15340         if (incoming.get(3)) {
15341           struct.numVersions = iprot.readI32();
15342           struct.setNumVersionsIsSet(true);
15343         }
15344         if (incoming.get(4)) {
15345           {
15346             org.apache.thrift.protocol.TMap _map108 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
15347             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map108.size);
15348             for (int _i109 = 0; _i109 < _map108.size; ++_i109)
15349             {
15350               ByteBuffer _key110; // required
15351               ByteBuffer _val111; // required
15352               _key110 = iprot.readBinary();
15353               _val111 = iprot.readBinary();
15354               struct.attributes.put(_key110, _val111);
15355             }
15356           }
15357           struct.setAttributesIsSet(true);
15358         }
15359       }
15360     }
15361 
15362   }
15363 
15364   public static class getVer_result implements org.apache.thrift.TBase<getVer_result, getVer_result._Fields>, java.io.Serializable, Cloneable   {
15365     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_result");
15366 
15367     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15368     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
15369 
15370     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15371     static {
15372       schemes.put(StandardScheme.class, new getVer_resultStandardSchemeFactory());
15373       schemes.put(TupleScheme.class, new getVer_resultTupleSchemeFactory());
15374     }
15375 
15376     public List<TCell> success; // required
15377     public IOError io; // required
15378 
15379     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15380     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15381       SUCCESS((short)0, "success"),
15382       IO((short)1, "io");
15383 
15384       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15385 
15386       static {
15387         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15388           byName.put(field.getFieldName(), field);
15389         }
15390       }
15391 
15392       /**
15393        * Find the _Fields constant that matches fieldId, or null if its not found.
15394        */
15395       public static _Fields findByThriftId(int fieldId) {
15396         switch(fieldId) {
15397           case 0: // SUCCESS
15398             return SUCCESS;
15399           case 1: // IO
15400             return IO;
15401           default:
15402             return null;
15403         }
15404       }
15405 
15406       /**
15407        * Find the _Fields constant that matches fieldId, throwing an exception
15408        * if it is not found.
15409        */
15410       public static _Fields findByThriftIdOrThrow(int fieldId) {
15411         _Fields fields = findByThriftId(fieldId);
15412         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15413         return fields;
15414       }
15415 
15416       /**
15417        * Find the _Fields constant that matches name, or null if its not found.
15418        */
15419       public static _Fields findByName(String name) {
15420         return byName.get(name);
15421       }
15422 
15423       private final short _thriftId;
15424       private final String _fieldName;
15425 
15426       _Fields(short thriftId, String fieldName) {
15427         _thriftId = thriftId;
15428         _fieldName = fieldName;
15429       }
15430 
15431       public short getThriftFieldId() {
15432         return _thriftId;
15433       }
15434 
15435       public String getFieldName() {
15436         return _fieldName;
15437       }
15438     }
15439 
15440     // isset id assignments
15441     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15442     static {
15443       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15444       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15445           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15446               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
15447       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15448           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15449       metaDataMap = Collections.unmodifiableMap(tmpMap);
15450       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_result.class, metaDataMap);
15451     }
15452 
15453     public getVer_result() {
15454     }
15455 
15456     public getVer_result(
15457       List<TCell> success,
15458       IOError io)
15459     {
15460       this();
15461       this.success = success;
15462       this.io = io;
15463     }
15464 
15465     /**
15466      * Performs a deep copy on <i>other</i>.
15467      */
15468     public getVer_result(getVer_result other) {
15469       if (other.isSetSuccess()) {
15470         List<TCell> __this__success = new ArrayList<TCell>();
15471         for (TCell other_element : other.success) {
15472           __this__success.add(new TCell(other_element));
15473         }
15474         this.success = __this__success;
15475       }
15476       if (other.isSetIo()) {
15477         this.io = new IOError(other.io);
15478       }
15479     }
15480 
15481     public getVer_result deepCopy() {
15482       return new getVer_result(this);
15483     }
15484 
15485     @Override
15486     public void clear() {
15487       this.success = null;
15488       this.io = null;
15489     }
15490 
15491     public int getSuccessSize() {
15492       return (this.success == null) ? 0 : this.success.size();
15493     }
15494 
15495     public java.util.Iterator<TCell> getSuccessIterator() {
15496       return (this.success == null) ? null : this.success.iterator();
15497     }
15498 
15499     public void addToSuccess(TCell elem) {
15500       if (this.success == null) {
15501         this.success = new ArrayList<TCell>();
15502       }
15503       this.success.add(elem);
15504     }
15505 
15506     public List<TCell> getSuccess() {
15507       return this.success;
15508     }
15509 
15510     public getVer_result setSuccess(List<TCell> success) {
15511       this.success = success;
15512       return this;
15513     }
15514 
15515     public void unsetSuccess() {
15516       this.success = null;
15517     }
15518 
15519     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15520     public boolean isSetSuccess() {
15521       return this.success != null;
15522     }
15523 
15524     public void setSuccessIsSet(boolean value) {
15525       if (!value) {
15526         this.success = null;
15527       }
15528     }
15529 
15530     public IOError getIo() {
15531       return this.io;
15532     }
15533 
15534     public getVer_result setIo(IOError io) {
15535       this.io = io;
15536       return this;
15537     }
15538 
15539     public void unsetIo() {
15540       this.io = null;
15541     }
15542 
15543     /** Returns true if field io is set (has been assigned a value) and false otherwise */
15544     public boolean isSetIo() {
15545       return this.io != null;
15546     }
15547 
15548     public void setIoIsSet(boolean value) {
15549       if (!value) {
15550         this.io = null;
15551       }
15552     }
15553 
15554     public void setFieldValue(_Fields field, Object value) {
15555       switch (field) {
15556       case SUCCESS:
15557         if (value == null) {
15558           unsetSuccess();
15559         } else {
15560           setSuccess((List<TCell>)value);
15561         }
15562         break;
15563 
15564       case IO:
15565         if (value == null) {
15566           unsetIo();
15567         } else {
15568           setIo((IOError)value);
15569         }
15570         break;
15571 
15572       }
15573     }
15574 
15575     public Object getFieldValue(_Fields field) {
15576       switch (field) {
15577       case SUCCESS:
15578         return getSuccess();
15579 
15580       case IO:
15581         return getIo();
15582 
15583       }
15584       throw new IllegalStateException();
15585     }
15586 
15587     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15588     public boolean isSet(_Fields field) {
15589       if (field == null) {
15590         throw new IllegalArgumentException();
15591       }
15592 
15593       switch (field) {
15594       case SUCCESS:
15595         return isSetSuccess();
15596       case IO:
15597         return isSetIo();
15598       }
15599       throw new IllegalStateException();
15600     }
15601 
15602     @Override
15603     public boolean equals(Object that) {
15604       if (that == null)
15605         return false;
15606       if (that instanceof getVer_result)
15607         return this.equals((getVer_result)that);
15608       return false;
15609     }
15610 
15611     public boolean equals(getVer_result that) {
15612       if (that == null)
15613         return false;
15614 
15615       boolean this_present_success = true && this.isSetSuccess();
15616       boolean that_present_success = true && that.isSetSuccess();
15617       if (this_present_success || that_present_success) {
15618         if (!(this_present_success && that_present_success))
15619           return false;
15620         if (!this.success.equals(that.success))
15621           return false;
15622       }
15623 
15624       boolean this_present_io = true && this.isSetIo();
15625       boolean that_present_io = true && that.isSetIo();
15626       if (this_present_io || that_present_io) {
15627         if (!(this_present_io && that_present_io))
15628           return false;
15629         if (!this.io.equals(that.io))
15630           return false;
15631       }
15632 
15633       return true;
15634     }
15635 
15636     @Override
15637     public int hashCode() {
15638       HashCodeBuilder builder = new HashCodeBuilder();
15639 
15640       boolean present_success = true && (isSetSuccess());
15641       builder.append(present_success);
15642       if (present_success)
15643         builder.append(success);
15644 
15645       boolean present_io = true && (isSetIo());
15646       builder.append(present_io);
15647       if (present_io)
15648         builder.append(io);
15649 
15650       return builder.toHashCode();
15651     }
15652 
15653     public int compareTo(getVer_result other) {
15654       if (!getClass().equals(other.getClass())) {
15655         return getClass().getName().compareTo(other.getClass().getName());
15656       }
15657 
15658       int lastComparison = 0;
15659       getVer_result typedOther = (getVer_result)other;
15660 
15661       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15662       if (lastComparison != 0) {
15663         return lastComparison;
15664       }
15665       if (isSetSuccess()) {
15666         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15667         if (lastComparison != 0) {
15668           return lastComparison;
15669         }
15670       }
15671       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
15672       if (lastComparison != 0) {
15673         return lastComparison;
15674       }
15675       if (isSetIo()) {
15676         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
15677         if (lastComparison != 0) {
15678           return lastComparison;
15679         }
15680       }
15681       return 0;
15682     }
15683 
15684     public _Fields fieldForId(int fieldId) {
15685       return _Fields.findByThriftId(fieldId);
15686     }
15687 
15688     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15689       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15690     }
15691 
15692     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15693       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15694       }
15695 
15696     @Override
15697     public String toString() {
15698       StringBuilder sb = new StringBuilder("getVer_result(");
15699       boolean first = true;
15700 
15701       sb.append("success:");
15702       if (this.success == null) {
15703         sb.append("null");
15704       } else {
15705         sb.append(this.success);
15706       }
15707       first = false;
15708       if (!first) sb.append(", ");
15709       sb.append("io:");
15710       if (this.io == null) {
15711         sb.append("null");
15712       } else {
15713         sb.append(this.io);
15714       }
15715       first = false;
15716       sb.append(")");
15717       return sb.toString();
15718     }
15719 
15720     public void validate() throws org.apache.thrift.TException {
15721       // check for required fields
15722       // check for sub-struct validity
15723     }
15724 
15725     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15726       try {
15727         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15728       } catch (org.apache.thrift.TException te) {
15729         throw new java.io.IOException(te);
15730       }
15731     }
15732 
15733     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15734       try {
15735         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15736       } catch (org.apache.thrift.TException te) {
15737         throw new java.io.IOException(te);
15738       }
15739     }
15740 
15741     private static class getVer_resultStandardSchemeFactory implements SchemeFactory {
15742       public getVer_resultStandardScheme getScheme() {
15743         return new getVer_resultStandardScheme();
15744       }
15745     }
15746 
15747     private static class getVer_resultStandardScheme extends StandardScheme<getVer_result> {
15748 
15749       public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_result struct) throws org.apache.thrift.TException {
15750         org.apache.thrift.protocol.TField schemeField;
15751         iprot.readStructBegin();
15752         while (true)
15753         {
15754           schemeField = iprot.readFieldBegin();
15755           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15756             break;
15757           }
15758           switch (schemeField.id) {
15759             case 0: // SUCCESS
15760               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
15761                 {
15762                   org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
15763                   struct.success = new ArrayList<TCell>(_list112.size);
15764                   for (int _i113 = 0; _i113 < _list112.size; ++_i113)
15765                   {
15766                     TCell _elem114; // required
15767                     _elem114 = new TCell();
15768                     _elem114.read(iprot);
15769                     struct.success.add(_elem114);
15770                   }
15771                   iprot.readListEnd();
15772                 }
15773                 struct.setSuccessIsSet(true);
15774               } else { 
15775                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15776               }
15777               break;
15778             case 1: // IO
15779               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15780                 struct.io = new IOError();
15781                 struct.io.read(iprot);
15782                 struct.setIoIsSet(true);
15783               } else { 
15784                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15785               }
15786               break;
15787             default:
15788               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15789           }
15790           iprot.readFieldEnd();
15791         }
15792         iprot.readStructEnd();
15793 
15794         // check for required fields of primitive type, which can't be checked in the validate method
15795         struct.validate();
15796       }
15797 
15798       public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_result struct) throws org.apache.thrift.TException {
15799         struct.validate();
15800 
15801         oprot.writeStructBegin(STRUCT_DESC);
15802         if (struct.success != null) {
15803           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15804           {
15805             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
15806             for (TCell _iter115 : struct.success)
15807             {
15808               _iter115.write(oprot);
15809             }
15810             oprot.writeListEnd();
15811           }
15812           oprot.writeFieldEnd();
15813         }
15814         if (struct.io != null) {
15815           oprot.writeFieldBegin(IO_FIELD_DESC);
15816           struct.io.write(oprot);
15817           oprot.writeFieldEnd();
15818         }
15819         oprot.writeFieldStop();
15820         oprot.writeStructEnd();
15821       }
15822 
15823     }
15824 
15825     private static class getVer_resultTupleSchemeFactory implements SchemeFactory {
15826       public getVer_resultTupleScheme getScheme() {
15827         return new getVer_resultTupleScheme();
15828       }
15829     }
15830 
15831     private static class getVer_resultTupleScheme extends TupleScheme<getVer_result> {
15832 
15833       @Override
15834       public void write(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException {
15835         TTupleProtocol oprot = (TTupleProtocol) prot;
15836         BitSet optionals = new BitSet();
15837         if (struct.isSetSuccess()) {
15838           optionals.set(0);
15839         }
15840         if (struct.isSetIo()) {
15841           optionals.set(1);
15842         }
15843         oprot.writeBitSet(optionals, 2);
15844         if (struct.isSetSuccess()) {
15845           {
15846             oprot.writeI32(struct.success.size());
15847             for (TCell _iter116 : struct.success)
15848             {
15849               _iter116.write(oprot);
15850             }
15851           }
15852         }
15853         if (struct.isSetIo()) {
15854           struct.io.write(oprot);
15855         }
15856       }
15857 
15858       @Override
15859       public void read(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException {
15860         TTupleProtocol iprot = (TTupleProtocol) prot;
15861         BitSet incoming = iprot.readBitSet(2);
15862         if (incoming.get(0)) {
15863           {
15864             org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
15865             struct.success = new ArrayList<TCell>(_list117.size);
15866             for (int _i118 = 0; _i118 < _list117.size; ++_i118)
15867             {
15868               TCell _elem119; // required
15869               _elem119 = new TCell();
15870               _elem119.read(iprot);
15871               struct.success.add(_elem119);
15872             }
15873           }
15874           struct.setSuccessIsSet(true);
15875         }
15876         if (incoming.get(1)) {
15877           struct.io = new IOError();
15878           struct.io.read(iprot);
15879           struct.setIoIsSet(true);
15880         }
15881       }
15882     }
15883 
15884   }
15885 
15886   public static class getVerTs_args implements org.apache.thrift.TBase<getVerTs_args, getVerTs_args._Fields>, java.io.Serializable, Cloneable   {
15887     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_args");
15888 
15889     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
15890     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
15891     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
15892     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
15893     private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)5);
15894     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6);
15895 
15896     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15897     static {
15898       schemes.put(StandardScheme.class, new getVerTs_argsStandardSchemeFactory());
15899       schemes.put(TupleScheme.class, new getVerTs_argsTupleSchemeFactory());
15900     }
15901 
15902     /**
15903      * name of table
15904      */
15905     public ByteBuffer tableName; // required
15906     /**
15907      * row key
15908      */
15909     public ByteBuffer row; // required
15910     /**
15911      * column name
15912      */
15913     public ByteBuffer column; // required
15914     /**
15915      * timestamp
15916      */
15917     public long timestamp; // required
15918     /**
15919      * number of versions to retrieve
15920      */
15921     public int numVersions; // required
15922     /**
15923      * Get attributes
15924      */
15925     public Map<ByteBuffer,ByteBuffer> attributes; // required
15926 
15927     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15928     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15929       /**
15930        * name of table
15931        */
15932       TABLE_NAME((short)1, "tableName"),
15933       /**
15934        * row key
15935        */
15936       ROW((short)2, "row"),
15937       /**
15938        * column name
15939        */
15940       COLUMN((short)3, "column"),
15941       /**
15942        * timestamp
15943        */
15944       TIMESTAMP((short)4, "timestamp"),
15945       /**
15946        * number of versions to retrieve
15947        */
15948       NUM_VERSIONS((short)5, "numVersions"),
15949       /**
15950        * Get attributes
15951        */
15952       ATTRIBUTES((short)6, "attributes");
15953 
15954       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15955 
15956       static {
15957         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15958           byName.put(field.getFieldName(), field);
15959         }
15960       }
15961 
15962       /**
15963        * Find the _Fields constant that matches fieldId, or null if its not found.
15964        */
15965       public static _Fields findByThriftId(int fieldId) {
15966         switch(fieldId) {
15967           case 1: // TABLE_NAME
15968             return TABLE_NAME;
15969           case 2: // ROW
15970             return ROW;
15971           case 3: // COLUMN
15972             return COLUMN;
15973           case 4: // TIMESTAMP
15974             return TIMESTAMP;
15975           case 5: // NUM_VERSIONS
15976             return NUM_VERSIONS;
15977           case 6: // ATTRIBUTES
15978             return ATTRIBUTES;
15979           default:
15980             return null;
15981         }
15982       }
15983 
15984       /**
15985        * Find the _Fields constant that matches fieldId, throwing an exception
15986        * if it is not found.
15987        */
15988       public static _Fields findByThriftIdOrThrow(int fieldId) {
15989         _Fields fields = findByThriftId(fieldId);
15990         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15991         return fields;
15992       }
15993 
15994       /**
15995        * Find the _Fields constant that matches name, or null if its not found.
15996        */
15997       public static _Fields findByName(String name) {
15998         return byName.get(name);
15999       }
16000 
16001       private final short _thriftId;
16002       private final String _fieldName;
16003 
16004       _Fields(short thriftId, String fieldName) {
16005         _thriftId = thriftId;
16006         _fieldName = fieldName;
16007       }
16008 
16009       public short getThriftFieldId() {
16010         return _thriftId;
16011       }
16012 
16013       public String getFieldName() {
16014         return _fieldName;
16015       }
16016     }
16017 
16018     // isset id assignments
16019     private static final int __TIMESTAMP_ISSET_ID = 0;
16020     private static final int __NUMVERSIONS_ISSET_ID = 1;
16021     private byte __isset_bitfield = 0;
16022     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16023     static {
16024       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16025       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16026           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
16027       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16028           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
16029       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16030           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
16031       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16032           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16033       tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16034           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16035       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16036           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
16037               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
16038               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
16039       metaDataMap = Collections.unmodifiableMap(tmpMap);
16040       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_args.class, metaDataMap);
16041     }
16042 
16043     public getVerTs_args() {
16044     }
16045 
16046     public getVerTs_args(
16047       ByteBuffer tableName,
16048       ByteBuffer row,
16049       ByteBuffer column,
16050       long timestamp,
16051       int numVersions,
16052       Map<ByteBuffer,ByteBuffer> attributes)
16053     {
16054       this();
16055       this.tableName = tableName;
16056       this.row = row;
16057       this.column = column;
16058       this.timestamp = timestamp;
16059       setTimestampIsSet(true);
16060       this.numVersions = numVersions;
16061       setNumVersionsIsSet(true);
16062       this.attributes = attributes;
16063     }
16064 
16065     /**
16066      * Performs a deep copy on <i>other</i>.
16067      */
16068     public getVerTs_args(getVerTs_args other) {
16069       __isset_bitfield = other.__isset_bitfield;
16070       if (other.isSetTableName()) {
16071         this.tableName = other.tableName;
16072       }
16073       if (other.isSetRow()) {
16074         this.row = other.row;
16075       }
16076       if (other.isSetColumn()) {
16077         this.column = other.column;
16078       }
16079       this.timestamp = other.timestamp;
16080       this.numVersions = other.numVersions;
16081       if (other.isSetAttributes()) {
16082         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
16083         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
16084 
16085           ByteBuffer other_element_key = other_element.getKey();
16086           ByteBuffer other_element_value = other_element.getValue();
16087 
16088           ByteBuffer __this__attributes_copy_key = other_element_key;
16089 
16090           ByteBuffer __this__attributes_copy_value = other_element_value;
16091 
16092           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
16093         }
16094         this.attributes = __this__attributes;
16095       }
16096     }
16097 
16098     public getVerTs_args deepCopy() {
16099       return new getVerTs_args(this);
16100     }
16101 
16102     @Override
16103     public void clear() {
16104       this.tableName = null;
16105       this.row = null;
16106       this.column = null;
16107       setTimestampIsSet(false);
16108       this.timestamp = 0;
16109       setNumVersionsIsSet(false);
16110       this.numVersions = 0;
16111       this.attributes = null;
16112     }
16113 
16114     /**
16115      * name of table
16116      */
16117     public byte[] getTableName() {
16118       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
16119       return tableName == null ? null : tableName.array();
16120     }
16121 
16122     public ByteBuffer bufferForTableName() {
16123       return tableName;
16124     }
16125 
16126     /**
16127      * name of table
16128      */
16129     public getVerTs_args setTableName(byte[] tableName) {
16130       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
16131       return this;
16132     }
16133 
16134     public getVerTs_args setTableName(ByteBuffer tableName) {
16135       this.tableName = tableName;
16136       return this;
16137     }
16138 
16139     public void unsetTableName() {
16140       this.tableName = null;
16141     }
16142 
16143     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
16144     public boolean isSetTableName() {
16145       return this.tableName != null;
16146     }
16147 
16148     public void setTableNameIsSet(boolean value) {
16149       if (!value) {
16150         this.tableName = null;
16151       }
16152     }
16153 
16154     /**
16155      * row key
16156      */
16157     public byte[] getRow() {
16158       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
16159       return row == null ? null : row.array();
16160     }
16161 
16162     public ByteBuffer bufferForRow() {
16163       return row;
16164     }
16165 
16166     /**
16167      * row key
16168      */
16169     public getVerTs_args setRow(byte[] row) {
16170       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
16171       return this;
16172     }
16173 
16174     public getVerTs_args setRow(ByteBuffer row) {
16175       this.row = row;
16176       return this;
16177     }
16178 
16179     public void unsetRow() {
16180       this.row = null;
16181     }
16182 
16183     /** Returns true if field row is set (has been assigned a value) and false otherwise */
16184     public boolean isSetRow() {
16185       return this.row != null;
16186     }
16187 
16188     public void setRowIsSet(boolean value) {
16189       if (!value) {
16190         this.row = null;
16191       }
16192     }
16193 
16194     /**
16195      * column name
16196      */
16197     public byte[] getColumn() {
16198       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
16199       return column == null ? null : column.array();
16200     }
16201 
16202     public ByteBuffer bufferForColumn() {
16203       return column;
16204     }
16205 
16206     /**
16207      * column name
16208      */
16209     public getVerTs_args setColumn(byte[] column) {
16210       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
16211       return this;
16212     }
16213 
16214     public getVerTs_args setColumn(ByteBuffer column) {
16215       this.column = column;
16216       return this;
16217     }
16218 
16219     public void unsetColumn() {
16220       this.column = null;
16221     }
16222 
16223     /** Returns true if field column is set (has been assigned a value) and false otherwise */
16224     public boolean isSetColumn() {
16225       return this.column != null;
16226     }
16227 
16228     public void setColumnIsSet(boolean value) {
16229       if (!value) {
16230         this.column = null;
16231       }
16232     }
16233 
16234     /**
16235      * timestamp
16236      */
16237     public long getTimestamp() {
16238       return this.timestamp;
16239     }
16240 
16241     /**
16242      * timestamp
16243      */
16244     public getVerTs_args setTimestamp(long timestamp) {
16245       this.timestamp = timestamp;
16246       setTimestampIsSet(true);
16247       return this;
16248     }
16249 
16250     public void unsetTimestamp() {
16251       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
16252     }
16253 
16254     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
16255     public boolean isSetTimestamp() {
16256       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
16257     }
16258 
16259     public void setTimestampIsSet(boolean value) {
16260       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
16261     }
16262 
16263     /**
16264      * number of versions to retrieve
16265      */
16266     public int getNumVersions() {
16267       return this.numVersions;
16268     }
16269 
16270     /**
16271      * number of versions to retrieve
16272      */
16273     public getVerTs_args setNumVersions(int numVersions) {
16274       this.numVersions = numVersions;
16275       setNumVersionsIsSet(true);
16276       return this;
16277     }
16278 
16279     public void unsetNumVersions() {
16280       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
16281     }
16282 
16283     /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */
16284     public boolean isSetNumVersions() {
16285       return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
16286     }
16287 
16288     public void setNumVersionsIsSet(boolean value) {
16289       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value);
16290     }
16291 
16292     public int getAttributesSize() {
16293       return (this.attributes == null) ? 0 : this.attributes.size();
16294     }
16295 
16296     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
16297       if (this.attributes == null) {
16298         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
16299       }
16300       this.attributes.put(key, val);
16301     }
16302 
16303     /**
16304      * Get attributes
16305      */
16306     public Map<ByteBuffer,ByteBuffer> getAttributes() {
16307       return this.attributes;
16308     }
16309 
16310     /**
16311      * Get attributes
16312      */
16313     public getVerTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
16314       this.attributes = attributes;
16315       return this;
16316     }
16317 
16318     public void unsetAttributes() {
16319       this.attributes = null;
16320     }
16321 
16322     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
16323     public boolean isSetAttributes() {
16324       return this.attributes != null;
16325     }
16326 
16327     public void setAttributesIsSet(boolean value) {
16328       if (!value) {
16329         this.attributes = null;
16330       }
16331     }
16332 
16333     public void setFieldValue(_Fields field, Object value) {
16334       switch (field) {
16335       case TABLE_NAME:
16336         if (value == null) {
16337           unsetTableName();
16338         } else {
16339           setTableName((ByteBuffer)value);
16340         }
16341         break;
16342 
16343       case ROW:
16344         if (value == null) {
16345           unsetRow();
16346         } else {
16347           setRow((ByteBuffer)value);
16348         }
16349         break;
16350 
16351       case COLUMN:
16352         if (value == null) {
16353           unsetColumn();
16354         } else {
16355           setColumn((ByteBuffer)value);
16356         }
16357         break;
16358 
16359       case TIMESTAMP:
16360         if (value == null) {
16361           unsetTimestamp();
16362         } else {
16363           setTimestamp((Long)value);
16364         }
16365         break;
16366 
16367       case NUM_VERSIONS:
16368         if (value == null) {
16369           unsetNumVersions();
16370         } else {
16371           setNumVersions((Integer)value);
16372         }
16373         break;
16374 
16375       case ATTRIBUTES:
16376         if (value == null) {
16377           unsetAttributes();
16378         } else {
16379           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
16380         }
16381         break;
16382 
16383       }
16384     }
16385 
16386     public Object getFieldValue(_Fields field) {
16387       switch (field) {
16388       case TABLE_NAME:
16389         return getTableName();
16390 
16391       case ROW:
16392         return getRow();
16393 
16394       case COLUMN:
16395         return getColumn();
16396 
16397       case TIMESTAMP:
16398         return Long.valueOf(getTimestamp());
16399 
16400       case NUM_VERSIONS:
16401         return Integer.valueOf(getNumVersions());
16402 
16403       case ATTRIBUTES:
16404         return getAttributes();
16405 
16406       }
16407       throw new IllegalStateException();
16408     }
16409 
16410     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16411     public boolean isSet(_Fields field) {
16412       if (field == null) {
16413         throw new IllegalArgumentException();
16414       }
16415 
16416       switch (field) {
16417       case TABLE_NAME:
16418         return isSetTableName();
16419       case ROW:
16420         return isSetRow();
16421       case COLUMN:
16422         return isSetColumn();
16423       case TIMESTAMP:
16424         return isSetTimestamp();
16425       case NUM_VERSIONS:
16426         return isSetNumVersions();
16427       case ATTRIBUTES:
16428         return isSetAttributes();
16429       }
16430       throw new IllegalStateException();
16431     }
16432 
16433     @Override
16434     public boolean equals(Object that) {
16435       if (that == null)
16436         return false;
16437       if (that instanceof getVerTs_args)
16438         return this.equals((getVerTs_args)that);
16439       return false;
16440     }
16441 
16442     public boolean equals(getVerTs_args that) {
16443       if (that == null)
16444         return false;
16445 
16446       boolean this_present_tableName = true && this.isSetTableName();
16447       boolean that_present_tableName = true && that.isSetTableName();
16448       if (this_present_tableName || that_present_tableName) {
16449         if (!(this_present_tableName && that_present_tableName))
16450           return false;
16451         if (!this.tableName.equals(that.tableName))
16452           return false;
16453       }
16454 
16455       boolean this_present_row = true && this.isSetRow();
16456       boolean that_present_row = true && that.isSetRow();
16457       if (this_present_row || that_present_row) {
16458         if (!(this_present_row && that_present_row))
16459           return false;
16460         if (!this.row.equals(that.row))
16461           return false;
16462       }
16463 
16464       boolean this_present_column = true && this.isSetColumn();
16465       boolean that_present_column = true && that.isSetColumn();
16466       if (this_present_column || that_present_column) {
16467         if (!(this_present_column && that_present_column))
16468           return false;
16469         if (!this.column.equals(that.column))
16470           return false;
16471       }
16472 
16473       boolean this_present_timestamp = true;
16474       boolean that_present_timestamp = true;
16475       if (this_present_timestamp || that_present_timestamp) {
16476         if (!(this_present_timestamp && that_present_timestamp))
16477           return false;
16478         if (this.timestamp != that.timestamp)
16479           return false;
16480       }
16481 
16482       boolean this_present_numVersions = true;
16483       boolean that_present_numVersions = true;
16484       if (this_present_numVersions || that_present_numVersions) {
16485         if (!(this_present_numVersions && that_present_numVersions))
16486           return false;
16487         if (this.numVersions != that.numVersions)
16488           return false;
16489       }
16490 
16491       boolean this_present_attributes = true && this.isSetAttributes();
16492       boolean that_present_attributes = true && that.isSetAttributes();
16493       if (this_present_attributes || that_present_attributes) {
16494         if (!(this_present_attributes && that_present_attributes))
16495           return false;
16496         if (!this.attributes.equals(that.attributes))
16497           return false;
16498       }
16499 
16500       return true;
16501     }
16502 
16503     @Override
16504     public int hashCode() {
16505       HashCodeBuilder builder = new HashCodeBuilder();
16506 
16507       boolean present_tableName = true && (isSetTableName());
16508       builder.append(present_tableName);
16509       if (present_tableName)
16510         builder.append(tableName);
16511 
16512       boolean present_row = true && (isSetRow());
16513       builder.append(present_row);
16514       if (present_row)
16515         builder.append(row);
16516 
16517       boolean present_column = true && (isSetColumn());
16518       builder.append(present_column);
16519       if (present_column)
16520         builder.append(column);
16521 
16522       boolean present_timestamp = true;
16523       builder.append(present_timestamp);
16524       if (present_timestamp)
16525         builder.append(timestamp);
16526 
16527       boolean present_numVersions = true;
16528       builder.append(present_numVersions);
16529       if (present_numVersions)
16530         builder.append(numVersions);
16531 
16532       boolean present_attributes = true && (isSetAttributes());
16533       builder.append(present_attributes);
16534       if (present_attributes)
16535         builder.append(attributes);
16536 
16537       return builder.toHashCode();
16538     }
16539 
16540     public int compareTo(getVerTs_args other) {
16541       if (!getClass().equals(other.getClass())) {
16542         return getClass().getName().compareTo(other.getClass().getName());
16543       }
16544 
16545       int lastComparison = 0;
16546       getVerTs_args typedOther = (getVerTs_args)other;
16547 
16548       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
16549       if (lastComparison != 0) {
16550         return lastComparison;
16551       }
16552       if (isSetTableName()) {
16553         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
16554         if (lastComparison != 0) {
16555           return lastComparison;
16556         }
16557       }
16558       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
16559       if (lastComparison != 0) {
16560         return lastComparison;
16561       }
16562       if (isSetRow()) {
16563         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
16564         if (lastComparison != 0) {
16565           return lastComparison;
16566         }
16567       }
16568       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
16569       if (lastComparison != 0) {
16570         return lastComparison;
16571       }
16572       if (isSetColumn()) {
16573         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
16574         if (lastComparison != 0) {
16575           return lastComparison;
16576         }
16577       }
16578       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
16579       if (lastComparison != 0) {
16580         return lastComparison;
16581       }
16582       if (isSetTimestamp()) {
16583         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
16584         if (lastComparison != 0) {
16585           return lastComparison;
16586         }
16587       }
16588       lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions());
16589       if (lastComparison != 0) {
16590         return lastComparison;
16591       }
16592       if (isSetNumVersions()) {
16593         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions);
16594         if (lastComparison != 0) {
16595           return lastComparison;
16596         }
16597       }
16598       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
16599       if (lastComparison != 0) {
16600         return lastComparison;
16601       }
16602       if (isSetAttributes()) {
16603         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
16604         if (lastComparison != 0) {
16605           return lastComparison;
16606         }
16607       }
16608       return 0;
16609     }
16610 
16611     public _Fields fieldForId(int fieldId) {
16612       return _Fields.findByThriftId(fieldId);
16613     }
16614 
16615     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16616       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16617     }
16618 
16619     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16620       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16621     }
16622 
16623     @Override
16624     public String toString() {
16625       StringBuilder sb = new StringBuilder("getVerTs_args(");
16626       boolean first = true;
16627 
16628       sb.append("tableName:");
16629       if (this.tableName == null) {
16630         sb.append("null");
16631       } else {
16632         sb.append(this.tableName);
16633       }
16634       first = false;
16635       if (!first) sb.append(", ");
16636       sb.append("row:");
16637       if (this.row == null) {
16638         sb.append("null");
16639       } else {
16640         sb.append(this.row);
16641       }
16642       first = false;
16643       if (!first) sb.append(", ");
16644       sb.append("column:");
16645       if (this.column == null) {
16646         sb.append("null");
16647       } else {
16648         sb.append(this.column);
16649       }
16650       first = false;
16651       if (!first) sb.append(", ");
16652       sb.append("timestamp:");
16653       sb.append(this.timestamp);
16654       first = false;
16655       if (!first) sb.append(", ");
16656       sb.append("numVersions:");
16657       sb.append(this.numVersions);
16658       first = false;
16659       if (!first) sb.append(", ");
16660       sb.append("attributes:");
16661       if (this.attributes == null) {
16662         sb.append("null");
16663       } else {
16664         sb.append(this.attributes);
16665       }
16666       first = false;
16667       sb.append(")");
16668       return sb.toString();
16669     }
16670 
16671     public void validate() throws org.apache.thrift.TException {
16672       // check for required fields
16673       // check for sub-struct validity
16674     }
16675 
16676     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16677       try {
16678         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16679       } catch (org.apache.thrift.TException te) {
16680         throw new java.io.IOException(te);
16681       }
16682     }
16683 
16684     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16685       try {
16686         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16687         __isset_bitfield = 0;
16688         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16689       } catch (org.apache.thrift.TException te) {
16690         throw new java.io.IOException(te);
16691       }
16692     }
16693 
16694     private static class getVerTs_argsStandardSchemeFactory implements SchemeFactory {
16695       public getVerTs_argsStandardScheme getScheme() {
16696         return new getVerTs_argsStandardScheme();
16697       }
16698     }
16699 
16700     private static class getVerTs_argsStandardScheme extends StandardScheme<getVerTs_args> {
16701 
16702       public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_args struct) throws org.apache.thrift.TException {
16703         org.apache.thrift.protocol.TField schemeField;
16704         iprot.readStructBegin();
16705         while (true)
16706         {
16707           schemeField = iprot.readFieldBegin();
16708           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16709             break;
16710           }
16711           switch (schemeField.id) {
16712             case 1: // TABLE_NAME
16713               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16714                 struct.tableName = iprot.readBinary();
16715                 struct.setTableNameIsSet(true);
16716               } else { 
16717                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16718               }
16719               break;
16720             case 2: // ROW
16721               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16722                 struct.row = iprot.readBinary();
16723                 struct.setRowIsSet(true);
16724               } else { 
16725                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16726               }
16727               break;
16728             case 3: // COLUMN
16729               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16730                 struct.column = iprot.readBinary();
16731                 struct.setColumnIsSet(true);
16732               } else { 
16733                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16734               }
16735               break;
16736             case 4: // TIMESTAMP
16737               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
16738                 struct.timestamp = iprot.readI64();
16739                 struct.setTimestampIsSet(true);
16740               } else { 
16741                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16742               }
16743               break;
16744             case 5: // NUM_VERSIONS
16745               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16746                 struct.numVersions = iprot.readI32();
16747                 struct.setNumVersionsIsSet(true);
16748               } else { 
16749                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16750               }
16751               break;
16752             case 6: // ATTRIBUTES
16753               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
16754                 {
16755                   org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin();
16756                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map120.size);
16757                   for (int _i121 = 0; _i121 < _map120.size; ++_i121)
16758                   {
16759                     ByteBuffer _key122; // required
16760                     ByteBuffer _val123; // required
16761                     _key122 = iprot.readBinary();
16762                     _val123 = iprot.readBinary();
16763                     struct.attributes.put(_key122, _val123);
16764                   }
16765                   iprot.readMapEnd();
16766                 }
16767                 struct.setAttributesIsSet(true);
16768               } else { 
16769                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16770               }
16771               break;
16772             default:
16773               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16774           }
16775           iprot.readFieldEnd();
16776         }
16777         iprot.readStructEnd();
16778 
16779         // check for required fields of primitive type, which can't be checked in the validate method
16780         struct.validate();
16781       }
16782 
16783       public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_args struct) throws org.apache.thrift.TException {
16784         struct.validate();
16785 
16786         oprot.writeStructBegin(STRUCT_DESC);
16787         if (struct.tableName != null) {
16788           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
16789           oprot.writeBinary(struct.tableName);
16790           oprot.writeFieldEnd();
16791         }
16792         if (struct.row != null) {
16793           oprot.writeFieldBegin(ROW_FIELD_DESC);
16794           oprot.writeBinary(struct.row);
16795           oprot.writeFieldEnd();
16796         }
16797         if (struct.column != null) {
16798           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
16799           oprot.writeBinary(struct.column);
16800           oprot.writeFieldEnd();
16801         }
16802         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
16803         oprot.writeI64(struct.timestamp);
16804         oprot.writeFieldEnd();
16805         oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC);
16806         oprot.writeI32(struct.numVersions);
16807         oprot.writeFieldEnd();
16808         if (struct.attributes != null) {
16809           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
16810           {
16811             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
16812             for (Map.Entry<ByteBuffer, ByteBuffer> _iter124 : struct.attributes.entrySet())
16813             {
16814               oprot.writeBinary(_iter124.getKey());
16815               oprot.writeBinary(_iter124.getValue());
16816             }
16817             oprot.writeMapEnd();
16818           }
16819           oprot.writeFieldEnd();
16820         }
16821         oprot.writeFieldStop();
16822         oprot.writeStructEnd();
16823       }
16824 
16825     }
16826 
16827     private static class getVerTs_argsTupleSchemeFactory implements SchemeFactory {
16828       public getVerTs_argsTupleScheme getScheme() {
16829         return new getVerTs_argsTupleScheme();
16830       }
16831     }
16832 
16833     private static class getVerTs_argsTupleScheme extends TupleScheme<getVerTs_args> {
16834 
16835       @Override
16836       public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException {
16837         TTupleProtocol oprot = (TTupleProtocol) prot;
16838         BitSet optionals = new BitSet();
16839         if (struct.isSetTableName()) {
16840           optionals.set(0);
16841         }
16842         if (struct.isSetRow()) {
16843           optionals.set(1);
16844         }
16845         if (struct.isSetColumn()) {
16846           optionals.set(2);
16847         }
16848         if (struct.isSetTimestamp()) {
16849           optionals.set(3);
16850         }
16851         if (struct.isSetNumVersions()) {
16852           optionals.set(4);
16853         }
16854         if (struct.isSetAttributes()) {
16855           optionals.set(5);
16856         }
16857         oprot.writeBitSet(optionals, 6);
16858         if (struct.isSetTableName()) {
16859           oprot.writeBinary(struct.tableName);
16860         }
16861         if (struct.isSetRow()) {
16862           oprot.writeBinary(struct.row);
16863         }
16864         if (struct.isSetColumn()) {
16865           oprot.writeBinary(struct.column);
16866         }
16867         if (struct.isSetTimestamp()) {
16868           oprot.writeI64(struct.timestamp);
16869         }
16870         if (struct.isSetNumVersions()) {
16871           oprot.writeI32(struct.numVersions);
16872         }
16873         if (struct.isSetAttributes()) {
16874           {
16875             oprot.writeI32(struct.attributes.size());
16876             for (Map.Entry<ByteBuffer, ByteBuffer> _iter125 : struct.attributes.entrySet())
16877             {
16878               oprot.writeBinary(_iter125.getKey());
16879               oprot.writeBinary(_iter125.getValue());
16880             }
16881           }
16882         }
16883       }
16884 
16885       @Override
16886       public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException {
16887         TTupleProtocol iprot = (TTupleProtocol) prot;
16888         BitSet incoming = iprot.readBitSet(6);
16889         if (incoming.get(0)) {
16890           struct.tableName = iprot.readBinary();
16891           struct.setTableNameIsSet(true);
16892         }
16893         if (incoming.get(1)) {
16894           struct.row = iprot.readBinary();
16895           struct.setRowIsSet(true);
16896         }
16897         if (incoming.get(2)) {
16898           struct.column = iprot.readBinary();
16899           struct.setColumnIsSet(true);
16900         }
16901         if (incoming.get(3)) {
16902           struct.timestamp = iprot.readI64();
16903           struct.setTimestampIsSet(true);
16904         }
16905         if (incoming.get(4)) {
16906           struct.numVersions = iprot.readI32();
16907           struct.setNumVersionsIsSet(true);
16908         }
16909         if (incoming.get(5)) {
16910           {
16911             org.apache.thrift.protocol.TMap _map126 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
16912             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map126.size);
16913             for (int _i127 = 0; _i127 < _map126.size; ++_i127)
16914             {
16915               ByteBuffer _key128; // required
16916               ByteBuffer _val129; // required
16917               _key128 = iprot.readBinary();
16918               _val129 = iprot.readBinary();
16919               struct.attributes.put(_key128, _val129);
16920             }
16921           }
16922           struct.setAttributesIsSet(true);
16923         }
16924       }
16925     }
16926 
16927   }
16928 
16929   public static class getVerTs_result implements org.apache.thrift.TBase<getVerTs_result, getVerTs_result._Fields>, java.io.Serializable, Cloneable   {
16930     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_result");
16931 
16932     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
16933     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16934 
16935     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16936     static {
16937       schemes.put(StandardScheme.class, new getVerTs_resultStandardSchemeFactory());
16938       schemes.put(TupleScheme.class, new getVerTs_resultTupleSchemeFactory());
16939     }
16940 
16941     public List<TCell> success; // required
16942     public IOError io; // required
16943 
16944     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16945     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16946       SUCCESS((short)0, "success"),
16947       IO((short)1, "io");
16948 
16949       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16950 
16951       static {
16952         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16953           byName.put(field.getFieldName(), field);
16954         }
16955       }
16956 
16957       /**
16958        * Find the _Fields constant that matches fieldId, or null if its not found.
16959        */
16960       public static _Fields findByThriftId(int fieldId) {
16961         switch(fieldId) {
16962           case 0: // SUCCESS
16963             return SUCCESS;
16964           case 1: // IO
16965             return IO;
16966           default:
16967             return null;
16968         }
16969       }
16970 
16971       /**
16972        * Find the _Fields constant that matches fieldId, throwing an exception
16973        * if it is not found.
16974        */
16975       public static _Fields findByThriftIdOrThrow(int fieldId) {
16976         _Fields fields = findByThriftId(fieldId);
16977         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16978         return fields;
16979       }
16980 
16981       /**
16982        * Find the _Fields constant that matches name, or null if its not found.
16983        */
16984       public static _Fields findByName(String name) {
16985         return byName.get(name);
16986       }
16987 
16988       private final short _thriftId;
16989       private final String _fieldName;
16990 
16991       _Fields(short thriftId, String fieldName) {
16992         _thriftId = thriftId;
16993         _fieldName = fieldName;
16994       }
16995 
16996       public short getThriftFieldId() {
16997         return _thriftId;
16998       }
16999 
17000       public String getFieldName() {
17001         return _fieldName;
17002       }
17003     }
17004 
17005     // isset id assignments
17006     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17007     static {
17008       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17009       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17010           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17011               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
17012       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17013           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17014       metaDataMap = Collections.unmodifiableMap(tmpMap);
17015       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_result.class, metaDataMap);
17016     }
17017 
17018     public getVerTs_result() {
17019     }
17020 
17021     public getVerTs_result(
17022       List<TCell> success,
17023       IOError io)
17024     {
17025       this();
17026       this.success = success;
17027       this.io = io;
17028     }
17029 
17030     /**
17031      * Performs a deep copy on <i>other</i>.
17032      */
17033     public getVerTs_result(getVerTs_result other) {
17034       if (other.isSetSuccess()) {
17035         List<TCell> __this__success = new ArrayList<TCell>();
17036         for (TCell other_element : other.success) {
17037           __this__success.add(new TCell(other_element));
17038         }
17039         this.success = __this__success;
17040       }
17041       if (other.isSetIo()) {
17042         this.io = new IOError(other.io);
17043       }
17044     }
17045 
17046     public getVerTs_result deepCopy() {
17047       return new getVerTs_result(this);
17048     }
17049 
17050     @Override
17051     public void clear() {
17052       this.success = null;
17053       this.io = null;
17054     }
17055 
17056     public int getSuccessSize() {
17057       return (this.success == null) ? 0 : this.success.size();
17058     }
17059 
17060     public java.util.Iterator<TCell> getSuccessIterator() {
17061       return (this.success == null) ? null : this.success.iterator();
17062     }
17063 
17064     public void addToSuccess(TCell elem) {
17065       if (this.success == null) {
17066         this.success = new ArrayList<TCell>();
17067       }
17068       this.success.add(elem);
17069     }
17070 
17071     public List<TCell> getSuccess() {
17072       return this.success;
17073     }
17074 
17075     public getVerTs_result setSuccess(List<TCell> success) {
17076       this.success = success;
17077       return this;
17078     }
17079 
17080     public void unsetSuccess() {
17081       this.success = null;
17082     }
17083 
17084     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17085     public boolean isSetSuccess() {
17086       return this.success != null;
17087     }
17088 
17089     public void setSuccessIsSet(boolean value) {
17090       if (!value) {
17091         this.success = null;
17092       }
17093     }
17094 
17095     public IOError getIo() {
17096       return this.io;
17097     }
17098 
17099     public getVerTs_result setIo(IOError io) {
17100       this.io = io;
17101       return this;
17102     }
17103 
17104     public void unsetIo() {
17105       this.io = null;
17106     }
17107 
17108     /** Returns true if field io is set (has been assigned a value) and false otherwise */
17109     public boolean isSetIo() {
17110       return this.io != null;
17111     }
17112 
17113     public void setIoIsSet(boolean value) {
17114       if (!value) {
17115         this.io = null;
17116       }
17117     }
17118 
17119     public void setFieldValue(_Fields field, Object value) {
17120       switch (field) {
17121       case SUCCESS:
17122         if (value == null) {
17123           unsetSuccess();
17124         } else {
17125           setSuccess((List<TCell>)value);
17126         }
17127         break;
17128 
17129       case IO:
17130         if (value == null) {
17131           unsetIo();
17132         } else {
17133           setIo((IOError)value);
17134         }
17135         break;
17136 
17137       }
17138     }
17139 
17140     public Object getFieldValue(_Fields field) {
17141       switch (field) {
17142       case SUCCESS:
17143         return getSuccess();
17144 
17145       case IO:
17146         return getIo();
17147 
17148       }
17149       throw new IllegalStateException();
17150     }
17151 
17152     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17153     public boolean isSet(_Fields field) {
17154       if (field == null) {
17155         throw new IllegalArgumentException();
17156       }
17157 
17158       switch (field) {
17159       case SUCCESS:
17160         return isSetSuccess();
17161       case IO:
17162         return isSetIo();
17163       }
17164       throw new IllegalStateException();
17165     }
17166 
17167     @Override
17168     public boolean equals(Object that) {
17169       if (that == null)
17170         return false;
17171       if (that instanceof getVerTs_result)
17172         return this.equals((getVerTs_result)that);
17173       return false;
17174     }
17175 
17176     public boolean equals(getVerTs_result that) {
17177       if (that == null)
17178         return false;
17179 
17180       boolean this_present_success = true && this.isSetSuccess();
17181       boolean that_present_success = true && that.isSetSuccess();
17182       if (this_present_success || that_present_success) {
17183         if (!(this_present_success && that_present_success))
17184           return false;
17185         if (!this.success.equals(that.success))
17186           return false;
17187       }
17188 
17189       boolean this_present_io = true && this.isSetIo();
17190       boolean that_present_io = true && that.isSetIo();
17191       if (this_present_io || that_present_io) {
17192         if (!(this_present_io && that_present_io))
17193           return false;
17194         if (!this.io.equals(that.io))
17195           return false;
17196       }
17197 
17198       return true;
17199     }
17200 
17201     @Override
17202     public int hashCode() {
17203       HashCodeBuilder builder = new HashCodeBuilder();
17204 
17205       boolean present_success = true && (isSetSuccess());
17206       builder.append(present_success);
17207       if (present_success)
17208         builder.append(success);
17209 
17210       boolean present_io = true && (isSetIo());
17211       builder.append(present_io);
17212       if (present_io)
17213         builder.append(io);
17214 
17215       return builder.toHashCode();
17216     }
17217 
17218     public int compareTo(getVerTs_result other) {
17219       if (!getClass().equals(other.getClass())) {
17220         return getClass().getName().compareTo(other.getClass().getName());
17221       }
17222 
17223       int lastComparison = 0;
17224       getVerTs_result typedOther = (getVerTs_result)other;
17225 
17226       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17227       if (lastComparison != 0) {
17228         return lastComparison;
17229       }
17230       if (isSetSuccess()) {
17231         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17232         if (lastComparison != 0) {
17233           return lastComparison;
17234         }
17235       }
17236       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
17237       if (lastComparison != 0) {
17238         return lastComparison;
17239       }
17240       if (isSetIo()) {
17241         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
17242         if (lastComparison != 0) {
17243           return lastComparison;
17244         }
17245       }
17246       return 0;
17247     }
17248 
17249     public _Fields fieldForId(int fieldId) {
17250       return _Fields.findByThriftId(fieldId);
17251     }
17252 
17253     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17254       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17255     }
17256 
17257     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17258       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17259       }
17260 
17261     @Override
17262     public String toString() {
17263       StringBuilder sb = new StringBuilder("getVerTs_result(");
17264       boolean first = true;
17265 
17266       sb.append("success:");
17267       if (this.success == null) {
17268         sb.append("null");
17269       } else {
17270         sb.append(this.success);
17271       }
17272       first = false;
17273       if (!first) sb.append(", ");
17274       sb.append("io:");
17275       if (this.io == null) {
17276         sb.append("null");
17277       } else {
17278         sb.append(this.io);
17279       }
17280       first = false;
17281       sb.append(")");
17282       return sb.toString();
17283     }
17284 
17285     public void validate() throws org.apache.thrift.TException {
17286       // check for required fields
17287       // check for sub-struct validity
17288     }
17289 
17290     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17291       try {
17292         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17293       } catch (org.apache.thrift.TException te) {
17294         throw new java.io.IOException(te);
17295       }
17296     }
17297 
17298     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17299       try {
17300         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17301       } catch (org.apache.thrift.TException te) {
17302         throw new java.io.IOException(te);
17303       }
17304     }
17305 
17306     private static class getVerTs_resultStandardSchemeFactory implements SchemeFactory {
17307       public getVerTs_resultStandardScheme getScheme() {
17308         return new getVerTs_resultStandardScheme();
17309       }
17310     }
17311 
17312     private static class getVerTs_resultStandardScheme extends StandardScheme<getVerTs_result> {
17313 
17314       public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_result struct) throws org.apache.thrift.TException {
17315         org.apache.thrift.protocol.TField schemeField;
17316         iprot.readStructBegin();
17317         while (true)
17318         {
17319           schemeField = iprot.readFieldBegin();
17320           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17321             break;
17322           }
17323           switch (schemeField.id) {
17324             case 0: // SUCCESS
17325               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
17326                 {
17327                   org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
17328                   struct.success = new ArrayList<TCell>(_list130.size);
17329                   for (int _i131 = 0; _i131 < _list130.size; ++_i131)
17330                   {
17331                     TCell _elem132; // required
17332                     _elem132 = new TCell();
17333                     _elem132.read(iprot);
17334                     struct.success.add(_elem132);
17335                   }
17336                   iprot.readListEnd();
17337                 }
17338                 struct.setSuccessIsSet(true);
17339               } else { 
17340                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17341               }
17342               break;
17343             case 1: // IO
17344               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17345                 struct.io = new IOError();
17346                 struct.io.read(iprot);
17347                 struct.setIoIsSet(true);
17348               } else { 
17349                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17350               }
17351               break;
17352             default:
17353               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17354           }
17355           iprot.readFieldEnd();
17356         }
17357         iprot.readStructEnd();
17358 
17359         // check for required fields of primitive type, which can't be checked in the validate method
17360         struct.validate();
17361       }
17362 
17363       public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_result struct) throws org.apache.thrift.TException {
17364         struct.validate();
17365 
17366         oprot.writeStructBegin(STRUCT_DESC);
17367         if (struct.success != null) {
17368           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17369           {
17370             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
17371             for (TCell _iter133 : struct.success)
17372             {
17373               _iter133.write(oprot);
17374             }
17375             oprot.writeListEnd();
17376           }
17377           oprot.writeFieldEnd();
17378         }
17379         if (struct.io != null) {
17380           oprot.writeFieldBegin(IO_FIELD_DESC);
17381           struct.io.write(oprot);
17382           oprot.writeFieldEnd();
17383         }
17384         oprot.writeFieldStop();
17385         oprot.writeStructEnd();
17386       }
17387 
17388     }
17389 
17390     private static class getVerTs_resultTupleSchemeFactory implements SchemeFactory {
17391       public getVerTs_resultTupleScheme getScheme() {
17392         return new getVerTs_resultTupleScheme();
17393       }
17394     }
17395 
17396     private static class getVerTs_resultTupleScheme extends TupleScheme<getVerTs_result> {
17397 
17398       @Override
17399       public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException {
17400         TTupleProtocol oprot = (TTupleProtocol) prot;
17401         BitSet optionals = new BitSet();
17402         if (struct.isSetSuccess()) {
17403           optionals.set(0);
17404         }
17405         if (struct.isSetIo()) {
17406           optionals.set(1);
17407         }
17408         oprot.writeBitSet(optionals, 2);
17409         if (struct.isSetSuccess()) {
17410           {
17411             oprot.writeI32(struct.success.size());
17412             for (TCell _iter134 : struct.success)
17413             {
17414               _iter134.write(oprot);
17415             }
17416           }
17417         }
17418         if (struct.isSetIo()) {
17419           struct.io.write(oprot);
17420         }
17421       }
17422 
17423       @Override
17424       public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException {
17425         TTupleProtocol iprot = (TTupleProtocol) prot;
17426         BitSet incoming = iprot.readBitSet(2);
17427         if (incoming.get(0)) {
17428           {
17429             org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
17430             struct.success = new ArrayList<TCell>(_list135.size);
17431             for (int _i136 = 0; _i136 < _list135.size; ++_i136)
17432             {
17433               TCell _elem137; // required
17434               _elem137 = new TCell();
17435               _elem137.read(iprot);
17436               struct.success.add(_elem137);
17437             }
17438           }
17439           struct.setSuccessIsSet(true);
17440         }
17441         if (incoming.get(1)) {
17442           struct.io = new IOError();
17443           struct.io.read(iprot);
17444           struct.setIoIsSet(true);
17445         }
17446       }
17447     }
17448 
17449   }
17450 
17451   public static class getRow_args implements org.apache.thrift.TBase<getRow_args, getRow_args._Fields>, java.io.Serializable, Cloneable   {
17452     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_args");
17453 
17454     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
17455     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
17456     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
17457 
17458     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17459     static {
17460       schemes.put(StandardScheme.class, new getRow_argsStandardSchemeFactory());
17461       schemes.put(TupleScheme.class, new getRow_argsTupleSchemeFactory());
17462     }
17463 
17464     /**
17465      * name of table
17466      */
17467     public ByteBuffer tableName; // required
17468     /**
17469      * row key
17470      */
17471     public ByteBuffer row; // required
17472     /**
17473      * Get attributes
17474      */
17475     public Map<ByteBuffer,ByteBuffer> attributes; // required
17476 
17477     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17478     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17479       /**
17480        * name of table
17481        */
17482       TABLE_NAME((short)1, "tableName"),
17483       /**
17484        * row key
17485        */
17486       ROW((short)2, "row"),
17487       /**
17488        * Get attributes
17489        */
17490       ATTRIBUTES((short)3, "attributes");
17491 
17492       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17493 
17494       static {
17495         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17496           byName.put(field.getFieldName(), field);
17497         }
17498       }
17499 
17500       /**
17501        * Find the _Fields constant that matches fieldId, or null if its not found.
17502        */
17503       public static _Fields findByThriftId(int fieldId) {
17504         switch(fieldId) {
17505           case 1: // TABLE_NAME
17506             return TABLE_NAME;
17507           case 2: // ROW
17508             return ROW;
17509           case 3: // ATTRIBUTES
17510             return ATTRIBUTES;
17511           default:
17512             return null;
17513         }
17514       }
17515 
17516       /**
17517        * Find the _Fields constant that matches fieldId, throwing an exception
17518        * if it is not found.
17519        */
17520       public static _Fields findByThriftIdOrThrow(int fieldId) {
17521         _Fields fields = findByThriftId(fieldId);
17522         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17523         return fields;
17524       }
17525 
17526       /**
17527        * Find the _Fields constant that matches name, or null if its not found.
17528        */
17529       public static _Fields findByName(String name) {
17530         return byName.get(name);
17531       }
17532 
17533       private final short _thriftId;
17534       private final String _fieldName;
17535 
17536       _Fields(short thriftId, String fieldName) {
17537         _thriftId = thriftId;
17538         _fieldName = fieldName;
17539       }
17540 
17541       public short getThriftFieldId() {
17542         return _thriftId;
17543       }
17544 
17545       public String getFieldName() {
17546         return _fieldName;
17547       }
17548     }
17549 
17550     // isset id assignments
17551     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17552     static {
17553       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17554       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17555           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
17556       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17557           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
17558       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17559           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
17560               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
17561               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
17562       metaDataMap = Collections.unmodifiableMap(tmpMap);
17563       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_args.class, metaDataMap);
17564     }
17565 
17566     public getRow_args() {
17567     }
17568 
17569     public getRow_args(
17570       ByteBuffer tableName,
17571       ByteBuffer row,
17572       Map<ByteBuffer,ByteBuffer> attributes)
17573     {
17574       this();
17575       this.tableName = tableName;
17576       this.row = row;
17577       this.attributes = attributes;
17578     }
17579 
17580     /**
17581      * Performs a deep copy on <i>other</i>.
17582      */
17583     public getRow_args(getRow_args other) {
17584       if (other.isSetTableName()) {
17585         this.tableName = other.tableName;
17586       }
17587       if (other.isSetRow()) {
17588         this.row = other.row;
17589       }
17590       if (other.isSetAttributes()) {
17591         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
17592         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
17593 
17594           ByteBuffer other_element_key = other_element.getKey();
17595           ByteBuffer other_element_value = other_element.getValue();
17596 
17597           ByteBuffer __this__attributes_copy_key = other_element_key;
17598 
17599           ByteBuffer __this__attributes_copy_value = other_element_value;
17600 
17601           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
17602         }
17603         this.attributes = __this__attributes;
17604       }
17605     }
17606 
17607     public getRow_args deepCopy() {
17608       return new getRow_args(this);
17609     }
17610 
17611     @Override
17612     public void clear() {
17613       this.tableName = null;
17614       this.row = null;
17615       this.attributes = null;
17616     }
17617 
17618     /**
17619      * name of table
17620      */
17621     public byte[] getTableName() {
17622       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
17623       return tableName == null ? null : tableName.array();
17624     }
17625 
17626     public ByteBuffer bufferForTableName() {
17627       return tableName;
17628     }
17629 
17630     /**
17631      * name of table
17632      */
17633     public getRow_args setTableName(byte[] tableName) {
17634       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
17635       return this;
17636     }
17637 
17638     public getRow_args setTableName(ByteBuffer tableName) {
17639       this.tableName = tableName;
17640       return this;
17641     }
17642 
17643     public void unsetTableName() {
17644       this.tableName = null;
17645     }
17646 
17647     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
17648     public boolean isSetTableName() {
17649       return this.tableName != null;
17650     }
17651 
17652     public void setTableNameIsSet(boolean value) {
17653       if (!value) {
17654         this.tableName = null;
17655       }
17656     }
17657 
17658     /**
17659      * row key
17660      */
17661     public byte[] getRow() {
17662       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
17663       return row == null ? null : row.array();
17664     }
17665 
17666     public ByteBuffer bufferForRow() {
17667       return row;
17668     }
17669 
17670     /**
17671      * row key
17672      */
17673     public getRow_args setRow(byte[] row) {
17674       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
17675       return this;
17676     }
17677 
17678     public getRow_args setRow(ByteBuffer row) {
17679       this.row = row;
17680       return this;
17681     }
17682 
17683     public void unsetRow() {
17684       this.row = null;
17685     }
17686 
17687     /** Returns true if field row is set (has been assigned a value) and false otherwise */
17688     public boolean isSetRow() {
17689       return this.row != null;
17690     }
17691 
17692     public void setRowIsSet(boolean value) {
17693       if (!value) {
17694         this.row = null;
17695       }
17696     }
17697 
17698     public int getAttributesSize() {
17699       return (this.attributes == null) ? 0 : this.attributes.size();
17700     }
17701 
17702     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
17703       if (this.attributes == null) {
17704         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
17705       }
17706       this.attributes.put(key, val);
17707     }
17708 
17709     /**
17710      * Get attributes
17711      */
17712     public Map<ByteBuffer,ByteBuffer> getAttributes() {
17713       return this.attributes;
17714     }
17715 
17716     /**
17717      * Get attributes
17718      */
17719     public getRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
17720       this.attributes = attributes;
17721       return this;
17722     }
17723 
17724     public void unsetAttributes() {
17725       this.attributes = null;
17726     }
17727 
17728     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
17729     public boolean isSetAttributes() {
17730       return this.attributes != null;
17731     }
17732 
17733     public void setAttributesIsSet(boolean value) {
17734       if (!value) {
17735         this.attributes = null;
17736       }
17737     }
17738 
17739     public void setFieldValue(_Fields field, Object value) {
17740       switch (field) {
17741       case TABLE_NAME:
17742         if (value == null) {
17743           unsetTableName();
17744         } else {
17745           setTableName((ByteBuffer)value);
17746         }
17747         break;
17748 
17749       case ROW:
17750         if (value == null) {
17751           unsetRow();
17752         } else {
17753           setRow((ByteBuffer)value);
17754         }
17755         break;
17756 
17757       case ATTRIBUTES:
17758         if (value == null) {
17759           unsetAttributes();
17760         } else {
17761           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
17762         }
17763         break;
17764 
17765       }
17766     }
17767 
17768     public Object getFieldValue(_Fields field) {
17769       switch (field) {
17770       case TABLE_NAME:
17771         return getTableName();
17772 
17773       case ROW:
17774         return getRow();
17775 
17776       case ATTRIBUTES:
17777         return getAttributes();
17778 
17779       }
17780       throw new IllegalStateException();
17781     }
17782 
17783     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17784     public boolean isSet(_Fields field) {
17785       if (field == null) {
17786         throw new IllegalArgumentException();
17787       }
17788 
17789       switch (field) {
17790       case TABLE_NAME:
17791         return isSetTableName();
17792       case ROW:
17793         return isSetRow();
17794       case ATTRIBUTES:
17795         return isSetAttributes();
17796       }
17797       throw new IllegalStateException();
17798     }
17799 
17800     @Override
17801     public boolean equals(Object that) {
17802       if (that == null)
17803         return false;
17804       if (that instanceof getRow_args)
17805         return this.equals((getRow_args)that);
17806       return false;
17807     }
17808 
17809     public boolean equals(getRow_args that) {
17810       if (that == null)
17811         return false;
17812 
17813       boolean this_present_tableName = true && this.isSetTableName();
17814       boolean that_present_tableName = true && that.isSetTableName();
17815       if (this_present_tableName || that_present_tableName) {
17816         if (!(this_present_tableName && that_present_tableName))
17817           return false;
17818         if (!this.tableName.equals(that.tableName))
17819           return false;
17820       }
17821 
17822       boolean this_present_row = true && this.isSetRow();
17823       boolean that_present_row = true && that.isSetRow();
17824       if (this_present_row || that_present_row) {
17825         if (!(this_present_row && that_present_row))
17826           return false;
17827         if (!this.row.equals(that.row))
17828           return false;
17829       }
17830 
17831       boolean this_present_attributes = true && this.isSetAttributes();
17832       boolean that_present_attributes = true && that.isSetAttributes();
17833       if (this_present_attributes || that_present_attributes) {
17834         if (!(this_present_attributes && that_present_attributes))
17835           return false;
17836         if (!this.attributes.equals(that.attributes))
17837           return false;
17838       }
17839 
17840       return true;
17841     }
17842 
17843     @Override
17844     public int hashCode() {
17845       HashCodeBuilder builder = new HashCodeBuilder();
17846 
17847       boolean present_tableName = true && (isSetTableName());
17848       builder.append(present_tableName);
17849       if (present_tableName)
17850         builder.append(tableName);
17851 
17852       boolean present_row = true && (isSetRow());
17853       builder.append(present_row);
17854       if (present_row)
17855         builder.append(row);
17856 
17857       boolean present_attributes = true && (isSetAttributes());
17858       builder.append(present_attributes);
17859       if (present_attributes)
17860         builder.append(attributes);
17861 
17862       return builder.toHashCode();
17863     }
17864 
17865     public int compareTo(getRow_args other) {
17866       if (!getClass().equals(other.getClass())) {
17867         return getClass().getName().compareTo(other.getClass().getName());
17868       }
17869 
17870       int lastComparison = 0;
17871       getRow_args typedOther = (getRow_args)other;
17872 
17873       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
17874       if (lastComparison != 0) {
17875         return lastComparison;
17876       }
17877       if (isSetTableName()) {
17878         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
17879         if (lastComparison != 0) {
17880           return lastComparison;
17881         }
17882       }
17883       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
17884       if (lastComparison != 0) {
17885         return lastComparison;
17886       }
17887       if (isSetRow()) {
17888         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
17889         if (lastComparison != 0) {
17890           return lastComparison;
17891         }
17892       }
17893       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
17894       if (lastComparison != 0) {
17895         return lastComparison;
17896       }
17897       if (isSetAttributes()) {
17898         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
17899         if (lastComparison != 0) {
17900           return lastComparison;
17901         }
17902       }
17903       return 0;
17904     }
17905 
17906     public _Fields fieldForId(int fieldId) {
17907       return _Fields.findByThriftId(fieldId);
17908     }
17909 
17910     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17911       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17912     }
17913 
17914     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17915       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17916     }
17917 
17918     @Override
17919     public String toString() {
17920       StringBuilder sb = new StringBuilder("getRow_args(");
17921       boolean first = true;
17922 
17923       sb.append("tableName:");
17924       if (this.tableName == null) {
17925         sb.append("null");
17926       } else {
17927         sb.append(this.tableName);
17928       }
17929       first = false;
17930       if (!first) sb.append(", ");
17931       sb.append("row:");
17932       if (this.row == null) {
17933         sb.append("null");
17934       } else {
17935         sb.append(this.row);
17936       }
17937       first = false;
17938       if (!first) sb.append(", ");
17939       sb.append("attributes:");
17940       if (this.attributes == null) {
17941         sb.append("null");
17942       } else {
17943         sb.append(this.attributes);
17944       }
17945       first = false;
17946       sb.append(")");
17947       return sb.toString();
17948     }
17949 
17950     public void validate() throws org.apache.thrift.TException {
17951       // check for required fields
17952       // check for sub-struct validity
17953     }
17954 
17955     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17956       try {
17957         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17958       } catch (org.apache.thrift.TException te) {
17959         throw new java.io.IOException(te);
17960       }
17961     }
17962 
17963     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17964       try {
17965         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17966       } catch (org.apache.thrift.TException te) {
17967         throw new java.io.IOException(te);
17968       }
17969     }
17970 
17971     private static class getRow_argsStandardSchemeFactory implements SchemeFactory {
17972       public getRow_argsStandardScheme getScheme() {
17973         return new getRow_argsStandardScheme();
17974       }
17975     }
17976 
17977     private static class getRow_argsStandardScheme extends StandardScheme<getRow_args> {
17978 
17979       public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_args struct) throws org.apache.thrift.TException {
17980         org.apache.thrift.protocol.TField schemeField;
17981         iprot.readStructBegin();
17982         while (true)
17983         {
17984           schemeField = iprot.readFieldBegin();
17985           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17986             break;
17987           }
17988           switch (schemeField.id) {
17989             case 1: // TABLE_NAME
17990               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17991                 struct.tableName = iprot.readBinary();
17992                 struct.setTableNameIsSet(true);
17993               } else { 
17994                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17995               }
17996               break;
17997             case 2: // ROW
17998               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17999                 struct.row = iprot.readBinary();
18000                 struct.setRowIsSet(true);
18001               } else { 
18002                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18003               }
18004               break;
18005             case 3: // ATTRIBUTES
18006               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
18007                 {
18008                   org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
18009                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map138.size);
18010                   for (int _i139 = 0; _i139 < _map138.size; ++_i139)
18011                   {
18012                     ByteBuffer _key140; // required
18013                     ByteBuffer _val141; // required
18014                     _key140 = iprot.readBinary();
18015                     _val141 = iprot.readBinary();
18016                     struct.attributes.put(_key140, _val141);
18017                   }
18018                   iprot.readMapEnd();
18019                 }
18020                 struct.setAttributesIsSet(true);
18021               } else { 
18022                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18023               }
18024               break;
18025             default:
18026               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18027           }
18028           iprot.readFieldEnd();
18029         }
18030         iprot.readStructEnd();
18031 
18032         // check for required fields of primitive type, which can't be checked in the validate method
18033         struct.validate();
18034       }
18035 
18036       public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_args struct) throws org.apache.thrift.TException {
18037         struct.validate();
18038 
18039         oprot.writeStructBegin(STRUCT_DESC);
18040         if (struct.tableName != null) {
18041           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
18042           oprot.writeBinary(struct.tableName);
18043           oprot.writeFieldEnd();
18044         }
18045         if (struct.row != null) {
18046           oprot.writeFieldBegin(ROW_FIELD_DESC);
18047           oprot.writeBinary(struct.row);
18048           oprot.writeFieldEnd();
18049         }
18050         if (struct.attributes != null) {
18051           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
18052           {
18053             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
18054             for (Map.Entry<ByteBuffer, ByteBuffer> _iter142 : struct.attributes.entrySet())
18055             {
18056               oprot.writeBinary(_iter142.getKey());
18057               oprot.writeBinary(_iter142.getValue());
18058             }
18059             oprot.writeMapEnd();
18060           }
18061           oprot.writeFieldEnd();
18062         }
18063         oprot.writeFieldStop();
18064         oprot.writeStructEnd();
18065       }
18066 
18067     }
18068 
18069     private static class getRow_argsTupleSchemeFactory implements SchemeFactory {
18070       public getRow_argsTupleScheme getScheme() {
18071         return new getRow_argsTupleScheme();
18072       }
18073     }
18074 
18075     private static class getRow_argsTupleScheme extends TupleScheme<getRow_args> {
18076 
18077       @Override
18078       public void write(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException {
18079         TTupleProtocol oprot = (TTupleProtocol) prot;
18080         BitSet optionals = new BitSet();
18081         if (struct.isSetTableName()) {
18082           optionals.set(0);
18083         }
18084         if (struct.isSetRow()) {
18085           optionals.set(1);
18086         }
18087         if (struct.isSetAttributes()) {
18088           optionals.set(2);
18089         }
18090         oprot.writeBitSet(optionals, 3);
18091         if (struct.isSetTableName()) {
18092           oprot.writeBinary(struct.tableName);
18093         }
18094         if (struct.isSetRow()) {
18095           oprot.writeBinary(struct.row);
18096         }
18097         if (struct.isSetAttributes()) {
18098           {
18099             oprot.writeI32(struct.attributes.size());
18100             for (Map.Entry<ByteBuffer, ByteBuffer> _iter143 : struct.attributes.entrySet())
18101             {
18102               oprot.writeBinary(_iter143.getKey());
18103               oprot.writeBinary(_iter143.getValue());
18104             }
18105           }
18106         }
18107       }
18108 
18109       @Override
18110       public void read(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException {
18111         TTupleProtocol iprot = (TTupleProtocol) prot;
18112         BitSet incoming = iprot.readBitSet(3);
18113         if (incoming.get(0)) {
18114           struct.tableName = iprot.readBinary();
18115           struct.setTableNameIsSet(true);
18116         }
18117         if (incoming.get(1)) {
18118           struct.row = iprot.readBinary();
18119           struct.setRowIsSet(true);
18120         }
18121         if (incoming.get(2)) {
18122           {
18123             org.apache.thrift.protocol.TMap _map144 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
18124             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map144.size);
18125             for (int _i145 = 0; _i145 < _map144.size; ++_i145)
18126             {
18127               ByteBuffer _key146; // required
18128               ByteBuffer _val147; // required
18129               _key146 = iprot.readBinary();
18130               _val147 = iprot.readBinary();
18131               struct.attributes.put(_key146, _val147);
18132             }
18133           }
18134           struct.setAttributesIsSet(true);
18135         }
18136       }
18137     }
18138 
18139   }
18140 
18141   public static class getRow_result implements org.apache.thrift.TBase<getRow_result, getRow_result._Fields>, java.io.Serializable, Cloneable   {
18142     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_result");
18143 
18144     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
18145     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
18146 
18147     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18148     static {
18149       schemes.put(StandardScheme.class, new getRow_resultStandardSchemeFactory());
18150       schemes.put(TupleScheme.class, new getRow_resultTupleSchemeFactory());
18151     }
18152 
18153     public List<TRowResult> success; // required
18154     public IOError io; // required
18155 
18156     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18157     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18158       SUCCESS((short)0, "success"),
18159       IO((short)1, "io");
18160 
18161       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18162 
18163       static {
18164         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18165           byName.put(field.getFieldName(), field);
18166         }
18167       }
18168 
18169       /**
18170        * Find the _Fields constant that matches fieldId, or null if its not found.
18171        */
18172       public static _Fields findByThriftId(int fieldId) {
18173         switch(fieldId) {
18174           case 0: // SUCCESS
18175             return SUCCESS;
18176           case 1: // IO
18177             return IO;
18178           default:
18179             return null;
18180         }
18181       }
18182 
18183       /**
18184        * Find the _Fields constant that matches fieldId, throwing an exception
18185        * if it is not found.
18186        */
18187       public static _Fields findByThriftIdOrThrow(int fieldId) {
18188         _Fields fields = findByThriftId(fieldId);
18189         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18190         return fields;
18191       }
18192 
18193       /**
18194        * Find the _Fields constant that matches name, or null if its not found.
18195        */
18196       public static _Fields findByName(String name) {
18197         return byName.get(name);
18198       }
18199 
18200       private final short _thriftId;
18201       private final String _fieldName;
18202 
18203       _Fields(short thriftId, String fieldName) {
18204         _thriftId = thriftId;
18205         _fieldName = fieldName;
18206       }
18207 
18208       public short getThriftFieldId() {
18209         return _thriftId;
18210       }
18211 
18212       public String getFieldName() {
18213         return _fieldName;
18214       }
18215     }
18216 
18217     // isset id assignments
18218     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18219     static {
18220       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18221       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18222           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18223               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
18224       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18225           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18226       metaDataMap = Collections.unmodifiableMap(tmpMap);
18227       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_result.class, metaDataMap);
18228     }
18229 
18230     public getRow_result() {
18231     }
18232 
18233     public getRow_result(
18234       List<TRowResult> success,
18235       IOError io)
18236     {
18237       this();
18238       this.success = success;
18239       this.io = io;
18240     }
18241 
18242     /**
18243      * Performs a deep copy on <i>other</i>.
18244      */
18245     public getRow_result(getRow_result other) {
18246       if (other.isSetSuccess()) {
18247         List<TRowResult> __this__success = new ArrayList<TRowResult>();
18248         for (TRowResult other_element : other.success) {
18249           __this__success.add(new TRowResult(other_element));
18250         }
18251         this.success = __this__success;
18252       }
18253       if (other.isSetIo()) {
18254         this.io = new IOError(other.io);
18255       }
18256     }
18257 
18258     public getRow_result deepCopy() {
18259       return new getRow_result(this);
18260     }
18261 
18262     @Override
18263     public void clear() {
18264       this.success = null;
18265       this.io = null;
18266     }
18267 
18268     public int getSuccessSize() {
18269       return (this.success == null) ? 0 : this.success.size();
18270     }
18271 
18272     public java.util.Iterator<TRowResult> getSuccessIterator() {
18273       return (this.success == null) ? null : this.success.iterator();
18274     }
18275 
18276     public void addToSuccess(TRowResult elem) {
18277       if (this.success == null) {
18278         this.success = new ArrayList<TRowResult>();
18279       }
18280       this.success.add(elem);
18281     }
18282 
18283     public List<TRowResult> getSuccess() {
18284       return this.success;
18285     }
18286 
18287     public getRow_result setSuccess(List<TRowResult> success) {
18288       this.success = success;
18289       return this;
18290     }
18291 
18292     public void unsetSuccess() {
18293       this.success = null;
18294     }
18295 
18296     /** Returns true if field success is set (has been assigned a value) and false otherwise */
18297     public boolean isSetSuccess() {
18298       return this.success != null;
18299     }
18300 
18301     public void setSuccessIsSet(boolean value) {
18302       if (!value) {
18303         this.success = null;
18304       }
18305     }
18306 
18307     public IOError getIo() {
18308       return this.io;
18309     }
18310 
18311     public getRow_result setIo(IOError io) {
18312       this.io = io;
18313       return this;
18314     }
18315 
18316     public void unsetIo() {
18317       this.io = null;
18318     }
18319 
18320     /** Returns true if field io is set (has been assigned a value) and false otherwise */
18321     public boolean isSetIo() {
18322       return this.io != null;
18323     }
18324 
18325     public void setIoIsSet(boolean value) {
18326       if (!value) {
18327         this.io = null;
18328       }
18329     }
18330 
18331     public void setFieldValue(_Fields field, Object value) {
18332       switch (field) {
18333       case SUCCESS:
18334         if (value == null) {
18335           unsetSuccess();
18336         } else {
18337           setSuccess((List<TRowResult>)value);
18338         }
18339         break;
18340 
18341       case IO:
18342         if (value == null) {
18343           unsetIo();
18344         } else {
18345           setIo((IOError)value);
18346         }
18347         break;
18348 
18349       }
18350     }
18351 
18352     public Object getFieldValue(_Fields field) {
18353       switch (field) {
18354       case SUCCESS:
18355         return getSuccess();
18356 
18357       case IO:
18358         return getIo();
18359 
18360       }
18361       throw new IllegalStateException();
18362     }
18363 
18364     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18365     public boolean isSet(_Fields field) {
18366       if (field == null) {
18367         throw new IllegalArgumentException();
18368       }
18369 
18370       switch (field) {
18371       case SUCCESS:
18372         return isSetSuccess();
18373       case IO:
18374         return isSetIo();
18375       }
18376       throw new IllegalStateException();
18377     }
18378 
18379     @Override
18380     public boolean equals(Object that) {
18381       if (that == null)
18382         return false;
18383       if (that instanceof getRow_result)
18384         return this.equals((getRow_result)that);
18385       return false;
18386     }
18387 
18388     public boolean equals(getRow_result that) {
18389       if (that == null)
18390         return false;
18391 
18392       boolean this_present_success = true && this.isSetSuccess();
18393       boolean that_present_success = true && that.isSetSuccess();
18394       if (this_present_success || that_present_success) {
18395         if (!(this_present_success && that_present_success))
18396           return false;
18397         if (!this.success.equals(that.success))
18398           return false;
18399       }
18400 
18401       boolean this_present_io = true && this.isSetIo();
18402       boolean that_present_io = true && that.isSetIo();
18403       if (this_present_io || that_present_io) {
18404         if (!(this_present_io && that_present_io))
18405           return false;
18406         if (!this.io.equals(that.io))
18407           return false;
18408       }
18409 
18410       return true;
18411     }
18412 
18413     @Override
18414     public int hashCode() {
18415       HashCodeBuilder builder = new HashCodeBuilder();
18416 
18417       boolean present_success = true && (isSetSuccess());
18418       builder.append(present_success);
18419       if (present_success)
18420         builder.append(success);
18421 
18422       boolean present_io = true && (isSetIo());
18423       builder.append(present_io);
18424       if (present_io)
18425         builder.append(io);
18426 
18427       return builder.toHashCode();
18428     }
18429 
18430     public int compareTo(getRow_result other) {
18431       if (!getClass().equals(other.getClass())) {
18432         return getClass().getName().compareTo(other.getClass().getName());
18433       }
18434 
18435       int lastComparison = 0;
18436       getRow_result typedOther = (getRow_result)other;
18437 
18438       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18439       if (lastComparison != 0) {
18440         return lastComparison;
18441       }
18442       if (isSetSuccess()) {
18443         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18444         if (lastComparison != 0) {
18445           return lastComparison;
18446         }
18447       }
18448       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
18449       if (lastComparison != 0) {
18450         return lastComparison;
18451       }
18452       if (isSetIo()) {
18453         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
18454         if (lastComparison != 0) {
18455           return lastComparison;
18456         }
18457       }
18458       return 0;
18459     }
18460 
18461     public _Fields fieldForId(int fieldId) {
18462       return _Fields.findByThriftId(fieldId);
18463     }
18464 
18465     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18466       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18467     }
18468 
18469     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18470       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18471       }
18472 
18473     @Override
18474     public String toString() {
18475       StringBuilder sb = new StringBuilder("getRow_result(");
18476       boolean first = true;
18477 
18478       sb.append("success:");
18479       if (this.success == null) {
18480         sb.append("null");
18481       } else {
18482         sb.append(this.success);
18483       }
18484       first = false;
18485       if (!first) sb.append(", ");
18486       sb.append("io:");
18487       if (this.io == null) {
18488         sb.append("null");
18489       } else {
18490         sb.append(this.io);
18491       }
18492       first = false;
18493       sb.append(")");
18494       return sb.toString();
18495     }
18496 
18497     public void validate() throws org.apache.thrift.TException {
18498       // check for required fields
18499       // check for sub-struct validity
18500     }
18501 
18502     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18503       try {
18504         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18505       } catch (org.apache.thrift.TException te) {
18506         throw new java.io.IOException(te);
18507       }
18508     }
18509 
18510     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18511       try {
18512         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18513       } catch (org.apache.thrift.TException te) {
18514         throw new java.io.IOException(te);
18515       }
18516     }
18517 
18518     private static class getRow_resultStandardSchemeFactory implements SchemeFactory {
18519       public getRow_resultStandardScheme getScheme() {
18520         return new getRow_resultStandardScheme();
18521       }
18522     }
18523 
18524     private static class getRow_resultStandardScheme extends StandardScheme<getRow_result> {
18525 
18526       public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_result struct) throws org.apache.thrift.TException {
18527         org.apache.thrift.protocol.TField schemeField;
18528         iprot.readStructBegin();
18529         while (true)
18530         {
18531           schemeField = iprot.readFieldBegin();
18532           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
18533             break;
18534           }
18535           switch (schemeField.id) {
18536             case 0: // SUCCESS
18537               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
18538                 {
18539                   org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
18540                   struct.success = new ArrayList<TRowResult>(_list148.size);
18541                   for (int _i149 = 0; _i149 < _list148.size; ++_i149)
18542                   {
18543                     TRowResult _elem150; // required
18544                     _elem150 = new TRowResult();
18545                     _elem150.read(iprot);
18546                     struct.success.add(_elem150);
18547                   }
18548                   iprot.readListEnd();
18549                 }
18550                 struct.setSuccessIsSet(true);
18551               } else { 
18552                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18553               }
18554               break;
18555             case 1: // IO
18556               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18557                 struct.io = new IOError();
18558                 struct.io.read(iprot);
18559                 struct.setIoIsSet(true);
18560               } else { 
18561                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18562               }
18563               break;
18564             default:
18565               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18566           }
18567           iprot.readFieldEnd();
18568         }
18569         iprot.readStructEnd();
18570 
18571         // check for required fields of primitive type, which can't be checked in the validate method
18572         struct.validate();
18573       }
18574 
18575       public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_result struct) throws org.apache.thrift.TException {
18576         struct.validate();
18577 
18578         oprot.writeStructBegin(STRUCT_DESC);
18579         if (struct.success != null) {
18580           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18581           {
18582             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
18583             for (TRowResult _iter151 : struct.success)
18584             {
18585               _iter151.write(oprot);
18586             }
18587             oprot.writeListEnd();
18588           }
18589           oprot.writeFieldEnd();
18590         }
18591         if (struct.io != null) {
18592           oprot.writeFieldBegin(IO_FIELD_DESC);
18593           struct.io.write(oprot);
18594           oprot.writeFieldEnd();
18595         }
18596         oprot.writeFieldStop();
18597         oprot.writeStructEnd();
18598       }
18599 
18600     }
18601 
18602     private static class getRow_resultTupleSchemeFactory implements SchemeFactory {
18603       public getRow_resultTupleScheme getScheme() {
18604         return new getRow_resultTupleScheme();
18605       }
18606     }
18607 
18608     private static class getRow_resultTupleScheme extends TupleScheme<getRow_result> {
18609 
18610       @Override
18611       public void write(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException {
18612         TTupleProtocol oprot = (TTupleProtocol) prot;
18613         BitSet optionals = new BitSet();
18614         if (struct.isSetSuccess()) {
18615           optionals.set(0);
18616         }
18617         if (struct.isSetIo()) {
18618           optionals.set(1);
18619         }
18620         oprot.writeBitSet(optionals, 2);
18621         if (struct.isSetSuccess()) {
18622           {
18623             oprot.writeI32(struct.success.size());
18624             for (TRowResult _iter152 : struct.success)
18625             {
18626               _iter152.write(oprot);
18627             }
18628           }
18629         }
18630         if (struct.isSetIo()) {
18631           struct.io.write(oprot);
18632         }
18633       }
18634 
18635       @Override
18636       public void read(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException {
18637         TTupleProtocol iprot = (TTupleProtocol) prot;
18638         BitSet incoming = iprot.readBitSet(2);
18639         if (incoming.get(0)) {
18640           {
18641             org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
18642             struct.success = new ArrayList<TRowResult>(_list153.size);
18643             for (int _i154 = 0; _i154 < _list153.size; ++_i154)
18644             {
18645               TRowResult _elem155; // required
18646               _elem155 = new TRowResult();
18647               _elem155.read(iprot);
18648               struct.success.add(_elem155);
18649             }
18650           }
18651           struct.setSuccessIsSet(true);
18652         }
18653         if (incoming.get(1)) {
18654           struct.io = new IOError();
18655           struct.io.read(iprot);
18656           struct.setIoIsSet(true);
18657         }
18658       }
18659     }
18660 
18661   }
18662 
18663   public static class getRowWithColumns_args implements org.apache.thrift.TBase<getRowWithColumns_args, getRowWithColumns_args._Fields>, java.io.Serializable, Cloneable   {
18664     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_args");
18665 
18666     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
18667     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
18668     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
18669     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
18670 
18671     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18672     static {
18673       schemes.put(StandardScheme.class, new getRowWithColumns_argsStandardSchemeFactory());
18674       schemes.put(TupleScheme.class, new getRowWithColumns_argsTupleSchemeFactory());
18675     }
18676 
18677     /**
18678      * name of table
18679      */
18680     public ByteBuffer tableName; // required
18681     /**
18682      * row key
18683      */
18684     public ByteBuffer row; // required
18685     /**
18686      * List of columns to return, null for all columns
18687      */
18688     public List<ByteBuffer> columns; // required
18689     /**
18690      * Get attributes
18691      */
18692     public Map<ByteBuffer,ByteBuffer> attributes; // required
18693 
18694     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18695     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18696       /**
18697        * name of table
18698        */
18699       TABLE_NAME((short)1, "tableName"),
18700       /**
18701        * row key
18702        */
18703       ROW((short)2, "row"),
18704       /**
18705        * List of columns to return, null for all columns
18706        */
18707       COLUMNS((short)3, "columns"),
18708       /**
18709        * Get attributes
18710        */
18711       ATTRIBUTES((short)4, "attributes");
18712 
18713       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18714 
18715       static {
18716         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18717           byName.put(field.getFieldName(), field);
18718         }
18719       }
18720 
18721       /**
18722        * Find the _Fields constant that matches fieldId, or null if its not found.
18723        */
18724       public static _Fields findByThriftId(int fieldId) {
18725         switch(fieldId) {
18726           case 1: // TABLE_NAME
18727             return TABLE_NAME;
18728           case 2: // ROW
18729             return ROW;
18730           case 3: // COLUMNS
18731             return COLUMNS;
18732           case 4: // ATTRIBUTES
18733             return ATTRIBUTES;
18734           default:
18735             return null;
18736         }
18737       }
18738 
18739       /**
18740        * Find the _Fields constant that matches fieldId, throwing an exception
18741        * if it is not found.
18742        */
18743       public static _Fields findByThriftIdOrThrow(int fieldId) {
18744         _Fields fields = findByThriftId(fieldId);
18745         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18746         return fields;
18747       }
18748 
18749       /**
18750        * Find the _Fields constant that matches name, or null if its not found.
18751        */
18752       public static _Fields findByName(String name) {
18753         return byName.get(name);
18754       }
18755 
18756       private final short _thriftId;
18757       private final String _fieldName;
18758 
18759       _Fields(short thriftId, String fieldName) {
18760         _thriftId = thriftId;
18761         _fieldName = fieldName;
18762       }
18763 
18764       public short getThriftFieldId() {
18765         return _thriftId;
18766       }
18767 
18768       public String getFieldName() {
18769         return _fieldName;
18770       }
18771     }
18772 
18773     // isset id assignments
18774     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18775     static {
18776       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18777       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18778           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
18779       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18780           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
18781       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18782           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18783               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
18784       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18785           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
18786               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
18787               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
18788       metaDataMap = Collections.unmodifiableMap(tmpMap);
18789       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_args.class, metaDataMap);
18790     }
18791 
18792     public getRowWithColumns_args() {
18793     }
18794 
18795     public getRowWithColumns_args(
18796       ByteBuffer tableName,
18797       ByteBuffer row,
18798       List<ByteBuffer> columns,
18799       Map<ByteBuffer,ByteBuffer> attributes)
18800     {
18801       this();
18802       this.tableName = tableName;
18803       this.row = row;
18804       this.columns = columns;
18805       this.attributes = attributes;
18806     }
18807 
18808     /**
18809      * Performs a deep copy on <i>other</i>.
18810      */
18811     public getRowWithColumns_args(getRowWithColumns_args other) {
18812       if (other.isSetTableName()) {
18813         this.tableName = other.tableName;
18814       }
18815       if (other.isSetRow()) {
18816         this.row = other.row;
18817       }
18818       if (other.isSetColumns()) {
18819         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
18820         for (ByteBuffer other_element : other.columns) {
18821           __this__columns.add(other_element);
18822         }
18823         this.columns = __this__columns;
18824       }
18825       if (other.isSetAttributes()) {
18826         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
18827         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
18828 
18829           ByteBuffer other_element_key = other_element.getKey();
18830           ByteBuffer other_element_value = other_element.getValue();
18831 
18832           ByteBuffer __this__attributes_copy_key = other_element_key;
18833 
18834           ByteBuffer __this__attributes_copy_value = other_element_value;
18835 
18836           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
18837         }
18838         this.attributes = __this__attributes;
18839       }
18840     }
18841 
18842     public getRowWithColumns_args deepCopy() {
18843       return new getRowWithColumns_args(this);
18844     }
18845 
18846     @Override
18847     public void clear() {
18848       this.tableName = null;
18849       this.row = null;
18850       this.columns = null;
18851       this.attributes = null;
18852     }
18853 
18854     /**
18855      * name of table
18856      */
18857     public byte[] getTableName() {
18858       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
18859       return tableName == null ? null : tableName.array();
18860     }
18861 
18862     public ByteBuffer bufferForTableName() {
18863       return tableName;
18864     }
18865 
18866     /**
18867      * name of table
18868      */
18869     public getRowWithColumns_args setTableName(byte[] tableName) {
18870       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
18871       return this;
18872     }
18873 
18874     public getRowWithColumns_args setTableName(ByteBuffer tableName) {
18875       this.tableName = tableName;
18876       return this;
18877     }
18878 
18879     public void unsetTableName() {
18880       this.tableName = null;
18881     }
18882 
18883     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
18884     public boolean isSetTableName() {
18885       return this.tableName != null;
18886     }
18887 
18888     public void setTableNameIsSet(boolean value) {
18889       if (!value) {
18890         this.tableName = null;
18891       }
18892     }
18893 
18894     /**
18895      * row key
18896      */
18897     public byte[] getRow() {
18898       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
18899       return row == null ? null : row.array();
18900     }
18901 
18902     public ByteBuffer bufferForRow() {
18903       return row;
18904     }
18905 
18906     /**
18907      * row key
18908      */
18909     public getRowWithColumns_args setRow(byte[] row) {
18910       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
18911       return this;
18912     }
18913 
18914     public getRowWithColumns_args setRow(ByteBuffer row) {
18915       this.row = row;
18916       return this;
18917     }
18918 
18919     public void unsetRow() {
18920       this.row = null;
18921     }
18922 
18923     /** Returns true if field row is set (has been assigned a value) and false otherwise */
18924     public boolean isSetRow() {
18925       return this.row != null;
18926     }
18927 
18928     public void setRowIsSet(boolean value) {
18929       if (!value) {
18930         this.row = null;
18931       }
18932     }
18933 
18934     public int getColumnsSize() {
18935       return (this.columns == null) ? 0 : this.columns.size();
18936     }
18937 
18938     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
18939       return (this.columns == null) ? null : this.columns.iterator();
18940     }
18941 
18942     public void addToColumns(ByteBuffer elem) {
18943       if (this.columns == null) {
18944         this.columns = new ArrayList<ByteBuffer>();
18945       }
18946       this.columns.add(elem);
18947     }
18948 
18949     /**
18950      * List of columns to return, null for all columns
18951      */
18952     public List<ByteBuffer> getColumns() {
18953       return this.columns;
18954     }
18955 
18956     /**
18957      * List of columns to return, null for all columns
18958      */
18959     public getRowWithColumns_args setColumns(List<ByteBuffer> columns) {
18960       this.columns = columns;
18961       return this;
18962     }
18963 
18964     public void unsetColumns() {
18965       this.columns = null;
18966     }
18967 
18968     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
18969     public boolean isSetColumns() {
18970       return this.columns != null;
18971     }
18972 
18973     public void setColumnsIsSet(boolean value) {
18974       if (!value) {
18975         this.columns = null;
18976       }
18977     }
18978 
18979     public int getAttributesSize() {
18980       return (this.attributes == null) ? 0 : this.attributes.size();
18981     }
18982 
18983     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
18984       if (this.attributes == null) {
18985         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
18986       }
18987       this.attributes.put(key, val);
18988     }
18989 
18990     /**
18991      * Get attributes
18992      */
18993     public Map<ByteBuffer,ByteBuffer> getAttributes() {
18994       return this.attributes;
18995     }
18996 
18997     /**
18998      * Get attributes
18999      */
19000     public getRowWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
19001       this.attributes = attributes;
19002       return this;
19003     }
19004 
19005     public void unsetAttributes() {
19006       this.attributes = null;
19007     }
19008 
19009     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
19010     public boolean isSetAttributes() {
19011       return this.attributes != null;
19012     }
19013 
19014     public void setAttributesIsSet(boolean value) {
19015       if (!value) {
19016         this.attributes = null;
19017       }
19018     }
19019 
19020     public void setFieldValue(_Fields field, Object value) {
19021       switch (field) {
19022       case TABLE_NAME:
19023         if (value == null) {
19024           unsetTableName();
19025         } else {
19026           setTableName((ByteBuffer)value);
19027         }
19028         break;
19029 
19030       case ROW:
19031         if (value == null) {
19032           unsetRow();
19033         } else {
19034           setRow((ByteBuffer)value);
19035         }
19036         break;
19037 
19038       case COLUMNS:
19039         if (value == null) {
19040           unsetColumns();
19041         } else {
19042           setColumns((List<ByteBuffer>)value);
19043         }
19044         break;
19045 
19046       case ATTRIBUTES:
19047         if (value == null) {
19048           unsetAttributes();
19049         } else {
19050           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
19051         }
19052         break;
19053 
19054       }
19055     }
19056 
19057     public Object getFieldValue(_Fields field) {
19058       switch (field) {
19059       case TABLE_NAME:
19060         return getTableName();
19061 
19062       case ROW:
19063         return getRow();
19064 
19065       case COLUMNS:
19066         return getColumns();
19067 
19068       case ATTRIBUTES:
19069         return getAttributes();
19070 
19071       }
19072       throw new IllegalStateException();
19073     }
19074 
19075     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19076     public boolean isSet(_Fields field) {
19077       if (field == null) {
19078         throw new IllegalArgumentException();
19079       }
19080 
19081       switch (field) {
19082       case TABLE_NAME:
19083         return isSetTableName();
19084       case ROW:
19085         return isSetRow();
19086       case COLUMNS:
19087         return isSetColumns();
19088       case ATTRIBUTES:
19089         return isSetAttributes();
19090       }
19091       throw new IllegalStateException();
19092     }
19093 
19094     @Override
19095     public boolean equals(Object that) {
19096       if (that == null)
19097         return false;
19098       if (that instanceof getRowWithColumns_args)
19099         return this.equals((getRowWithColumns_args)that);
19100       return false;
19101     }
19102 
19103     public boolean equals(getRowWithColumns_args that) {
19104       if (that == null)
19105         return false;
19106 
19107       boolean this_present_tableName = true && this.isSetTableName();
19108       boolean that_present_tableName = true && that.isSetTableName();
19109       if (this_present_tableName || that_present_tableName) {
19110         if (!(this_present_tableName && that_present_tableName))
19111           return false;
19112         if (!this.tableName.equals(that.tableName))
19113           return false;
19114       }
19115 
19116       boolean this_present_row = true && this.isSetRow();
19117       boolean that_present_row = true && that.isSetRow();
19118       if (this_present_row || that_present_row) {
19119         if (!(this_present_row && that_present_row))
19120           return false;
19121         if (!this.row.equals(that.row))
19122           return false;
19123       }
19124 
19125       boolean this_present_columns = true && this.isSetColumns();
19126       boolean that_present_columns = true && that.isSetColumns();
19127       if (this_present_columns || that_present_columns) {
19128         if (!(this_present_columns && that_present_columns))
19129           return false;
19130         if (!this.columns.equals(that.columns))
19131           return false;
19132       }
19133 
19134       boolean this_present_attributes = true && this.isSetAttributes();
19135       boolean that_present_attributes = true && that.isSetAttributes();
19136       if (this_present_attributes || that_present_attributes) {
19137         if (!(this_present_attributes && that_present_attributes))
19138           return false;
19139         if (!this.attributes.equals(that.attributes))
19140           return false;
19141       }
19142 
19143       return true;
19144     }
19145 
19146     @Override
19147     public int hashCode() {
19148       HashCodeBuilder builder = new HashCodeBuilder();
19149 
19150       boolean present_tableName = true && (isSetTableName());
19151       builder.append(present_tableName);
19152       if (present_tableName)
19153         builder.append(tableName);
19154 
19155       boolean present_row = true && (isSetRow());
19156       builder.append(present_row);
19157       if (present_row)
19158         builder.append(row);
19159 
19160       boolean present_columns = true && (isSetColumns());
19161       builder.append(present_columns);
19162       if (present_columns)
19163         builder.append(columns);
19164 
19165       boolean present_attributes = true && (isSetAttributes());
19166       builder.append(present_attributes);
19167       if (present_attributes)
19168         builder.append(attributes);
19169 
19170       return builder.toHashCode();
19171     }
19172 
19173     public int compareTo(getRowWithColumns_args other) {
19174       if (!getClass().equals(other.getClass())) {
19175         return getClass().getName().compareTo(other.getClass().getName());
19176       }
19177 
19178       int lastComparison = 0;
19179       getRowWithColumns_args typedOther = (getRowWithColumns_args)other;
19180 
19181       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
19182       if (lastComparison != 0) {
19183         return lastComparison;
19184       }
19185       if (isSetTableName()) {
19186         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
19187         if (lastComparison != 0) {
19188           return lastComparison;
19189         }
19190       }
19191       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
19192       if (lastComparison != 0) {
19193         return lastComparison;
19194       }
19195       if (isSetRow()) {
19196         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
19197         if (lastComparison != 0) {
19198           return lastComparison;
19199         }
19200       }
19201       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
19202       if (lastComparison != 0) {
19203         return lastComparison;
19204       }
19205       if (isSetColumns()) {
19206         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
19207         if (lastComparison != 0) {
19208           return lastComparison;
19209         }
19210       }
19211       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
19212       if (lastComparison != 0) {
19213         return lastComparison;
19214       }
19215       if (isSetAttributes()) {
19216         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
19217         if (lastComparison != 0) {
19218           return lastComparison;
19219         }
19220       }
19221       return 0;
19222     }
19223 
19224     public _Fields fieldForId(int fieldId) {
19225       return _Fields.findByThriftId(fieldId);
19226     }
19227 
19228     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19229       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19230     }
19231 
19232     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19233       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19234     }
19235 
19236     @Override
19237     public String toString() {
19238       StringBuilder sb = new StringBuilder("getRowWithColumns_args(");
19239       boolean first = true;
19240 
19241       sb.append("tableName:");
19242       if (this.tableName == null) {
19243         sb.append("null");
19244       } else {
19245         sb.append(this.tableName);
19246       }
19247       first = false;
19248       if (!first) sb.append(", ");
19249       sb.append("row:");
19250       if (this.row == null) {
19251         sb.append("null");
19252       } else {
19253         sb.append(this.row);
19254       }
19255       first = false;
19256       if (!first) sb.append(", ");
19257       sb.append("columns:");
19258       if (this.columns == null) {
19259         sb.append("null");
19260       } else {
19261         sb.append(this.columns);
19262       }
19263       first = false;
19264       if (!first) sb.append(", ");
19265       sb.append("attributes:");
19266       if (this.attributes == null) {
19267         sb.append("null");
19268       } else {
19269         sb.append(this.attributes);
19270       }
19271       first = false;
19272       sb.append(")");
19273       return sb.toString();
19274     }
19275 
19276     public void validate() throws org.apache.thrift.TException {
19277       // check for required fields
19278       // check for sub-struct validity
19279     }
19280 
19281     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19282       try {
19283         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19284       } catch (org.apache.thrift.TException te) {
19285         throw new java.io.IOException(te);
19286       }
19287     }
19288 
19289     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19290       try {
19291         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19292       } catch (org.apache.thrift.TException te) {
19293         throw new java.io.IOException(te);
19294       }
19295     }
19296 
19297     private static class getRowWithColumns_argsStandardSchemeFactory implements SchemeFactory {
19298       public getRowWithColumns_argsStandardScheme getScheme() {
19299         return new getRowWithColumns_argsStandardScheme();
19300       }
19301     }
19302 
19303     private static class getRowWithColumns_argsStandardScheme extends StandardScheme<getRowWithColumns_args> {
19304 
19305       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19306         org.apache.thrift.protocol.TField schemeField;
19307         iprot.readStructBegin();
19308         while (true)
19309         {
19310           schemeField = iprot.readFieldBegin();
19311           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
19312             break;
19313           }
19314           switch (schemeField.id) {
19315             case 1: // TABLE_NAME
19316               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19317                 struct.tableName = iprot.readBinary();
19318                 struct.setTableNameIsSet(true);
19319               } else { 
19320                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19321               }
19322               break;
19323             case 2: // ROW
19324               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19325                 struct.row = iprot.readBinary();
19326                 struct.setRowIsSet(true);
19327               } else { 
19328                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19329               }
19330               break;
19331             case 3: // COLUMNS
19332               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
19333                 {
19334                   org.apache.thrift.protocol.TList _list156 = iprot.readListBegin();
19335                   struct.columns = new ArrayList<ByteBuffer>(_list156.size);
19336                   for (int _i157 = 0; _i157 < _list156.size; ++_i157)
19337                   {
19338                     ByteBuffer _elem158; // required
19339                     _elem158 = iprot.readBinary();
19340                     struct.columns.add(_elem158);
19341                   }
19342                   iprot.readListEnd();
19343                 }
19344                 struct.setColumnsIsSet(true);
19345               } else { 
19346                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19347               }
19348               break;
19349             case 4: // ATTRIBUTES
19350               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
19351                 {
19352                   org.apache.thrift.protocol.TMap _map159 = iprot.readMapBegin();
19353                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map159.size);
19354                   for (int _i160 = 0; _i160 < _map159.size; ++_i160)
19355                   {
19356                     ByteBuffer _key161; // required
19357                     ByteBuffer _val162; // required
19358                     _key161 = iprot.readBinary();
19359                     _val162 = iprot.readBinary();
19360                     struct.attributes.put(_key161, _val162);
19361                   }
19362                   iprot.readMapEnd();
19363                 }
19364                 struct.setAttributesIsSet(true);
19365               } else { 
19366                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19367               }
19368               break;
19369             default:
19370               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19371           }
19372           iprot.readFieldEnd();
19373         }
19374         iprot.readStructEnd();
19375 
19376         // check for required fields of primitive type, which can't be checked in the validate method
19377         struct.validate();
19378       }
19379 
19380       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19381         struct.validate();
19382 
19383         oprot.writeStructBegin(STRUCT_DESC);
19384         if (struct.tableName != null) {
19385           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
19386           oprot.writeBinary(struct.tableName);
19387           oprot.writeFieldEnd();
19388         }
19389         if (struct.row != null) {
19390           oprot.writeFieldBegin(ROW_FIELD_DESC);
19391           oprot.writeBinary(struct.row);
19392           oprot.writeFieldEnd();
19393         }
19394         if (struct.columns != null) {
19395           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
19396           {
19397             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
19398             for (ByteBuffer _iter163 : struct.columns)
19399             {
19400               oprot.writeBinary(_iter163);
19401             }
19402             oprot.writeListEnd();
19403           }
19404           oprot.writeFieldEnd();
19405         }
19406         if (struct.attributes != null) {
19407           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
19408           {
19409             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
19410             for (Map.Entry<ByteBuffer, ByteBuffer> _iter164 : struct.attributes.entrySet())
19411             {
19412               oprot.writeBinary(_iter164.getKey());
19413               oprot.writeBinary(_iter164.getValue());
19414             }
19415             oprot.writeMapEnd();
19416           }
19417           oprot.writeFieldEnd();
19418         }
19419         oprot.writeFieldStop();
19420         oprot.writeStructEnd();
19421       }
19422 
19423     }
19424 
19425     private static class getRowWithColumns_argsTupleSchemeFactory implements SchemeFactory {
19426       public getRowWithColumns_argsTupleScheme getScheme() {
19427         return new getRowWithColumns_argsTupleScheme();
19428       }
19429     }
19430 
19431     private static class getRowWithColumns_argsTupleScheme extends TupleScheme<getRowWithColumns_args> {
19432 
19433       @Override
19434       public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19435         TTupleProtocol oprot = (TTupleProtocol) prot;
19436         BitSet optionals = new BitSet();
19437         if (struct.isSetTableName()) {
19438           optionals.set(0);
19439         }
19440         if (struct.isSetRow()) {
19441           optionals.set(1);
19442         }
19443         if (struct.isSetColumns()) {
19444           optionals.set(2);
19445         }
19446         if (struct.isSetAttributes()) {
19447           optionals.set(3);
19448         }
19449         oprot.writeBitSet(optionals, 4);
19450         if (struct.isSetTableName()) {
19451           oprot.writeBinary(struct.tableName);
19452         }
19453         if (struct.isSetRow()) {
19454           oprot.writeBinary(struct.row);
19455         }
19456         if (struct.isSetColumns()) {
19457           {
19458             oprot.writeI32(struct.columns.size());
19459             for (ByteBuffer _iter165 : struct.columns)
19460             {
19461               oprot.writeBinary(_iter165);
19462             }
19463           }
19464         }
19465         if (struct.isSetAttributes()) {
19466           {
19467             oprot.writeI32(struct.attributes.size());
19468             for (Map.Entry<ByteBuffer, ByteBuffer> _iter166 : struct.attributes.entrySet())
19469             {
19470               oprot.writeBinary(_iter166.getKey());
19471               oprot.writeBinary(_iter166.getValue());
19472             }
19473           }
19474         }
19475       }
19476 
19477       @Override
19478       public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19479         TTupleProtocol iprot = (TTupleProtocol) prot;
19480         BitSet incoming = iprot.readBitSet(4);
19481         if (incoming.get(0)) {
19482           struct.tableName = iprot.readBinary();
19483           struct.setTableNameIsSet(true);
19484         }
19485         if (incoming.get(1)) {
19486           struct.row = iprot.readBinary();
19487           struct.setRowIsSet(true);
19488         }
19489         if (incoming.get(2)) {
19490           {
19491             org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
19492             struct.columns = new ArrayList<ByteBuffer>(_list167.size);
19493             for (int _i168 = 0; _i168 < _list167.size; ++_i168)
19494             {
19495               ByteBuffer _elem169; // required
19496               _elem169 = iprot.readBinary();
19497               struct.columns.add(_elem169);
19498             }
19499           }
19500           struct.setColumnsIsSet(true);
19501         }
19502         if (incoming.get(3)) {
19503           {
19504             org.apache.thrift.protocol.TMap _map170 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
19505             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map170.size);
19506             for (int _i171 = 0; _i171 < _map170.size; ++_i171)
19507             {
19508               ByteBuffer _key172; // required
19509               ByteBuffer _val173; // required
19510               _key172 = iprot.readBinary();
19511               _val173 = iprot.readBinary();
19512               struct.attributes.put(_key172, _val173);
19513             }
19514           }
19515           struct.setAttributesIsSet(true);
19516         }
19517       }
19518     }
19519 
19520   }
19521 
19522   public static class getRowWithColumns_result implements org.apache.thrift.TBase<getRowWithColumns_result, getRowWithColumns_result._Fields>, java.io.Serializable, Cloneable   {
19523     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_result");
19524 
19525     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19526     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19527 
19528     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19529     static {
19530       schemes.put(StandardScheme.class, new getRowWithColumns_resultStandardSchemeFactory());
19531       schemes.put(TupleScheme.class, new getRowWithColumns_resultTupleSchemeFactory());
19532     }
19533 
19534     public List<TRowResult> success; // required
19535     public IOError io; // required
19536 
19537     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19538     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19539       SUCCESS((short)0, "success"),
19540       IO((short)1, "io");
19541 
19542       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19543 
19544       static {
19545         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19546           byName.put(field.getFieldName(), field);
19547         }
19548       }
19549 
19550       /**
19551        * Find the _Fields constant that matches fieldId, or null if its not found.
19552        */
19553       public static _Fields findByThriftId(int fieldId) {
19554         switch(fieldId) {
19555           case 0: // SUCCESS
19556             return SUCCESS;
19557           case 1: // IO
19558             return IO;
19559           default:
19560             return null;
19561         }
19562       }
19563 
19564       /**
19565        * Find the _Fields constant that matches fieldId, throwing an exception
19566        * if it is not found.
19567        */
19568       public static _Fields findByThriftIdOrThrow(int fieldId) {
19569         _Fields fields = findByThriftId(fieldId);
19570         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19571         return fields;
19572       }
19573 
19574       /**
19575        * Find the _Fields constant that matches name, or null if its not found.
19576        */
19577       public static _Fields findByName(String name) {
19578         return byName.get(name);
19579       }
19580 
19581       private final short _thriftId;
19582       private final String _fieldName;
19583 
19584       _Fields(short thriftId, String fieldName) {
19585         _thriftId = thriftId;
19586         _fieldName = fieldName;
19587       }
19588 
19589       public short getThriftFieldId() {
19590         return _thriftId;
19591       }
19592 
19593       public String getFieldName() {
19594         return _fieldName;
19595       }
19596     }
19597 
19598     // isset id assignments
19599     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19600     static {
19601       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19602       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19603           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19604               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
19605       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19606           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19607       metaDataMap = Collections.unmodifiableMap(tmpMap);
19608       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_result.class, metaDataMap);
19609     }
19610 
19611     public getRowWithColumns_result() {
19612     }
19613 
19614     public getRowWithColumns_result(
19615       List<TRowResult> success,
19616       IOError io)
19617     {
19618       this();
19619       this.success = success;
19620       this.io = io;
19621     }
19622 
19623     /**
19624      * Performs a deep copy on <i>other</i>.
19625      */
19626     public getRowWithColumns_result(getRowWithColumns_result other) {
19627       if (other.isSetSuccess()) {
19628         List<TRowResult> __this__success = new ArrayList<TRowResult>();
19629         for (TRowResult other_element : other.success) {
19630           __this__success.add(new TRowResult(other_element));
19631         }
19632         this.success = __this__success;
19633       }
19634       if (other.isSetIo()) {
19635         this.io = new IOError(other.io);
19636       }
19637     }
19638 
19639     public getRowWithColumns_result deepCopy() {
19640       return new getRowWithColumns_result(this);
19641     }
19642 
19643     @Override
19644     public void clear() {
19645       this.success = null;
19646       this.io = null;
19647     }
19648 
19649     public int getSuccessSize() {
19650       return (this.success == null) ? 0 : this.success.size();
19651     }
19652 
19653     public java.util.Iterator<TRowResult> getSuccessIterator() {
19654       return (this.success == null) ? null : this.success.iterator();
19655     }
19656 
19657     public void addToSuccess(TRowResult elem) {
19658       if (this.success == null) {
19659         this.success = new ArrayList<TRowResult>();
19660       }
19661       this.success.add(elem);
19662     }
19663 
19664     public List<TRowResult> getSuccess() {
19665       return this.success;
19666     }
19667 
19668     public getRowWithColumns_result setSuccess(List<TRowResult> success) {
19669       this.success = success;
19670       return this;
19671     }
19672 
19673     public void unsetSuccess() {
19674       this.success = null;
19675     }
19676 
19677     /** Returns true if field success is set (has been assigned a value) and false otherwise */
19678     public boolean isSetSuccess() {
19679       return this.success != null;
19680     }
19681 
19682     public void setSuccessIsSet(boolean value) {
19683       if (!value) {
19684         this.success = null;
19685       }
19686     }
19687 
19688     public IOError getIo() {
19689       return this.io;
19690     }
19691 
19692     public getRowWithColumns_result setIo(IOError io) {
19693       this.io = io;
19694       return this;
19695     }
19696 
19697     public void unsetIo() {
19698       this.io = null;
19699     }
19700 
19701     /** Returns true if field io is set (has been assigned a value) and false otherwise */
19702     public boolean isSetIo() {
19703       return this.io != null;
19704     }
19705 
19706     public void setIoIsSet(boolean value) {
19707       if (!value) {
19708         this.io = null;
19709       }
19710     }
19711 
19712     public void setFieldValue(_Fields field, Object value) {
19713       switch (field) {
19714       case SUCCESS:
19715         if (value == null) {
19716           unsetSuccess();
19717         } else {
19718           setSuccess((List<TRowResult>)value);
19719         }
19720         break;
19721 
19722       case IO:
19723         if (value == null) {
19724           unsetIo();
19725         } else {
19726           setIo((IOError)value);
19727         }
19728         break;
19729 
19730       }
19731     }
19732 
19733     public Object getFieldValue(_Fields field) {
19734       switch (field) {
19735       case SUCCESS:
19736         return getSuccess();
19737 
19738       case IO:
19739         return getIo();
19740 
19741       }
19742       throw new IllegalStateException();
19743     }
19744 
19745     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19746     public boolean isSet(_Fields field) {
19747       if (field == null) {
19748         throw new IllegalArgumentException();
19749       }
19750 
19751       switch (field) {
19752       case SUCCESS:
19753         return isSetSuccess();
19754       case IO:
19755         return isSetIo();
19756       }
19757       throw new IllegalStateException();
19758     }
19759 
19760     @Override
19761     public boolean equals(Object that) {
19762       if (that == null)
19763         return false;
19764       if (that instanceof getRowWithColumns_result)
19765         return this.equals((getRowWithColumns_result)that);
19766       return false;
19767     }
19768 
19769     public boolean equals(getRowWithColumns_result that) {
19770       if (that == null)
19771         return false;
19772 
19773       boolean this_present_success = true && this.isSetSuccess();
19774       boolean that_present_success = true && that.isSetSuccess();
19775       if (this_present_success || that_present_success) {
19776         if (!(this_present_success && that_present_success))
19777           return false;
19778         if (!this.success.equals(that.success))
19779           return false;
19780       }
19781 
19782       boolean this_present_io = true && this.isSetIo();
19783       boolean that_present_io = true && that.isSetIo();
19784       if (this_present_io || that_present_io) {
19785         if (!(this_present_io && that_present_io))
19786           return false;
19787         if (!this.io.equals(that.io))
19788           return false;
19789       }
19790 
19791       return true;
19792     }
19793 
19794     @Override
19795     public int hashCode() {
19796       HashCodeBuilder builder = new HashCodeBuilder();
19797 
19798       boolean present_success = true && (isSetSuccess());
19799       builder.append(present_success);
19800       if (present_success)
19801         builder.append(success);
19802 
19803       boolean present_io = true && (isSetIo());
19804       builder.append(present_io);
19805       if (present_io)
19806         builder.append(io);
19807 
19808       return builder.toHashCode();
19809     }
19810 
19811     public int compareTo(getRowWithColumns_result other) {
19812       if (!getClass().equals(other.getClass())) {
19813         return getClass().getName().compareTo(other.getClass().getName());
19814       }
19815 
19816       int lastComparison = 0;
19817       getRowWithColumns_result typedOther = (getRowWithColumns_result)other;
19818 
19819       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19820       if (lastComparison != 0) {
19821         return lastComparison;
19822       }
19823       if (isSetSuccess()) {
19824         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19825         if (lastComparison != 0) {
19826           return lastComparison;
19827         }
19828       }
19829       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
19830       if (lastComparison != 0) {
19831         return lastComparison;
19832       }
19833       if (isSetIo()) {
19834         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
19835         if (lastComparison != 0) {
19836           return lastComparison;
19837         }
19838       }
19839       return 0;
19840     }
19841 
19842     public _Fields fieldForId(int fieldId) {
19843       return _Fields.findByThriftId(fieldId);
19844     }
19845 
19846     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19847       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19848     }
19849 
19850     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19851       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19852       }
19853 
19854     @Override
19855     public String toString() {
19856       StringBuilder sb = new StringBuilder("getRowWithColumns_result(");
19857       boolean first = true;
19858 
19859       sb.append("success:");
19860       if (this.success == null) {
19861         sb.append("null");
19862       } else {
19863         sb.append(this.success);
19864       }
19865       first = false;
19866       if (!first) sb.append(", ");
19867       sb.append("io:");
19868       if (this.io == null) {
19869         sb.append("null");
19870       } else {
19871         sb.append(this.io);
19872       }
19873       first = false;
19874       sb.append(")");
19875       return sb.toString();
19876     }
19877 
19878     public void validate() throws org.apache.thrift.TException {
19879       // check for required fields
19880       // check for sub-struct validity
19881     }
19882 
19883     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19884       try {
19885         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19886       } catch (org.apache.thrift.TException te) {
19887         throw new java.io.IOException(te);
19888       }
19889     }
19890 
19891     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19892       try {
19893         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19894       } catch (org.apache.thrift.TException te) {
19895         throw new java.io.IOException(te);
19896       }
19897     }
19898 
19899     private static class getRowWithColumns_resultStandardSchemeFactory implements SchemeFactory {
19900       public getRowWithColumns_resultStandardScheme getScheme() {
19901         return new getRowWithColumns_resultStandardScheme();
19902       }
19903     }
19904 
19905     private static class getRowWithColumns_resultStandardScheme extends StandardScheme<getRowWithColumns_result> {
19906 
19907       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
19908         org.apache.thrift.protocol.TField schemeField;
19909         iprot.readStructBegin();
19910         while (true)
19911         {
19912           schemeField = iprot.readFieldBegin();
19913           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
19914             break;
19915           }
19916           switch (schemeField.id) {
19917             case 0: // SUCCESS
19918               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
19919                 {
19920                   org.apache.thrift.protocol.TList _list174 = iprot.readListBegin();
19921                   struct.success = new ArrayList<TRowResult>(_list174.size);
19922                   for (int _i175 = 0; _i175 < _list174.size; ++_i175)
19923                   {
19924                     TRowResult _elem176; // required
19925                     _elem176 = new TRowResult();
19926                     _elem176.read(iprot);
19927                     struct.success.add(_elem176);
19928                   }
19929                   iprot.readListEnd();
19930                 }
19931                 struct.setSuccessIsSet(true);
19932               } else { 
19933                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19934               }
19935               break;
19936             case 1: // IO
19937               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19938                 struct.io = new IOError();
19939                 struct.io.read(iprot);
19940                 struct.setIoIsSet(true);
19941               } else { 
19942                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19943               }
19944               break;
19945             default:
19946               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19947           }
19948           iprot.readFieldEnd();
19949         }
19950         iprot.readStructEnd();
19951 
19952         // check for required fields of primitive type, which can't be checked in the validate method
19953         struct.validate();
19954       }
19955 
19956       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
19957         struct.validate();
19958 
19959         oprot.writeStructBegin(STRUCT_DESC);
19960         if (struct.success != null) {
19961           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19962           {
19963             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
19964             for (TRowResult _iter177 : struct.success)
19965             {
19966               _iter177.write(oprot);
19967             }
19968             oprot.writeListEnd();
19969           }
19970           oprot.writeFieldEnd();
19971         }
19972         if (struct.io != null) {
19973           oprot.writeFieldBegin(IO_FIELD_DESC);
19974           struct.io.write(oprot);
19975           oprot.writeFieldEnd();
19976         }
19977         oprot.writeFieldStop();
19978         oprot.writeStructEnd();
19979       }
19980 
19981     }
19982 
19983     private static class getRowWithColumns_resultTupleSchemeFactory implements SchemeFactory {
19984       public getRowWithColumns_resultTupleScheme getScheme() {
19985         return new getRowWithColumns_resultTupleScheme();
19986       }
19987     }
19988 
19989     private static class getRowWithColumns_resultTupleScheme extends TupleScheme<getRowWithColumns_result> {
19990 
19991       @Override
19992       public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
19993         TTupleProtocol oprot = (TTupleProtocol) prot;
19994         BitSet optionals = new BitSet();
19995         if (struct.isSetSuccess()) {
19996           optionals.set(0);
19997         }
19998         if (struct.isSetIo()) {
19999           optionals.set(1);
20000         }
20001         oprot.writeBitSet(optionals, 2);
20002         if (struct.isSetSuccess()) {
20003           {
20004             oprot.writeI32(struct.success.size());
20005             for (TRowResult _iter178 : struct.success)
20006             {
20007               _iter178.write(oprot);
20008             }
20009           }
20010         }
20011         if (struct.isSetIo()) {
20012           struct.io.write(oprot);
20013         }
20014       }
20015 
20016       @Override
20017       public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
20018         TTupleProtocol iprot = (TTupleProtocol) prot;
20019         BitSet incoming = iprot.readBitSet(2);
20020         if (incoming.get(0)) {
20021           {
20022             org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
20023             struct.success = new ArrayList<TRowResult>(_list179.size);
20024             for (int _i180 = 0; _i180 < _list179.size; ++_i180)
20025             {
20026               TRowResult _elem181; // required
20027               _elem181 = new TRowResult();
20028               _elem181.read(iprot);
20029               struct.success.add(_elem181);
20030             }
20031           }
20032           struct.setSuccessIsSet(true);
20033         }
20034         if (incoming.get(1)) {
20035           struct.io = new IOError();
20036           struct.io.read(iprot);
20037           struct.setIoIsSet(true);
20038         }
20039       }
20040     }
20041 
20042   }
20043 
20044   public static class getRowTs_args implements org.apache.thrift.TBase<getRowTs_args, getRowTs_args._Fields>, java.io.Serializable, Cloneable   {
20045     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_args");
20046 
20047     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
20048     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
20049     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
20050     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
20051 
20052     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20053     static {
20054       schemes.put(StandardScheme.class, new getRowTs_argsStandardSchemeFactory());
20055       schemes.put(TupleScheme.class, new getRowTs_argsTupleSchemeFactory());
20056     }
20057 
20058     /**
20059      * name of the table
20060      */
20061     public ByteBuffer tableName; // required
20062     /**
20063      * row key
20064      */
20065     public ByteBuffer row; // required
20066     /**
20067      * timestamp
20068      */
20069     public long timestamp; // required
20070     /**
20071      * Get attributes
20072      */
20073     public Map<ByteBuffer,ByteBuffer> attributes; // required
20074 
20075     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20076     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20077       /**
20078        * name of the table
20079        */
20080       TABLE_NAME((short)1, "tableName"),
20081       /**
20082        * row key
20083        */
20084       ROW((short)2, "row"),
20085       /**
20086        * timestamp
20087        */
20088       TIMESTAMP((short)3, "timestamp"),
20089       /**
20090        * Get attributes
20091        */
20092       ATTRIBUTES((short)4, "attributes");
20093 
20094       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20095 
20096       static {
20097         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20098           byName.put(field.getFieldName(), field);
20099         }
20100       }
20101 
20102       /**
20103        * Find the _Fields constant that matches fieldId, or null if its not found.
20104        */
20105       public static _Fields findByThriftId(int fieldId) {
20106         switch(fieldId) {
20107           case 1: // TABLE_NAME
20108             return TABLE_NAME;
20109           case 2: // ROW
20110             return ROW;
20111           case 3: // TIMESTAMP
20112             return TIMESTAMP;
20113           case 4: // ATTRIBUTES
20114             return ATTRIBUTES;
20115           default:
20116             return null;
20117         }
20118       }
20119 
20120       /**
20121        * Find the _Fields constant that matches fieldId, throwing an exception
20122        * if it is not found.
20123        */
20124       public static _Fields findByThriftIdOrThrow(int fieldId) {
20125         _Fields fields = findByThriftId(fieldId);
20126         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20127         return fields;
20128       }
20129 
20130       /**
20131        * Find the _Fields constant that matches name, or null if its not found.
20132        */
20133       public static _Fields findByName(String name) {
20134         return byName.get(name);
20135       }
20136 
20137       private final short _thriftId;
20138       private final String _fieldName;
20139 
20140       _Fields(short thriftId, String fieldName) {
20141         _thriftId = thriftId;
20142         _fieldName = fieldName;
20143       }
20144 
20145       public short getThriftFieldId() {
20146         return _thriftId;
20147       }
20148 
20149       public String getFieldName() {
20150         return _fieldName;
20151       }
20152     }
20153 
20154     // isset id assignments
20155     private static final int __TIMESTAMP_ISSET_ID = 0;
20156     private byte __isset_bitfield = 0;
20157     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20158     static {
20159       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20160       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20161           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
20162       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20163           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
20164       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20165           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20166       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20167           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20168               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
20169               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
20170       metaDataMap = Collections.unmodifiableMap(tmpMap);
20171       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_args.class, metaDataMap);
20172     }
20173 
20174     public getRowTs_args() {
20175     }
20176 
20177     public getRowTs_args(
20178       ByteBuffer tableName,
20179       ByteBuffer row,
20180       long timestamp,
20181       Map<ByteBuffer,ByteBuffer> attributes)
20182     {
20183       this();
20184       this.tableName = tableName;
20185       this.row = row;
20186       this.timestamp = timestamp;
20187       setTimestampIsSet(true);
20188       this.attributes = attributes;
20189     }
20190 
20191     /**
20192      * Performs a deep copy on <i>other</i>.
20193      */
20194     public getRowTs_args(getRowTs_args other) {
20195       __isset_bitfield = other.__isset_bitfield;
20196       if (other.isSetTableName()) {
20197         this.tableName = other.tableName;
20198       }
20199       if (other.isSetRow()) {
20200         this.row = other.row;
20201       }
20202       this.timestamp = other.timestamp;
20203       if (other.isSetAttributes()) {
20204         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
20205         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
20206 
20207           ByteBuffer other_element_key = other_element.getKey();
20208           ByteBuffer other_element_value = other_element.getValue();
20209 
20210           ByteBuffer __this__attributes_copy_key = other_element_key;
20211 
20212           ByteBuffer __this__attributes_copy_value = other_element_value;
20213 
20214           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
20215         }
20216         this.attributes = __this__attributes;
20217       }
20218     }
20219 
20220     public getRowTs_args deepCopy() {
20221       return new getRowTs_args(this);
20222     }
20223 
20224     @Override
20225     public void clear() {
20226       this.tableName = null;
20227       this.row = null;
20228       setTimestampIsSet(false);
20229       this.timestamp = 0;
20230       this.attributes = null;
20231     }
20232 
20233     /**
20234      * name of the table
20235      */
20236     public byte[] getTableName() {
20237       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
20238       return tableName == null ? null : tableName.array();
20239     }
20240 
20241     public ByteBuffer bufferForTableName() {
20242       return tableName;
20243     }
20244 
20245     /**
20246      * name of the table
20247      */
20248     public getRowTs_args setTableName(byte[] tableName) {
20249       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
20250       return this;
20251     }
20252 
20253     public getRowTs_args setTableName(ByteBuffer tableName) {
20254       this.tableName = tableName;
20255       return this;
20256     }
20257 
20258     public void unsetTableName() {
20259       this.tableName = null;
20260     }
20261 
20262     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
20263     public boolean isSetTableName() {
20264       return this.tableName != null;
20265     }
20266 
20267     public void setTableNameIsSet(boolean value) {
20268       if (!value) {
20269         this.tableName = null;
20270       }
20271     }
20272 
20273     /**
20274      * row key
20275      */
20276     public byte[] getRow() {
20277       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
20278       return row == null ? null : row.array();
20279     }
20280 
20281     public ByteBuffer bufferForRow() {
20282       return row;
20283     }
20284 
20285     /**
20286      * row key
20287      */
20288     public getRowTs_args setRow(byte[] row) {
20289       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
20290       return this;
20291     }
20292 
20293     public getRowTs_args setRow(ByteBuffer row) {
20294       this.row = row;
20295       return this;
20296     }
20297 
20298     public void unsetRow() {
20299       this.row = null;
20300     }
20301 
20302     /** Returns true if field row is set (has been assigned a value) and false otherwise */
20303     public boolean isSetRow() {
20304       return this.row != null;
20305     }
20306 
20307     public void setRowIsSet(boolean value) {
20308       if (!value) {
20309         this.row = null;
20310       }
20311     }
20312 
20313     /**
20314      * timestamp
20315      */
20316     public long getTimestamp() {
20317       return this.timestamp;
20318     }
20319 
20320     /**
20321      * timestamp
20322      */
20323     public getRowTs_args setTimestamp(long timestamp) {
20324       this.timestamp = timestamp;
20325       setTimestampIsSet(true);
20326       return this;
20327     }
20328 
20329     public void unsetTimestamp() {
20330       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
20331     }
20332 
20333     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
20334     public boolean isSetTimestamp() {
20335       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
20336     }
20337 
20338     public void setTimestampIsSet(boolean value) {
20339       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
20340     }
20341 
20342     public int getAttributesSize() {
20343       return (this.attributes == null) ? 0 : this.attributes.size();
20344     }
20345 
20346     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
20347       if (this.attributes == null) {
20348         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
20349       }
20350       this.attributes.put(key, val);
20351     }
20352 
20353     /**
20354      * Get attributes
20355      */
20356     public Map<ByteBuffer,ByteBuffer> getAttributes() {
20357       return this.attributes;
20358     }
20359 
20360     /**
20361      * Get attributes
20362      */
20363     public getRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
20364       this.attributes = attributes;
20365       return this;
20366     }
20367 
20368     public void unsetAttributes() {
20369       this.attributes = null;
20370     }
20371 
20372     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
20373     public boolean isSetAttributes() {
20374       return this.attributes != null;
20375     }
20376 
20377     public void setAttributesIsSet(boolean value) {
20378       if (!value) {
20379         this.attributes = null;
20380       }
20381     }
20382 
20383     public void setFieldValue(_Fields field, Object value) {
20384       switch (field) {
20385       case TABLE_NAME:
20386         if (value == null) {
20387           unsetTableName();
20388         } else {
20389           setTableName((ByteBuffer)value);
20390         }
20391         break;
20392 
20393       case ROW:
20394         if (value == null) {
20395           unsetRow();
20396         } else {
20397           setRow((ByteBuffer)value);
20398         }
20399         break;
20400 
20401       case TIMESTAMP:
20402         if (value == null) {
20403           unsetTimestamp();
20404         } else {
20405           setTimestamp((Long)value);
20406         }
20407         break;
20408 
20409       case ATTRIBUTES:
20410         if (value == null) {
20411           unsetAttributes();
20412         } else {
20413           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
20414         }
20415         break;
20416 
20417       }
20418     }
20419 
20420     public Object getFieldValue(_Fields field) {
20421       switch (field) {
20422       case TABLE_NAME:
20423         return getTableName();
20424 
20425       case ROW:
20426         return getRow();
20427 
20428       case TIMESTAMP:
20429         return Long.valueOf(getTimestamp());
20430 
20431       case ATTRIBUTES:
20432         return getAttributes();
20433 
20434       }
20435       throw new IllegalStateException();
20436     }
20437 
20438     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20439     public boolean isSet(_Fields field) {
20440       if (field == null) {
20441         throw new IllegalArgumentException();
20442       }
20443 
20444       switch (field) {
20445       case TABLE_NAME:
20446         return isSetTableName();
20447       case ROW:
20448         return isSetRow();
20449       case TIMESTAMP:
20450         return isSetTimestamp();
20451       case ATTRIBUTES:
20452         return isSetAttributes();
20453       }
20454       throw new IllegalStateException();
20455     }
20456 
20457     @Override
20458     public boolean equals(Object that) {
20459       if (that == null)
20460         return false;
20461       if (that instanceof getRowTs_args)
20462         return this.equals((getRowTs_args)that);
20463       return false;
20464     }
20465 
20466     public boolean equals(getRowTs_args that) {
20467       if (that == null)
20468         return false;
20469 
20470       boolean this_present_tableName = true && this.isSetTableName();
20471       boolean that_present_tableName = true && that.isSetTableName();
20472       if (this_present_tableName || that_present_tableName) {
20473         if (!(this_present_tableName && that_present_tableName))
20474           return false;
20475         if (!this.tableName.equals(that.tableName))
20476           return false;
20477       }
20478 
20479       boolean this_present_row = true && this.isSetRow();
20480       boolean that_present_row = true && that.isSetRow();
20481       if (this_present_row || that_present_row) {
20482         if (!(this_present_row && that_present_row))
20483           return false;
20484         if (!this.row.equals(that.row))
20485           return false;
20486       }
20487 
20488       boolean this_present_timestamp = true;
20489       boolean that_present_timestamp = true;
20490       if (this_present_timestamp || that_present_timestamp) {
20491         if (!(this_present_timestamp && that_present_timestamp))
20492           return false;
20493         if (this.timestamp != that.timestamp)
20494           return false;
20495       }
20496 
20497       boolean this_present_attributes = true && this.isSetAttributes();
20498       boolean that_present_attributes = true && that.isSetAttributes();
20499       if (this_present_attributes || that_present_attributes) {
20500         if (!(this_present_attributes && that_present_attributes))
20501           return false;
20502         if (!this.attributes.equals(that.attributes))
20503           return false;
20504       }
20505 
20506       return true;
20507     }
20508 
20509     @Override
20510     public int hashCode() {
20511       HashCodeBuilder builder = new HashCodeBuilder();
20512 
20513       boolean present_tableName = true && (isSetTableName());
20514       builder.append(present_tableName);
20515       if (present_tableName)
20516         builder.append(tableName);
20517 
20518       boolean present_row = true && (isSetRow());
20519       builder.append(present_row);
20520       if (present_row)
20521         builder.append(row);
20522 
20523       boolean present_timestamp = true;
20524       builder.append(present_timestamp);
20525       if (present_timestamp)
20526         builder.append(timestamp);
20527 
20528       boolean present_attributes = true && (isSetAttributes());
20529       builder.append(present_attributes);
20530       if (present_attributes)
20531         builder.append(attributes);
20532 
20533       return builder.toHashCode();
20534     }
20535 
20536     public int compareTo(getRowTs_args other) {
20537       if (!getClass().equals(other.getClass())) {
20538         return getClass().getName().compareTo(other.getClass().getName());
20539       }
20540 
20541       int lastComparison = 0;
20542       getRowTs_args typedOther = (getRowTs_args)other;
20543 
20544       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
20545       if (lastComparison != 0) {
20546         return lastComparison;
20547       }
20548       if (isSetTableName()) {
20549         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
20550         if (lastComparison != 0) {
20551           return lastComparison;
20552         }
20553       }
20554       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
20555       if (lastComparison != 0) {
20556         return lastComparison;
20557       }
20558       if (isSetRow()) {
20559         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
20560         if (lastComparison != 0) {
20561           return lastComparison;
20562         }
20563       }
20564       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
20565       if (lastComparison != 0) {
20566         return lastComparison;
20567       }
20568       if (isSetTimestamp()) {
20569         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
20570         if (lastComparison != 0) {
20571           return lastComparison;
20572         }
20573       }
20574       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
20575       if (lastComparison != 0) {
20576         return lastComparison;
20577       }
20578       if (isSetAttributes()) {
20579         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
20580         if (lastComparison != 0) {
20581           return lastComparison;
20582         }
20583       }
20584       return 0;
20585     }
20586 
20587     public _Fields fieldForId(int fieldId) {
20588       return _Fields.findByThriftId(fieldId);
20589     }
20590 
20591     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20592       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20593     }
20594 
20595     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20596       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20597     }
20598 
20599     @Override
20600     public String toString() {
20601       StringBuilder sb = new StringBuilder("getRowTs_args(");
20602       boolean first = true;
20603 
20604       sb.append("tableName:");
20605       if (this.tableName == null) {
20606         sb.append("null");
20607       } else {
20608         sb.append(this.tableName);
20609       }
20610       first = false;
20611       if (!first) sb.append(", ");
20612       sb.append("row:");
20613       if (this.row == null) {
20614         sb.append("null");
20615       } else {
20616         sb.append(this.row);
20617       }
20618       first = false;
20619       if (!first) sb.append(", ");
20620       sb.append("timestamp:");
20621       sb.append(this.timestamp);
20622       first = false;
20623       if (!first) sb.append(", ");
20624       sb.append("attributes:");
20625       if (this.attributes == null) {
20626         sb.append("null");
20627       } else {
20628         sb.append(this.attributes);
20629       }
20630       first = false;
20631       sb.append(")");
20632       return sb.toString();
20633     }
20634 
20635     public void validate() throws org.apache.thrift.TException {
20636       // check for required fields
20637       // check for sub-struct validity
20638     }
20639 
20640     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20641       try {
20642         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20643       } catch (org.apache.thrift.TException te) {
20644         throw new java.io.IOException(te);
20645       }
20646     }
20647 
20648     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20649       try {
20650         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20651         __isset_bitfield = 0;
20652         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20653       } catch (org.apache.thrift.TException te) {
20654         throw new java.io.IOException(te);
20655       }
20656     }
20657 
20658     private static class getRowTs_argsStandardSchemeFactory implements SchemeFactory {
20659       public getRowTs_argsStandardScheme getScheme() {
20660         return new getRowTs_argsStandardScheme();
20661       }
20662     }
20663 
20664     private static class getRowTs_argsStandardScheme extends StandardScheme<getRowTs_args> {
20665 
20666       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_args struct) throws org.apache.thrift.TException {
20667         org.apache.thrift.protocol.TField schemeField;
20668         iprot.readStructBegin();
20669         while (true)
20670         {
20671           schemeField = iprot.readFieldBegin();
20672           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
20673             break;
20674           }
20675           switch (schemeField.id) {
20676             case 1: // TABLE_NAME
20677               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20678                 struct.tableName = iprot.readBinary();
20679                 struct.setTableNameIsSet(true);
20680               } else { 
20681                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20682               }
20683               break;
20684             case 2: // ROW
20685               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20686                 struct.row = iprot.readBinary();
20687                 struct.setRowIsSet(true);
20688               } else { 
20689                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20690               }
20691               break;
20692             case 3: // TIMESTAMP
20693               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
20694                 struct.timestamp = iprot.readI64();
20695                 struct.setTimestampIsSet(true);
20696               } else { 
20697                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20698               }
20699               break;
20700             case 4: // ATTRIBUTES
20701               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
20702                 {
20703                   org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin();
20704                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map182.size);
20705                   for (int _i183 = 0; _i183 < _map182.size; ++_i183)
20706                   {
20707                     ByteBuffer _key184; // required
20708                     ByteBuffer _val185; // required
20709                     _key184 = iprot.readBinary();
20710                     _val185 = iprot.readBinary();
20711                     struct.attributes.put(_key184, _val185);
20712                   }
20713                   iprot.readMapEnd();
20714                 }
20715                 struct.setAttributesIsSet(true);
20716               } else { 
20717                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20718               }
20719               break;
20720             default:
20721               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20722           }
20723           iprot.readFieldEnd();
20724         }
20725         iprot.readStructEnd();
20726 
20727         // check for required fields of primitive type, which can't be checked in the validate method
20728         struct.validate();
20729       }
20730 
20731       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_args struct) throws org.apache.thrift.TException {
20732         struct.validate();
20733 
20734         oprot.writeStructBegin(STRUCT_DESC);
20735         if (struct.tableName != null) {
20736           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
20737           oprot.writeBinary(struct.tableName);
20738           oprot.writeFieldEnd();
20739         }
20740         if (struct.row != null) {
20741           oprot.writeFieldBegin(ROW_FIELD_DESC);
20742           oprot.writeBinary(struct.row);
20743           oprot.writeFieldEnd();
20744         }
20745         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
20746         oprot.writeI64(struct.timestamp);
20747         oprot.writeFieldEnd();
20748         if (struct.attributes != null) {
20749           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
20750           {
20751             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
20752             for (Map.Entry<ByteBuffer, ByteBuffer> _iter186 : struct.attributes.entrySet())
20753             {
20754               oprot.writeBinary(_iter186.getKey());
20755               oprot.writeBinary(_iter186.getValue());
20756             }
20757             oprot.writeMapEnd();
20758           }
20759           oprot.writeFieldEnd();
20760         }
20761         oprot.writeFieldStop();
20762         oprot.writeStructEnd();
20763       }
20764 
20765     }
20766 
20767     private static class getRowTs_argsTupleSchemeFactory implements SchemeFactory {
20768       public getRowTs_argsTupleScheme getScheme() {
20769         return new getRowTs_argsTupleScheme();
20770       }
20771     }
20772 
20773     private static class getRowTs_argsTupleScheme extends TupleScheme<getRowTs_args> {
20774 
20775       @Override
20776       public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException {
20777         TTupleProtocol oprot = (TTupleProtocol) prot;
20778         BitSet optionals = new BitSet();
20779         if (struct.isSetTableName()) {
20780           optionals.set(0);
20781         }
20782         if (struct.isSetRow()) {
20783           optionals.set(1);
20784         }
20785         if (struct.isSetTimestamp()) {
20786           optionals.set(2);
20787         }
20788         if (struct.isSetAttributes()) {
20789           optionals.set(3);
20790         }
20791         oprot.writeBitSet(optionals, 4);
20792         if (struct.isSetTableName()) {
20793           oprot.writeBinary(struct.tableName);
20794         }
20795         if (struct.isSetRow()) {
20796           oprot.writeBinary(struct.row);
20797         }
20798         if (struct.isSetTimestamp()) {
20799           oprot.writeI64(struct.timestamp);
20800         }
20801         if (struct.isSetAttributes()) {
20802           {
20803             oprot.writeI32(struct.attributes.size());
20804             for (Map.Entry<ByteBuffer, ByteBuffer> _iter187 : struct.attributes.entrySet())
20805             {
20806               oprot.writeBinary(_iter187.getKey());
20807               oprot.writeBinary(_iter187.getValue());
20808             }
20809           }
20810         }
20811       }
20812 
20813       @Override
20814       public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException {
20815         TTupleProtocol iprot = (TTupleProtocol) prot;
20816         BitSet incoming = iprot.readBitSet(4);
20817         if (incoming.get(0)) {
20818           struct.tableName = iprot.readBinary();
20819           struct.setTableNameIsSet(true);
20820         }
20821         if (incoming.get(1)) {
20822           struct.row = iprot.readBinary();
20823           struct.setRowIsSet(true);
20824         }
20825         if (incoming.get(2)) {
20826           struct.timestamp = iprot.readI64();
20827           struct.setTimestampIsSet(true);
20828         }
20829         if (incoming.get(3)) {
20830           {
20831             org.apache.thrift.protocol.TMap _map188 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
20832             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map188.size);
20833             for (int _i189 = 0; _i189 < _map188.size; ++_i189)
20834             {
20835               ByteBuffer _key190; // required
20836               ByteBuffer _val191; // required
20837               _key190 = iprot.readBinary();
20838               _val191 = iprot.readBinary();
20839               struct.attributes.put(_key190, _val191);
20840             }
20841           }
20842           struct.setAttributesIsSet(true);
20843         }
20844       }
20845     }
20846 
20847   }
20848 
20849   public static class getRowTs_result implements org.apache.thrift.TBase<getRowTs_result, getRowTs_result._Fields>, java.io.Serializable, Cloneable   {
20850     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_result");
20851 
20852     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
20853     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20854 
20855     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20856     static {
20857       schemes.put(StandardScheme.class, new getRowTs_resultStandardSchemeFactory());
20858       schemes.put(TupleScheme.class, new getRowTs_resultTupleSchemeFactory());
20859     }
20860 
20861     public List<TRowResult> success; // required
20862     public IOError io; // required
20863 
20864     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20865     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20866       SUCCESS((short)0, "success"),
20867       IO((short)1, "io");
20868 
20869       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20870 
20871       static {
20872         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20873           byName.put(field.getFieldName(), field);
20874         }
20875       }
20876 
20877       /**
20878        * Find the _Fields constant that matches fieldId, or null if its not found.
20879        */
20880       public static _Fields findByThriftId(int fieldId) {
20881         switch(fieldId) {
20882           case 0: // SUCCESS
20883             return SUCCESS;
20884           case 1: // IO
20885             return IO;
20886           default:
20887             return null;
20888         }
20889       }
20890 
20891       /**
20892        * Find the _Fields constant that matches fieldId, throwing an exception
20893        * if it is not found.
20894        */
20895       public static _Fields findByThriftIdOrThrow(int fieldId) {
20896         _Fields fields = findByThriftId(fieldId);
20897         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20898         return fields;
20899       }
20900 
20901       /**
20902        * Find the _Fields constant that matches name, or null if its not found.
20903        */
20904       public static _Fields findByName(String name) {
20905         return byName.get(name);
20906       }
20907 
20908       private final short _thriftId;
20909       private final String _fieldName;
20910 
20911       _Fields(short thriftId, String fieldName) {
20912         _thriftId = thriftId;
20913         _fieldName = fieldName;
20914       }
20915 
20916       public short getThriftFieldId() {
20917         return _thriftId;
20918       }
20919 
20920       public String getFieldName() {
20921         return _fieldName;
20922       }
20923     }
20924 
20925     // isset id assignments
20926     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20927     static {
20928       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20929       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20930           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20931               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
20932       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20933           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20934       metaDataMap = Collections.unmodifiableMap(tmpMap);
20935       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_result.class, metaDataMap);
20936     }
20937 
20938     public getRowTs_result() {
20939     }
20940 
20941     public getRowTs_result(
20942       List<TRowResult> success,
20943       IOError io)
20944     {
20945       this();
20946       this.success = success;
20947       this.io = io;
20948     }
20949 
20950     /**
20951      * Performs a deep copy on <i>other</i>.
20952      */
20953     public getRowTs_result(getRowTs_result other) {
20954       if (other.isSetSuccess()) {
20955         List<TRowResult> __this__success = new ArrayList<TRowResult>();
20956         for (TRowResult other_element : other.success) {
20957           __this__success.add(new TRowResult(other_element));
20958         }
20959         this.success = __this__success;
20960       }
20961       if (other.isSetIo()) {
20962         this.io = new IOError(other.io);
20963       }
20964     }
20965 
20966     public getRowTs_result deepCopy() {
20967       return new getRowTs_result(this);
20968     }
20969 
20970     @Override
20971     public void clear() {
20972       this.success = null;
20973       this.io = null;
20974     }
20975 
20976     public int getSuccessSize() {
20977       return (this.success == null) ? 0 : this.success.size();
20978     }
20979 
20980     public java.util.Iterator<TRowResult> getSuccessIterator() {
20981       return (this.success == null) ? null : this.success.iterator();
20982     }
20983 
20984     public void addToSuccess(TRowResult elem) {
20985       if (this.success == null) {
20986         this.success = new ArrayList<TRowResult>();
20987       }
20988       this.success.add(elem);
20989     }
20990 
20991     public List<TRowResult> getSuccess() {
20992       return this.success;
20993     }
20994 
20995     public getRowTs_result setSuccess(List<TRowResult> success) {
20996       this.success = success;
20997       return this;
20998     }
20999 
21000     public void unsetSuccess() {
21001       this.success = null;
21002     }
21003 
21004     /** Returns true if field success is set (has been assigned a value) and false otherwise */
21005     public boolean isSetSuccess() {
21006       return this.success != null;
21007     }
21008 
21009     public void setSuccessIsSet(boolean value) {
21010       if (!value) {
21011         this.success = null;
21012       }
21013     }
21014 
21015     public IOError getIo() {
21016       return this.io;
21017     }
21018 
21019     public getRowTs_result setIo(IOError io) {
21020       this.io = io;
21021       return this;
21022     }
21023 
21024     public void unsetIo() {
21025       this.io = null;
21026     }
21027 
21028     /** Returns true if field io is set (has been assigned a value) and false otherwise */
21029     public boolean isSetIo() {
21030       return this.io != null;
21031     }
21032 
21033     public void setIoIsSet(boolean value) {
21034       if (!value) {
21035         this.io = null;
21036       }
21037     }
21038 
21039     public void setFieldValue(_Fields field, Object value) {
21040       switch (field) {
21041       case SUCCESS:
21042         if (value == null) {
21043           unsetSuccess();
21044         } else {
21045           setSuccess((List<TRowResult>)value);
21046         }
21047         break;
21048 
21049       case IO:
21050         if (value == null) {
21051           unsetIo();
21052         } else {
21053           setIo((IOError)value);
21054         }
21055         break;
21056 
21057       }
21058     }
21059 
21060     public Object getFieldValue(_Fields field) {
21061       switch (field) {
21062       case SUCCESS:
21063         return getSuccess();
21064 
21065       case IO:
21066         return getIo();
21067 
21068       }
21069       throw new IllegalStateException();
21070     }
21071 
21072     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21073     public boolean isSet(_Fields field) {
21074       if (field == null) {
21075         throw new IllegalArgumentException();
21076       }
21077 
21078       switch (field) {
21079       case SUCCESS:
21080         return isSetSuccess();
21081       case IO:
21082         return isSetIo();
21083       }
21084       throw new IllegalStateException();
21085     }
21086 
21087     @Override
21088     public boolean equals(Object that) {
21089       if (that == null)
21090         return false;
21091       if (that instanceof getRowTs_result)
21092         return this.equals((getRowTs_result)that);
21093       return false;
21094     }
21095 
21096     public boolean equals(getRowTs_result that) {
21097       if (that == null)
21098         return false;
21099 
21100       boolean this_present_success = true && this.isSetSuccess();
21101       boolean that_present_success = true && that.isSetSuccess();
21102       if (this_present_success || that_present_success) {
21103         if (!(this_present_success && that_present_success))
21104           return false;
21105         if (!this.success.equals(that.success))
21106           return false;
21107       }
21108 
21109       boolean this_present_io = true && this.isSetIo();
21110       boolean that_present_io = true && that.isSetIo();
21111       if (this_present_io || that_present_io) {
21112         if (!(this_present_io && that_present_io))
21113           return false;
21114         if (!this.io.equals(that.io))
21115           return false;
21116       }
21117 
21118       return true;
21119     }
21120 
21121     @Override
21122     public int hashCode() {
21123       HashCodeBuilder builder = new HashCodeBuilder();
21124 
21125       boolean present_success = true && (isSetSuccess());
21126       builder.append(present_success);
21127       if (present_success)
21128         builder.append(success);
21129 
21130       boolean present_io = true && (isSetIo());
21131       builder.append(present_io);
21132       if (present_io)
21133         builder.append(io);
21134 
21135       return builder.toHashCode();
21136     }
21137 
21138     public int compareTo(getRowTs_result other) {
21139       if (!getClass().equals(other.getClass())) {
21140         return getClass().getName().compareTo(other.getClass().getName());
21141       }
21142 
21143       int lastComparison = 0;
21144       getRowTs_result typedOther = (getRowTs_result)other;
21145 
21146       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21147       if (lastComparison != 0) {
21148         return lastComparison;
21149       }
21150       if (isSetSuccess()) {
21151         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21152         if (lastComparison != 0) {
21153           return lastComparison;
21154         }
21155       }
21156       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
21157       if (lastComparison != 0) {
21158         return lastComparison;
21159       }
21160       if (isSetIo()) {
21161         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
21162         if (lastComparison != 0) {
21163           return lastComparison;
21164         }
21165       }
21166       return 0;
21167     }
21168 
21169     public _Fields fieldForId(int fieldId) {
21170       return _Fields.findByThriftId(fieldId);
21171     }
21172 
21173     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21174       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21175     }
21176 
21177     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21178       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21179       }
21180 
21181     @Override
21182     public String toString() {
21183       StringBuilder sb = new StringBuilder("getRowTs_result(");
21184       boolean first = true;
21185 
21186       sb.append("success:");
21187       if (this.success == null) {
21188         sb.append("null");
21189       } else {
21190         sb.append(this.success);
21191       }
21192       first = false;
21193       if (!first) sb.append(", ");
21194       sb.append("io:");
21195       if (this.io == null) {
21196         sb.append("null");
21197       } else {
21198         sb.append(this.io);
21199       }
21200       first = false;
21201       sb.append(")");
21202       return sb.toString();
21203     }
21204 
21205     public void validate() throws org.apache.thrift.TException {
21206       // check for required fields
21207       // check for sub-struct validity
21208     }
21209 
21210     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21211       try {
21212         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21213       } catch (org.apache.thrift.TException te) {
21214         throw new java.io.IOException(te);
21215       }
21216     }
21217 
21218     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21219       try {
21220         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21221       } catch (org.apache.thrift.TException te) {
21222         throw new java.io.IOException(te);
21223       }
21224     }
21225 
21226     private static class getRowTs_resultStandardSchemeFactory implements SchemeFactory {
21227       public getRowTs_resultStandardScheme getScheme() {
21228         return new getRowTs_resultStandardScheme();
21229       }
21230     }
21231 
21232     private static class getRowTs_resultStandardScheme extends StandardScheme<getRowTs_result> {
21233 
21234       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_result struct) throws org.apache.thrift.TException {
21235         org.apache.thrift.protocol.TField schemeField;
21236         iprot.readStructBegin();
21237         while (true)
21238         {
21239           schemeField = iprot.readFieldBegin();
21240           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
21241             break;
21242           }
21243           switch (schemeField.id) {
21244             case 0: // SUCCESS
21245               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
21246                 {
21247                   org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
21248                   struct.success = new ArrayList<TRowResult>(_list192.size);
21249                   for (int _i193 = 0; _i193 < _list192.size; ++_i193)
21250                   {
21251                     TRowResult _elem194; // required
21252                     _elem194 = new TRowResult();
21253                     _elem194.read(iprot);
21254                     struct.success.add(_elem194);
21255                   }
21256                   iprot.readListEnd();
21257                 }
21258                 struct.setSuccessIsSet(true);
21259               } else { 
21260                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21261               }
21262               break;
21263             case 1: // IO
21264               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21265                 struct.io = new IOError();
21266                 struct.io.read(iprot);
21267                 struct.setIoIsSet(true);
21268               } else { 
21269                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21270               }
21271               break;
21272             default:
21273               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21274           }
21275           iprot.readFieldEnd();
21276         }
21277         iprot.readStructEnd();
21278 
21279         // check for required fields of primitive type, which can't be checked in the validate method
21280         struct.validate();
21281       }
21282 
21283       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_result struct) throws org.apache.thrift.TException {
21284         struct.validate();
21285 
21286         oprot.writeStructBegin(STRUCT_DESC);
21287         if (struct.success != null) {
21288           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21289           {
21290             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
21291             for (TRowResult _iter195 : struct.success)
21292             {
21293               _iter195.write(oprot);
21294             }
21295             oprot.writeListEnd();
21296           }
21297           oprot.writeFieldEnd();
21298         }
21299         if (struct.io != null) {
21300           oprot.writeFieldBegin(IO_FIELD_DESC);
21301           struct.io.write(oprot);
21302           oprot.writeFieldEnd();
21303         }
21304         oprot.writeFieldStop();
21305         oprot.writeStructEnd();
21306       }
21307 
21308     }
21309 
21310     private static class getRowTs_resultTupleSchemeFactory implements SchemeFactory {
21311       public getRowTs_resultTupleScheme getScheme() {
21312         return new getRowTs_resultTupleScheme();
21313       }
21314     }
21315 
21316     private static class getRowTs_resultTupleScheme extends TupleScheme<getRowTs_result> {
21317 
21318       @Override
21319       public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException {
21320         TTupleProtocol oprot = (TTupleProtocol) prot;
21321         BitSet optionals = new BitSet();
21322         if (struct.isSetSuccess()) {
21323           optionals.set(0);
21324         }
21325         if (struct.isSetIo()) {
21326           optionals.set(1);
21327         }
21328         oprot.writeBitSet(optionals, 2);
21329         if (struct.isSetSuccess()) {
21330           {
21331             oprot.writeI32(struct.success.size());
21332             for (TRowResult _iter196 : struct.success)
21333             {
21334               _iter196.write(oprot);
21335             }
21336           }
21337         }
21338         if (struct.isSetIo()) {
21339           struct.io.write(oprot);
21340         }
21341       }
21342 
21343       @Override
21344       public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException {
21345         TTupleProtocol iprot = (TTupleProtocol) prot;
21346         BitSet incoming = iprot.readBitSet(2);
21347         if (incoming.get(0)) {
21348           {
21349             org.apache.thrift.protocol.TList _list197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
21350             struct.success = new ArrayList<TRowResult>(_list197.size);
21351             for (int _i198 = 0; _i198 < _list197.size; ++_i198)
21352             {
21353               TRowResult _elem199; // required
21354               _elem199 = new TRowResult();
21355               _elem199.read(iprot);
21356               struct.success.add(_elem199);
21357             }
21358           }
21359           struct.setSuccessIsSet(true);
21360         }
21361         if (incoming.get(1)) {
21362           struct.io = new IOError();
21363           struct.io.read(iprot);
21364           struct.setIoIsSet(true);
21365         }
21366       }
21367     }
21368 
21369   }
21370 
21371   public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase<getRowWithColumnsTs_args, getRowWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable   {
21372     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_args");
21373 
21374     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
21375     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
21376     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
21377     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
21378     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
21379 
21380     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21381     static {
21382       schemes.put(StandardScheme.class, new getRowWithColumnsTs_argsStandardSchemeFactory());
21383       schemes.put(TupleScheme.class, new getRowWithColumnsTs_argsTupleSchemeFactory());
21384     }
21385 
21386     /**
21387      * name of table
21388      */
21389     public ByteBuffer tableName; // required
21390     /**
21391      * row key
21392      */
21393     public ByteBuffer row; // required
21394     /**
21395      * List of columns to return, null for all columns
21396      */
21397     public List<ByteBuffer> columns; // required
21398     public long timestamp; // required
21399     /**
21400      * Get attributes
21401      */
21402     public Map<ByteBuffer,ByteBuffer> attributes; // required
21403 
21404     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21405     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21406       /**
21407        * name of table
21408        */
21409       TABLE_NAME((short)1, "tableName"),
21410       /**
21411        * row key
21412        */
21413       ROW((short)2, "row"),
21414       /**
21415        * List of columns to return, null for all columns
21416        */
21417       COLUMNS((short)3, "columns"),
21418       TIMESTAMP((short)4, "timestamp"),
21419       /**
21420        * Get attributes
21421        */
21422       ATTRIBUTES((short)5, "attributes");
21423 
21424       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21425 
21426       static {
21427         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21428           byName.put(field.getFieldName(), field);
21429         }
21430       }
21431 
21432       /**
21433        * Find the _Fields constant that matches fieldId, or null if its not found.
21434        */
21435       public static _Fields findByThriftId(int fieldId) {
21436         switch(fieldId) {
21437           case 1: // TABLE_NAME
21438             return TABLE_NAME;
21439           case 2: // ROW
21440             return ROW;
21441           case 3: // COLUMNS
21442             return COLUMNS;
21443           case 4: // TIMESTAMP
21444             return TIMESTAMP;
21445           case 5: // ATTRIBUTES
21446             return ATTRIBUTES;
21447           default:
21448             return null;
21449         }
21450       }
21451 
21452       /**
21453        * Find the _Fields constant that matches fieldId, throwing an exception
21454        * if it is not found.
21455        */
21456       public static _Fields findByThriftIdOrThrow(int fieldId) {
21457         _Fields fields = findByThriftId(fieldId);
21458         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21459         return fields;
21460       }
21461 
21462       /**
21463        * Find the _Fields constant that matches name, or null if its not found.
21464        */
21465       public static _Fields findByName(String name) {
21466         return byName.get(name);
21467       }
21468 
21469       private final short _thriftId;
21470       private final String _fieldName;
21471 
21472       _Fields(short thriftId, String fieldName) {
21473         _thriftId = thriftId;
21474         _fieldName = fieldName;
21475       }
21476 
21477       public short getThriftFieldId() {
21478         return _thriftId;
21479       }
21480 
21481       public String getFieldName() {
21482         return _fieldName;
21483       }
21484     }
21485 
21486     // isset id assignments
21487     private static final int __TIMESTAMP_ISSET_ID = 0;
21488     private byte __isset_bitfield = 0;
21489     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21490     static {
21491       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21492       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21493           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
21494       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21495           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
21496       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21497           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21498               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
21499       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21500           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21501       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21502           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
21503               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
21504               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
21505       metaDataMap = Collections.unmodifiableMap(tmpMap);
21506       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_args.class, metaDataMap);
21507     }
21508 
21509     public getRowWithColumnsTs_args() {
21510     }
21511 
21512     public getRowWithColumnsTs_args(
21513       ByteBuffer tableName,
21514       ByteBuffer row,
21515       List<ByteBuffer> columns,
21516       long timestamp,
21517       Map<ByteBuffer,ByteBuffer> attributes)
21518     {
21519       this();
21520       this.tableName = tableName;
21521       this.row = row;
21522       this.columns = columns;
21523       this.timestamp = timestamp;
21524       setTimestampIsSet(true);
21525       this.attributes = attributes;
21526     }
21527 
21528     /**
21529      * Performs a deep copy on <i>other</i>.
21530      */
21531     public getRowWithColumnsTs_args(getRowWithColumnsTs_args other) {
21532       __isset_bitfield = other.__isset_bitfield;
21533       if (other.isSetTableName()) {
21534         this.tableName = other.tableName;
21535       }
21536       if (other.isSetRow()) {
21537         this.row = other.row;
21538       }
21539       if (other.isSetColumns()) {
21540         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
21541         for (ByteBuffer other_element : other.columns) {
21542           __this__columns.add(other_element);
21543         }
21544         this.columns = __this__columns;
21545       }
21546       this.timestamp = other.timestamp;
21547       if (other.isSetAttributes()) {
21548         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
21549         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
21550 
21551           ByteBuffer other_element_key = other_element.getKey();
21552           ByteBuffer other_element_value = other_element.getValue();
21553 
21554           ByteBuffer __this__attributes_copy_key = other_element_key;
21555 
21556           ByteBuffer __this__attributes_copy_value = other_element_value;
21557 
21558           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
21559         }
21560         this.attributes = __this__attributes;
21561       }
21562     }
21563 
21564     public getRowWithColumnsTs_args deepCopy() {
21565       return new getRowWithColumnsTs_args(this);
21566     }
21567 
21568     @Override
21569     public void clear() {
21570       this.tableName = null;
21571       this.row = null;
21572       this.columns = null;
21573       setTimestampIsSet(false);
21574       this.timestamp = 0;
21575       this.attributes = null;
21576     }
21577 
21578     /**
21579      * name of table
21580      */
21581     public byte[] getTableName() {
21582       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
21583       return tableName == null ? null : tableName.array();
21584     }
21585 
21586     public ByteBuffer bufferForTableName() {
21587       return tableName;
21588     }
21589 
21590     /**
21591      * name of table
21592      */
21593     public getRowWithColumnsTs_args setTableName(byte[] tableName) {
21594       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
21595       return this;
21596     }
21597 
21598     public getRowWithColumnsTs_args setTableName(ByteBuffer tableName) {
21599       this.tableName = tableName;
21600       return this;
21601     }
21602 
21603     public void unsetTableName() {
21604       this.tableName = null;
21605     }
21606 
21607     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
21608     public boolean isSetTableName() {
21609       return this.tableName != null;
21610     }
21611 
21612     public void setTableNameIsSet(boolean value) {
21613       if (!value) {
21614         this.tableName = null;
21615       }
21616     }
21617 
21618     /**
21619      * row key
21620      */
21621     public byte[] getRow() {
21622       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
21623       return row == null ? null : row.array();
21624     }
21625 
21626     public ByteBuffer bufferForRow() {
21627       return row;
21628     }
21629 
21630     /**
21631      * row key
21632      */
21633     public getRowWithColumnsTs_args setRow(byte[] row) {
21634       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
21635       return this;
21636     }
21637 
21638     public getRowWithColumnsTs_args setRow(ByteBuffer row) {
21639       this.row = row;
21640       return this;
21641     }
21642 
21643     public void unsetRow() {
21644       this.row = null;
21645     }
21646 
21647     /** Returns true if field row is set (has been assigned a value) and false otherwise */
21648     public boolean isSetRow() {
21649       return this.row != null;
21650     }
21651 
21652     public void setRowIsSet(boolean value) {
21653       if (!value) {
21654         this.row = null;
21655       }
21656     }
21657 
21658     public int getColumnsSize() {
21659       return (this.columns == null) ? 0 : this.columns.size();
21660     }
21661 
21662     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
21663       return (this.columns == null) ? null : this.columns.iterator();
21664     }
21665 
21666     public void addToColumns(ByteBuffer elem) {
21667       if (this.columns == null) {
21668         this.columns = new ArrayList<ByteBuffer>();
21669       }
21670       this.columns.add(elem);
21671     }
21672 
21673     /**
21674      * List of columns to return, null for all columns
21675      */
21676     public List<ByteBuffer> getColumns() {
21677       return this.columns;
21678     }
21679 
21680     /**
21681      * List of columns to return, null for all columns
21682      */
21683     public getRowWithColumnsTs_args setColumns(List<ByteBuffer> columns) {
21684       this.columns = columns;
21685       return this;
21686     }
21687 
21688     public void unsetColumns() {
21689       this.columns = null;
21690     }
21691 
21692     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
21693     public boolean isSetColumns() {
21694       return this.columns != null;
21695     }
21696 
21697     public void setColumnsIsSet(boolean value) {
21698       if (!value) {
21699         this.columns = null;
21700       }
21701     }
21702 
21703     public long getTimestamp() {
21704       return this.timestamp;
21705     }
21706 
21707     public getRowWithColumnsTs_args setTimestamp(long timestamp) {
21708       this.timestamp = timestamp;
21709       setTimestampIsSet(true);
21710       return this;
21711     }
21712 
21713     public void unsetTimestamp() {
21714       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
21715     }
21716 
21717     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
21718     public boolean isSetTimestamp() {
21719       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
21720     }
21721 
21722     public void setTimestampIsSet(boolean value) {
21723       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
21724     }
21725 
21726     public int getAttributesSize() {
21727       return (this.attributes == null) ? 0 : this.attributes.size();
21728     }
21729 
21730     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
21731       if (this.attributes == null) {
21732         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
21733       }
21734       this.attributes.put(key, val);
21735     }
21736 
21737     /**
21738      * Get attributes
21739      */
21740     public Map<ByteBuffer,ByteBuffer> getAttributes() {
21741       return this.attributes;
21742     }
21743 
21744     /**
21745      * Get attributes
21746      */
21747     public getRowWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
21748       this.attributes = attributes;
21749       return this;
21750     }
21751 
21752     public void unsetAttributes() {
21753       this.attributes = null;
21754     }
21755 
21756     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
21757     public boolean isSetAttributes() {
21758       return this.attributes != null;
21759     }
21760 
21761     public void setAttributesIsSet(boolean value) {
21762       if (!value) {
21763         this.attributes = null;
21764       }
21765     }
21766 
21767     public void setFieldValue(_Fields field, Object value) {
21768       switch (field) {
21769       case TABLE_NAME:
21770         if (value == null) {
21771           unsetTableName();
21772         } else {
21773           setTableName((ByteBuffer)value);
21774         }
21775         break;
21776 
21777       case ROW:
21778         if (value == null) {
21779           unsetRow();
21780         } else {
21781           setRow((ByteBuffer)value);
21782         }
21783         break;
21784 
21785       case COLUMNS:
21786         if (value == null) {
21787           unsetColumns();
21788         } else {
21789           setColumns((List<ByteBuffer>)value);
21790         }
21791         break;
21792 
21793       case TIMESTAMP:
21794         if (value == null) {
21795           unsetTimestamp();
21796         } else {
21797           setTimestamp((Long)value);
21798         }
21799         break;
21800 
21801       case ATTRIBUTES:
21802         if (value == null) {
21803           unsetAttributes();
21804         } else {
21805           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
21806         }
21807         break;
21808 
21809       }
21810     }
21811 
21812     public Object getFieldValue(_Fields field) {
21813       switch (field) {
21814       case TABLE_NAME:
21815         return getTableName();
21816 
21817       case ROW:
21818         return getRow();
21819 
21820       case COLUMNS:
21821         return getColumns();
21822 
21823       case TIMESTAMP:
21824         return Long.valueOf(getTimestamp());
21825 
21826       case ATTRIBUTES:
21827         return getAttributes();
21828 
21829       }
21830       throw new IllegalStateException();
21831     }
21832 
21833     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21834     public boolean isSet(_Fields field) {
21835       if (field == null) {
21836         throw new IllegalArgumentException();
21837       }
21838 
21839       switch (field) {
21840       case TABLE_NAME:
21841         return isSetTableName();
21842       case ROW:
21843         return isSetRow();
21844       case COLUMNS:
21845         return isSetColumns();
21846       case TIMESTAMP:
21847         return isSetTimestamp();
21848       case ATTRIBUTES:
21849         return isSetAttributes();
21850       }
21851       throw new IllegalStateException();
21852     }
21853 
21854     @Override
21855     public boolean equals(Object that) {
21856       if (that == null)
21857         return false;
21858       if (that instanceof getRowWithColumnsTs_args)
21859         return this.equals((getRowWithColumnsTs_args)that);
21860       return false;
21861     }
21862 
21863     public boolean equals(getRowWithColumnsTs_args that) {
21864       if (that == null)
21865         return false;
21866 
21867       boolean this_present_tableName = true && this.isSetTableName();
21868       boolean that_present_tableName = true && that.isSetTableName();
21869       if (this_present_tableName || that_present_tableName) {
21870         if (!(this_present_tableName && that_present_tableName))
21871           return false;
21872         if (!this.tableName.equals(that.tableName))
21873           return false;
21874       }
21875 
21876       boolean this_present_row = true && this.isSetRow();
21877       boolean that_present_row = true && that.isSetRow();
21878       if (this_present_row || that_present_row) {
21879         if (!(this_present_row && that_present_row))
21880           return false;
21881         if (!this.row.equals(that.row))
21882           return false;
21883       }
21884 
21885       boolean this_present_columns = true && this.isSetColumns();
21886       boolean that_present_columns = true && that.isSetColumns();
21887       if (this_present_columns || that_present_columns) {
21888         if (!(this_present_columns && that_present_columns))
21889           return false;
21890         if (!this.columns.equals(that.columns))
21891           return false;
21892       }
21893 
21894       boolean this_present_timestamp = true;
21895       boolean that_present_timestamp = true;
21896       if (this_present_timestamp || that_present_timestamp) {
21897         if (!(this_present_timestamp && that_present_timestamp))
21898           return false;
21899         if (this.timestamp != that.timestamp)
21900           return false;
21901       }
21902 
21903       boolean this_present_attributes = true && this.isSetAttributes();
21904       boolean that_present_attributes = true && that.isSetAttributes();
21905       if (this_present_attributes || that_present_attributes) {
21906         if (!(this_present_attributes && that_present_attributes))
21907           return false;
21908         if (!this.attributes.equals(that.attributes))
21909           return false;
21910       }
21911 
21912       return true;
21913     }
21914 
21915     @Override
21916     public int hashCode() {
21917       HashCodeBuilder builder = new HashCodeBuilder();
21918 
21919       boolean present_tableName = true && (isSetTableName());
21920       builder.append(present_tableName);
21921       if (present_tableName)
21922         builder.append(tableName);
21923 
21924       boolean present_row = true && (isSetRow());
21925       builder.append(present_row);
21926       if (present_row)
21927         builder.append(row);
21928 
21929       boolean present_columns = true && (isSetColumns());
21930       builder.append(present_columns);
21931       if (present_columns)
21932         builder.append(columns);
21933 
21934       boolean present_timestamp = true;
21935       builder.append(present_timestamp);
21936       if (present_timestamp)
21937         builder.append(timestamp);
21938 
21939       boolean present_attributes = true && (isSetAttributes());
21940       builder.append(present_attributes);
21941       if (present_attributes)
21942         builder.append(attributes);
21943 
21944       return builder.toHashCode();
21945     }
21946 
21947     public int compareTo(getRowWithColumnsTs_args other) {
21948       if (!getClass().equals(other.getClass())) {
21949         return getClass().getName().compareTo(other.getClass().getName());
21950       }
21951 
21952       int lastComparison = 0;
21953       getRowWithColumnsTs_args typedOther = (getRowWithColumnsTs_args)other;
21954 
21955       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
21956       if (lastComparison != 0) {
21957         return lastComparison;
21958       }
21959       if (isSetTableName()) {
21960         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
21961         if (lastComparison != 0) {
21962           return lastComparison;
21963         }
21964       }
21965       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
21966       if (lastComparison != 0) {
21967         return lastComparison;
21968       }
21969       if (isSetRow()) {
21970         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
21971         if (lastComparison != 0) {
21972           return lastComparison;
21973         }
21974       }
21975       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
21976       if (lastComparison != 0) {
21977         return lastComparison;
21978       }
21979       if (isSetColumns()) {
21980         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
21981         if (lastComparison != 0) {
21982           return lastComparison;
21983         }
21984       }
21985       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
21986       if (lastComparison != 0) {
21987         return lastComparison;
21988       }
21989       if (isSetTimestamp()) {
21990         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
21991         if (lastComparison != 0) {
21992           return lastComparison;
21993         }
21994       }
21995       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
21996       if (lastComparison != 0) {
21997         return lastComparison;
21998       }
21999       if (isSetAttributes()) {
22000         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
22001         if (lastComparison != 0) {
22002           return lastComparison;
22003         }
22004       }
22005       return 0;
22006     }
22007 
22008     public _Fields fieldForId(int fieldId) {
22009       return _Fields.findByThriftId(fieldId);
22010     }
22011 
22012     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22013       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22014     }
22015 
22016     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22017       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22018     }
22019 
22020     @Override
22021     public String toString() {
22022       StringBuilder sb = new StringBuilder("getRowWithColumnsTs_args(");
22023       boolean first = true;
22024 
22025       sb.append("tableName:");
22026       if (this.tableName == null) {
22027         sb.append("null");
22028       } else {
22029         sb.append(this.tableName);
22030       }
22031       first = false;
22032       if (!first) sb.append(", ");
22033       sb.append("row:");
22034       if (this.row == null) {
22035         sb.append("null");
22036       } else {
22037         sb.append(this.row);
22038       }
22039       first = false;
22040       if (!first) sb.append(", ");
22041       sb.append("columns:");
22042       if (this.columns == null) {
22043         sb.append("null");
22044       } else {
22045         sb.append(this.columns);
22046       }
22047       first = false;
22048       if (!first) sb.append(", ");
22049       sb.append("timestamp:");
22050       sb.append(this.timestamp);
22051       first = false;
22052       if (!first) sb.append(", ");
22053       sb.append("attributes:");
22054       if (this.attributes == null) {
22055         sb.append("null");
22056       } else {
22057         sb.append(this.attributes);
22058       }
22059       first = false;
22060       sb.append(")");
22061       return sb.toString();
22062     }
22063 
22064     public void validate() throws org.apache.thrift.TException {
22065       // check for required fields
22066       // check for sub-struct validity
22067     }
22068 
22069     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22070       try {
22071         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22072       } catch (org.apache.thrift.TException te) {
22073         throw new java.io.IOException(te);
22074       }
22075     }
22076 
22077     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22078       try {
22079         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22080         __isset_bitfield = 0;
22081         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22082       } catch (org.apache.thrift.TException te) {
22083         throw new java.io.IOException(te);
22084       }
22085     }
22086 
22087     private static class getRowWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory {
22088       public getRowWithColumnsTs_argsStandardScheme getScheme() {
22089         return new getRowWithColumnsTs_argsStandardScheme();
22090       }
22091     }
22092 
22093     private static class getRowWithColumnsTs_argsStandardScheme extends StandardScheme<getRowWithColumnsTs_args> {
22094 
22095       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22096         org.apache.thrift.protocol.TField schemeField;
22097         iprot.readStructBegin();
22098         while (true)
22099         {
22100           schemeField = iprot.readFieldBegin();
22101           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
22102             break;
22103           }
22104           switch (schemeField.id) {
22105             case 1: // TABLE_NAME
22106               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22107                 struct.tableName = iprot.readBinary();
22108                 struct.setTableNameIsSet(true);
22109               } else { 
22110                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22111               }
22112               break;
22113             case 2: // ROW
22114               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22115                 struct.row = iprot.readBinary();
22116                 struct.setRowIsSet(true);
22117               } else { 
22118                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22119               }
22120               break;
22121             case 3: // COLUMNS
22122               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22123                 {
22124                   org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
22125                   struct.columns = new ArrayList<ByteBuffer>(_list200.size);
22126                   for (int _i201 = 0; _i201 < _list200.size; ++_i201)
22127                   {
22128                     ByteBuffer _elem202; // required
22129                     _elem202 = iprot.readBinary();
22130                     struct.columns.add(_elem202);
22131                   }
22132                   iprot.readListEnd();
22133                 }
22134                 struct.setColumnsIsSet(true);
22135               } else { 
22136                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22137               }
22138               break;
22139             case 4: // TIMESTAMP
22140               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
22141                 struct.timestamp = iprot.readI64();
22142                 struct.setTimestampIsSet(true);
22143               } else { 
22144                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22145               }
22146               break;
22147             case 5: // ATTRIBUTES
22148               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
22149                 {
22150                   org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin();
22151                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map203.size);
22152                   for (int _i204 = 0; _i204 < _map203.size; ++_i204)
22153                   {
22154                     ByteBuffer _key205; // required
22155                     ByteBuffer _val206; // required
22156                     _key205 = iprot.readBinary();
22157                     _val206 = iprot.readBinary();
22158                     struct.attributes.put(_key205, _val206);
22159                   }
22160                   iprot.readMapEnd();
22161                 }
22162                 struct.setAttributesIsSet(true);
22163               } else { 
22164                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22165               }
22166               break;
22167             default:
22168               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22169           }
22170           iprot.readFieldEnd();
22171         }
22172         iprot.readStructEnd();
22173 
22174         // check for required fields of primitive type, which can't be checked in the validate method
22175         struct.validate();
22176       }
22177 
22178       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22179         struct.validate();
22180 
22181         oprot.writeStructBegin(STRUCT_DESC);
22182         if (struct.tableName != null) {
22183           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
22184           oprot.writeBinary(struct.tableName);
22185           oprot.writeFieldEnd();
22186         }
22187         if (struct.row != null) {
22188           oprot.writeFieldBegin(ROW_FIELD_DESC);
22189           oprot.writeBinary(struct.row);
22190           oprot.writeFieldEnd();
22191         }
22192         if (struct.columns != null) {
22193           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
22194           {
22195             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
22196             for (ByteBuffer _iter207 : struct.columns)
22197             {
22198               oprot.writeBinary(_iter207);
22199             }
22200             oprot.writeListEnd();
22201           }
22202           oprot.writeFieldEnd();
22203         }
22204         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
22205         oprot.writeI64(struct.timestamp);
22206         oprot.writeFieldEnd();
22207         if (struct.attributes != null) {
22208           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
22209           {
22210             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
22211             for (Map.Entry<ByteBuffer, ByteBuffer> _iter208 : struct.attributes.entrySet())
22212             {
22213               oprot.writeBinary(_iter208.getKey());
22214               oprot.writeBinary(_iter208.getValue());
22215             }
22216             oprot.writeMapEnd();
22217           }
22218           oprot.writeFieldEnd();
22219         }
22220         oprot.writeFieldStop();
22221         oprot.writeStructEnd();
22222       }
22223 
22224     }
22225 
22226     private static class getRowWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory {
22227       public getRowWithColumnsTs_argsTupleScheme getScheme() {
22228         return new getRowWithColumnsTs_argsTupleScheme();
22229       }
22230     }
22231 
22232     private static class getRowWithColumnsTs_argsTupleScheme extends TupleScheme<getRowWithColumnsTs_args> {
22233 
22234       @Override
22235       public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22236         TTupleProtocol oprot = (TTupleProtocol) prot;
22237         BitSet optionals = new BitSet();
22238         if (struct.isSetTableName()) {
22239           optionals.set(0);
22240         }
22241         if (struct.isSetRow()) {
22242           optionals.set(1);
22243         }
22244         if (struct.isSetColumns()) {
22245           optionals.set(2);
22246         }
22247         if (struct.isSetTimestamp()) {
22248           optionals.set(3);
22249         }
22250         if (struct.isSetAttributes()) {
22251           optionals.set(4);
22252         }
22253         oprot.writeBitSet(optionals, 5);
22254         if (struct.isSetTableName()) {
22255           oprot.writeBinary(struct.tableName);
22256         }
22257         if (struct.isSetRow()) {
22258           oprot.writeBinary(struct.row);
22259         }
22260         if (struct.isSetColumns()) {
22261           {
22262             oprot.writeI32(struct.columns.size());
22263             for (ByteBuffer _iter209 : struct.columns)
22264             {
22265               oprot.writeBinary(_iter209);
22266             }
22267           }
22268         }
22269         if (struct.isSetTimestamp()) {
22270           oprot.writeI64(struct.timestamp);
22271         }
22272         if (struct.isSetAttributes()) {
22273           {
22274             oprot.writeI32(struct.attributes.size());
22275             for (Map.Entry<ByteBuffer, ByteBuffer> _iter210 : struct.attributes.entrySet())
22276             {
22277               oprot.writeBinary(_iter210.getKey());
22278               oprot.writeBinary(_iter210.getValue());
22279             }
22280           }
22281         }
22282       }
22283 
22284       @Override
22285       public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22286         TTupleProtocol iprot = (TTupleProtocol) prot;
22287         BitSet incoming = iprot.readBitSet(5);
22288         if (incoming.get(0)) {
22289           struct.tableName = iprot.readBinary();
22290           struct.setTableNameIsSet(true);
22291         }
22292         if (incoming.get(1)) {
22293           struct.row = iprot.readBinary();
22294           struct.setRowIsSet(true);
22295         }
22296         if (incoming.get(2)) {
22297           {
22298             org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
22299             struct.columns = new ArrayList<ByteBuffer>(_list211.size);
22300             for (int _i212 = 0; _i212 < _list211.size; ++_i212)
22301             {
22302               ByteBuffer _elem213; // required
22303               _elem213 = iprot.readBinary();
22304               struct.columns.add(_elem213);
22305             }
22306           }
22307           struct.setColumnsIsSet(true);
22308         }
22309         if (incoming.get(3)) {
22310           struct.timestamp = iprot.readI64();
22311           struct.setTimestampIsSet(true);
22312         }
22313         if (incoming.get(4)) {
22314           {
22315             org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
22316             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map214.size);
22317             for (int _i215 = 0; _i215 < _map214.size; ++_i215)
22318             {
22319               ByteBuffer _key216; // required
22320               ByteBuffer _val217; // required
22321               _key216 = iprot.readBinary();
22322               _val217 = iprot.readBinary();
22323               struct.attributes.put(_key216, _val217);
22324             }
22325           }
22326           struct.setAttributesIsSet(true);
22327         }
22328       }
22329     }
22330 
22331   }
22332 
22333   public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase<getRowWithColumnsTs_result, getRowWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable   {
22334     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_result");
22335 
22336     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
22337     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22338 
22339     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22340     static {
22341       schemes.put(StandardScheme.class, new getRowWithColumnsTs_resultStandardSchemeFactory());
22342       schemes.put(TupleScheme.class, new getRowWithColumnsTs_resultTupleSchemeFactory());
22343     }
22344 
22345     public List<TRowResult> success; // required
22346     public IOError io; // required
22347 
22348     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22349     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22350       SUCCESS((short)0, "success"),
22351       IO((short)1, "io");
22352 
22353       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22354 
22355       static {
22356         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22357           byName.put(field.getFieldName(), field);
22358         }
22359       }
22360 
22361       /**
22362        * Find the _Fields constant that matches fieldId, or null if its not found.
22363        */
22364       public static _Fields findByThriftId(int fieldId) {
22365         switch(fieldId) {
22366           case 0: // SUCCESS
22367             return SUCCESS;
22368           case 1: // IO
22369             return IO;
22370           default:
22371             return null;
22372         }
22373       }
22374 
22375       /**
22376        * Find the _Fields constant that matches fieldId, throwing an exception
22377        * if it is not found.
22378        */
22379       public static _Fields findByThriftIdOrThrow(int fieldId) {
22380         _Fields fields = findByThriftId(fieldId);
22381         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22382         return fields;
22383       }
22384 
22385       /**
22386        * Find the _Fields constant that matches name, or null if its not found.
22387        */
22388       public static _Fields findByName(String name) {
22389         return byName.get(name);
22390       }
22391 
22392       private final short _thriftId;
22393       private final String _fieldName;
22394 
22395       _Fields(short thriftId, String fieldName) {
22396         _thriftId = thriftId;
22397         _fieldName = fieldName;
22398       }
22399 
22400       public short getThriftFieldId() {
22401         return _thriftId;
22402       }
22403 
22404       public String getFieldName() {
22405         return _fieldName;
22406       }
22407     }
22408 
22409     // isset id assignments
22410     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22411     static {
22412       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22413       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22414           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22415               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
22416       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22417           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22418       metaDataMap = Collections.unmodifiableMap(tmpMap);
22419       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_result.class, metaDataMap);
22420     }
22421 
22422     public getRowWithColumnsTs_result() {
22423     }
22424 
22425     public getRowWithColumnsTs_result(
22426       List<TRowResult> success,
22427       IOError io)
22428     {
22429       this();
22430       this.success = success;
22431       this.io = io;
22432     }
22433 
22434     /**
22435      * Performs a deep copy on <i>other</i>.
22436      */
22437     public getRowWithColumnsTs_result(getRowWithColumnsTs_result other) {
22438       if (other.isSetSuccess()) {
22439         List<TRowResult> __this__success = new ArrayList<TRowResult>();
22440         for (TRowResult other_element : other.success) {
22441           __this__success.add(new TRowResult(other_element));
22442         }
22443         this.success = __this__success;
22444       }
22445       if (other.isSetIo()) {
22446         this.io = new IOError(other.io);
22447       }
22448     }
22449 
22450     public getRowWithColumnsTs_result deepCopy() {
22451       return new getRowWithColumnsTs_result(this);
22452     }
22453 
22454     @Override
22455     public void clear() {
22456       this.success = null;
22457       this.io = null;
22458     }
22459 
22460     public int getSuccessSize() {
22461       return (this.success == null) ? 0 : this.success.size();
22462     }
22463 
22464     public java.util.Iterator<TRowResult> getSuccessIterator() {
22465       return (this.success == null) ? null : this.success.iterator();
22466     }
22467 
22468     public void addToSuccess(TRowResult elem) {
22469       if (this.success == null) {
22470         this.success = new ArrayList<TRowResult>();
22471       }
22472       this.success.add(elem);
22473     }
22474 
22475     public List<TRowResult> getSuccess() {
22476       return this.success;
22477     }
22478 
22479     public getRowWithColumnsTs_result setSuccess(List<TRowResult> success) {
22480       this.success = success;
22481       return this;
22482     }
22483 
22484     public void unsetSuccess() {
22485       this.success = null;
22486     }
22487 
22488     /** Returns true if field success is set (has been assigned a value) and false otherwise */
22489     public boolean isSetSuccess() {
22490       return this.success != null;
22491     }
22492 
22493     public void setSuccessIsSet(boolean value) {
22494       if (!value) {
22495         this.success = null;
22496       }
22497     }
22498 
22499     public IOError getIo() {
22500       return this.io;
22501     }
22502 
22503     public getRowWithColumnsTs_result setIo(IOError io) {
22504       this.io = io;
22505       return this;
22506     }
22507 
22508     public void unsetIo() {
22509       this.io = null;
22510     }
22511 
22512     /** Returns true if field io is set (has been assigned a value) and false otherwise */
22513     public boolean isSetIo() {
22514       return this.io != null;
22515     }
22516 
22517     public void setIoIsSet(boolean value) {
22518       if (!value) {
22519         this.io = null;
22520       }
22521     }
22522 
22523     public void setFieldValue(_Fields field, Object value) {
22524       switch (field) {
22525       case SUCCESS:
22526         if (value == null) {
22527           unsetSuccess();
22528         } else {
22529           setSuccess((List<TRowResult>)value);
22530         }
22531         break;
22532 
22533       case IO:
22534         if (value == null) {
22535           unsetIo();
22536         } else {
22537           setIo((IOError)value);
22538         }
22539         break;
22540 
22541       }
22542     }
22543 
22544     public Object getFieldValue(_Fields field) {
22545       switch (field) {
22546       case SUCCESS:
22547         return getSuccess();
22548 
22549       case IO:
22550         return getIo();
22551 
22552       }
22553       throw new IllegalStateException();
22554     }
22555 
22556     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22557     public boolean isSet(_Fields field) {
22558       if (field == null) {
22559         throw new IllegalArgumentException();
22560       }
22561 
22562       switch (field) {
22563       case SUCCESS:
22564         return isSetSuccess();
22565       case IO:
22566         return isSetIo();
22567       }
22568       throw new IllegalStateException();
22569     }
22570 
22571     @Override
22572     public boolean equals(Object that) {
22573       if (that == null)
22574         return false;
22575       if (that instanceof getRowWithColumnsTs_result)
22576         return this.equals((getRowWithColumnsTs_result)that);
22577       return false;
22578     }
22579 
22580     public boolean equals(getRowWithColumnsTs_result that) {
22581       if (that == null)
22582         return false;
22583 
22584       boolean this_present_success = true && this.isSetSuccess();
22585       boolean that_present_success = true && that.isSetSuccess();
22586       if (this_present_success || that_present_success) {
22587         if (!(this_present_success && that_present_success))
22588           return false;
22589         if (!this.success.equals(that.success))
22590           return false;
22591       }
22592 
22593       boolean this_present_io = true && this.isSetIo();
22594       boolean that_present_io = true && that.isSetIo();
22595       if (this_present_io || that_present_io) {
22596         if (!(this_present_io && that_present_io))
22597           return false;
22598         if (!this.io.equals(that.io))
22599           return false;
22600       }
22601 
22602       return true;
22603     }
22604 
22605     @Override
22606     public int hashCode() {
22607       HashCodeBuilder builder = new HashCodeBuilder();
22608 
22609       boolean present_success = true && (isSetSuccess());
22610       builder.append(present_success);
22611       if (present_success)
22612         builder.append(success);
22613 
22614       boolean present_io = true && (isSetIo());
22615       builder.append(present_io);
22616       if (present_io)
22617         builder.append(io);
22618 
22619       return builder.toHashCode();
22620     }
22621 
22622     public int compareTo(getRowWithColumnsTs_result other) {
22623       if (!getClass().equals(other.getClass())) {
22624         return getClass().getName().compareTo(other.getClass().getName());
22625       }
22626 
22627       int lastComparison = 0;
22628       getRowWithColumnsTs_result typedOther = (getRowWithColumnsTs_result)other;
22629 
22630       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22631       if (lastComparison != 0) {
22632         return lastComparison;
22633       }
22634       if (isSetSuccess()) {
22635         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22636         if (lastComparison != 0) {
22637           return lastComparison;
22638         }
22639       }
22640       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
22641       if (lastComparison != 0) {
22642         return lastComparison;
22643       }
22644       if (isSetIo()) {
22645         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
22646         if (lastComparison != 0) {
22647           return lastComparison;
22648         }
22649       }
22650       return 0;
22651     }
22652 
22653     public _Fields fieldForId(int fieldId) {
22654       return _Fields.findByThriftId(fieldId);
22655     }
22656 
22657     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22658       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22659     }
22660 
22661     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22662       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22663       }
22664 
22665     @Override
22666     public String toString() {
22667       StringBuilder sb = new StringBuilder("getRowWithColumnsTs_result(");
22668       boolean first = true;
22669 
22670       sb.append("success:");
22671       if (this.success == null) {
22672         sb.append("null");
22673       } else {
22674         sb.append(this.success);
22675       }
22676       first = false;
22677       if (!first) sb.append(", ");
22678       sb.append("io:");
22679       if (this.io == null) {
22680         sb.append("null");
22681       } else {
22682         sb.append(this.io);
22683       }
22684       first = false;
22685       sb.append(")");
22686       return sb.toString();
22687     }
22688 
22689     public void validate() throws org.apache.thrift.TException {
22690       // check for required fields
22691       // check for sub-struct validity
22692     }
22693 
22694     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22695       try {
22696         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22697       } catch (org.apache.thrift.TException te) {
22698         throw new java.io.IOException(te);
22699       }
22700     }
22701 
22702     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22703       try {
22704         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22705       } catch (org.apache.thrift.TException te) {
22706         throw new java.io.IOException(te);
22707       }
22708     }
22709 
22710     private static class getRowWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory {
22711       public getRowWithColumnsTs_resultStandardScheme getScheme() {
22712         return new getRowWithColumnsTs_resultStandardScheme();
22713       }
22714     }
22715 
22716     private static class getRowWithColumnsTs_resultStandardScheme extends StandardScheme<getRowWithColumnsTs_result> {
22717 
22718       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22719         org.apache.thrift.protocol.TField schemeField;
22720         iprot.readStructBegin();
22721         while (true)
22722         {
22723           schemeField = iprot.readFieldBegin();
22724           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
22725             break;
22726           }
22727           switch (schemeField.id) {
22728             case 0: // SUCCESS
22729               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22730                 {
22731                   org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
22732                   struct.success = new ArrayList<TRowResult>(_list218.size);
22733                   for (int _i219 = 0; _i219 < _list218.size; ++_i219)
22734                   {
22735                     TRowResult _elem220; // required
22736                     _elem220 = new TRowResult();
22737                     _elem220.read(iprot);
22738                     struct.success.add(_elem220);
22739                   }
22740                   iprot.readListEnd();
22741                 }
22742                 struct.setSuccessIsSet(true);
22743               } else { 
22744                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22745               }
22746               break;
22747             case 1: // IO
22748               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22749                 struct.io = new IOError();
22750                 struct.io.read(iprot);
22751                 struct.setIoIsSet(true);
22752               } else { 
22753                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22754               }
22755               break;
22756             default:
22757               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22758           }
22759           iprot.readFieldEnd();
22760         }
22761         iprot.readStructEnd();
22762 
22763         // check for required fields of primitive type, which can't be checked in the validate method
22764         struct.validate();
22765       }
22766 
22767       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22768         struct.validate();
22769 
22770         oprot.writeStructBegin(STRUCT_DESC);
22771         if (struct.success != null) {
22772           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22773           {
22774             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
22775             for (TRowResult _iter221 : struct.success)
22776             {
22777               _iter221.write(oprot);
22778             }
22779             oprot.writeListEnd();
22780           }
22781           oprot.writeFieldEnd();
22782         }
22783         if (struct.io != null) {
22784           oprot.writeFieldBegin(IO_FIELD_DESC);
22785           struct.io.write(oprot);
22786           oprot.writeFieldEnd();
22787         }
22788         oprot.writeFieldStop();
22789         oprot.writeStructEnd();
22790       }
22791 
22792     }
22793 
22794     private static class getRowWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory {
22795       public getRowWithColumnsTs_resultTupleScheme getScheme() {
22796         return new getRowWithColumnsTs_resultTupleScheme();
22797       }
22798     }
22799 
22800     private static class getRowWithColumnsTs_resultTupleScheme extends TupleScheme<getRowWithColumnsTs_result> {
22801 
22802       @Override
22803       public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22804         TTupleProtocol oprot = (TTupleProtocol) prot;
22805         BitSet optionals = new BitSet();
22806         if (struct.isSetSuccess()) {
22807           optionals.set(0);
22808         }
22809         if (struct.isSetIo()) {
22810           optionals.set(1);
22811         }
22812         oprot.writeBitSet(optionals, 2);
22813         if (struct.isSetSuccess()) {
22814           {
22815             oprot.writeI32(struct.success.size());
22816             for (TRowResult _iter222 : struct.success)
22817             {
22818               _iter222.write(oprot);
22819             }
22820           }
22821         }
22822         if (struct.isSetIo()) {
22823           struct.io.write(oprot);
22824         }
22825       }
22826 
22827       @Override
22828       public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22829         TTupleProtocol iprot = (TTupleProtocol) prot;
22830         BitSet incoming = iprot.readBitSet(2);
22831         if (incoming.get(0)) {
22832           {
22833             org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
22834             struct.success = new ArrayList<TRowResult>(_list223.size);
22835             for (int _i224 = 0; _i224 < _list223.size; ++_i224)
22836             {
22837               TRowResult _elem225; // required
22838               _elem225 = new TRowResult();
22839               _elem225.read(iprot);
22840               struct.success.add(_elem225);
22841             }
22842           }
22843           struct.setSuccessIsSet(true);
22844         }
22845         if (incoming.get(1)) {
22846           struct.io = new IOError();
22847           struct.io.read(iprot);
22848           struct.setIoIsSet(true);
22849         }
22850       }
22851     }
22852 
22853   }
22854 
22855   public static class getRows_args implements org.apache.thrift.TBase<getRows_args, getRows_args._Fields>, java.io.Serializable, Cloneable   {
22856     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_args");
22857 
22858     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
22859     private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
22860     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
22861 
22862     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22863     static {
22864       schemes.put(StandardScheme.class, new getRows_argsStandardSchemeFactory());
22865       schemes.put(TupleScheme.class, new getRows_argsTupleSchemeFactory());
22866     }
22867 
22868     /**
22869      * name of table
22870      */
22871     public ByteBuffer tableName; // required
22872     /**
22873      * row keys
22874      */
22875     public List<ByteBuffer> rows; // required
22876     /**
22877      * Get attributes
22878      */
22879     public Map<ByteBuffer,ByteBuffer> attributes; // required
22880 
22881     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22882     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22883       /**
22884        * name of table
22885        */
22886       TABLE_NAME((short)1, "tableName"),
22887       /**
22888        * row keys
22889        */
22890       ROWS((short)2, "rows"),
22891       /**
22892        * Get attributes
22893        */
22894       ATTRIBUTES((short)3, "attributes");
22895 
22896       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22897 
22898       static {
22899         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22900           byName.put(field.getFieldName(), field);
22901         }
22902       }
22903 
22904       /**
22905        * Find the _Fields constant that matches fieldId, or null if its not found.
22906        */
22907       public static _Fields findByThriftId(int fieldId) {
22908         switch(fieldId) {
22909           case 1: // TABLE_NAME
22910             return TABLE_NAME;
22911           case 2: // ROWS
22912             return ROWS;
22913           case 3: // ATTRIBUTES
22914             return ATTRIBUTES;
22915           default:
22916             return null;
22917         }
22918       }
22919 
22920       /**
22921        * Find the _Fields constant that matches fieldId, throwing an exception
22922        * if it is not found.
22923        */
22924       public static _Fields findByThriftIdOrThrow(int fieldId) {
22925         _Fields fields = findByThriftId(fieldId);
22926         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22927         return fields;
22928       }
22929 
22930       /**
22931        * Find the _Fields constant that matches name, or null if its not found.
22932        */
22933       public static _Fields findByName(String name) {
22934         return byName.get(name);
22935       }
22936 
22937       private final short _thriftId;
22938       private final String _fieldName;
22939 
22940       _Fields(short thriftId, String fieldName) {
22941         _thriftId = thriftId;
22942         _fieldName = fieldName;
22943       }
22944 
22945       public short getThriftFieldId() {
22946         return _thriftId;
22947       }
22948 
22949       public String getFieldName() {
22950         return _fieldName;
22951       }
22952     }
22953 
22954     // isset id assignments
22955     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22956     static {
22957       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22958       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22959           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
22960       tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22961           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22962               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
22963       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22964           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
22965               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
22966               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
22967       metaDataMap = Collections.unmodifiableMap(tmpMap);
22968       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_args.class, metaDataMap);
22969     }
22970 
22971     public getRows_args() {
22972     }
22973 
22974     public getRows_args(
22975       ByteBuffer tableName,
22976       List<ByteBuffer> rows,
22977       Map<ByteBuffer,ByteBuffer> attributes)
22978     {
22979       this();
22980       this.tableName = tableName;
22981       this.rows = rows;
22982       this.attributes = attributes;
22983     }
22984 
22985     /**
22986      * Performs a deep copy on <i>other</i>.
22987      */
22988     public getRows_args(getRows_args other) {
22989       if (other.isSetTableName()) {
22990         this.tableName = other.tableName;
22991       }
22992       if (other.isSetRows()) {
22993         List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
22994         for (ByteBuffer other_element : other.rows) {
22995           __this__rows.add(other_element);
22996         }
22997         this.rows = __this__rows;
22998       }
22999       if (other.isSetAttributes()) {
23000         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
23001         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
23002 
23003           ByteBuffer other_element_key = other_element.getKey();
23004           ByteBuffer other_element_value = other_element.getValue();
23005 
23006           ByteBuffer __this__attributes_copy_key = other_element_key;
23007 
23008           ByteBuffer __this__attributes_copy_value = other_element_value;
23009 
23010           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
23011         }
23012         this.attributes = __this__attributes;
23013       }
23014     }
23015 
23016     public getRows_args deepCopy() {
23017       return new getRows_args(this);
23018     }
23019 
23020     @Override
23021     public void clear() {
23022       this.tableName = null;
23023       this.rows = null;
23024       this.attributes = null;
23025     }
23026 
23027     /**
23028      * name of table
23029      */
23030     public byte[] getTableName() {
23031       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
23032       return tableName == null ? null : tableName.array();
23033     }
23034 
23035     public ByteBuffer bufferForTableName() {
23036       return tableName;
23037     }
23038 
23039     /**
23040      * name of table
23041      */
23042     public getRows_args setTableName(byte[] tableName) {
23043       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
23044       return this;
23045     }
23046 
23047     public getRows_args setTableName(ByteBuffer tableName) {
23048       this.tableName = tableName;
23049       return this;
23050     }
23051 
23052     public void unsetTableName() {
23053       this.tableName = null;
23054     }
23055 
23056     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
23057     public boolean isSetTableName() {
23058       return this.tableName != null;
23059     }
23060 
23061     public void setTableNameIsSet(boolean value) {
23062       if (!value) {
23063         this.tableName = null;
23064       }
23065     }
23066 
23067     public int getRowsSize() {
23068       return (this.rows == null) ? 0 : this.rows.size();
23069     }
23070 
23071     public java.util.Iterator<ByteBuffer> getRowsIterator() {
23072       return (this.rows == null) ? null : this.rows.iterator();
23073     }
23074 
23075     public void addToRows(ByteBuffer elem) {
23076       if (this.rows == null) {
23077         this.rows = new ArrayList<ByteBuffer>();
23078       }
23079       this.rows.add(elem);
23080     }
23081 
23082     /**
23083      * row keys
23084      */
23085     public List<ByteBuffer> getRows() {
23086       return this.rows;
23087     }
23088 
23089     /**
23090      * row keys
23091      */
23092     public getRows_args setRows(List<ByteBuffer> rows) {
23093       this.rows = rows;
23094       return this;
23095     }
23096 
23097     public void unsetRows() {
23098       this.rows = null;
23099     }
23100 
23101     /** Returns true if field rows is set (has been assigned a value) and false otherwise */
23102     public boolean isSetRows() {
23103       return this.rows != null;
23104     }
23105 
23106     public void setRowsIsSet(boolean value) {
23107       if (!value) {
23108         this.rows = null;
23109       }
23110     }
23111 
23112     public int getAttributesSize() {
23113       return (this.attributes == null) ? 0 : this.attributes.size();
23114     }
23115 
23116     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
23117       if (this.attributes == null) {
23118         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
23119       }
23120       this.attributes.put(key, val);
23121     }
23122 
23123     /**
23124      * Get attributes
23125      */
23126     public Map<ByteBuffer,ByteBuffer> getAttributes() {
23127       return this.attributes;
23128     }
23129 
23130     /**
23131      * Get attributes
23132      */
23133     public getRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
23134       this.attributes = attributes;
23135       return this;
23136     }
23137 
23138     public void unsetAttributes() {
23139       this.attributes = null;
23140     }
23141 
23142     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
23143     public boolean isSetAttributes() {
23144       return this.attributes != null;
23145     }
23146 
23147     public void setAttributesIsSet(boolean value) {
23148       if (!value) {
23149         this.attributes = null;
23150       }
23151     }
23152 
23153     public void setFieldValue(_Fields field, Object value) {
23154       switch (field) {
23155       case TABLE_NAME:
23156         if (value == null) {
23157           unsetTableName();
23158         } else {
23159           setTableName((ByteBuffer)value);
23160         }
23161         break;
23162 
23163       case ROWS:
23164         if (value == null) {
23165           unsetRows();
23166         } else {
23167           setRows((List<ByteBuffer>)value);
23168         }
23169         break;
23170 
23171       case ATTRIBUTES:
23172         if (value == null) {
23173           unsetAttributes();
23174         } else {
23175           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
23176         }
23177         break;
23178 
23179       }
23180     }
23181 
23182     public Object getFieldValue(_Fields field) {
23183       switch (field) {
23184       case TABLE_NAME:
23185         return getTableName();
23186 
23187       case ROWS:
23188         return getRows();
23189 
23190       case ATTRIBUTES:
23191         return getAttributes();
23192 
23193       }
23194       throw new IllegalStateException();
23195     }
23196 
23197     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23198     public boolean isSet(_Fields field) {
23199       if (field == null) {
23200         throw new IllegalArgumentException();
23201       }
23202 
23203       switch (field) {
23204       case TABLE_NAME:
23205         return isSetTableName();
23206       case ROWS:
23207         return isSetRows();
23208       case ATTRIBUTES:
23209         return isSetAttributes();
23210       }
23211       throw new IllegalStateException();
23212     }
23213 
23214     @Override
23215     public boolean equals(Object that) {
23216       if (that == null)
23217         return false;
23218       if (that instanceof getRows_args)
23219         return this.equals((getRows_args)that);
23220       return false;
23221     }
23222 
23223     public boolean equals(getRows_args that) {
23224       if (that == null)
23225         return false;
23226 
23227       boolean this_present_tableName = true && this.isSetTableName();
23228       boolean that_present_tableName = true && that.isSetTableName();
23229       if (this_present_tableName || that_present_tableName) {
23230         if (!(this_present_tableName && that_present_tableName))
23231           return false;
23232         if (!this.tableName.equals(that.tableName))
23233           return false;
23234       }
23235 
23236       boolean this_present_rows = true && this.isSetRows();
23237       boolean that_present_rows = true && that.isSetRows();
23238       if (this_present_rows || that_present_rows) {
23239         if (!(this_present_rows && that_present_rows))
23240           return false;
23241         if (!this.rows.equals(that.rows))
23242           return false;
23243       }
23244 
23245       boolean this_present_attributes = true && this.isSetAttributes();
23246       boolean that_present_attributes = true && that.isSetAttributes();
23247       if (this_present_attributes || that_present_attributes) {
23248         if (!(this_present_attributes && that_present_attributes))
23249           return false;
23250         if (!this.attributes.equals(that.attributes))
23251           return false;
23252       }
23253 
23254       return true;
23255     }
23256 
23257     @Override
23258     public int hashCode() {
23259       HashCodeBuilder builder = new HashCodeBuilder();
23260 
23261       boolean present_tableName = true && (isSetTableName());
23262       builder.append(present_tableName);
23263       if (present_tableName)
23264         builder.append(tableName);
23265 
23266       boolean present_rows = true && (isSetRows());
23267       builder.append(present_rows);
23268       if (present_rows)
23269         builder.append(rows);
23270 
23271       boolean present_attributes = true && (isSetAttributes());
23272       builder.append(present_attributes);
23273       if (present_attributes)
23274         builder.append(attributes);
23275 
23276       return builder.toHashCode();
23277     }
23278 
23279     public int compareTo(getRows_args other) {
23280       if (!getClass().equals(other.getClass())) {
23281         return getClass().getName().compareTo(other.getClass().getName());
23282       }
23283 
23284       int lastComparison = 0;
23285       getRows_args typedOther = (getRows_args)other;
23286 
23287       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
23288       if (lastComparison != 0) {
23289         return lastComparison;
23290       }
23291       if (isSetTableName()) {
23292         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
23293         if (lastComparison != 0) {
23294           return lastComparison;
23295         }
23296       }
23297       lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
23298       if (lastComparison != 0) {
23299         return lastComparison;
23300       }
23301       if (isSetRows()) {
23302         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
23303         if (lastComparison != 0) {
23304           return lastComparison;
23305         }
23306       }
23307       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
23308       if (lastComparison != 0) {
23309         return lastComparison;
23310       }
23311       if (isSetAttributes()) {
23312         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
23313         if (lastComparison != 0) {
23314           return lastComparison;
23315         }
23316       }
23317       return 0;
23318     }
23319 
23320     public _Fields fieldForId(int fieldId) {
23321       return _Fields.findByThriftId(fieldId);
23322     }
23323 
23324     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23325       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23326     }
23327 
23328     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23329       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23330     }
23331 
23332     @Override
23333     public String toString() {
23334       StringBuilder sb = new StringBuilder("getRows_args(");
23335       boolean first = true;
23336 
23337       sb.append("tableName:");
23338       if (this.tableName == null) {
23339         sb.append("null");
23340       } else {
23341         sb.append(this.tableName);
23342       }
23343       first = false;
23344       if (!first) sb.append(", ");
23345       sb.append("rows:");
23346       if (this.rows == null) {
23347         sb.append("null");
23348       } else {
23349         sb.append(this.rows);
23350       }
23351       first = false;
23352       if (!first) sb.append(", ");
23353       sb.append("attributes:");
23354       if (this.attributes == null) {
23355         sb.append("null");
23356       } else {
23357         sb.append(this.attributes);
23358       }
23359       first = false;
23360       sb.append(")");
23361       return sb.toString();
23362     }
23363 
23364     public void validate() throws org.apache.thrift.TException {
23365       // check for required fields
23366       // check for sub-struct validity
23367     }
23368 
23369     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23370       try {
23371         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23372       } catch (org.apache.thrift.TException te) {
23373         throw new java.io.IOException(te);
23374       }
23375     }
23376 
23377     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23378       try {
23379         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23380       } catch (org.apache.thrift.TException te) {
23381         throw new java.io.IOException(te);
23382       }
23383     }
23384 
23385     private static class getRows_argsStandardSchemeFactory implements SchemeFactory {
23386       public getRows_argsStandardScheme getScheme() {
23387         return new getRows_argsStandardScheme();
23388       }
23389     }
23390 
23391     private static class getRows_argsStandardScheme extends StandardScheme<getRows_args> {
23392 
23393       public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_args struct) throws org.apache.thrift.TException {
23394         org.apache.thrift.protocol.TField schemeField;
23395         iprot.readStructBegin();
23396         while (true)
23397         {
23398           schemeField = iprot.readFieldBegin();
23399           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
23400             break;
23401           }
23402           switch (schemeField.id) {
23403             case 1: // TABLE_NAME
23404               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23405                 struct.tableName = iprot.readBinary();
23406                 struct.setTableNameIsSet(true);
23407               } else { 
23408                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23409               }
23410               break;
23411             case 2: // ROWS
23412               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
23413                 {
23414                   org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
23415                   struct.rows = new ArrayList<ByteBuffer>(_list226.size);
23416                   for (int _i227 = 0; _i227 < _list226.size; ++_i227)
23417                   {
23418                     ByteBuffer _elem228; // required
23419                     _elem228 = iprot.readBinary();
23420                     struct.rows.add(_elem228);
23421                   }
23422                   iprot.readListEnd();
23423                 }
23424                 struct.setRowsIsSet(true);
23425               } else { 
23426                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23427               }
23428               break;
23429             case 3: // ATTRIBUTES
23430               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
23431                 {
23432                   org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin();
23433                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map229.size);
23434                   for (int _i230 = 0; _i230 < _map229.size; ++_i230)
23435                   {
23436                     ByteBuffer _key231; // required
23437                     ByteBuffer _val232; // required
23438                     _key231 = iprot.readBinary();
23439                     _val232 = iprot.readBinary();
23440                     struct.attributes.put(_key231, _val232);
23441                   }
23442                   iprot.readMapEnd();
23443                 }
23444                 struct.setAttributesIsSet(true);
23445               } else { 
23446                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23447               }
23448               break;
23449             default:
23450               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23451           }
23452           iprot.readFieldEnd();
23453         }
23454         iprot.readStructEnd();
23455 
23456         // check for required fields of primitive type, which can't be checked in the validate method
23457         struct.validate();
23458       }
23459 
23460       public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_args struct) throws org.apache.thrift.TException {
23461         struct.validate();
23462 
23463         oprot.writeStructBegin(STRUCT_DESC);
23464         if (struct.tableName != null) {
23465           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
23466           oprot.writeBinary(struct.tableName);
23467           oprot.writeFieldEnd();
23468         }
23469         if (struct.rows != null) {
23470           oprot.writeFieldBegin(ROWS_FIELD_DESC);
23471           {
23472             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
23473             for (ByteBuffer _iter233 : struct.rows)
23474             {
23475               oprot.writeBinary(_iter233);
23476             }
23477             oprot.writeListEnd();
23478           }
23479           oprot.writeFieldEnd();
23480         }
23481         if (struct.attributes != null) {
23482           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
23483           {
23484             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
23485             for (Map.Entry<ByteBuffer, ByteBuffer> _iter234 : struct.attributes.entrySet())
23486             {
23487               oprot.writeBinary(_iter234.getKey());
23488               oprot.writeBinary(_iter234.getValue());
23489             }
23490             oprot.writeMapEnd();
23491           }
23492           oprot.writeFieldEnd();
23493         }
23494         oprot.writeFieldStop();
23495         oprot.writeStructEnd();
23496       }
23497 
23498     }
23499 
23500     private static class getRows_argsTupleSchemeFactory implements SchemeFactory {
23501       public getRows_argsTupleScheme getScheme() {
23502         return new getRows_argsTupleScheme();
23503       }
23504     }
23505 
23506     private static class getRows_argsTupleScheme extends TupleScheme<getRows_args> {
23507 
23508       @Override
23509       public void write(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException {
23510         TTupleProtocol oprot = (TTupleProtocol) prot;
23511         BitSet optionals = new BitSet();
23512         if (struct.isSetTableName()) {
23513           optionals.set(0);
23514         }
23515         if (struct.isSetRows()) {
23516           optionals.set(1);
23517         }
23518         if (struct.isSetAttributes()) {
23519           optionals.set(2);
23520         }
23521         oprot.writeBitSet(optionals, 3);
23522         if (struct.isSetTableName()) {
23523           oprot.writeBinary(struct.tableName);
23524         }
23525         if (struct.isSetRows()) {
23526           {
23527             oprot.writeI32(struct.rows.size());
23528             for (ByteBuffer _iter235 : struct.rows)
23529             {
23530               oprot.writeBinary(_iter235);
23531             }
23532           }
23533         }
23534         if (struct.isSetAttributes()) {
23535           {
23536             oprot.writeI32(struct.attributes.size());
23537             for (Map.Entry<ByteBuffer, ByteBuffer> _iter236 : struct.attributes.entrySet())
23538             {
23539               oprot.writeBinary(_iter236.getKey());
23540               oprot.writeBinary(_iter236.getValue());
23541             }
23542           }
23543         }
23544       }
23545 
23546       @Override
23547       public void read(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException {
23548         TTupleProtocol iprot = (TTupleProtocol) prot;
23549         BitSet incoming = iprot.readBitSet(3);
23550         if (incoming.get(0)) {
23551           struct.tableName = iprot.readBinary();
23552           struct.setTableNameIsSet(true);
23553         }
23554         if (incoming.get(1)) {
23555           {
23556             org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
23557             struct.rows = new ArrayList<ByteBuffer>(_list237.size);
23558             for (int _i238 = 0; _i238 < _list237.size; ++_i238)
23559             {
23560               ByteBuffer _elem239; // required
23561               _elem239 = iprot.readBinary();
23562               struct.rows.add(_elem239);
23563             }
23564           }
23565           struct.setRowsIsSet(true);
23566         }
23567         if (incoming.get(2)) {
23568           {
23569             org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
23570             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map240.size);
23571             for (int _i241 = 0; _i241 < _map240.size; ++_i241)
23572             {
23573               ByteBuffer _key242; // required
23574               ByteBuffer _val243; // required
23575               _key242 = iprot.readBinary();
23576               _val243 = iprot.readBinary();
23577               struct.attributes.put(_key242, _val243);
23578             }
23579           }
23580           struct.setAttributesIsSet(true);
23581         }
23582       }
23583     }
23584 
23585   }
23586 
23587   public static class getRows_result implements org.apache.thrift.TBase<getRows_result, getRows_result._Fields>, java.io.Serializable, Cloneable   {
23588     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_result");
23589 
23590     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
23591     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23592 
23593     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23594     static {
23595       schemes.put(StandardScheme.class, new getRows_resultStandardSchemeFactory());
23596       schemes.put(TupleScheme.class, new getRows_resultTupleSchemeFactory());
23597     }
23598 
23599     public List<TRowResult> success; // required
23600     public IOError io; // required
23601 
23602     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23603     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23604       SUCCESS((short)0, "success"),
23605       IO((short)1, "io");
23606 
23607       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23608 
23609       static {
23610         for (_Fields field : EnumSet.allOf(_Fields.class)) {
23611           byName.put(field.getFieldName(), field);
23612         }
23613       }
23614 
23615       /**
23616        * Find the _Fields constant that matches fieldId, or null if its not found.
23617        */
23618       public static _Fields findByThriftId(int fieldId) {
23619         switch(fieldId) {
23620           case 0: // SUCCESS
23621             return SUCCESS;
23622           case 1: // IO
23623             return IO;
23624           default:
23625             return null;
23626         }
23627       }
23628 
23629       /**
23630        * Find the _Fields constant that matches fieldId, throwing an exception
23631        * if it is not found.
23632        */
23633       public static _Fields findByThriftIdOrThrow(int fieldId) {
23634         _Fields fields = findByThriftId(fieldId);
23635         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23636         return fields;
23637       }
23638 
23639       /**
23640        * Find the _Fields constant that matches name, or null if its not found.
23641        */
23642       public static _Fields findByName(String name) {
23643         return byName.get(name);
23644       }
23645 
23646       private final short _thriftId;
23647       private final String _fieldName;
23648 
23649       _Fields(short thriftId, String fieldName) {
23650         _thriftId = thriftId;
23651         _fieldName = fieldName;
23652       }
23653 
23654       public short getThriftFieldId() {
23655         return _thriftId;
23656       }
23657 
23658       public String getFieldName() {
23659         return _fieldName;
23660       }
23661     }
23662 
23663     // isset id assignments
23664     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23665     static {
23666       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23667       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23668           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23669               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
23670       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23671           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23672       metaDataMap = Collections.unmodifiableMap(tmpMap);
23673       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_result.class, metaDataMap);
23674     }
23675 
23676     public getRows_result() {
23677     }
23678 
23679     public getRows_result(
23680       List<TRowResult> success,
23681       IOError io)
23682     {
23683       this();
23684       this.success = success;
23685       this.io = io;
23686     }
23687 
23688     /**
23689      * Performs a deep copy on <i>other</i>.
23690      */
23691     public getRows_result(getRows_result other) {
23692       if (other.isSetSuccess()) {
23693         List<TRowResult> __this__success = new ArrayList<TRowResult>();
23694         for (TRowResult other_element : other.success) {
23695           __this__success.add(new TRowResult(other_element));
23696         }
23697         this.success = __this__success;
23698       }
23699       if (other.isSetIo()) {
23700         this.io = new IOError(other.io);
23701       }
23702     }
23703 
23704     public getRows_result deepCopy() {
23705       return new getRows_result(this);
23706     }
23707 
23708     @Override
23709     public void clear() {
23710       this.success = null;
23711       this.io = null;
23712     }
23713 
23714     public int getSuccessSize() {
23715       return (this.success == null) ? 0 : this.success.size();
23716     }
23717 
23718     public java.util.Iterator<TRowResult> getSuccessIterator() {
23719       return (this.success == null) ? null : this.success.iterator();
23720     }
23721 
23722     public void addToSuccess(TRowResult elem) {
23723       if (this.success == null) {
23724         this.success = new ArrayList<TRowResult>();
23725       }
23726       this.success.add(elem);
23727     }
23728 
23729     public List<TRowResult> getSuccess() {
23730       return this.success;
23731     }
23732 
23733     public getRows_result setSuccess(List<TRowResult> success) {
23734       this.success = success;
23735       return this;
23736     }
23737 
23738     public void unsetSuccess() {
23739       this.success = null;
23740     }
23741 
23742     /** Returns true if field success is set (has been assigned a value) and false otherwise */
23743     public boolean isSetSuccess() {
23744       return this.success != null;
23745     }
23746 
23747     public void setSuccessIsSet(boolean value) {
23748       if (!value) {
23749         this.success = null;
23750       }
23751     }
23752 
23753     public IOError getIo() {
23754       return this.io;
23755     }
23756 
23757     public getRows_result setIo(IOError io) {
23758       this.io = io;
23759       return this;
23760     }
23761 
23762     public void unsetIo() {
23763       this.io = null;
23764     }
23765 
23766     /** Returns true if field io is set (has been assigned a value) and false otherwise */
23767     public boolean isSetIo() {
23768       return this.io != null;
23769     }
23770 
23771     public void setIoIsSet(boolean value) {
23772       if (!value) {
23773         this.io = null;
23774       }
23775     }
23776 
23777     public void setFieldValue(_Fields field, Object value) {
23778       switch (field) {
23779       case SUCCESS:
23780         if (value == null) {
23781           unsetSuccess();
23782         } else {
23783           setSuccess((List<TRowResult>)value);
23784         }
23785         break;
23786 
23787       case IO:
23788         if (value == null) {
23789           unsetIo();
23790         } else {
23791           setIo((IOError)value);
23792         }
23793         break;
23794 
23795       }
23796     }
23797 
23798     public Object getFieldValue(_Fields field) {
23799       switch (field) {
23800       case SUCCESS:
23801         return getSuccess();
23802 
23803       case IO:
23804         return getIo();
23805 
23806       }
23807       throw new IllegalStateException();
23808     }
23809 
23810     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23811     public boolean isSet(_Fields field) {
23812       if (field == null) {
23813         throw new IllegalArgumentException();
23814       }
23815 
23816       switch (field) {
23817       case SUCCESS:
23818         return isSetSuccess();
23819       case IO:
23820         return isSetIo();
23821       }
23822       throw new IllegalStateException();
23823     }
23824 
23825     @Override
23826     public boolean equals(Object that) {
23827       if (that == null)
23828         return false;
23829       if (that instanceof getRows_result)
23830         return this.equals((getRows_result)that);
23831       return false;
23832     }
23833 
23834     public boolean equals(getRows_result that) {
23835       if (that == null)
23836         return false;
23837 
23838       boolean this_present_success = true && this.isSetSuccess();
23839       boolean that_present_success = true && that.isSetSuccess();
23840       if (this_present_success || that_present_success) {
23841         if (!(this_present_success && that_present_success))
23842           return false;
23843         if (!this.success.equals(that.success))
23844           return false;
23845       }
23846 
23847       boolean this_present_io = true && this.isSetIo();
23848       boolean that_present_io = true && that.isSetIo();
23849       if (this_present_io || that_present_io) {
23850         if (!(this_present_io && that_present_io))
23851           return false;
23852         if (!this.io.equals(that.io))
23853           return false;
23854       }
23855 
23856       return true;
23857     }
23858 
23859     @Override
23860     public int hashCode() {
23861       HashCodeBuilder builder = new HashCodeBuilder();
23862 
23863       boolean present_success = true && (isSetSuccess());
23864       builder.append(present_success);
23865       if (present_success)
23866         builder.append(success);
23867 
23868       boolean present_io = true && (isSetIo());
23869       builder.append(present_io);
23870       if (present_io)
23871         builder.append(io);
23872 
23873       return builder.toHashCode();
23874     }
23875 
23876     public int compareTo(getRows_result other) {
23877       if (!getClass().equals(other.getClass())) {
23878         return getClass().getName().compareTo(other.getClass().getName());
23879       }
23880 
23881       int lastComparison = 0;
23882       getRows_result typedOther = (getRows_result)other;
23883 
23884       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23885       if (lastComparison != 0) {
23886         return lastComparison;
23887       }
23888       if (isSetSuccess()) {
23889         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23890         if (lastComparison != 0) {
23891           return lastComparison;
23892         }
23893       }
23894       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
23895       if (lastComparison != 0) {
23896         return lastComparison;
23897       }
23898       if (isSetIo()) {
23899         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
23900         if (lastComparison != 0) {
23901           return lastComparison;
23902         }
23903       }
23904       return 0;
23905     }
23906 
23907     public _Fields fieldForId(int fieldId) {
23908       return _Fields.findByThriftId(fieldId);
23909     }
23910 
23911     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23912       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23913     }
23914 
23915     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23916       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23917       }
23918 
23919     @Override
23920     public String toString() {
23921       StringBuilder sb = new StringBuilder("getRows_result(");
23922       boolean first = true;
23923 
23924       sb.append("success:");
23925       if (this.success == null) {
23926         sb.append("null");
23927       } else {
23928         sb.append(this.success);
23929       }
23930       first = false;
23931       if (!first) sb.append(", ");
23932       sb.append("io:");
23933       if (this.io == null) {
23934         sb.append("null");
23935       } else {
23936         sb.append(this.io);
23937       }
23938       first = false;
23939       sb.append(")");
23940       return sb.toString();
23941     }
23942 
23943     public void validate() throws org.apache.thrift.TException {
23944       // check for required fields
23945       // check for sub-struct validity
23946     }
23947 
23948     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23949       try {
23950         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23951       } catch (org.apache.thrift.TException te) {
23952         throw new java.io.IOException(te);
23953       }
23954     }
23955 
23956     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23957       try {
23958         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23959       } catch (org.apache.thrift.TException te) {
23960         throw new java.io.IOException(te);
23961       }
23962     }
23963 
23964     private static class getRows_resultStandardSchemeFactory implements SchemeFactory {
23965       public getRows_resultStandardScheme getScheme() {
23966         return new getRows_resultStandardScheme();
23967       }
23968     }
23969 
23970     private static class getRows_resultStandardScheme extends StandardScheme<getRows_result> {
23971 
23972       public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_result struct) throws org.apache.thrift.TException {
23973         org.apache.thrift.protocol.TField schemeField;
23974         iprot.readStructBegin();
23975         while (true)
23976         {
23977           schemeField = iprot.readFieldBegin();
23978           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
23979             break;
23980           }
23981           switch (schemeField.id) {
23982             case 0: // SUCCESS
23983               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
23984                 {
23985                   org.apache.thrift.protocol.TList _list244 = iprot.readListBegin();
23986                   struct.success = new ArrayList<TRowResult>(_list244.size);
23987                   for (int _i245 = 0; _i245 < _list244.size; ++_i245)
23988                   {
23989                     TRowResult _elem246; // required
23990                     _elem246 = new TRowResult();
23991                     _elem246.read(iprot);
23992                     struct.success.add(_elem246);
23993                   }
23994                   iprot.readListEnd();
23995                 }
23996                 struct.setSuccessIsSet(true);
23997               } else { 
23998                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23999               }
24000               break;
24001             case 1: // IO
24002               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24003                 struct.io = new IOError();
24004                 struct.io.read(iprot);
24005                 struct.setIoIsSet(true);
24006               } else { 
24007                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24008               }
24009               break;
24010             default:
24011               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24012           }
24013           iprot.readFieldEnd();
24014         }
24015         iprot.readStructEnd();
24016 
24017         // check for required fields of primitive type, which can't be checked in the validate method
24018         struct.validate();
24019       }
24020 
24021       public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_result struct) throws org.apache.thrift.TException {
24022         struct.validate();
24023 
24024         oprot.writeStructBegin(STRUCT_DESC);
24025         if (struct.success != null) {
24026           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24027           {
24028             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
24029             for (TRowResult _iter247 : struct.success)
24030             {
24031               _iter247.write(oprot);
24032             }
24033             oprot.writeListEnd();
24034           }
24035           oprot.writeFieldEnd();
24036         }
24037         if (struct.io != null) {
24038           oprot.writeFieldBegin(IO_FIELD_DESC);
24039           struct.io.write(oprot);
24040           oprot.writeFieldEnd();
24041         }
24042         oprot.writeFieldStop();
24043         oprot.writeStructEnd();
24044       }
24045 
24046     }
24047 
24048     private static class getRows_resultTupleSchemeFactory implements SchemeFactory {
24049       public getRows_resultTupleScheme getScheme() {
24050         return new getRows_resultTupleScheme();
24051       }
24052     }
24053 
24054     private static class getRows_resultTupleScheme extends TupleScheme<getRows_result> {
24055 
24056       @Override
24057       public void write(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException {
24058         TTupleProtocol oprot = (TTupleProtocol) prot;
24059         BitSet optionals = new BitSet();
24060         if (struct.isSetSuccess()) {
24061           optionals.set(0);
24062         }
24063         if (struct.isSetIo()) {
24064           optionals.set(1);
24065         }
24066         oprot.writeBitSet(optionals, 2);
24067         if (struct.isSetSuccess()) {
24068           {
24069             oprot.writeI32(struct.success.size());
24070             for (TRowResult _iter248 : struct.success)
24071             {
24072               _iter248.write(oprot);
24073             }
24074           }
24075         }
24076         if (struct.isSetIo()) {
24077           struct.io.write(oprot);
24078         }
24079       }
24080 
24081       @Override
24082       public void read(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException {
24083         TTupleProtocol iprot = (TTupleProtocol) prot;
24084         BitSet incoming = iprot.readBitSet(2);
24085         if (incoming.get(0)) {
24086           {
24087             org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
24088             struct.success = new ArrayList<TRowResult>(_list249.size);
24089             for (int _i250 = 0; _i250 < _list249.size; ++_i250)
24090             {
24091               TRowResult _elem251; // required
24092               _elem251 = new TRowResult();
24093               _elem251.read(iprot);
24094               struct.success.add(_elem251);
24095             }
24096           }
24097           struct.setSuccessIsSet(true);
24098         }
24099         if (incoming.get(1)) {
24100           struct.io = new IOError();
24101           struct.io.read(iprot);
24102           struct.setIoIsSet(true);
24103         }
24104       }
24105     }
24106 
24107   }
24108 
24109   public static class getRowsWithColumns_args implements org.apache.thrift.TBase<getRowsWithColumns_args, getRowsWithColumns_args._Fields>, java.io.Serializable, Cloneable   {
24110     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_args");
24111 
24112     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
24113     private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
24114     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
24115     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
24116 
24117     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24118     static {
24119       schemes.put(StandardScheme.class, new getRowsWithColumns_argsStandardSchemeFactory());
24120       schemes.put(TupleScheme.class, new getRowsWithColumns_argsTupleSchemeFactory());
24121     }
24122 
24123     /**
24124      * name of table
24125      */
24126     public ByteBuffer tableName; // required
24127     /**
24128      * row keys
24129      */
24130     public List<ByteBuffer> rows; // required
24131     /**
24132      * List of columns to return, null for all columns
24133      */
24134     public List<ByteBuffer> columns; // required
24135     /**
24136      * Get attributes
24137      */
24138     public Map<ByteBuffer,ByteBuffer> attributes; // required
24139 
24140     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24141     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24142       /**
24143        * name of table
24144        */
24145       TABLE_NAME((short)1, "tableName"),
24146       /**
24147        * row keys
24148        */
24149       ROWS((short)2, "rows"),
24150       /**
24151        * List of columns to return, null for all columns
24152        */
24153       COLUMNS((short)3, "columns"),
24154       /**
24155        * Get attributes
24156        */
24157       ATTRIBUTES((short)4, "attributes");
24158 
24159       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24160 
24161       static {
24162         for (_Fields field : EnumSet.allOf(_Fields.class)) {
24163           byName.put(field.getFieldName(), field);
24164         }
24165       }
24166 
24167       /**
24168        * Find the _Fields constant that matches fieldId, or null if its not found.
24169        */
24170       public static _Fields findByThriftId(int fieldId) {
24171         switch(fieldId) {
24172           case 1: // TABLE_NAME
24173             return TABLE_NAME;
24174           case 2: // ROWS
24175             return ROWS;
24176           case 3: // COLUMNS
24177             return COLUMNS;
24178           case 4: // ATTRIBUTES
24179             return ATTRIBUTES;
24180           default:
24181             return null;
24182         }
24183       }
24184 
24185       /**
24186        * Find the _Fields constant that matches fieldId, throwing an exception
24187        * if it is not found.
24188        */
24189       public static _Fields findByThriftIdOrThrow(int fieldId) {
24190         _Fields fields = findByThriftId(fieldId);
24191         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24192         return fields;
24193       }
24194 
24195       /**
24196        * Find the _Fields constant that matches name, or null if its not found.
24197        */
24198       public static _Fields findByName(String name) {
24199         return byName.get(name);
24200       }
24201 
24202       private final short _thriftId;
24203       private final String _fieldName;
24204 
24205       _Fields(short thriftId, String fieldName) {
24206         _thriftId = thriftId;
24207         _fieldName = fieldName;
24208       }
24209 
24210       public short getThriftFieldId() {
24211         return _thriftId;
24212       }
24213 
24214       public String getFieldName() {
24215         return _fieldName;
24216       }
24217     }
24218 
24219     // isset id assignments
24220     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24221     static {
24222       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24223       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24224           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
24225       tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24226           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24227               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
24228       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24229           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24230               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
24231       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24232           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
24233               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
24234               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
24235       metaDataMap = Collections.unmodifiableMap(tmpMap);
24236       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_args.class, metaDataMap);
24237     }
24238 
24239     public getRowsWithColumns_args() {
24240     }
24241 
24242     public getRowsWithColumns_args(
24243       ByteBuffer tableName,
24244       List<ByteBuffer> rows,
24245       List<ByteBuffer> columns,
24246       Map<ByteBuffer,ByteBuffer> attributes)
24247     {
24248       this();
24249       this.tableName = tableName;
24250       this.rows = rows;
24251       this.columns = columns;
24252       this.attributes = attributes;
24253     }
24254 
24255     /**
24256      * Performs a deep copy on <i>other</i>.
24257      */
24258     public getRowsWithColumns_args(getRowsWithColumns_args other) {
24259       if (other.isSetTableName()) {
24260         this.tableName = other.tableName;
24261       }
24262       if (other.isSetRows()) {
24263         List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
24264         for (ByteBuffer other_element : other.rows) {
24265           __this__rows.add(other_element);
24266         }
24267         this.rows = __this__rows;
24268       }
24269       if (other.isSetColumns()) {
24270         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
24271         for (ByteBuffer other_element : other.columns) {
24272           __this__columns.add(other_element);
24273         }
24274         this.columns = __this__columns;
24275       }
24276       if (other.isSetAttributes()) {
24277         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
24278         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
24279 
24280           ByteBuffer other_element_key = other_element.getKey();
24281           ByteBuffer other_element_value = other_element.getValue();
24282 
24283           ByteBuffer __this__attributes_copy_key = other_element_key;
24284 
24285           ByteBuffer __this__attributes_copy_value = other_element_value;
24286 
24287           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
24288         }
24289         this.attributes = __this__attributes;
24290       }
24291     }
24292 
24293     public getRowsWithColumns_args deepCopy() {
24294       return new getRowsWithColumns_args(this);
24295     }
24296 
24297     @Override
24298     public void clear() {
24299       this.tableName = null;
24300       this.rows = null;
24301       this.columns = null;
24302       this.attributes = null;
24303     }
24304 
24305     /**
24306      * name of table
24307      */
24308     public byte[] getTableName() {
24309       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
24310       return tableName == null ? null : tableName.array();
24311     }
24312 
24313     public ByteBuffer bufferForTableName() {
24314       return tableName;
24315     }
24316 
24317     /**
24318      * name of table
24319      */
24320     public getRowsWithColumns_args setTableName(byte[] tableName) {
24321       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
24322       return this;
24323     }
24324 
24325     public getRowsWithColumns_args setTableName(ByteBuffer tableName) {
24326       this.tableName = tableName;
24327       return this;
24328     }
24329 
24330     public void unsetTableName() {
24331       this.tableName = null;
24332     }
24333 
24334     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
24335     public boolean isSetTableName() {
24336       return this.tableName != null;
24337     }
24338 
24339     public void setTableNameIsSet(boolean value) {
24340       if (!value) {
24341         this.tableName = null;
24342       }
24343     }
24344 
24345     public int getRowsSize() {
24346       return (this.rows == null) ? 0 : this.rows.size();
24347     }
24348 
24349     public java.util.Iterator<ByteBuffer> getRowsIterator() {
24350       return (this.rows == null) ? null : this.rows.iterator();
24351     }
24352 
24353     public void addToRows(ByteBuffer elem) {
24354       if (this.rows == null) {
24355         this.rows = new ArrayList<ByteBuffer>();
24356       }
24357       this.rows.add(elem);
24358     }
24359 
24360     /**
24361      * row keys
24362      */
24363     public List<ByteBuffer> getRows() {
24364       return this.rows;
24365     }
24366 
24367     /**
24368      * row keys
24369      */
24370     public getRowsWithColumns_args setRows(List<ByteBuffer> rows) {
24371       this.rows = rows;
24372       return this;
24373     }
24374 
24375     public void unsetRows() {
24376       this.rows = null;
24377     }
24378 
24379     /** Returns true if field rows is set (has been assigned a value) and false otherwise */
24380     public boolean isSetRows() {
24381       return this.rows != null;
24382     }
24383 
24384     public void setRowsIsSet(boolean value) {
24385       if (!value) {
24386         this.rows = null;
24387       }
24388     }
24389 
24390     public int getColumnsSize() {
24391       return (this.columns == null) ? 0 : this.columns.size();
24392     }
24393 
24394     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
24395       return (this.columns == null) ? null : this.columns.iterator();
24396     }
24397 
24398     public void addToColumns(ByteBuffer elem) {
24399       if (this.columns == null) {
24400         this.columns = new ArrayList<ByteBuffer>();
24401       }
24402       this.columns.add(elem);
24403     }
24404 
24405     /**
24406      * List of columns to return, null for all columns
24407      */
24408     public List<ByteBuffer> getColumns() {
24409       return this.columns;
24410     }
24411 
24412     /**
24413      * List of columns to return, null for all columns
24414      */
24415     public getRowsWithColumns_args setColumns(List<ByteBuffer> columns) {
24416       this.columns = columns;
24417       return this;
24418     }
24419 
24420     public void unsetColumns() {
24421       this.columns = null;
24422     }
24423 
24424     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
24425     public boolean isSetColumns() {
24426       return this.columns != null;
24427     }
24428 
24429     public void setColumnsIsSet(boolean value) {
24430       if (!value) {
24431         this.columns = null;
24432       }
24433     }
24434 
24435     public int getAttributesSize() {
24436       return (this.attributes == null) ? 0 : this.attributes.size();
24437     }
24438 
24439     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
24440       if (this.attributes == null) {
24441         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
24442       }
24443       this.attributes.put(key, val);
24444     }
24445 
24446     /**
24447      * Get attributes
24448      */
24449     public Map<ByteBuffer,ByteBuffer> getAttributes() {
24450       return this.attributes;
24451     }
24452 
24453     /**
24454      * Get attributes
24455      */
24456     public getRowsWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
24457       this.attributes = attributes;
24458       return this;
24459     }
24460 
24461     public void unsetAttributes() {
24462       this.attributes = null;
24463     }
24464 
24465     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
24466     public boolean isSetAttributes() {
24467       return this.attributes != null;
24468     }
24469 
24470     public void setAttributesIsSet(boolean value) {
24471       if (!value) {
24472         this.attributes = null;
24473       }
24474     }
24475 
24476     public void setFieldValue(_Fields field, Object value) {
24477       switch (field) {
24478       case TABLE_NAME:
24479         if (value == null) {
24480           unsetTableName();
24481         } else {
24482           setTableName((ByteBuffer)value);
24483         }
24484         break;
24485 
24486       case ROWS:
24487         if (value == null) {
24488           unsetRows();
24489         } else {
24490           setRows((List<ByteBuffer>)value);
24491         }
24492         break;
24493 
24494       case COLUMNS:
24495         if (value == null) {
24496           unsetColumns();
24497         } else {
24498           setColumns((List<ByteBuffer>)value);
24499         }
24500         break;
24501 
24502       case ATTRIBUTES:
24503         if (value == null) {
24504           unsetAttributes();
24505         } else {
24506           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
24507         }
24508         break;
24509 
24510       }
24511     }
24512 
24513     public Object getFieldValue(_Fields field) {
24514       switch (field) {
24515       case TABLE_NAME:
24516         return getTableName();
24517 
24518       case ROWS:
24519         return getRows();
24520 
24521       case COLUMNS:
24522         return getColumns();
24523 
24524       case ATTRIBUTES:
24525         return getAttributes();
24526 
24527       }
24528       throw new IllegalStateException();
24529     }
24530 
24531     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24532     public boolean isSet(_Fields field) {
24533       if (field == null) {
24534         throw new IllegalArgumentException();
24535       }
24536 
24537       switch (field) {
24538       case TABLE_NAME:
24539         return isSetTableName();
24540       case ROWS:
24541         return isSetRows();
24542       case COLUMNS:
24543         return isSetColumns();
24544       case ATTRIBUTES:
24545         return isSetAttributes();
24546       }
24547       throw new IllegalStateException();
24548     }
24549 
24550     @Override
24551     public boolean equals(Object that) {
24552       if (that == null)
24553         return false;
24554       if (that instanceof getRowsWithColumns_args)
24555         return this.equals((getRowsWithColumns_args)that);
24556       return false;
24557     }
24558 
24559     public boolean equals(getRowsWithColumns_args that) {
24560       if (that == null)
24561         return false;
24562 
24563       boolean this_present_tableName = true && this.isSetTableName();
24564       boolean that_present_tableName = true && that.isSetTableName();
24565       if (this_present_tableName || that_present_tableName) {
24566         if (!(this_present_tableName && that_present_tableName))
24567           return false;
24568         if (!this.tableName.equals(that.tableName))
24569           return false;
24570       }
24571 
24572       boolean this_present_rows = true && this.isSetRows();
24573       boolean that_present_rows = true && that.isSetRows();
24574       if (this_present_rows || that_present_rows) {
24575         if (!(this_present_rows && that_present_rows))
24576           return false;
24577         if (!this.rows.equals(that.rows))
24578           return false;
24579       }
24580 
24581       boolean this_present_columns = true && this.isSetColumns();
24582       boolean that_present_columns = true && that.isSetColumns();
24583       if (this_present_columns || that_present_columns) {
24584         if (!(this_present_columns && that_present_columns))
24585           return false;
24586         if (!this.columns.equals(that.columns))
24587           return false;
24588       }
24589 
24590       boolean this_present_attributes = true && this.isSetAttributes();
24591       boolean that_present_attributes = true && that.isSetAttributes();
24592       if (this_present_attributes || that_present_attributes) {
24593         if (!(this_present_attributes && that_present_attributes))
24594           return false;
24595         if (!this.attributes.equals(that.attributes))
24596           return false;
24597       }
24598 
24599       return true;
24600     }
24601 
24602     @Override
24603     public int hashCode() {
24604       HashCodeBuilder builder = new HashCodeBuilder();
24605 
24606       boolean present_tableName = true && (isSetTableName());
24607       builder.append(present_tableName);
24608       if (present_tableName)
24609         builder.append(tableName);
24610 
24611       boolean present_rows = true && (isSetRows());
24612       builder.append(present_rows);
24613       if (present_rows)
24614         builder.append(rows);
24615 
24616       boolean present_columns = true && (isSetColumns());
24617       builder.append(present_columns);
24618       if (present_columns)
24619         builder.append(columns);
24620 
24621       boolean present_attributes = true && (isSetAttributes());
24622       builder.append(present_attributes);
24623       if (present_attributes)
24624         builder.append(attributes);
24625 
24626       return builder.toHashCode();
24627     }
24628 
24629     public int compareTo(getRowsWithColumns_args other) {
24630       if (!getClass().equals(other.getClass())) {
24631         return getClass().getName().compareTo(other.getClass().getName());
24632       }
24633 
24634       int lastComparison = 0;
24635       getRowsWithColumns_args typedOther = (getRowsWithColumns_args)other;
24636 
24637       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
24638       if (lastComparison != 0) {
24639         return lastComparison;
24640       }
24641       if (isSetTableName()) {
24642         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
24643         if (lastComparison != 0) {
24644           return lastComparison;
24645         }
24646       }
24647       lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
24648       if (lastComparison != 0) {
24649         return lastComparison;
24650       }
24651       if (isSetRows()) {
24652         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
24653         if (lastComparison != 0) {
24654           return lastComparison;
24655         }
24656       }
24657       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
24658       if (lastComparison != 0) {
24659         return lastComparison;
24660       }
24661       if (isSetColumns()) {
24662         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
24663         if (lastComparison != 0) {
24664           return lastComparison;
24665         }
24666       }
24667       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
24668       if (lastComparison != 0) {
24669         return lastComparison;
24670       }
24671       if (isSetAttributes()) {
24672         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
24673         if (lastComparison != 0) {
24674           return lastComparison;
24675         }
24676       }
24677       return 0;
24678     }
24679 
24680     public _Fields fieldForId(int fieldId) {
24681       return _Fields.findByThriftId(fieldId);
24682     }
24683 
24684     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24685       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24686     }
24687 
24688     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24689       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24690     }
24691 
24692     @Override
24693     public String toString() {
24694       StringBuilder sb = new StringBuilder("getRowsWithColumns_args(");
24695       boolean first = true;
24696 
24697       sb.append("tableName:");
24698       if (this.tableName == null) {
24699         sb.append("null");
24700       } else {
24701         sb.append(this.tableName);
24702       }
24703       first = false;
24704       if (!first) sb.append(", ");
24705       sb.append("rows:");
24706       if (this.rows == null) {
24707         sb.append("null");
24708       } else {
24709         sb.append(this.rows);
24710       }
24711       first = false;
24712       if (!first) sb.append(", ");
24713       sb.append("columns:");
24714       if (this.columns == null) {
24715         sb.append("null");
24716       } else {
24717         sb.append(this.columns);
24718       }
24719       first = false;
24720       if (!first) sb.append(", ");
24721       sb.append("attributes:");
24722       if (this.attributes == null) {
24723         sb.append("null");
24724       } else {
24725         sb.append(this.attributes);
24726       }
24727       first = false;
24728       sb.append(")");
24729       return sb.toString();
24730     }
24731 
24732     public void validate() throws org.apache.thrift.TException {
24733       // check for required fields
24734       // check for sub-struct validity
24735     }
24736 
24737     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24738       try {
24739         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24740       } catch (org.apache.thrift.TException te) {
24741         throw new java.io.IOException(te);
24742       }
24743     }
24744 
24745     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24746       try {
24747         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24748       } catch (org.apache.thrift.TException te) {
24749         throw new java.io.IOException(te);
24750       }
24751     }
24752 
24753     private static class getRowsWithColumns_argsStandardSchemeFactory implements SchemeFactory {
24754       public getRowsWithColumns_argsStandardScheme getScheme() {
24755         return new getRowsWithColumns_argsStandardScheme();
24756       }
24757     }
24758 
24759     private static class getRowsWithColumns_argsStandardScheme extends StandardScheme<getRowsWithColumns_args> {
24760 
24761       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24762         org.apache.thrift.protocol.TField schemeField;
24763         iprot.readStructBegin();
24764         while (true)
24765         {
24766           schemeField = iprot.readFieldBegin();
24767           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
24768             break;
24769           }
24770           switch (schemeField.id) {
24771             case 1: // TABLE_NAME
24772               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24773                 struct.tableName = iprot.readBinary();
24774                 struct.setTableNameIsSet(true);
24775               } else { 
24776                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24777               }
24778               break;
24779             case 2: // ROWS
24780               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
24781                 {
24782                   org.apache.thrift.protocol.TList _list252 = iprot.readListBegin();
24783                   struct.rows = new ArrayList<ByteBuffer>(_list252.size);
24784                   for (int _i253 = 0; _i253 < _list252.size; ++_i253)
24785                   {
24786                     ByteBuffer _elem254; // required
24787                     _elem254 = iprot.readBinary();
24788                     struct.rows.add(_elem254);
24789                   }
24790                   iprot.readListEnd();
24791                 }
24792                 struct.setRowsIsSet(true);
24793               } else { 
24794                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24795               }
24796               break;
24797             case 3: // COLUMNS
24798               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
24799                 {
24800                   org.apache.thrift.protocol.TList _list255 = iprot.readListBegin();
24801                   struct.columns = new ArrayList<ByteBuffer>(_list255.size);
24802                   for (int _i256 = 0; _i256 < _list255.size; ++_i256)
24803                   {
24804                     ByteBuffer _elem257; // required
24805                     _elem257 = iprot.readBinary();
24806                     struct.columns.add(_elem257);
24807                   }
24808                   iprot.readListEnd();
24809                 }
24810                 struct.setColumnsIsSet(true);
24811               } else { 
24812                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24813               }
24814               break;
24815             case 4: // ATTRIBUTES
24816               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
24817                 {
24818                   org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin();
24819                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map258.size);
24820                   for (int _i259 = 0; _i259 < _map258.size; ++_i259)
24821                   {
24822                     ByteBuffer _key260; // required
24823                     ByteBuffer _val261; // required
24824                     _key260 = iprot.readBinary();
24825                     _val261 = iprot.readBinary();
24826                     struct.attributes.put(_key260, _val261);
24827                   }
24828                   iprot.readMapEnd();
24829                 }
24830                 struct.setAttributesIsSet(true);
24831               } else { 
24832                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24833               }
24834               break;
24835             default:
24836               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24837           }
24838           iprot.readFieldEnd();
24839         }
24840         iprot.readStructEnd();
24841 
24842         // check for required fields of primitive type, which can't be checked in the validate method
24843         struct.validate();
24844       }
24845 
24846       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24847         struct.validate();
24848 
24849         oprot.writeStructBegin(STRUCT_DESC);
24850         if (struct.tableName != null) {
24851           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
24852           oprot.writeBinary(struct.tableName);
24853           oprot.writeFieldEnd();
24854         }
24855         if (struct.rows != null) {
24856           oprot.writeFieldBegin(ROWS_FIELD_DESC);
24857           {
24858             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
24859             for (ByteBuffer _iter262 : struct.rows)
24860             {
24861               oprot.writeBinary(_iter262);
24862             }
24863             oprot.writeListEnd();
24864           }
24865           oprot.writeFieldEnd();
24866         }
24867         if (struct.columns != null) {
24868           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
24869           {
24870             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
24871             for (ByteBuffer _iter263 : struct.columns)
24872             {
24873               oprot.writeBinary(_iter263);
24874             }
24875             oprot.writeListEnd();
24876           }
24877           oprot.writeFieldEnd();
24878         }
24879         if (struct.attributes != null) {
24880           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
24881           {
24882             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
24883             for (Map.Entry<ByteBuffer, ByteBuffer> _iter264 : struct.attributes.entrySet())
24884             {
24885               oprot.writeBinary(_iter264.getKey());
24886               oprot.writeBinary(_iter264.getValue());
24887             }
24888             oprot.writeMapEnd();
24889           }
24890           oprot.writeFieldEnd();
24891         }
24892         oprot.writeFieldStop();
24893         oprot.writeStructEnd();
24894       }
24895 
24896     }
24897 
24898     private static class getRowsWithColumns_argsTupleSchemeFactory implements SchemeFactory {
24899       public getRowsWithColumns_argsTupleScheme getScheme() {
24900         return new getRowsWithColumns_argsTupleScheme();
24901       }
24902     }
24903 
24904     private static class getRowsWithColumns_argsTupleScheme extends TupleScheme<getRowsWithColumns_args> {
24905 
24906       @Override
24907       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24908         TTupleProtocol oprot = (TTupleProtocol) prot;
24909         BitSet optionals = new BitSet();
24910         if (struct.isSetTableName()) {
24911           optionals.set(0);
24912         }
24913         if (struct.isSetRows()) {
24914           optionals.set(1);
24915         }
24916         if (struct.isSetColumns()) {
24917           optionals.set(2);
24918         }
24919         if (struct.isSetAttributes()) {
24920           optionals.set(3);
24921         }
24922         oprot.writeBitSet(optionals, 4);
24923         if (struct.isSetTableName()) {
24924           oprot.writeBinary(struct.tableName);
24925         }
24926         if (struct.isSetRows()) {
24927           {
24928             oprot.writeI32(struct.rows.size());
24929             for (ByteBuffer _iter265 : struct.rows)
24930             {
24931               oprot.writeBinary(_iter265);
24932             }
24933           }
24934         }
24935         if (struct.isSetColumns()) {
24936           {
24937             oprot.writeI32(struct.columns.size());
24938             for (ByteBuffer _iter266 : struct.columns)
24939             {
24940               oprot.writeBinary(_iter266);
24941             }
24942           }
24943         }
24944         if (struct.isSetAttributes()) {
24945           {
24946             oprot.writeI32(struct.attributes.size());
24947             for (Map.Entry<ByteBuffer, ByteBuffer> _iter267 : struct.attributes.entrySet())
24948             {
24949               oprot.writeBinary(_iter267.getKey());
24950               oprot.writeBinary(_iter267.getValue());
24951             }
24952           }
24953         }
24954       }
24955 
24956       @Override
24957       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24958         TTupleProtocol iprot = (TTupleProtocol) prot;
24959         BitSet incoming = iprot.readBitSet(4);
24960         if (incoming.get(0)) {
24961           struct.tableName = iprot.readBinary();
24962           struct.setTableNameIsSet(true);
24963         }
24964         if (incoming.get(1)) {
24965           {
24966             org.apache.thrift.protocol.TList _list268 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
24967             struct.rows = new ArrayList<ByteBuffer>(_list268.size);
24968             for (int _i269 = 0; _i269 < _list268.size; ++_i269)
24969             {
24970               ByteBuffer _elem270; // required
24971               _elem270 = iprot.readBinary();
24972               struct.rows.add(_elem270);
24973             }
24974           }
24975           struct.setRowsIsSet(true);
24976         }
24977         if (incoming.get(2)) {
24978           {
24979             org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
24980             struct.columns = new ArrayList<ByteBuffer>(_list271.size);
24981             for (int _i272 = 0; _i272 < _list271.size; ++_i272)
24982             {
24983               ByteBuffer _elem273; // required
24984               _elem273 = iprot.readBinary();
24985               struct.columns.add(_elem273);
24986             }
24987           }
24988           struct.setColumnsIsSet(true);
24989         }
24990         if (incoming.get(3)) {
24991           {
24992             org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
24993             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map274.size);
24994             for (int _i275 = 0; _i275 < _map274.size; ++_i275)
24995             {
24996               ByteBuffer _key276; // required
24997               ByteBuffer _val277; // required
24998               _key276 = iprot.readBinary();
24999               _val277 = iprot.readBinary();
25000               struct.attributes.put(_key276, _val277);
25001             }
25002           }
25003           struct.setAttributesIsSet(true);
25004         }
25005       }
25006     }
25007 
25008   }
25009 
25010   public static class getRowsWithColumns_result implements org.apache.thrift.TBase<getRowsWithColumns_result, getRowsWithColumns_result._Fields>, java.io.Serializable, Cloneable   {
25011     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_result");
25012 
25013     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
25014     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
25015 
25016     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25017     static {
25018       schemes.put(StandardScheme.class, new getRowsWithColumns_resultStandardSchemeFactory());
25019       schemes.put(TupleScheme.class, new getRowsWithColumns_resultTupleSchemeFactory());
25020     }
25021 
25022     public List<TRowResult> success; // required
25023     public IOError io; // required
25024 
25025     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25026     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25027       SUCCESS((short)0, "success"),
25028       IO((short)1, "io");
25029 
25030       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25031 
25032       static {
25033         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25034           byName.put(field.getFieldName(), field);
25035         }
25036       }
25037 
25038       /**
25039        * Find the _Fields constant that matches fieldId, or null if its not found.
25040        */
25041       public static _Fields findByThriftId(int fieldId) {
25042         switch(fieldId) {
25043           case 0: // SUCCESS
25044             return SUCCESS;
25045           case 1: // IO
25046             return IO;
25047           default:
25048             return null;
25049         }
25050       }
25051 
25052       /**
25053        * Find the _Fields constant that matches fieldId, throwing an exception
25054        * if it is not found.
25055        */
25056       public static _Fields findByThriftIdOrThrow(int fieldId) {
25057         _Fields fields = findByThriftId(fieldId);
25058         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25059         return fields;
25060       }
25061 
25062       /**
25063        * Find the _Fields constant that matches name, or null if its not found.
25064        */
25065       public static _Fields findByName(String name) {
25066         return byName.get(name);
25067       }
25068 
25069       private final short _thriftId;
25070       private final String _fieldName;
25071 
25072       _Fields(short thriftId, String fieldName) {
25073         _thriftId = thriftId;
25074         _fieldName = fieldName;
25075       }
25076 
25077       public short getThriftFieldId() {
25078         return _thriftId;
25079       }
25080 
25081       public String getFieldName() {
25082         return _fieldName;
25083       }
25084     }
25085 
25086     // isset id assignments
25087     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25088     static {
25089       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25090       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25091           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25092               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
25093       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25094           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25095       metaDataMap = Collections.unmodifiableMap(tmpMap);
25096       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_result.class, metaDataMap);
25097     }
25098 
25099     public getRowsWithColumns_result() {
25100     }
25101 
25102     public getRowsWithColumns_result(
25103       List<TRowResult> success,
25104       IOError io)
25105     {
25106       this();
25107       this.success = success;
25108       this.io = io;
25109     }
25110 
25111     /**
25112      * Performs a deep copy on <i>other</i>.
25113      */
25114     public getRowsWithColumns_result(getRowsWithColumns_result other) {
25115       if (other.isSetSuccess()) {
25116         List<TRowResult> __this__success = new ArrayList<TRowResult>();
25117         for (TRowResult other_element : other.success) {
25118           __this__success.add(new TRowResult(other_element));
25119         }
25120         this.success = __this__success;
25121       }
25122       if (other.isSetIo()) {
25123         this.io = new IOError(other.io);
25124       }
25125     }
25126 
25127     public getRowsWithColumns_result deepCopy() {
25128       return new getRowsWithColumns_result(this);
25129     }
25130 
25131     @Override
25132     public void clear() {
25133       this.success = null;
25134       this.io = null;
25135     }
25136 
25137     public int getSuccessSize() {
25138       return (this.success == null) ? 0 : this.success.size();
25139     }
25140 
25141     public java.util.Iterator<TRowResult> getSuccessIterator() {
25142       return (this.success == null) ? null : this.success.iterator();
25143     }
25144 
25145     public void addToSuccess(TRowResult elem) {
25146       if (this.success == null) {
25147         this.success = new ArrayList<TRowResult>();
25148       }
25149       this.success.add(elem);
25150     }
25151 
25152     public List<TRowResult> getSuccess() {
25153       return this.success;
25154     }
25155 
25156     public getRowsWithColumns_result setSuccess(List<TRowResult> success) {
25157       this.success = success;
25158       return this;
25159     }
25160 
25161     public void unsetSuccess() {
25162       this.success = null;
25163     }
25164 
25165     /** Returns true if field success is set (has been assigned a value) and false otherwise */
25166     public boolean isSetSuccess() {
25167       return this.success != null;
25168     }
25169 
25170     public void setSuccessIsSet(boolean value) {
25171       if (!value) {
25172         this.success = null;
25173       }
25174     }
25175 
25176     public IOError getIo() {
25177       return this.io;
25178     }
25179 
25180     public getRowsWithColumns_result setIo(IOError io) {
25181       this.io = io;
25182       return this;
25183     }
25184 
25185     public void unsetIo() {
25186       this.io = null;
25187     }
25188 
25189     /** Returns true if field io is set (has been assigned a value) and false otherwise */
25190     public boolean isSetIo() {
25191       return this.io != null;
25192     }
25193 
25194     public void setIoIsSet(boolean value) {
25195       if (!value) {
25196         this.io = null;
25197       }
25198     }
25199 
25200     public void setFieldValue(_Fields field, Object value) {
25201       switch (field) {
25202       case SUCCESS:
25203         if (value == null) {
25204           unsetSuccess();
25205         } else {
25206           setSuccess((List<TRowResult>)value);
25207         }
25208         break;
25209 
25210       case IO:
25211         if (value == null) {
25212           unsetIo();
25213         } else {
25214           setIo((IOError)value);
25215         }
25216         break;
25217 
25218       }
25219     }
25220 
25221     public Object getFieldValue(_Fields field) {
25222       switch (field) {
25223       case SUCCESS:
25224         return getSuccess();
25225 
25226       case IO:
25227         return getIo();
25228 
25229       }
25230       throw new IllegalStateException();
25231     }
25232 
25233     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25234     public boolean isSet(_Fields field) {
25235       if (field == null) {
25236         throw new IllegalArgumentException();
25237       }
25238 
25239       switch (field) {
25240       case SUCCESS:
25241         return isSetSuccess();
25242       case IO:
25243         return isSetIo();
25244       }
25245       throw new IllegalStateException();
25246     }
25247 
25248     @Override
25249     public boolean equals(Object that) {
25250       if (that == null)
25251         return false;
25252       if (that instanceof getRowsWithColumns_result)
25253         return this.equals((getRowsWithColumns_result)that);
25254       return false;
25255     }
25256 
25257     public boolean equals(getRowsWithColumns_result that) {
25258       if (that == null)
25259         return false;
25260 
25261       boolean this_present_success = true && this.isSetSuccess();
25262       boolean that_present_success = true && that.isSetSuccess();
25263       if (this_present_success || that_present_success) {
25264         if (!(this_present_success && that_present_success))
25265           return false;
25266         if (!this.success.equals(that.success))
25267           return false;
25268       }
25269 
25270       boolean this_present_io = true && this.isSetIo();
25271       boolean that_present_io = true && that.isSetIo();
25272       if (this_present_io || that_present_io) {
25273         if (!(this_present_io && that_present_io))
25274           return false;
25275         if (!this.io.equals(that.io))
25276           return false;
25277       }
25278 
25279       return true;
25280     }
25281 
25282     @Override
25283     public int hashCode() {
25284       HashCodeBuilder builder = new HashCodeBuilder();
25285 
25286       boolean present_success = true && (isSetSuccess());
25287       builder.append(present_success);
25288       if (present_success)
25289         builder.append(success);
25290 
25291       boolean present_io = true && (isSetIo());
25292       builder.append(present_io);
25293       if (present_io)
25294         builder.append(io);
25295 
25296       return builder.toHashCode();
25297     }
25298 
25299     public int compareTo(getRowsWithColumns_result other) {
25300       if (!getClass().equals(other.getClass())) {
25301         return getClass().getName().compareTo(other.getClass().getName());
25302       }
25303 
25304       int lastComparison = 0;
25305       getRowsWithColumns_result typedOther = (getRowsWithColumns_result)other;
25306 
25307       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25308       if (lastComparison != 0) {
25309         return lastComparison;
25310       }
25311       if (isSetSuccess()) {
25312         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25313         if (lastComparison != 0) {
25314           return lastComparison;
25315         }
25316       }
25317       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
25318       if (lastComparison != 0) {
25319         return lastComparison;
25320       }
25321       if (isSetIo()) {
25322         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
25323         if (lastComparison != 0) {
25324           return lastComparison;
25325         }
25326       }
25327       return 0;
25328     }
25329 
25330     public _Fields fieldForId(int fieldId) {
25331       return _Fields.findByThriftId(fieldId);
25332     }
25333 
25334     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25335       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25336     }
25337 
25338     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25339       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25340       }
25341 
25342     @Override
25343     public String toString() {
25344       StringBuilder sb = new StringBuilder("getRowsWithColumns_result(");
25345       boolean first = true;
25346 
25347       sb.append("success:");
25348       if (this.success == null) {
25349         sb.append("null");
25350       } else {
25351         sb.append(this.success);
25352       }
25353       first = false;
25354       if (!first) sb.append(", ");
25355       sb.append("io:");
25356       if (this.io == null) {
25357         sb.append("null");
25358       } else {
25359         sb.append(this.io);
25360       }
25361       first = false;
25362       sb.append(")");
25363       return sb.toString();
25364     }
25365 
25366     public void validate() throws org.apache.thrift.TException {
25367       // check for required fields
25368       // check for sub-struct validity
25369     }
25370 
25371     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25372       try {
25373         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25374       } catch (org.apache.thrift.TException te) {
25375         throw new java.io.IOException(te);
25376       }
25377     }
25378 
25379     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25380       try {
25381         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25382       } catch (org.apache.thrift.TException te) {
25383         throw new java.io.IOException(te);
25384       }
25385     }
25386 
25387     private static class getRowsWithColumns_resultStandardSchemeFactory implements SchemeFactory {
25388       public getRowsWithColumns_resultStandardScheme getScheme() {
25389         return new getRowsWithColumns_resultStandardScheme();
25390       }
25391     }
25392 
25393     private static class getRowsWithColumns_resultStandardScheme extends StandardScheme<getRowsWithColumns_result> {
25394 
25395       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25396         org.apache.thrift.protocol.TField schemeField;
25397         iprot.readStructBegin();
25398         while (true)
25399         {
25400           schemeField = iprot.readFieldBegin();
25401           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
25402             break;
25403           }
25404           switch (schemeField.id) {
25405             case 0: // SUCCESS
25406               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
25407                 {
25408                   org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
25409                   struct.success = new ArrayList<TRowResult>(_list278.size);
25410                   for (int _i279 = 0; _i279 < _list278.size; ++_i279)
25411                   {
25412                     TRowResult _elem280; // required
25413                     _elem280 = new TRowResult();
25414                     _elem280.read(iprot);
25415                     struct.success.add(_elem280);
25416                   }
25417                   iprot.readListEnd();
25418                 }
25419                 struct.setSuccessIsSet(true);
25420               } else { 
25421                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25422               }
25423               break;
25424             case 1: // IO
25425               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25426                 struct.io = new IOError();
25427                 struct.io.read(iprot);
25428                 struct.setIoIsSet(true);
25429               } else { 
25430                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25431               }
25432               break;
25433             default:
25434               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25435           }
25436           iprot.readFieldEnd();
25437         }
25438         iprot.readStructEnd();
25439 
25440         // check for required fields of primitive type, which can't be checked in the validate method
25441         struct.validate();
25442       }
25443 
25444       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25445         struct.validate();
25446 
25447         oprot.writeStructBegin(STRUCT_DESC);
25448         if (struct.success != null) {
25449           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25450           {
25451             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
25452             for (TRowResult _iter281 : struct.success)
25453             {
25454               _iter281.write(oprot);
25455             }
25456             oprot.writeListEnd();
25457           }
25458           oprot.writeFieldEnd();
25459         }
25460         if (struct.io != null) {
25461           oprot.writeFieldBegin(IO_FIELD_DESC);
25462           struct.io.write(oprot);
25463           oprot.writeFieldEnd();
25464         }
25465         oprot.writeFieldStop();
25466         oprot.writeStructEnd();
25467       }
25468 
25469     }
25470 
25471     private static class getRowsWithColumns_resultTupleSchemeFactory implements SchemeFactory {
25472       public getRowsWithColumns_resultTupleScheme getScheme() {
25473         return new getRowsWithColumns_resultTupleScheme();
25474       }
25475     }
25476 
25477     private static class getRowsWithColumns_resultTupleScheme extends TupleScheme<getRowsWithColumns_result> {
25478 
25479       @Override
25480       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25481         TTupleProtocol oprot = (TTupleProtocol) prot;
25482         BitSet optionals = new BitSet();
25483         if (struct.isSetSuccess()) {
25484           optionals.set(0);
25485         }
25486         if (struct.isSetIo()) {
25487           optionals.set(1);
25488         }
25489         oprot.writeBitSet(optionals, 2);
25490         if (struct.isSetSuccess()) {
25491           {
25492             oprot.writeI32(struct.success.size());
25493             for (TRowResult _iter282 : struct.success)
25494             {
25495               _iter282.write(oprot);
25496             }
25497           }
25498         }
25499         if (struct.isSetIo()) {
25500           struct.io.write(oprot);
25501         }
25502       }
25503 
25504       @Override
25505       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25506         TTupleProtocol iprot = (TTupleProtocol) prot;
25507         BitSet incoming = iprot.readBitSet(2);
25508         if (incoming.get(0)) {
25509           {
25510             org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
25511             struct.success = new ArrayList<TRowResult>(_list283.size);
25512             for (int _i284 = 0; _i284 < _list283.size; ++_i284)
25513             {
25514               TRowResult _elem285; // required
25515               _elem285 = new TRowResult();
25516               _elem285.read(iprot);
25517               struct.success.add(_elem285);
25518             }
25519           }
25520           struct.setSuccessIsSet(true);
25521         }
25522         if (incoming.get(1)) {
25523           struct.io = new IOError();
25524           struct.io.read(iprot);
25525           struct.setIoIsSet(true);
25526         }
25527       }
25528     }
25529 
25530   }
25531 
25532   public static class getRowsTs_args implements org.apache.thrift.TBase<getRowsTs_args, getRowsTs_args._Fields>, java.io.Serializable, Cloneable   {
25533     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_args");
25534 
25535     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
25536     private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
25537     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
25538     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
25539 
25540     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25541     static {
25542       schemes.put(StandardScheme.class, new getRowsTs_argsStandardSchemeFactory());
25543       schemes.put(TupleScheme.class, new getRowsTs_argsTupleSchemeFactory());
25544     }
25545 
25546     /**
25547      * name of the table
25548      */
25549     public ByteBuffer tableName; // required
25550     /**
25551      * row keys
25552      */
25553     public List<ByteBuffer> rows; // required
25554     /**
25555      * timestamp
25556      */
25557     public long timestamp; // required
25558     /**
25559      * Get attributes
25560      */
25561     public Map<ByteBuffer,ByteBuffer> attributes; // required
25562 
25563     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25564     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25565       /**
25566        * name of the table
25567        */
25568       TABLE_NAME((short)1, "tableName"),
25569       /**
25570        * row keys
25571        */
25572       ROWS((short)2, "rows"),
25573       /**
25574        * timestamp
25575        */
25576       TIMESTAMP((short)3, "timestamp"),
25577       /**
25578        * Get attributes
25579        */
25580       ATTRIBUTES((short)4, "attributes");
25581 
25582       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25583 
25584       static {
25585         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25586           byName.put(field.getFieldName(), field);
25587         }
25588       }
25589 
25590       /**
25591        * Find the _Fields constant that matches fieldId, or null if its not found.
25592        */
25593       public static _Fields findByThriftId(int fieldId) {
25594         switch(fieldId) {
25595           case 1: // TABLE_NAME
25596             return TABLE_NAME;
25597           case 2: // ROWS
25598             return ROWS;
25599           case 3: // TIMESTAMP
25600             return TIMESTAMP;
25601           case 4: // ATTRIBUTES
25602             return ATTRIBUTES;
25603           default:
25604             return null;
25605         }
25606       }
25607 
25608       /**
25609        * Find the _Fields constant that matches fieldId, throwing an exception
25610        * if it is not found.
25611        */
25612       public static _Fields findByThriftIdOrThrow(int fieldId) {
25613         _Fields fields = findByThriftId(fieldId);
25614         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25615         return fields;
25616       }
25617 
25618       /**
25619        * Find the _Fields constant that matches name, or null if its not found.
25620        */
25621       public static _Fields findByName(String name) {
25622         return byName.get(name);
25623       }
25624 
25625       private final short _thriftId;
25626       private final String _fieldName;
25627 
25628       _Fields(short thriftId, String fieldName) {
25629         _thriftId = thriftId;
25630         _fieldName = fieldName;
25631       }
25632 
25633       public short getThriftFieldId() {
25634         return _thriftId;
25635       }
25636 
25637       public String getFieldName() {
25638         return _fieldName;
25639       }
25640     }
25641 
25642     // isset id assignments
25643     private static final int __TIMESTAMP_ISSET_ID = 0;
25644     private byte __isset_bitfield = 0;
25645     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25646     static {
25647       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25648       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25649           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
25650       tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25651           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25652               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
25653       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25654           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25655       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25656           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
25657               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
25658               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
25659       metaDataMap = Collections.unmodifiableMap(tmpMap);
25660       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_args.class, metaDataMap);
25661     }
25662 
25663     public getRowsTs_args() {
25664     }
25665 
25666     public getRowsTs_args(
25667       ByteBuffer tableName,
25668       List<ByteBuffer> rows,
25669       long timestamp,
25670       Map<ByteBuffer,ByteBuffer> attributes)
25671     {
25672       this();
25673       this.tableName = tableName;
25674       this.rows = rows;
25675       this.timestamp = timestamp;
25676       setTimestampIsSet(true);
25677       this.attributes = attributes;
25678     }
25679 
25680     /**
25681      * Performs a deep copy on <i>other</i>.
25682      */
25683     public getRowsTs_args(getRowsTs_args other) {
25684       __isset_bitfield = other.__isset_bitfield;
25685       if (other.isSetTableName()) {
25686         this.tableName = other.tableName;
25687       }
25688       if (other.isSetRows()) {
25689         List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
25690         for (ByteBuffer other_element : other.rows) {
25691           __this__rows.add(other_element);
25692         }
25693         this.rows = __this__rows;
25694       }
25695       this.timestamp = other.timestamp;
25696       if (other.isSetAttributes()) {
25697         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
25698         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
25699 
25700           ByteBuffer other_element_key = other_element.getKey();
25701           ByteBuffer other_element_value = other_element.getValue();
25702 
25703           ByteBuffer __this__attributes_copy_key = other_element_key;
25704 
25705           ByteBuffer __this__attributes_copy_value = other_element_value;
25706 
25707           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
25708         }
25709         this.attributes = __this__attributes;
25710       }
25711     }
25712 
25713     public getRowsTs_args deepCopy() {
25714       return new getRowsTs_args(this);
25715     }
25716 
25717     @Override
25718     public void clear() {
25719       this.tableName = null;
25720       this.rows = null;
25721       setTimestampIsSet(false);
25722       this.timestamp = 0;
25723       this.attributes = null;
25724     }
25725 
25726     /**
25727      * name of the table
25728      */
25729     public byte[] getTableName() {
25730       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
25731       return tableName == null ? null : tableName.array();
25732     }
25733 
25734     public ByteBuffer bufferForTableName() {
25735       return tableName;
25736     }
25737 
25738     /**
25739      * name of the table
25740      */
25741     public getRowsTs_args setTableName(byte[] tableName) {
25742       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
25743       return this;
25744     }
25745 
25746     public getRowsTs_args setTableName(ByteBuffer tableName) {
25747       this.tableName = tableName;
25748       return this;
25749     }
25750 
25751     public void unsetTableName() {
25752       this.tableName = null;
25753     }
25754 
25755     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
25756     public boolean isSetTableName() {
25757       return this.tableName != null;
25758     }
25759 
25760     public void setTableNameIsSet(boolean value) {
25761       if (!value) {
25762         this.tableName = null;
25763       }
25764     }
25765 
25766     public int getRowsSize() {
25767       return (this.rows == null) ? 0 : this.rows.size();
25768     }
25769 
25770     public java.util.Iterator<ByteBuffer> getRowsIterator() {
25771       return (this.rows == null) ? null : this.rows.iterator();
25772     }
25773 
25774     public void addToRows(ByteBuffer elem) {
25775       if (this.rows == null) {
25776         this.rows = new ArrayList<ByteBuffer>();
25777       }
25778       this.rows.add(elem);
25779     }
25780 
25781     /**
25782      * row keys
25783      */
25784     public List<ByteBuffer> getRows() {
25785       return this.rows;
25786     }
25787 
25788     /**
25789      * row keys
25790      */
25791     public getRowsTs_args setRows(List<ByteBuffer> rows) {
25792       this.rows = rows;
25793       return this;
25794     }
25795 
25796     public void unsetRows() {
25797       this.rows = null;
25798     }
25799 
25800     /** Returns true if field rows is set (has been assigned a value) and false otherwise */
25801     public boolean isSetRows() {
25802       return this.rows != null;
25803     }
25804 
25805     public void setRowsIsSet(boolean value) {
25806       if (!value) {
25807         this.rows = null;
25808       }
25809     }
25810 
25811     /**
25812      * timestamp
25813      */
25814     public long getTimestamp() {
25815       return this.timestamp;
25816     }
25817 
25818     /**
25819      * timestamp
25820      */
25821     public getRowsTs_args setTimestamp(long timestamp) {
25822       this.timestamp = timestamp;
25823       setTimestampIsSet(true);
25824       return this;
25825     }
25826 
25827     public void unsetTimestamp() {
25828       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
25829     }
25830 
25831     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
25832     public boolean isSetTimestamp() {
25833       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
25834     }
25835 
25836     public void setTimestampIsSet(boolean value) {
25837       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
25838     }
25839 
25840     public int getAttributesSize() {
25841       return (this.attributes == null) ? 0 : this.attributes.size();
25842     }
25843 
25844     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
25845       if (this.attributes == null) {
25846         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
25847       }
25848       this.attributes.put(key, val);
25849     }
25850 
25851     /**
25852      * Get attributes
25853      */
25854     public Map<ByteBuffer,ByteBuffer> getAttributes() {
25855       return this.attributes;
25856     }
25857 
25858     /**
25859      * Get attributes
25860      */
25861     public getRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
25862       this.attributes = attributes;
25863       return this;
25864     }
25865 
25866     public void unsetAttributes() {
25867       this.attributes = null;
25868     }
25869 
25870     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
25871     public boolean isSetAttributes() {
25872       return this.attributes != null;
25873     }
25874 
25875     public void setAttributesIsSet(boolean value) {
25876       if (!value) {
25877         this.attributes = null;
25878       }
25879     }
25880 
25881     public void setFieldValue(_Fields field, Object value) {
25882       switch (field) {
25883       case TABLE_NAME:
25884         if (value == null) {
25885           unsetTableName();
25886         } else {
25887           setTableName((ByteBuffer)value);
25888         }
25889         break;
25890 
25891       case ROWS:
25892         if (value == null) {
25893           unsetRows();
25894         } else {
25895           setRows((List<ByteBuffer>)value);
25896         }
25897         break;
25898 
25899       case TIMESTAMP:
25900         if (value == null) {
25901           unsetTimestamp();
25902         } else {
25903           setTimestamp((Long)value);
25904         }
25905         break;
25906 
25907       case ATTRIBUTES:
25908         if (value == null) {
25909           unsetAttributes();
25910         } else {
25911           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
25912         }
25913         break;
25914 
25915       }
25916     }
25917 
25918     public Object getFieldValue(_Fields field) {
25919       switch (field) {
25920       case TABLE_NAME:
25921         return getTableName();
25922 
25923       case ROWS:
25924         return getRows();
25925 
25926       case TIMESTAMP:
25927         return Long.valueOf(getTimestamp());
25928 
25929       case ATTRIBUTES:
25930         return getAttributes();
25931 
25932       }
25933       throw new IllegalStateException();
25934     }
25935 
25936     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25937     public boolean isSet(_Fields field) {
25938       if (field == null) {
25939         throw new IllegalArgumentException();
25940       }
25941 
25942       switch (field) {
25943       case TABLE_NAME:
25944         return isSetTableName();
25945       case ROWS:
25946         return isSetRows();
25947       case TIMESTAMP:
25948         return isSetTimestamp();
25949       case ATTRIBUTES:
25950         return isSetAttributes();
25951       }
25952       throw new IllegalStateException();
25953     }
25954 
25955     @Override
25956     public boolean equals(Object that) {
25957       if (that == null)
25958         return false;
25959       if (that instanceof getRowsTs_args)
25960         return this.equals((getRowsTs_args)that);
25961       return false;
25962     }
25963 
25964     public boolean equals(getRowsTs_args that) {
25965       if (that == null)
25966         return false;
25967 
25968       boolean this_present_tableName = true && this.isSetTableName();
25969       boolean that_present_tableName = true && that.isSetTableName();
25970       if (this_present_tableName || that_present_tableName) {
25971         if (!(this_present_tableName && that_present_tableName))
25972           return false;
25973         if (!this.tableName.equals(that.tableName))
25974           return false;
25975       }
25976 
25977       boolean this_present_rows = true && this.isSetRows();
25978       boolean that_present_rows = true && that.isSetRows();
25979       if (this_present_rows || that_present_rows) {
25980         if (!(this_present_rows && that_present_rows))
25981           return false;
25982         if (!this.rows.equals(that.rows))
25983           return false;
25984       }
25985 
25986       boolean this_present_timestamp = true;
25987       boolean that_present_timestamp = true;
25988       if (this_present_timestamp || that_present_timestamp) {
25989         if (!(this_present_timestamp && that_present_timestamp))
25990           return false;
25991         if (this.timestamp != that.timestamp)
25992           return false;
25993       }
25994 
25995       boolean this_present_attributes = true && this.isSetAttributes();
25996       boolean that_present_attributes = true && that.isSetAttributes();
25997       if (this_present_attributes || that_present_attributes) {
25998         if (!(this_present_attributes && that_present_attributes))
25999           return false;
26000         if (!this.attributes.equals(that.attributes))
26001           return false;
26002       }
26003 
26004       return true;
26005     }
26006 
26007     @Override
26008     public int hashCode() {
26009       HashCodeBuilder builder = new HashCodeBuilder();
26010 
26011       boolean present_tableName = true && (isSetTableName());
26012       builder.append(present_tableName);
26013       if (present_tableName)
26014         builder.append(tableName);
26015 
26016       boolean present_rows = true && (isSetRows());
26017       builder.append(present_rows);
26018       if (present_rows)
26019         builder.append(rows);
26020 
26021       boolean present_timestamp = true;
26022       builder.append(present_timestamp);
26023       if (present_timestamp)
26024         builder.append(timestamp);
26025 
26026       boolean present_attributes = true && (isSetAttributes());
26027       builder.append(present_attributes);
26028       if (present_attributes)
26029         builder.append(attributes);
26030 
26031       return builder.toHashCode();
26032     }
26033 
26034     public int compareTo(getRowsTs_args other) {
26035       if (!getClass().equals(other.getClass())) {
26036         return getClass().getName().compareTo(other.getClass().getName());
26037       }
26038 
26039       int lastComparison = 0;
26040       getRowsTs_args typedOther = (getRowsTs_args)other;
26041 
26042       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
26043       if (lastComparison != 0) {
26044         return lastComparison;
26045       }
26046       if (isSetTableName()) {
26047         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
26048         if (lastComparison != 0) {
26049           return lastComparison;
26050         }
26051       }
26052       lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
26053       if (lastComparison != 0) {
26054         return lastComparison;
26055       }
26056       if (isSetRows()) {
26057         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
26058         if (lastComparison != 0) {
26059           return lastComparison;
26060         }
26061       }
26062       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
26063       if (lastComparison != 0) {
26064         return lastComparison;
26065       }
26066       if (isSetTimestamp()) {
26067         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
26068         if (lastComparison != 0) {
26069           return lastComparison;
26070         }
26071       }
26072       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
26073       if (lastComparison != 0) {
26074         return lastComparison;
26075       }
26076       if (isSetAttributes()) {
26077         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
26078         if (lastComparison != 0) {
26079           return lastComparison;
26080         }
26081       }
26082       return 0;
26083     }
26084 
26085     public _Fields fieldForId(int fieldId) {
26086       return _Fields.findByThriftId(fieldId);
26087     }
26088 
26089     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26090       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26091     }
26092 
26093     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26094       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26095     }
26096 
26097     @Override
26098     public String toString() {
26099       StringBuilder sb = new StringBuilder("getRowsTs_args(");
26100       boolean first = true;
26101 
26102       sb.append("tableName:");
26103       if (this.tableName == null) {
26104         sb.append("null");
26105       } else {
26106         sb.append(this.tableName);
26107       }
26108       first = false;
26109       if (!first) sb.append(", ");
26110       sb.append("rows:");
26111       if (this.rows == null) {
26112         sb.append("null");
26113       } else {
26114         sb.append(this.rows);
26115       }
26116       first = false;
26117       if (!first) sb.append(", ");
26118       sb.append("timestamp:");
26119       sb.append(this.timestamp);
26120       first = false;
26121       if (!first) sb.append(", ");
26122       sb.append("attributes:");
26123       if (this.attributes == null) {
26124         sb.append("null");
26125       } else {
26126         sb.append(this.attributes);
26127       }
26128       first = false;
26129       sb.append(")");
26130       return sb.toString();
26131     }
26132 
26133     public void validate() throws org.apache.thrift.TException {
26134       // check for required fields
26135       // check for sub-struct validity
26136     }
26137 
26138     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26139       try {
26140         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26141       } catch (org.apache.thrift.TException te) {
26142         throw new java.io.IOException(te);
26143       }
26144     }
26145 
26146     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26147       try {
26148         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26149         __isset_bitfield = 0;
26150         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26151       } catch (org.apache.thrift.TException te) {
26152         throw new java.io.IOException(te);
26153       }
26154     }
26155 
26156     private static class getRowsTs_argsStandardSchemeFactory implements SchemeFactory {
26157       public getRowsTs_argsStandardScheme getScheme() {
26158         return new getRowsTs_argsStandardScheme();
26159       }
26160     }
26161 
26162     private static class getRowsTs_argsStandardScheme extends StandardScheme<getRowsTs_args> {
26163 
26164       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_args struct) throws org.apache.thrift.TException {
26165         org.apache.thrift.protocol.TField schemeField;
26166         iprot.readStructBegin();
26167         while (true)
26168         {
26169           schemeField = iprot.readFieldBegin();
26170           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
26171             break;
26172           }
26173           switch (schemeField.id) {
26174             case 1: // TABLE_NAME
26175               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26176                 struct.tableName = iprot.readBinary();
26177                 struct.setTableNameIsSet(true);
26178               } else { 
26179                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26180               }
26181               break;
26182             case 2: // ROWS
26183               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
26184                 {
26185                   org.apache.thrift.protocol.TList _list286 = iprot.readListBegin();
26186                   struct.rows = new ArrayList<ByteBuffer>(_list286.size);
26187                   for (int _i287 = 0; _i287 < _list286.size; ++_i287)
26188                   {
26189                     ByteBuffer _elem288; // required
26190                     _elem288 = iprot.readBinary();
26191                     struct.rows.add(_elem288);
26192                   }
26193                   iprot.readListEnd();
26194                 }
26195                 struct.setRowsIsSet(true);
26196               } else { 
26197                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26198               }
26199               break;
26200             case 3: // TIMESTAMP
26201               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
26202                 struct.timestamp = iprot.readI64();
26203                 struct.setTimestampIsSet(true);
26204               } else { 
26205                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26206               }
26207               break;
26208             case 4: // ATTRIBUTES
26209               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
26210                 {
26211                   org.apache.thrift.protocol.TMap _map289 = iprot.readMapBegin();
26212                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map289.size);
26213                   for (int _i290 = 0; _i290 < _map289.size; ++_i290)
26214                   {
26215                     ByteBuffer _key291; // required
26216                     ByteBuffer _val292; // required
26217                     _key291 = iprot.readBinary();
26218                     _val292 = iprot.readBinary();
26219                     struct.attributes.put(_key291, _val292);
26220                   }
26221                   iprot.readMapEnd();
26222                 }
26223                 struct.setAttributesIsSet(true);
26224               } else { 
26225                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26226               }
26227               break;
26228             default:
26229               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26230           }
26231           iprot.readFieldEnd();
26232         }
26233         iprot.readStructEnd();
26234 
26235         // check for required fields of primitive type, which can't be checked in the validate method
26236         struct.validate();
26237       }
26238 
26239       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_args struct) throws org.apache.thrift.TException {
26240         struct.validate();
26241 
26242         oprot.writeStructBegin(STRUCT_DESC);
26243         if (struct.tableName != null) {
26244           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
26245           oprot.writeBinary(struct.tableName);
26246           oprot.writeFieldEnd();
26247         }
26248         if (struct.rows != null) {
26249           oprot.writeFieldBegin(ROWS_FIELD_DESC);
26250           {
26251             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
26252             for (ByteBuffer _iter293 : struct.rows)
26253             {
26254               oprot.writeBinary(_iter293);
26255             }
26256             oprot.writeListEnd();
26257           }
26258           oprot.writeFieldEnd();
26259         }
26260         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
26261         oprot.writeI64(struct.timestamp);
26262         oprot.writeFieldEnd();
26263         if (struct.attributes != null) {
26264           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
26265           {
26266             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
26267             for (Map.Entry<ByteBuffer, ByteBuffer> _iter294 : struct.attributes.entrySet())
26268             {
26269               oprot.writeBinary(_iter294.getKey());
26270               oprot.writeBinary(_iter294.getValue());
26271             }
26272             oprot.writeMapEnd();
26273           }
26274           oprot.writeFieldEnd();
26275         }
26276         oprot.writeFieldStop();
26277         oprot.writeStructEnd();
26278       }
26279 
26280     }
26281 
26282     private static class getRowsTs_argsTupleSchemeFactory implements SchemeFactory {
26283       public getRowsTs_argsTupleScheme getScheme() {
26284         return new getRowsTs_argsTupleScheme();
26285       }
26286     }
26287 
26288     private static class getRowsTs_argsTupleScheme extends TupleScheme<getRowsTs_args> {
26289 
26290       @Override
26291       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException {
26292         TTupleProtocol oprot = (TTupleProtocol) prot;
26293         BitSet optionals = new BitSet();
26294         if (struct.isSetTableName()) {
26295           optionals.set(0);
26296         }
26297         if (struct.isSetRows()) {
26298           optionals.set(1);
26299         }
26300         if (struct.isSetTimestamp()) {
26301           optionals.set(2);
26302         }
26303         if (struct.isSetAttributes()) {
26304           optionals.set(3);
26305         }
26306         oprot.writeBitSet(optionals, 4);
26307         if (struct.isSetTableName()) {
26308           oprot.writeBinary(struct.tableName);
26309         }
26310         if (struct.isSetRows()) {
26311           {
26312             oprot.writeI32(struct.rows.size());
26313             for (ByteBuffer _iter295 : struct.rows)
26314             {
26315               oprot.writeBinary(_iter295);
26316             }
26317           }
26318         }
26319         if (struct.isSetTimestamp()) {
26320           oprot.writeI64(struct.timestamp);
26321         }
26322         if (struct.isSetAttributes()) {
26323           {
26324             oprot.writeI32(struct.attributes.size());
26325             for (Map.Entry<ByteBuffer, ByteBuffer> _iter296 : struct.attributes.entrySet())
26326             {
26327               oprot.writeBinary(_iter296.getKey());
26328               oprot.writeBinary(_iter296.getValue());
26329             }
26330           }
26331         }
26332       }
26333 
26334       @Override
26335       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException {
26336         TTupleProtocol iprot = (TTupleProtocol) prot;
26337         BitSet incoming = iprot.readBitSet(4);
26338         if (incoming.get(0)) {
26339           struct.tableName = iprot.readBinary();
26340           struct.setTableNameIsSet(true);
26341         }
26342         if (incoming.get(1)) {
26343           {
26344             org.apache.thrift.protocol.TList _list297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
26345             struct.rows = new ArrayList<ByteBuffer>(_list297.size);
26346             for (int _i298 = 0; _i298 < _list297.size; ++_i298)
26347             {
26348               ByteBuffer _elem299; // required
26349               _elem299 = iprot.readBinary();
26350               struct.rows.add(_elem299);
26351             }
26352           }
26353           struct.setRowsIsSet(true);
26354         }
26355         if (incoming.get(2)) {
26356           struct.timestamp = iprot.readI64();
26357           struct.setTimestampIsSet(true);
26358         }
26359         if (incoming.get(3)) {
26360           {
26361             org.apache.thrift.protocol.TMap _map300 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
26362             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map300.size);
26363             for (int _i301 = 0; _i301 < _map300.size; ++_i301)
26364             {
26365               ByteBuffer _key302; // required
26366               ByteBuffer _val303; // required
26367               _key302 = iprot.readBinary();
26368               _val303 = iprot.readBinary();
26369               struct.attributes.put(_key302, _val303);
26370             }
26371           }
26372           struct.setAttributesIsSet(true);
26373         }
26374       }
26375     }
26376 
26377   }
26378 
26379   public static class getRowsTs_result implements org.apache.thrift.TBase<getRowsTs_result, getRowsTs_result._Fields>, java.io.Serializable, Cloneable   {
26380     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_result");
26381 
26382     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
26383     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26384 
26385     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26386     static {
26387       schemes.put(StandardScheme.class, new getRowsTs_resultStandardSchemeFactory());
26388       schemes.put(TupleScheme.class, new getRowsTs_resultTupleSchemeFactory());
26389     }
26390 
26391     public List<TRowResult> success; // required
26392     public IOError io; // required
26393 
26394     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26395     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26396       SUCCESS((short)0, "success"),
26397       IO((short)1, "io");
26398 
26399       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26400 
26401       static {
26402         for (_Fields field : EnumSet.allOf(_Fields.class)) {
26403           byName.put(field.getFieldName(), field);
26404         }
26405       }
26406 
26407       /**
26408        * Find the _Fields constant that matches fieldId, or null if its not found.
26409        */
26410       public static _Fields findByThriftId(int fieldId) {
26411         switch(fieldId) {
26412           case 0: // SUCCESS
26413             return SUCCESS;
26414           case 1: // IO
26415             return IO;
26416           default:
26417             return null;
26418         }
26419       }
26420 
26421       /**
26422        * Find the _Fields constant that matches fieldId, throwing an exception
26423        * if it is not found.
26424        */
26425       public static _Fields findByThriftIdOrThrow(int fieldId) {
26426         _Fields fields = findByThriftId(fieldId);
26427         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26428         return fields;
26429       }
26430 
26431       /**
26432        * Find the _Fields constant that matches name, or null if its not found.
26433        */
26434       public static _Fields findByName(String name) {
26435         return byName.get(name);
26436       }
26437 
26438       private final short _thriftId;
26439       private final String _fieldName;
26440 
26441       _Fields(short thriftId, String fieldName) {
26442         _thriftId = thriftId;
26443         _fieldName = fieldName;
26444       }
26445 
26446       public short getThriftFieldId() {
26447         return _thriftId;
26448       }
26449 
26450       public String getFieldName() {
26451         return _fieldName;
26452       }
26453     }
26454 
26455     // isset id assignments
26456     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26457     static {
26458       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26459       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26460           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26461               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
26462       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26463           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26464       metaDataMap = Collections.unmodifiableMap(tmpMap);
26465       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_result.class, metaDataMap);
26466     }
26467 
26468     public getRowsTs_result() {
26469     }
26470 
26471     public getRowsTs_result(
26472       List<TRowResult> success,
26473       IOError io)
26474     {
26475       this();
26476       this.success = success;
26477       this.io = io;
26478     }
26479 
26480     /**
26481      * Performs a deep copy on <i>other</i>.
26482      */
26483     public getRowsTs_result(getRowsTs_result other) {
26484       if (other.isSetSuccess()) {
26485         List<TRowResult> __this__success = new ArrayList<TRowResult>();
26486         for (TRowResult other_element : other.success) {
26487           __this__success.add(new TRowResult(other_element));
26488         }
26489         this.success = __this__success;
26490       }
26491       if (other.isSetIo()) {
26492         this.io = new IOError(other.io);
26493       }
26494     }
26495 
26496     public getRowsTs_result deepCopy() {
26497       return new getRowsTs_result(this);
26498     }
26499 
26500     @Override
26501     public void clear() {
26502       this.success = null;
26503       this.io = null;
26504     }
26505 
26506     public int getSuccessSize() {
26507       return (this.success == null) ? 0 : this.success.size();
26508     }
26509 
26510     public java.util.Iterator<TRowResult> getSuccessIterator() {
26511       return (this.success == null) ? null : this.success.iterator();
26512     }
26513 
26514     public void addToSuccess(TRowResult elem) {
26515       if (this.success == null) {
26516         this.success = new ArrayList<TRowResult>();
26517       }
26518       this.success.add(elem);
26519     }
26520 
26521     public List<TRowResult> getSuccess() {
26522       return this.success;
26523     }
26524 
26525     public getRowsTs_result setSuccess(List<TRowResult> success) {
26526       this.success = success;
26527       return this;
26528     }
26529 
26530     public void unsetSuccess() {
26531       this.success = null;
26532     }
26533 
26534     /** Returns true if field success is set (has been assigned a value) and false otherwise */
26535     public boolean isSetSuccess() {
26536       return this.success != null;
26537     }
26538 
26539     public void setSuccessIsSet(boolean value) {
26540       if (!value) {
26541         this.success = null;
26542       }
26543     }
26544 
26545     public IOError getIo() {
26546       return this.io;
26547     }
26548 
26549     public getRowsTs_result setIo(IOError io) {
26550       this.io = io;
26551       return this;
26552     }
26553 
26554     public void unsetIo() {
26555       this.io = null;
26556     }
26557 
26558     /** Returns true if field io is set (has been assigned a value) and false otherwise */
26559     public boolean isSetIo() {
26560       return this.io != null;
26561     }
26562 
26563     public void setIoIsSet(boolean value) {
26564       if (!value) {
26565         this.io = null;
26566       }
26567     }
26568 
26569     public void setFieldValue(_Fields field, Object value) {
26570       switch (field) {
26571       case SUCCESS:
26572         if (value == null) {
26573           unsetSuccess();
26574         } else {
26575           setSuccess((List<TRowResult>)value);
26576         }
26577         break;
26578 
26579       case IO:
26580         if (value == null) {
26581           unsetIo();
26582         } else {
26583           setIo((IOError)value);
26584         }
26585         break;
26586 
26587       }
26588     }
26589 
26590     public Object getFieldValue(_Fields field) {
26591       switch (field) {
26592       case SUCCESS:
26593         return getSuccess();
26594 
26595       case IO:
26596         return getIo();
26597 
26598       }
26599       throw new IllegalStateException();
26600     }
26601 
26602     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26603     public boolean isSet(_Fields field) {
26604       if (field == null) {
26605         throw new IllegalArgumentException();
26606       }
26607 
26608       switch (field) {
26609       case SUCCESS:
26610         return isSetSuccess();
26611       case IO:
26612         return isSetIo();
26613       }
26614       throw new IllegalStateException();
26615     }
26616 
26617     @Override
26618     public boolean equals(Object that) {
26619       if (that == null)
26620         return false;
26621       if (that instanceof getRowsTs_result)
26622         return this.equals((getRowsTs_result)that);
26623       return false;
26624     }
26625 
26626     public boolean equals(getRowsTs_result that) {
26627       if (that == null)
26628         return false;
26629 
26630       boolean this_present_success = true && this.isSetSuccess();
26631       boolean that_present_success = true && that.isSetSuccess();
26632       if (this_present_success || that_present_success) {
26633         if (!(this_present_success && that_present_success))
26634           return false;
26635         if (!this.success.equals(that.success))
26636           return false;
26637       }
26638 
26639       boolean this_present_io = true && this.isSetIo();
26640       boolean that_present_io = true && that.isSetIo();
26641       if (this_present_io || that_present_io) {
26642         if (!(this_present_io && that_present_io))
26643           return false;
26644         if (!this.io.equals(that.io))
26645           return false;
26646       }
26647 
26648       return true;
26649     }
26650 
26651     @Override
26652     public int hashCode() {
26653       HashCodeBuilder builder = new HashCodeBuilder();
26654 
26655       boolean present_success = true && (isSetSuccess());
26656       builder.append(present_success);
26657       if (present_success)
26658         builder.append(success);
26659 
26660       boolean present_io = true && (isSetIo());
26661       builder.append(present_io);
26662       if (present_io)
26663         builder.append(io);
26664 
26665       return builder.toHashCode();
26666     }
26667 
26668     public int compareTo(getRowsTs_result other) {
26669       if (!getClass().equals(other.getClass())) {
26670         return getClass().getName().compareTo(other.getClass().getName());
26671       }
26672 
26673       int lastComparison = 0;
26674       getRowsTs_result typedOther = (getRowsTs_result)other;
26675 
26676       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26677       if (lastComparison != 0) {
26678         return lastComparison;
26679       }
26680       if (isSetSuccess()) {
26681         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26682         if (lastComparison != 0) {
26683           return lastComparison;
26684         }
26685       }
26686       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
26687       if (lastComparison != 0) {
26688         return lastComparison;
26689       }
26690       if (isSetIo()) {
26691         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
26692         if (lastComparison != 0) {
26693           return lastComparison;
26694         }
26695       }
26696       return 0;
26697     }
26698 
26699     public _Fields fieldForId(int fieldId) {
26700       return _Fields.findByThriftId(fieldId);
26701     }
26702 
26703     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26704       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26705     }
26706 
26707     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26708       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26709       }
26710 
26711     @Override
26712     public String toString() {
26713       StringBuilder sb = new StringBuilder("getRowsTs_result(");
26714       boolean first = true;
26715 
26716       sb.append("success:");
26717       if (this.success == null) {
26718         sb.append("null");
26719       } else {
26720         sb.append(this.success);
26721       }
26722       first = false;
26723       if (!first) sb.append(", ");
26724       sb.append("io:");
26725       if (this.io == null) {
26726         sb.append("null");
26727       } else {
26728         sb.append(this.io);
26729       }
26730       first = false;
26731       sb.append(")");
26732       return sb.toString();
26733     }
26734 
26735     public void validate() throws org.apache.thrift.TException {
26736       // check for required fields
26737       // check for sub-struct validity
26738     }
26739 
26740     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26741       try {
26742         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26743       } catch (org.apache.thrift.TException te) {
26744         throw new java.io.IOException(te);
26745       }
26746     }
26747 
26748     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26749       try {
26750         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26751       } catch (org.apache.thrift.TException te) {
26752         throw new java.io.IOException(te);
26753       }
26754     }
26755 
26756     private static class getRowsTs_resultStandardSchemeFactory implements SchemeFactory {
26757       public getRowsTs_resultStandardScheme getScheme() {
26758         return new getRowsTs_resultStandardScheme();
26759       }
26760     }
26761 
26762     private static class getRowsTs_resultStandardScheme extends StandardScheme<getRowsTs_result> {
26763 
26764       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_result struct) throws org.apache.thrift.TException {
26765         org.apache.thrift.protocol.TField schemeField;
26766         iprot.readStructBegin();
26767         while (true)
26768         {
26769           schemeField = iprot.readFieldBegin();
26770           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
26771             break;
26772           }
26773           switch (schemeField.id) {
26774             case 0: // SUCCESS
26775               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
26776                 {
26777                   org.apache.thrift.protocol.TList _list304 = iprot.readListBegin();
26778                   struct.success = new ArrayList<TRowResult>(_list304.size);
26779                   for (int _i305 = 0; _i305 < _list304.size; ++_i305)
26780                   {
26781                     TRowResult _elem306; // required
26782                     _elem306 = new TRowResult();
26783                     _elem306.read(iprot);
26784                     struct.success.add(_elem306);
26785                   }
26786                   iprot.readListEnd();
26787                 }
26788                 struct.setSuccessIsSet(true);
26789               } else { 
26790                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26791               }
26792               break;
26793             case 1: // IO
26794               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26795                 struct.io = new IOError();
26796                 struct.io.read(iprot);
26797                 struct.setIoIsSet(true);
26798               } else { 
26799                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26800               }
26801               break;
26802             default:
26803               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26804           }
26805           iprot.readFieldEnd();
26806         }
26807         iprot.readStructEnd();
26808 
26809         // check for required fields of primitive type, which can't be checked in the validate method
26810         struct.validate();
26811       }
26812 
26813       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_result struct) throws org.apache.thrift.TException {
26814         struct.validate();
26815 
26816         oprot.writeStructBegin(STRUCT_DESC);
26817         if (struct.success != null) {
26818           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26819           {
26820             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
26821             for (TRowResult _iter307 : struct.success)
26822             {
26823               _iter307.write(oprot);
26824             }
26825             oprot.writeListEnd();
26826           }
26827           oprot.writeFieldEnd();
26828         }
26829         if (struct.io != null) {
26830           oprot.writeFieldBegin(IO_FIELD_DESC);
26831           struct.io.write(oprot);
26832           oprot.writeFieldEnd();
26833         }
26834         oprot.writeFieldStop();
26835         oprot.writeStructEnd();
26836       }
26837 
26838     }
26839 
26840     private static class getRowsTs_resultTupleSchemeFactory implements SchemeFactory {
26841       public getRowsTs_resultTupleScheme getScheme() {
26842         return new getRowsTs_resultTupleScheme();
26843       }
26844     }
26845 
26846     private static class getRowsTs_resultTupleScheme extends TupleScheme<getRowsTs_result> {
26847 
26848       @Override
26849       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException {
26850         TTupleProtocol oprot = (TTupleProtocol) prot;
26851         BitSet optionals = new BitSet();
26852         if (struct.isSetSuccess()) {
26853           optionals.set(0);
26854         }
26855         if (struct.isSetIo()) {
26856           optionals.set(1);
26857         }
26858         oprot.writeBitSet(optionals, 2);
26859         if (struct.isSetSuccess()) {
26860           {
26861             oprot.writeI32(struct.success.size());
26862             for (TRowResult _iter308 : struct.success)
26863             {
26864               _iter308.write(oprot);
26865             }
26866           }
26867         }
26868         if (struct.isSetIo()) {
26869           struct.io.write(oprot);
26870         }
26871       }
26872 
26873       @Override
26874       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException {
26875         TTupleProtocol iprot = (TTupleProtocol) prot;
26876         BitSet incoming = iprot.readBitSet(2);
26877         if (incoming.get(0)) {
26878           {
26879             org.apache.thrift.protocol.TList _list309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
26880             struct.success = new ArrayList<TRowResult>(_list309.size);
26881             for (int _i310 = 0; _i310 < _list309.size; ++_i310)
26882             {
26883               TRowResult _elem311; // required
26884               _elem311 = new TRowResult();
26885               _elem311.read(iprot);
26886               struct.success.add(_elem311);
26887             }
26888           }
26889           struct.setSuccessIsSet(true);
26890         }
26891         if (incoming.get(1)) {
26892           struct.io = new IOError();
26893           struct.io.read(iprot);
26894           struct.setIoIsSet(true);
26895         }
26896       }
26897     }
26898 
26899   }
26900 
26901   public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase<getRowsWithColumnsTs_args, getRowsWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable   {
26902     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_args");
26903 
26904     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
26905     private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
26906     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
26907     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
26908     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
26909 
26910     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26911     static {
26912       schemes.put(StandardScheme.class, new getRowsWithColumnsTs_argsStandardSchemeFactory());
26913       schemes.put(TupleScheme.class, new getRowsWithColumnsTs_argsTupleSchemeFactory());
26914     }
26915 
26916     /**
26917      * name of table
26918      */
26919     public ByteBuffer tableName; // required
26920     /**
26921      * row keys
26922      */
26923     public List<ByteBuffer> rows; // required
26924     /**
26925      * List of columns to return, null for all columns
26926      */
26927     public List<ByteBuffer> columns; // required
26928     public long timestamp; // required
26929     /**
26930      * Get attributes
26931      */
26932     public Map<ByteBuffer,ByteBuffer> attributes; // required
26933 
26934     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26935     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26936       /**
26937        * name of table
26938        */
26939       TABLE_NAME((short)1, "tableName"),
26940       /**
26941        * row keys
26942        */
26943       ROWS((short)2, "rows"),
26944       /**
26945        * List of columns to return, null for all columns
26946        */
26947       COLUMNS((short)3, "columns"),
26948       TIMESTAMP((short)4, "timestamp"),
26949       /**
26950        * Get attributes
26951        */
26952       ATTRIBUTES((short)5, "attributes");
26953 
26954       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26955 
26956       static {
26957         for (_Fields field : EnumSet.allOf(_Fields.class)) {
26958           byName.put(field.getFieldName(), field);
26959         }
26960       }
26961 
26962       /**
26963        * Find the _Fields constant that matches fieldId, or null if its not found.
26964        */
26965       public static _Fields findByThriftId(int fieldId) {
26966         switch(fieldId) {
26967           case 1: // TABLE_NAME
26968             return TABLE_NAME;
26969           case 2: // ROWS
26970             return ROWS;
26971           case 3: // COLUMNS
26972             return COLUMNS;
26973           case 4: // TIMESTAMP
26974             return TIMESTAMP;
26975           case 5: // ATTRIBUTES
26976             return ATTRIBUTES;
26977           default:
26978             return null;
26979         }
26980       }
26981 
26982       /**
26983        * Find the _Fields constant that matches fieldId, throwing an exception
26984        * if it is not found.
26985        */
26986       public static _Fields findByThriftIdOrThrow(int fieldId) {
26987         _Fields fields = findByThriftId(fieldId);
26988         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26989         return fields;
26990       }
26991 
26992       /**
26993        * Find the _Fields constant that matches name, or null if its not found.
26994        */
26995       public static _Fields findByName(String name) {
26996         return byName.get(name);
26997       }
26998 
26999       private final short _thriftId;
27000       private final String _fieldName;
27001 
27002       _Fields(short thriftId, String fieldName) {
27003         _thriftId = thriftId;
27004         _fieldName = fieldName;
27005       }
27006 
27007       public short getThriftFieldId() {
27008         return _thriftId;
27009       }
27010 
27011       public String getFieldName() {
27012         return _fieldName;
27013       }
27014     }
27015 
27016     // isset id assignments
27017     private static final int __TIMESTAMP_ISSET_ID = 0;
27018     private byte __isset_bitfield = 0;
27019     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27020     static {
27021       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27022       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27023           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
27024       tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27025           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27026               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
27027       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27028           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27029               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
27030       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27031           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27032       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27033           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
27034               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
27035               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
27036       metaDataMap = Collections.unmodifiableMap(tmpMap);
27037       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_args.class, metaDataMap);
27038     }
27039 
27040     public getRowsWithColumnsTs_args() {
27041     }
27042 
27043     public getRowsWithColumnsTs_args(
27044       ByteBuffer tableName,
27045       List<ByteBuffer> rows,
27046       List<ByteBuffer> columns,
27047       long timestamp,
27048       Map<ByteBuffer,ByteBuffer> attributes)
27049     {
27050       this();
27051       this.tableName = tableName;
27052       this.rows = rows;
27053       this.columns = columns;
27054       this.timestamp = timestamp;
27055       setTimestampIsSet(true);
27056       this.attributes = attributes;
27057     }
27058 
27059     /**
27060      * Performs a deep copy on <i>other</i>.
27061      */
27062     public getRowsWithColumnsTs_args(getRowsWithColumnsTs_args other) {
27063       __isset_bitfield = other.__isset_bitfield;
27064       if (other.isSetTableName()) {
27065         this.tableName = other.tableName;
27066       }
27067       if (other.isSetRows()) {
27068         List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
27069         for (ByteBuffer other_element : other.rows) {
27070           __this__rows.add(other_element);
27071         }
27072         this.rows = __this__rows;
27073       }
27074       if (other.isSetColumns()) {
27075         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
27076         for (ByteBuffer other_element : other.columns) {
27077           __this__columns.add(other_element);
27078         }
27079         this.columns = __this__columns;
27080       }
27081       this.timestamp = other.timestamp;
27082       if (other.isSetAttributes()) {
27083         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
27084         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
27085 
27086           ByteBuffer other_element_key = other_element.getKey();
27087           ByteBuffer other_element_value = other_element.getValue();
27088 
27089           ByteBuffer __this__attributes_copy_key = other_element_key;
27090 
27091           ByteBuffer __this__attributes_copy_value = other_element_value;
27092 
27093           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
27094         }
27095         this.attributes = __this__attributes;
27096       }
27097     }
27098 
27099     public getRowsWithColumnsTs_args deepCopy() {
27100       return new getRowsWithColumnsTs_args(this);
27101     }
27102 
27103     @Override
27104     public void clear() {
27105       this.tableName = null;
27106       this.rows = null;
27107       this.columns = null;
27108       setTimestampIsSet(false);
27109       this.timestamp = 0;
27110       this.attributes = null;
27111     }
27112 
27113     /**
27114      * name of table
27115      */
27116     public byte[] getTableName() {
27117       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
27118       return tableName == null ? null : tableName.array();
27119     }
27120 
27121     public ByteBuffer bufferForTableName() {
27122       return tableName;
27123     }
27124 
27125     /**
27126      * name of table
27127      */
27128     public getRowsWithColumnsTs_args setTableName(byte[] tableName) {
27129       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
27130       return this;
27131     }
27132 
27133     public getRowsWithColumnsTs_args setTableName(ByteBuffer tableName) {
27134       this.tableName = tableName;
27135       return this;
27136     }
27137 
27138     public void unsetTableName() {
27139       this.tableName = null;
27140     }
27141 
27142     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
27143     public boolean isSetTableName() {
27144       return this.tableName != null;
27145     }
27146 
27147     public void setTableNameIsSet(boolean value) {
27148       if (!value) {
27149         this.tableName = null;
27150       }
27151     }
27152 
27153     public int getRowsSize() {
27154       return (this.rows == null) ? 0 : this.rows.size();
27155     }
27156 
27157     public java.util.Iterator<ByteBuffer> getRowsIterator() {
27158       return (this.rows == null) ? null : this.rows.iterator();
27159     }
27160 
27161     public void addToRows(ByteBuffer elem) {
27162       if (this.rows == null) {
27163         this.rows = new ArrayList<ByteBuffer>();
27164       }
27165       this.rows.add(elem);
27166     }
27167 
27168     /**
27169      * row keys
27170      */
27171     public List<ByteBuffer> getRows() {
27172       return this.rows;
27173     }
27174 
27175     /**
27176      * row keys
27177      */
27178     public getRowsWithColumnsTs_args setRows(List<ByteBuffer> rows) {
27179       this.rows = rows;
27180       return this;
27181     }
27182 
27183     public void unsetRows() {
27184       this.rows = null;
27185     }
27186 
27187     /** Returns true if field rows is set (has been assigned a value) and false otherwise */
27188     public boolean isSetRows() {
27189       return this.rows != null;
27190     }
27191 
27192     public void setRowsIsSet(boolean value) {
27193       if (!value) {
27194         this.rows = null;
27195       }
27196     }
27197 
27198     public int getColumnsSize() {
27199       return (this.columns == null) ? 0 : this.columns.size();
27200     }
27201 
27202     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
27203       return (this.columns == null) ? null : this.columns.iterator();
27204     }
27205 
27206     public void addToColumns(ByteBuffer elem) {
27207       if (this.columns == null) {
27208         this.columns = new ArrayList<ByteBuffer>();
27209       }
27210       this.columns.add(elem);
27211     }
27212 
27213     /**
27214      * List of columns to return, null for all columns
27215      */
27216     public List<ByteBuffer> getColumns() {
27217       return this.columns;
27218     }
27219 
27220     /**
27221      * List of columns to return, null for all columns
27222      */
27223     public getRowsWithColumnsTs_args setColumns(List<ByteBuffer> columns) {
27224       this.columns = columns;
27225       return this;
27226     }
27227 
27228     public void unsetColumns() {
27229       this.columns = null;
27230     }
27231 
27232     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
27233     public boolean isSetColumns() {
27234       return this.columns != null;
27235     }
27236 
27237     public void setColumnsIsSet(boolean value) {
27238       if (!value) {
27239         this.columns = null;
27240       }
27241     }
27242 
27243     public long getTimestamp() {
27244       return this.timestamp;
27245     }
27246 
27247     public getRowsWithColumnsTs_args setTimestamp(long timestamp) {
27248       this.timestamp = timestamp;
27249       setTimestampIsSet(true);
27250       return this;
27251     }
27252 
27253     public void unsetTimestamp() {
27254       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
27255     }
27256 
27257     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
27258     public boolean isSetTimestamp() {
27259       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
27260     }
27261 
27262     public void setTimestampIsSet(boolean value) {
27263       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
27264     }
27265 
27266     public int getAttributesSize() {
27267       return (this.attributes == null) ? 0 : this.attributes.size();
27268     }
27269 
27270     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
27271       if (this.attributes == null) {
27272         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
27273       }
27274       this.attributes.put(key, val);
27275     }
27276 
27277     /**
27278      * Get attributes
27279      */
27280     public Map<ByteBuffer,ByteBuffer> getAttributes() {
27281       return this.attributes;
27282     }
27283 
27284     /**
27285      * Get attributes
27286      */
27287     public getRowsWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
27288       this.attributes = attributes;
27289       return this;
27290     }
27291 
27292     public void unsetAttributes() {
27293       this.attributes = null;
27294     }
27295 
27296     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
27297     public boolean isSetAttributes() {
27298       return this.attributes != null;
27299     }
27300 
27301     public void setAttributesIsSet(boolean value) {
27302       if (!value) {
27303         this.attributes = null;
27304       }
27305     }
27306 
27307     public void setFieldValue(_Fields field, Object value) {
27308       switch (field) {
27309       case TABLE_NAME:
27310         if (value == null) {
27311           unsetTableName();
27312         } else {
27313           setTableName((ByteBuffer)value);
27314         }
27315         break;
27316 
27317       case ROWS:
27318         if (value == null) {
27319           unsetRows();
27320         } else {
27321           setRows((List<ByteBuffer>)value);
27322         }
27323         break;
27324 
27325       case COLUMNS:
27326         if (value == null) {
27327           unsetColumns();
27328         } else {
27329           setColumns((List<ByteBuffer>)value);
27330         }
27331         break;
27332 
27333       case TIMESTAMP:
27334         if (value == null) {
27335           unsetTimestamp();
27336         } else {
27337           setTimestamp((Long)value);
27338         }
27339         break;
27340 
27341       case ATTRIBUTES:
27342         if (value == null) {
27343           unsetAttributes();
27344         } else {
27345           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
27346         }
27347         break;
27348 
27349       }
27350     }
27351 
27352     public Object getFieldValue(_Fields field) {
27353       switch (field) {
27354       case TABLE_NAME:
27355         return getTableName();
27356 
27357       case ROWS:
27358         return getRows();
27359 
27360       case COLUMNS:
27361         return getColumns();
27362 
27363       case TIMESTAMP:
27364         return Long.valueOf(getTimestamp());
27365 
27366       case ATTRIBUTES:
27367         return getAttributes();
27368 
27369       }
27370       throw new IllegalStateException();
27371     }
27372 
27373     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27374     public boolean isSet(_Fields field) {
27375       if (field == null) {
27376         throw new IllegalArgumentException();
27377       }
27378 
27379       switch (field) {
27380       case TABLE_NAME:
27381         return isSetTableName();
27382       case ROWS:
27383         return isSetRows();
27384       case COLUMNS:
27385         return isSetColumns();
27386       case TIMESTAMP:
27387         return isSetTimestamp();
27388       case ATTRIBUTES:
27389         return isSetAttributes();
27390       }
27391       throw new IllegalStateException();
27392     }
27393 
27394     @Override
27395     public boolean equals(Object that) {
27396       if (that == null)
27397         return false;
27398       if (that instanceof getRowsWithColumnsTs_args)
27399         return this.equals((getRowsWithColumnsTs_args)that);
27400       return false;
27401     }
27402 
27403     public boolean equals(getRowsWithColumnsTs_args that) {
27404       if (that == null)
27405         return false;
27406 
27407       boolean this_present_tableName = true && this.isSetTableName();
27408       boolean that_present_tableName = true && that.isSetTableName();
27409       if (this_present_tableName || that_present_tableName) {
27410         if (!(this_present_tableName && that_present_tableName))
27411           return false;
27412         if (!this.tableName.equals(that.tableName))
27413           return false;
27414       }
27415 
27416       boolean this_present_rows = true && this.isSetRows();
27417       boolean that_present_rows = true && that.isSetRows();
27418       if (this_present_rows || that_present_rows) {
27419         if (!(this_present_rows && that_present_rows))
27420           return false;
27421         if (!this.rows.equals(that.rows))
27422           return false;
27423       }
27424 
27425       boolean this_present_columns = true && this.isSetColumns();
27426       boolean that_present_columns = true && that.isSetColumns();
27427       if (this_present_columns || that_present_columns) {
27428         if (!(this_present_columns && that_present_columns))
27429           return false;
27430         if (!this.columns.equals(that.columns))
27431           return false;
27432       }
27433 
27434       boolean this_present_timestamp = true;
27435       boolean that_present_timestamp = true;
27436       if (this_present_timestamp || that_present_timestamp) {
27437         if (!(this_present_timestamp && that_present_timestamp))
27438           return false;
27439         if (this.timestamp != that.timestamp)
27440           return false;
27441       }
27442 
27443       boolean this_present_attributes = true && this.isSetAttributes();
27444       boolean that_present_attributes = true && that.isSetAttributes();
27445       if (this_present_attributes || that_present_attributes) {
27446         if (!(this_present_attributes && that_present_attributes))
27447           return false;
27448         if (!this.attributes.equals(that.attributes))
27449           return false;
27450       }
27451 
27452       return true;
27453     }
27454 
27455     @Override
27456     public int hashCode() {
27457       HashCodeBuilder builder = new HashCodeBuilder();
27458 
27459       boolean present_tableName = true && (isSetTableName());
27460       builder.append(present_tableName);
27461       if (present_tableName)
27462         builder.append(tableName);
27463 
27464       boolean present_rows = true && (isSetRows());
27465       builder.append(present_rows);
27466       if (present_rows)
27467         builder.append(rows);
27468 
27469       boolean present_columns = true && (isSetColumns());
27470       builder.append(present_columns);
27471       if (present_columns)
27472         builder.append(columns);
27473 
27474       boolean present_timestamp = true;
27475       builder.append(present_timestamp);
27476       if (present_timestamp)
27477         builder.append(timestamp);
27478 
27479       boolean present_attributes = true && (isSetAttributes());
27480       builder.append(present_attributes);
27481       if (present_attributes)
27482         builder.append(attributes);
27483 
27484       return builder.toHashCode();
27485     }
27486 
27487     public int compareTo(getRowsWithColumnsTs_args other) {
27488       if (!getClass().equals(other.getClass())) {
27489         return getClass().getName().compareTo(other.getClass().getName());
27490       }
27491 
27492       int lastComparison = 0;
27493       getRowsWithColumnsTs_args typedOther = (getRowsWithColumnsTs_args)other;
27494 
27495       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
27496       if (lastComparison != 0) {
27497         return lastComparison;
27498       }
27499       if (isSetTableName()) {
27500         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
27501         if (lastComparison != 0) {
27502           return lastComparison;
27503         }
27504       }
27505       lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
27506       if (lastComparison != 0) {
27507         return lastComparison;
27508       }
27509       if (isSetRows()) {
27510         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
27511         if (lastComparison != 0) {
27512           return lastComparison;
27513         }
27514       }
27515       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
27516       if (lastComparison != 0) {
27517         return lastComparison;
27518       }
27519       if (isSetColumns()) {
27520         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
27521         if (lastComparison != 0) {
27522           return lastComparison;
27523         }
27524       }
27525       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
27526       if (lastComparison != 0) {
27527         return lastComparison;
27528       }
27529       if (isSetTimestamp()) {
27530         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
27531         if (lastComparison != 0) {
27532           return lastComparison;
27533         }
27534       }
27535       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
27536       if (lastComparison != 0) {
27537         return lastComparison;
27538       }
27539       if (isSetAttributes()) {
27540         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
27541         if (lastComparison != 0) {
27542           return lastComparison;
27543         }
27544       }
27545       return 0;
27546     }
27547 
27548     public _Fields fieldForId(int fieldId) {
27549       return _Fields.findByThriftId(fieldId);
27550     }
27551 
27552     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27553       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27554     }
27555 
27556     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27557       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27558     }
27559 
27560     @Override
27561     public String toString() {
27562       StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_args(");
27563       boolean first = true;
27564 
27565       sb.append("tableName:");
27566       if (this.tableName == null) {
27567         sb.append("null");
27568       } else {
27569         sb.append(this.tableName);
27570       }
27571       first = false;
27572       if (!first) sb.append(", ");
27573       sb.append("rows:");
27574       if (this.rows == null) {
27575         sb.append("null");
27576       } else {
27577         sb.append(this.rows);
27578       }
27579       first = false;
27580       if (!first) sb.append(", ");
27581       sb.append("columns:");
27582       if (this.columns == null) {
27583         sb.append("null");
27584       } else {
27585         sb.append(this.columns);
27586       }
27587       first = false;
27588       if (!first) sb.append(", ");
27589       sb.append("timestamp:");
27590       sb.append(this.timestamp);
27591       first = false;
27592       if (!first) sb.append(", ");
27593       sb.append("attributes:");
27594       if (this.attributes == null) {
27595         sb.append("null");
27596       } else {
27597         sb.append(this.attributes);
27598       }
27599       first = false;
27600       sb.append(")");
27601       return sb.toString();
27602     }
27603 
27604     public void validate() throws org.apache.thrift.TException {
27605       // check for required fields
27606       // check for sub-struct validity
27607     }
27608 
27609     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27610       try {
27611         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27612       } catch (org.apache.thrift.TException te) {
27613         throw new java.io.IOException(te);
27614       }
27615     }
27616 
27617     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27618       try {
27619         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27620         __isset_bitfield = 0;
27621         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27622       } catch (org.apache.thrift.TException te) {
27623         throw new java.io.IOException(te);
27624       }
27625     }
27626 
27627     private static class getRowsWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory {
27628       public getRowsWithColumnsTs_argsStandardScheme getScheme() {
27629         return new getRowsWithColumnsTs_argsStandardScheme();
27630       }
27631     }
27632 
27633     private static class getRowsWithColumnsTs_argsStandardScheme extends StandardScheme<getRowsWithColumnsTs_args> {
27634 
27635       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27636         org.apache.thrift.protocol.TField schemeField;
27637         iprot.readStructBegin();
27638         while (true)
27639         {
27640           schemeField = iprot.readFieldBegin();
27641           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
27642             break;
27643           }
27644           switch (schemeField.id) {
27645             case 1: // TABLE_NAME
27646               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
27647                 struct.tableName = iprot.readBinary();
27648                 struct.setTableNameIsSet(true);
27649               } else { 
27650                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27651               }
27652               break;
27653             case 2: // ROWS
27654               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
27655                 {
27656                   org.apache.thrift.protocol.TList _list312 = iprot.readListBegin();
27657                   struct.rows = new ArrayList<ByteBuffer>(_list312.size);
27658                   for (int _i313 = 0; _i313 < _list312.size; ++_i313)
27659                   {
27660                     ByteBuffer _elem314; // required
27661                     _elem314 = iprot.readBinary();
27662                     struct.rows.add(_elem314);
27663                   }
27664                   iprot.readListEnd();
27665                 }
27666                 struct.setRowsIsSet(true);
27667               } else { 
27668                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27669               }
27670               break;
27671             case 3: // COLUMNS
27672               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
27673                 {
27674                   org.apache.thrift.protocol.TList _list315 = iprot.readListBegin();
27675                   struct.columns = new ArrayList<ByteBuffer>(_list315.size);
27676                   for (int _i316 = 0; _i316 < _list315.size; ++_i316)
27677                   {
27678                     ByteBuffer _elem317; // required
27679                     _elem317 = iprot.readBinary();
27680                     struct.columns.add(_elem317);
27681                   }
27682                   iprot.readListEnd();
27683                 }
27684                 struct.setColumnsIsSet(true);
27685               } else { 
27686                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27687               }
27688               break;
27689             case 4: // TIMESTAMP
27690               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
27691                 struct.timestamp = iprot.readI64();
27692                 struct.setTimestampIsSet(true);
27693               } else { 
27694                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27695               }
27696               break;
27697             case 5: // ATTRIBUTES
27698               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
27699                 {
27700                   org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin();
27701                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map318.size);
27702                   for (int _i319 = 0; _i319 < _map318.size; ++_i319)
27703                   {
27704                     ByteBuffer _key320; // required
27705                     ByteBuffer _val321; // required
27706                     _key320 = iprot.readBinary();
27707                     _val321 = iprot.readBinary();
27708                     struct.attributes.put(_key320, _val321);
27709                   }
27710                   iprot.readMapEnd();
27711                 }
27712                 struct.setAttributesIsSet(true);
27713               } else { 
27714                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27715               }
27716               break;
27717             default:
27718               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27719           }
27720           iprot.readFieldEnd();
27721         }
27722         iprot.readStructEnd();
27723 
27724         // check for required fields of primitive type, which can't be checked in the validate method
27725         struct.validate();
27726       }
27727 
27728       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27729         struct.validate();
27730 
27731         oprot.writeStructBegin(STRUCT_DESC);
27732         if (struct.tableName != null) {
27733           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
27734           oprot.writeBinary(struct.tableName);
27735           oprot.writeFieldEnd();
27736         }
27737         if (struct.rows != null) {
27738           oprot.writeFieldBegin(ROWS_FIELD_DESC);
27739           {
27740             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
27741             for (ByteBuffer _iter322 : struct.rows)
27742             {
27743               oprot.writeBinary(_iter322);
27744             }
27745             oprot.writeListEnd();
27746           }
27747           oprot.writeFieldEnd();
27748         }
27749         if (struct.columns != null) {
27750           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
27751           {
27752             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
27753             for (ByteBuffer _iter323 : struct.columns)
27754             {
27755               oprot.writeBinary(_iter323);
27756             }
27757             oprot.writeListEnd();
27758           }
27759           oprot.writeFieldEnd();
27760         }
27761         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
27762         oprot.writeI64(struct.timestamp);
27763         oprot.writeFieldEnd();
27764         if (struct.attributes != null) {
27765           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
27766           {
27767             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
27768             for (Map.Entry<ByteBuffer, ByteBuffer> _iter324 : struct.attributes.entrySet())
27769             {
27770               oprot.writeBinary(_iter324.getKey());
27771               oprot.writeBinary(_iter324.getValue());
27772             }
27773             oprot.writeMapEnd();
27774           }
27775           oprot.writeFieldEnd();
27776         }
27777         oprot.writeFieldStop();
27778         oprot.writeStructEnd();
27779       }
27780 
27781     }
27782 
27783     private static class getRowsWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory {
27784       public getRowsWithColumnsTs_argsTupleScheme getScheme() {
27785         return new getRowsWithColumnsTs_argsTupleScheme();
27786       }
27787     }
27788 
27789     private static class getRowsWithColumnsTs_argsTupleScheme extends TupleScheme<getRowsWithColumnsTs_args> {
27790 
27791       @Override
27792       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27793         TTupleProtocol oprot = (TTupleProtocol) prot;
27794         BitSet optionals = new BitSet();
27795         if (struct.isSetTableName()) {
27796           optionals.set(0);
27797         }
27798         if (struct.isSetRows()) {
27799           optionals.set(1);
27800         }
27801         if (struct.isSetColumns()) {
27802           optionals.set(2);
27803         }
27804         if (struct.isSetTimestamp()) {
27805           optionals.set(3);
27806         }
27807         if (struct.isSetAttributes()) {
27808           optionals.set(4);
27809         }
27810         oprot.writeBitSet(optionals, 5);
27811         if (struct.isSetTableName()) {
27812           oprot.writeBinary(struct.tableName);
27813         }
27814         if (struct.isSetRows()) {
27815           {
27816             oprot.writeI32(struct.rows.size());
27817             for (ByteBuffer _iter325 : struct.rows)
27818             {
27819               oprot.writeBinary(_iter325);
27820             }
27821           }
27822         }
27823         if (struct.isSetColumns()) {
27824           {
27825             oprot.writeI32(struct.columns.size());
27826             for (ByteBuffer _iter326 : struct.columns)
27827             {
27828               oprot.writeBinary(_iter326);
27829             }
27830           }
27831         }
27832         if (struct.isSetTimestamp()) {
27833           oprot.writeI64(struct.timestamp);
27834         }
27835         if (struct.isSetAttributes()) {
27836           {
27837             oprot.writeI32(struct.attributes.size());
27838             for (Map.Entry<ByteBuffer, ByteBuffer> _iter327 : struct.attributes.entrySet())
27839             {
27840               oprot.writeBinary(_iter327.getKey());
27841               oprot.writeBinary(_iter327.getValue());
27842             }
27843           }
27844         }
27845       }
27846 
27847       @Override
27848       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27849         TTupleProtocol iprot = (TTupleProtocol) prot;
27850         BitSet incoming = iprot.readBitSet(5);
27851         if (incoming.get(0)) {
27852           struct.tableName = iprot.readBinary();
27853           struct.setTableNameIsSet(true);
27854         }
27855         if (incoming.get(1)) {
27856           {
27857             org.apache.thrift.protocol.TList _list328 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27858             struct.rows = new ArrayList<ByteBuffer>(_list328.size);
27859             for (int _i329 = 0; _i329 < _list328.size; ++_i329)
27860             {
27861               ByteBuffer _elem330; // required
27862               _elem330 = iprot.readBinary();
27863               struct.rows.add(_elem330);
27864             }
27865           }
27866           struct.setRowsIsSet(true);
27867         }
27868         if (incoming.get(2)) {
27869           {
27870             org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27871             struct.columns = new ArrayList<ByteBuffer>(_list331.size);
27872             for (int _i332 = 0; _i332 < _list331.size; ++_i332)
27873             {
27874               ByteBuffer _elem333; // required
27875               _elem333 = iprot.readBinary();
27876               struct.columns.add(_elem333);
27877             }
27878           }
27879           struct.setColumnsIsSet(true);
27880         }
27881         if (incoming.get(3)) {
27882           struct.timestamp = iprot.readI64();
27883           struct.setTimestampIsSet(true);
27884         }
27885         if (incoming.get(4)) {
27886           {
27887             org.apache.thrift.protocol.TMap _map334 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27888             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map334.size);
27889             for (int _i335 = 0; _i335 < _map334.size; ++_i335)
27890             {
27891               ByteBuffer _key336; // required
27892               ByteBuffer _val337; // required
27893               _key336 = iprot.readBinary();
27894               _val337 = iprot.readBinary();
27895               struct.attributes.put(_key336, _val337);
27896             }
27897           }
27898           struct.setAttributesIsSet(true);
27899         }
27900       }
27901     }
27902 
27903   }
27904 
27905   public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase<getRowsWithColumnsTs_result, getRowsWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable   {
27906     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_result");
27907 
27908     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
27909     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27910 
27911     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
27912     static {
27913       schemes.put(StandardScheme.class, new getRowsWithColumnsTs_resultStandardSchemeFactory());
27914       schemes.put(TupleScheme.class, new getRowsWithColumnsTs_resultTupleSchemeFactory());
27915     }
27916 
27917     public List<TRowResult> success; // required
27918     public IOError io; // required
27919 
27920     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27921     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27922       SUCCESS((short)0, "success"),
27923       IO((short)1, "io");
27924 
27925       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27926 
27927       static {
27928         for (_Fields field : EnumSet.allOf(_Fields.class)) {
27929           byName.put(field.getFieldName(), field);
27930         }
27931       }
27932 
27933       /**
27934        * Find the _Fields constant that matches fieldId, or null if its not found.
27935        */
27936       public static _Fields findByThriftId(int fieldId) {
27937         switch(fieldId) {
27938           case 0: // SUCCESS
27939             return SUCCESS;
27940           case 1: // IO
27941             return IO;
27942           default:
27943             return null;
27944         }
27945       }
27946 
27947       /**
27948        * Find the _Fields constant that matches fieldId, throwing an exception
27949        * if it is not found.
27950        */
27951       public static _Fields findByThriftIdOrThrow(int fieldId) {
27952         _Fields fields = findByThriftId(fieldId);
27953         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27954         return fields;
27955       }
27956 
27957       /**
27958        * Find the _Fields constant that matches name, or null if its not found.
27959        */
27960       public static _Fields findByName(String name) {
27961         return byName.get(name);
27962       }
27963 
27964       private final short _thriftId;
27965       private final String _fieldName;
27966 
27967       _Fields(short thriftId, String fieldName) {
27968         _thriftId = thriftId;
27969         _fieldName = fieldName;
27970       }
27971 
27972       public short getThriftFieldId() {
27973         return _thriftId;
27974       }
27975 
27976       public String getFieldName() {
27977         return _fieldName;
27978       }
27979     }
27980 
27981     // isset id assignments
27982     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27983     static {
27984       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27985       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27986           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27987               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
27988       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27989           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27990       metaDataMap = Collections.unmodifiableMap(tmpMap);
27991       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_result.class, metaDataMap);
27992     }
27993 
27994     public getRowsWithColumnsTs_result() {
27995     }
27996 
27997     public getRowsWithColumnsTs_result(
27998       List<TRowResult> success,
27999       IOError io)
28000     {
28001       this();
28002       this.success = success;
28003       this.io = io;
28004     }
28005 
28006     /**
28007      * Performs a deep copy on <i>other</i>.
28008      */
28009     public getRowsWithColumnsTs_result(getRowsWithColumnsTs_result other) {
28010       if (other.isSetSuccess()) {
28011         List<TRowResult> __this__success = new ArrayList<TRowResult>();
28012         for (TRowResult other_element : other.success) {
28013           __this__success.add(new TRowResult(other_element));
28014         }
28015         this.success = __this__success;
28016       }
28017       if (other.isSetIo()) {
28018         this.io = new IOError(other.io);
28019       }
28020     }
28021 
28022     public getRowsWithColumnsTs_result deepCopy() {
28023       return new getRowsWithColumnsTs_result(this);
28024     }
28025 
28026     @Override
28027     public void clear() {
28028       this.success = null;
28029       this.io = null;
28030     }
28031 
28032     public int getSuccessSize() {
28033       return (this.success == null) ? 0 : this.success.size();
28034     }
28035 
28036     public java.util.Iterator<TRowResult> getSuccessIterator() {
28037       return (this.success == null) ? null : this.success.iterator();
28038     }
28039 
28040     public void addToSuccess(TRowResult elem) {
28041       if (this.success == null) {
28042         this.success = new ArrayList<TRowResult>();
28043       }
28044       this.success.add(elem);
28045     }
28046 
28047     public List<TRowResult> getSuccess() {
28048       return this.success;
28049     }
28050 
28051     public getRowsWithColumnsTs_result setSuccess(List<TRowResult> success) {
28052       this.success = success;
28053       return this;
28054     }
28055 
28056     public void unsetSuccess() {
28057       this.success = null;
28058     }
28059 
28060     /** Returns true if field success is set (has been assigned a value) and false otherwise */
28061     public boolean isSetSuccess() {
28062       return this.success != null;
28063     }
28064 
28065     public void setSuccessIsSet(boolean value) {
28066       if (!value) {
28067         this.success = null;
28068       }
28069     }
28070 
28071     public IOError getIo() {
28072       return this.io;
28073     }
28074 
28075     public getRowsWithColumnsTs_result setIo(IOError io) {
28076       this.io = io;
28077       return this;
28078     }
28079 
28080     public void unsetIo() {
28081       this.io = null;
28082     }
28083 
28084     /** Returns true if field io is set (has been assigned a value) and false otherwise */
28085     public boolean isSetIo() {
28086       return this.io != null;
28087     }
28088 
28089     public void setIoIsSet(boolean value) {
28090       if (!value) {
28091         this.io = null;
28092       }
28093     }
28094 
28095     public void setFieldValue(_Fields field, Object value) {
28096       switch (field) {
28097       case SUCCESS:
28098         if (value == null) {
28099           unsetSuccess();
28100         } else {
28101           setSuccess((List<TRowResult>)value);
28102         }
28103         break;
28104 
28105       case IO:
28106         if (value == null) {
28107           unsetIo();
28108         } else {
28109           setIo((IOError)value);
28110         }
28111         break;
28112 
28113       }
28114     }
28115 
28116     public Object getFieldValue(_Fields field) {
28117       switch (field) {
28118       case SUCCESS:
28119         return getSuccess();
28120 
28121       case IO:
28122         return getIo();
28123 
28124       }
28125       throw new IllegalStateException();
28126     }
28127 
28128     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28129     public boolean isSet(_Fields field) {
28130       if (field == null) {
28131         throw new IllegalArgumentException();
28132       }
28133 
28134       switch (field) {
28135       case SUCCESS:
28136         return isSetSuccess();
28137       case IO:
28138         return isSetIo();
28139       }
28140       throw new IllegalStateException();
28141     }
28142 
28143     @Override
28144     public boolean equals(Object that) {
28145       if (that == null)
28146         return false;
28147       if (that instanceof getRowsWithColumnsTs_result)
28148         return this.equals((getRowsWithColumnsTs_result)that);
28149       return false;
28150     }
28151 
28152     public boolean equals(getRowsWithColumnsTs_result that) {
28153       if (that == null)
28154         return false;
28155 
28156       boolean this_present_success = true && this.isSetSuccess();
28157       boolean that_present_success = true && that.isSetSuccess();
28158       if (this_present_success || that_present_success) {
28159         if (!(this_present_success && that_present_success))
28160           return false;
28161         if (!this.success.equals(that.success))
28162           return false;
28163       }
28164 
28165       boolean this_present_io = true && this.isSetIo();
28166       boolean that_present_io = true && that.isSetIo();
28167       if (this_present_io || that_present_io) {
28168         if (!(this_present_io && that_present_io))
28169           return false;
28170         if (!this.io.equals(that.io))
28171           return false;
28172       }
28173 
28174       return true;
28175     }
28176 
28177     @Override
28178     public int hashCode() {
28179       HashCodeBuilder builder = new HashCodeBuilder();
28180 
28181       boolean present_success = true && (isSetSuccess());
28182       builder.append(present_success);
28183       if (present_success)
28184         builder.append(success);
28185 
28186       boolean present_io = true && (isSetIo());
28187       builder.append(present_io);
28188       if (present_io)
28189         builder.append(io);
28190 
28191       return builder.toHashCode();
28192     }
28193 
28194     public int compareTo(getRowsWithColumnsTs_result other) {
28195       if (!getClass().equals(other.getClass())) {
28196         return getClass().getName().compareTo(other.getClass().getName());
28197       }
28198 
28199       int lastComparison = 0;
28200       getRowsWithColumnsTs_result typedOther = (getRowsWithColumnsTs_result)other;
28201 
28202       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28203       if (lastComparison != 0) {
28204         return lastComparison;
28205       }
28206       if (isSetSuccess()) {
28207         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28208         if (lastComparison != 0) {
28209           return lastComparison;
28210         }
28211       }
28212       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
28213       if (lastComparison != 0) {
28214         return lastComparison;
28215       }
28216       if (isSetIo()) {
28217         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
28218         if (lastComparison != 0) {
28219           return lastComparison;
28220         }
28221       }
28222       return 0;
28223     }
28224 
28225     public _Fields fieldForId(int fieldId) {
28226       return _Fields.findByThriftId(fieldId);
28227     }
28228 
28229     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28230       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28231     }
28232 
28233     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28234       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28235       }
28236 
28237     @Override
28238     public String toString() {
28239       StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_result(");
28240       boolean first = true;
28241 
28242       sb.append("success:");
28243       if (this.success == null) {
28244         sb.append("null");
28245       } else {
28246         sb.append(this.success);
28247       }
28248       first = false;
28249       if (!first) sb.append(", ");
28250       sb.append("io:");
28251       if (this.io == null) {
28252         sb.append("null");
28253       } else {
28254         sb.append(this.io);
28255       }
28256       first = false;
28257       sb.append(")");
28258       return sb.toString();
28259     }
28260 
28261     public void validate() throws org.apache.thrift.TException {
28262       // check for required fields
28263       // check for sub-struct validity
28264     }
28265 
28266     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28267       try {
28268         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28269       } catch (org.apache.thrift.TException te) {
28270         throw new java.io.IOException(te);
28271       }
28272     }
28273 
28274     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28275       try {
28276         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28277       } catch (org.apache.thrift.TException te) {
28278         throw new java.io.IOException(te);
28279       }
28280     }
28281 
28282     private static class getRowsWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory {
28283       public getRowsWithColumnsTs_resultStandardScheme getScheme() {
28284         return new getRowsWithColumnsTs_resultStandardScheme();
28285       }
28286     }
28287 
28288     private static class getRowsWithColumnsTs_resultStandardScheme extends StandardScheme<getRowsWithColumnsTs_result> {
28289 
28290       public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28291         org.apache.thrift.protocol.TField schemeField;
28292         iprot.readStructBegin();
28293         while (true)
28294         {
28295           schemeField = iprot.readFieldBegin();
28296           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
28297             break;
28298           }
28299           switch (schemeField.id) {
28300             case 0: // SUCCESS
28301               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
28302                 {
28303                   org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
28304                   struct.success = new ArrayList<TRowResult>(_list338.size);
28305                   for (int _i339 = 0; _i339 < _list338.size; ++_i339)
28306                   {
28307                     TRowResult _elem340; // required
28308                     _elem340 = new TRowResult();
28309                     _elem340.read(iprot);
28310                     struct.success.add(_elem340);
28311                   }
28312                   iprot.readListEnd();
28313                 }
28314                 struct.setSuccessIsSet(true);
28315               } else { 
28316                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28317               }
28318               break;
28319             case 1: // IO
28320               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28321                 struct.io = new IOError();
28322                 struct.io.read(iprot);
28323                 struct.setIoIsSet(true);
28324               } else { 
28325                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28326               }
28327               break;
28328             default:
28329               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28330           }
28331           iprot.readFieldEnd();
28332         }
28333         iprot.readStructEnd();
28334 
28335         // check for required fields of primitive type, which can't be checked in the validate method
28336         struct.validate();
28337       }
28338 
28339       public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28340         struct.validate();
28341 
28342         oprot.writeStructBegin(STRUCT_DESC);
28343         if (struct.success != null) {
28344           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28345           {
28346             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
28347             for (TRowResult _iter341 : struct.success)
28348             {
28349               _iter341.write(oprot);
28350             }
28351             oprot.writeListEnd();
28352           }
28353           oprot.writeFieldEnd();
28354         }
28355         if (struct.io != null) {
28356           oprot.writeFieldBegin(IO_FIELD_DESC);
28357           struct.io.write(oprot);
28358           oprot.writeFieldEnd();
28359         }
28360         oprot.writeFieldStop();
28361         oprot.writeStructEnd();
28362       }
28363 
28364     }
28365 
28366     private static class getRowsWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory {
28367       public getRowsWithColumnsTs_resultTupleScheme getScheme() {
28368         return new getRowsWithColumnsTs_resultTupleScheme();
28369       }
28370     }
28371 
28372     private static class getRowsWithColumnsTs_resultTupleScheme extends TupleScheme<getRowsWithColumnsTs_result> {
28373 
28374       @Override
28375       public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28376         TTupleProtocol oprot = (TTupleProtocol) prot;
28377         BitSet optionals = new BitSet();
28378         if (struct.isSetSuccess()) {
28379           optionals.set(0);
28380         }
28381         if (struct.isSetIo()) {
28382           optionals.set(1);
28383         }
28384         oprot.writeBitSet(optionals, 2);
28385         if (struct.isSetSuccess()) {
28386           {
28387             oprot.writeI32(struct.success.size());
28388             for (TRowResult _iter342 : struct.success)
28389             {
28390               _iter342.write(oprot);
28391             }
28392           }
28393         }
28394         if (struct.isSetIo()) {
28395           struct.io.write(oprot);
28396         }
28397       }
28398 
28399       @Override
28400       public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28401         TTupleProtocol iprot = (TTupleProtocol) prot;
28402         BitSet incoming = iprot.readBitSet(2);
28403         if (incoming.get(0)) {
28404           {
28405             org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
28406             struct.success = new ArrayList<TRowResult>(_list343.size);
28407             for (int _i344 = 0; _i344 < _list343.size; ++_i344)
28408             {
28409               TRowResult _elem345; // required
28410               _elem345 = new TRowResult();
28411               _elem345.read(iprot);
28412               struct.success.add(_elem345);
28413             }
28414           }
28415           struct.setSuccessIsSet(true);
28416         }
28417         if (incoming.get(1)) {
28418           struct.io = new IOError();
28419           struct.io.read(iprot);
28420           struct.setIoIsSet(true);
28421         }
28422       }
28423     }
28424 
28425   }
28426 
28427   public static class mutateRow_args implements org.apache.thrift.TBase<mutateRow_args, mutateRow_args._Fields>, java.io.Serializable, Cloneable   {
28428     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args");
28429 
28430     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
28431     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
28432     private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3);
28433     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
28434 
28435     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28436     static {
28437       schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory());
28438       schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory());
28439     }
28440 
28441     /**
28442      * name of table
28443      */
28444     public ByteBuffer tableName; // required
28445     /**
28446      * row key
28447      */
28448     public ByteBuffer row; // required
28449     /**
28450      * list of mutation commands
28451      */
28452     public List<Mutation> mutations; // required
28453     /**
28454      * Mutation attributes
28455      */
28456     public Map<ByteBuffer,ByteBuffer> attributes; // required
28457 
28458     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28459     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28460       /**
28461        * name of table
28462        */
28463       TABLE_NAME((short)1, "tableName"),
28464       /**
28465        * row key
28466        */
28467       ROW((short)2, "row"),
28468       /**
28469        * list of mutation commands
28470        */
28471       MUTATIONS((short)3, "mutations"),
28472       /**
28473        * Mutation attributes
28474        */
28475       ATTRIBUTES((short)4, "attributes");
28476 
28477       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28478 
28479       static {
28480         for (_Fields field : EnumSet.allOf(_Fields.class)) {
28481           byName.put(field.getFieldName(), field);
28482         }
28483       }
28484 
28485       /**
28486        * Find the _Fields constant that matches fieldId, or null if its not found.
28487        */
28488       public static _Fields findByThriftId(int fieldId) {
28489         switch(fieldId) {
28490           case 1: // TABLE_NAME
28491             return TABLE_NAME;
28492           case 2: // ROW
28493             return ROW;
28494           case 3: // MUTATIONS
28495             return MUTATIONS;
28496           case 4: // ATTRIBUTES
28497             return ATTRIBUTES;
28498           default:
28499             return null;
28500         }
28501       }
28502 
28503       /**
28504        * Find the _Fields constant that matches fieldId, throwing an exception
28505        * if it is not found.
28506        */
28507       public static _Fields findByThriftIdOrThrow(int fieldId) {
28508         _Fields fields = findByThriftId(fieldId);
28509         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28510         return fields;
28511       }
28512 
28513       /**
28514        * Find the _Fields constant that matches name, or null if its not found.
28515        */
28516       public static _Fields findByName(String name) {
28517         return byName.get(name);
28518       }
28519 
28520       private final short _thriftId;
28521       private final String _fieldName;
28522 
28523       _Fields(short thriftId, String fieldName) {
28524         _thriftId = thriftId;
28525         _fieldName = fieldName;
28526       }
28527 
28528       public short getThriftFieldId() {
28529         return _thriftId;
28530       }
28531 
28532       public String getFieldName() {
28533         return _fieldName;
28534       }
28535     }
28536 
28537     // isset id assignments
28538     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28539     static {
28540       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28541       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28542           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
28543       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28544           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
28545       tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28546           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
28547               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class))));
28548       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28549           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
28550               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
28551               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
28552       metaDataMap = Collections.unmodifiableMap(tmpMap);
28553       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap);
28554     }
28555 
28556     public mutateRow_args() {
28557     }
28558 
28559     public mutateRow_args(
28560       ByteBuffer tableName,
28561       ByteBuffer row,
28562       List<Mutation> mutations,
28563       Map<ByteBuffer,ByteBuffer> attributes)
28564     {
28565       this();
28566       this.tableName = tableName;
28567       this.row = row;
28568       this.mutations = mutations;
28569       this.attributes = attributes;
28570     }
28571 
28572     /**
28573      * Performs a deep copy on <i>other</i>.
28574      */
28575     public mutateRow_args(mutateRow_args other) {
28576       if (other.isSetTableName()) {
28577         this.tableName = other.tableName;
28578       }
28579       if (other.isSetRow()) {
28580         this.row = other.row;
28581       }
28582       if (other.isSetMutations()) {
28583         List<Mutation> __this__mutations = new ArrayList<Mutation>();
28584         for (Mutation other_element : other.mutations) {
28585           __this__mutations.add(new Mutation(other_element));
28586         }
28587         this.mutations = __this__mutations;
28588       }
28589       if (other.isSetAttributes()) {
28590         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
28591         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
28592 
28593           ByteBuffer other_element_key = other_element.getKey();
28594           ByteBuffer other_element_value = other_element.getValue();
28595 
28596           ByteBuffer __this__attributes_copy_key = other_element_key;
28597 
28598           ByteBuffer __this__attributes_copy_value = other_element_value;
28599 
28600           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
28601         }
28602         this.attributes = __this__attributes;
28603       }
28604     }
28605 
28606     public mutateRow_args deepCopy() {
28607       return new mutateRow_args(this);
28608     }
28609 
28610     @Override
28611     public void clear() {
28612       this.tableName = null;
28613       this.row = null;
28614       this.mutations = null;
28615       this.attributes = null;
28616     }
28617 
28618     /**
28619      * name of table
28620      */
28621     public byte[] getTableName() {
28622       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
28623       return tableName == null ? null : tableName.array();
28624     }
28625 
28626     public ByteBuffer bufferForTableName() {
28627       return tableName;
28628     }
28629 
28630     /**
28631      * name of table
28632      */
28633     public mutateRow_args setTableName(byte[] tableName) {
28634       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
28635       return this;
28636     }
28637 
28638     public mutateRow_args setTableName(ByteBuffer tableName) {
28639       this.tableName = tableName;
28640       return this;
28641     }
28642 
28643     public void unsetTableName() {
28644       this.tableName = null;
28645     }
28646 
28647     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
28648     public boolean isSetTableName() {
28649       return this.tableName != null;
28650     }
28651 
28652     public void setTableNameIsSet(boolean value) {
28653       if (!value) {
28654         this.tableName = null;
28655       }
28656     }
28657 
28658     /**
28659      * row key
28660      */
28661     public byte[] getRow() {
28662       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
28663       return row == null ? null : row.array();
28664     }
28665 
28666     public ByteBuffer bufferForRow() {
28667       return row;
28668     }
28669 
28670     /**
28671      * row key
28672      */
28673     public mutateRow_args setRow(byte[] row) {
28674       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
28675       return this;
28676     }
28677 
28678     public mutateRow_args setRow(ByteBuffer row) {
28679       this.row = row;
28680       return this;
28681     }
28682 
28683     public void unsetRow() {
28684       this.row = null;
28685     }
28686 
28687     /** Returns true if field row is set (has been assigned a value) and false otherwise */
28688     public boolean isSetRow() {
28689       return this.row != null;
28690     }
28691 
28692     public void setRowIsSet(boolean value) {
28693       if (!value) {
28694         this.row = null;
28695       }
28696     }
28697 
28698     public int getMutationsSize() {
28699       return (this.mutations == null) ? 0 : this.mutations.size();
28700     }
28701 
28702     public java.util.Iterator<Mutation> getMutationsIterator() {
28703       return (this.mutations == null) ? null : this.mutations.iterator();
28704     }
28705 
28706     public void addToMutations(Mutation elem) {
28707       if (this.mutations == null) {
28708         this.mutations = new ArrayList<Mutation>();
28709       }
28710       this.mutations.add(elem);
28711     }
28712 
28713     /**
28714      * list of mutation commands
28715      */
28716     public List<Mutation> getMutations() {
28717       return this.mutations;
28718     }
28719 
28720     /**
28721      * list of mutation commands
28722      */
28723     public mutateRow_args setMutations(List<Mutation> mutations) {
28724       this.mutations = mutations;
28725       return this;
28726     }
28727 
28728     public void unsetMutations() {
28729       this.mutations = null;
28730     }
28731 
28732     /** Returns true if field mutations is set (has been assigned a value) and false otherwise */
28733     public boolean isSetMutations() {
28734       return this.mutations != null;
28735     }
28736 
28737     public void setMutationsIsSet(boolean value) {
28738       if (!value) {
28739         this.mutations = null;
28740       }
28741     }
28742 
28743     public int getAttributesSize() {
28744       return (this.attributes == null) ? 0 : this.attributes.size();
28745     }
28746 
28747     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
28748       if (this.attributes == null) {
28749         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
28750       }
28751       this.attributes.put(key, val);
28752     }
28753 
28754     /**
28755      * Mutation attributes
28756      */
28757     public Map<ByteBuffer,ByteBuffer> getAttributes() {
28758       return this.attributes;
28759     }
28760 
28761     /**
28762      * Mutation attributes
28763      */
28764     public mutateRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
28765       this.attributes = attributes;
28766       return this;
28767     }
28768 
28769     public void unsetAttributes() {
28770       this.attributes = null;
28771     }
28772 
28773     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
28774     public boolean isSetAttributes() {
28775       return this.attributes != null;
28776     }
28777 
28778     public void setAttributesIsSet(boolean value) {
28779       if (!value) {
28780         this.attributes = null;
28781       }
28782     }
28783 
28784     public void setFieldValue(_Fields field, Object value) {
28785       switch (field) {
28786       case TABLE_NAME:
28787         if (value == null) {
28788           unsetTableName();
28789         } else {
28790           setTableName((ByteBuffer)value);
28791         }
28792         break;
28793 
28794       case ROW:
28795         if (value == null) {
28796           unsetRow();
28797         } else {
28798           setRow((ByteBuffer)value);
28799         }
28800         break;
28801 
28802       case MUTATIONS:
28803         if (value == null) {
28804           unsetMutations();
28805         } else {
28806           setMutations((List<Mutation>)value);
28807         }
28808         break;
28809 
28810       case ATTRIBUTES:
28811         if (value == null) {
28812           unsetAttributes();
28813         } else {
28814           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
28815         }
28816         break;
28817 
28818       }
28819     }
28820 
28821     public Object getFieldValue(_Fields field) {
28822       switch (field) {
28823       case TABLE_NAME:
28824         return getTableName();
28825 
28826       case ROW:
28827         return getRow();
28828 
28829       case MUTATIONS:
28830         return getMutations();
28831 
28832       case ATTRIBUTES:
28833         return getAttributes();
28834 
28835       }
28836       throw new IllegalStateException();
28837     }
28838 
28839     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28840     public boolean isSet(_Fields field) {
28841       if (field == null) {
28842         throw new IllegalArgumentException();
28843       }
28844 
28845       switch (field) {
28846       case TABLE_NAME:
28847         return isSetTableName();
28848       case ROW:
28849         return isSetRow();
28850       case MUTATIONS:
28851         return isSetMutations();
28852       case ATTRIBUTES:
28853         return isSetAttributes();
28854       }
28855       throw new IllegalStateException();
28856     }
28857 
28858     @Override
28859     public boolean equals(Object that) {
28860       if (that == null)
28861         return false;
28862       if (that instanceof mutateRow_args)
28863         return this.equals((mutateRow_args)that);
28864       return false;
28865     }
28866 
28867     public boolean equals(mutateRow_args that) {
28868       if (that == null)
28869         return false;
28870 
28871       boolean this_present_tableName = true && this.isSetTableName();
28872       boolean that_present_tableName = true && that.isSetTableName();
28873       if (this_present_tableName || that_present_tableName) {
28874         if (!(this_present_tableName && that_present_tableName))
28875           return false;
28876         if (!this.tableName.equals(that.tableName))
28877           return false;
28878       }
28879 
28880       boolean this_present_row = true && this.isSetRow();
28881       boolean that_present_row = true && that.isSetRow();
28882       if (this_present_row || that_present_row) {
28883         if (!(this_present_row && that_present_row))
28884           return false;
28885         if (!this.row.equals(that.row))
28886           return false;
28887       }
28888 
28889       boolean this_present_mutations = true && this.isSetMutations();
28890       boolean that_present_mutations = true && that.isSetMutations();
28891       if (this_present_mutations || that_present_mutations) {
28892         if (!(this_present_mutations && that_present_mutations))
28893           return false;
28894         if (!this.mutations.equals(that.mutations))
28895           return false;
28896       }
28897 
28898       boolean this_present_attributes = true && this.isSetAttributes();
28899       boolean that_present_attributes = true && that.isSetAttributes();
28900       if (this_present_attributes || that_present_attributes) {
28901         if (!(this_present_attributes && that_present_attributes))
28902           return false;
28903         if (!this.attributes.equals(that.attributes))
28904           return false;
28905       }
28906 
28907       return true;
28908     }
28909 
28910     @Override
28911     public int hashCode() {
28912       HashCodeBuilder builder = new HashCodeBuilder();
28913 
28914       boolean present_tableName = true && (isSetTableName());
28915       builder.append(present_tableName);
28916       if (present_tableName)
28917         builder.append(tableName);
28918 
28919       boolean present_row = true && (isSetRow());
28920       builder.append(present_row);
28921       if (present_row)
28922         builder.append(row);
28923 
28924       boolean present_mutations = true && (isSetMutations());
28925       builder.append(present_mutations);
28926       if (present_mutations)
28927         builder.append(mutations);
28928 
28929       boolean present_attributes = true && (isSetAttributes());
28930       builder.append(present_attributes);
28931       if (present_attributes)
28932         builder.append(attributes);
28933 
28934       return builder.toHashCode();
28935     }
28936 
28937     public int compareTo(mutateRow_args other) {
28938       if (!getClass().equals(other.getClass())) {
28939         return getClass().getName().compareTo(other.getClass().getName());
28940       }
28941 
28942       int lastComparison = 0;
28943       mutateRow_args typedOther = (mutateRow_args)other;
28944 
28945       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
28946       if (lastComparison != 0) {
28947         return lastComparison;
28948       }
28949       if (isSetTableName()) {
28950         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
28951         if (lastComparison != 0) {
28952           return lastComparison;
28953         }
28954       }
28955       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
28956       if (lastComparison != 0) {
28957         return lastComparison;
28958       }
28959       if (isSetRow()) {
28960         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
28961         if (lastComparison != 0) {
28962           return lastComparison;
28963         }
28964       }
28965       lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations());
28966       if (lastComparison != 0) {
28967         return lastComparison;
28968       }
28969       if (isSetMutations()) {
28970         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations);
28971         if (lastComparison != 0) {
28972           return lastComparison;
28973         }
28974       }
28975       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
28976       if (lastComparison != 0) {
28977         return lastComparison;
28978       }
28979       if (isSetAttributes()) {
28980         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
28981         if (lastComparison != 0) {
28982           return lastComparison;
28983         }
28984       }
28985       return 0;
28986     }
28987 
28988     public _Fields fieldForId(int fieldId) {
28989       return _Fields.findByThriftId(fieldId);
28990     }
28991 
28992     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28993       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28994     }
28995 
28996     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28997       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28998     }
28999 
29000     @Override
29001     public String toString() {
29002       StringBuilder sb = new StringBuilder("mutateRow_args(");
29003       boolean first = true;
29004 
29005       sb.append("tableName:");
29006       if (this.tableName == null) {
29007         sb.append("null");
29008       } else {
29009         sb.append(this.tableName);
29010       }
29011       first = false;
29012       if (!first) sb.append(", ");
29013       sb.append("row:");
29014       if (this.row == null) {
29015         sb.append("null");
29016       } else {
29017         sb.append(this.row);
29018       }
29019       first = false;
29020       if (!first) sb.append(", ");
29021       sb.append("mutations:");
29022       if (this.mutations == null) {
29023         sb.append("null");
29024       } else {
29025         sb.append(this.mutations);
29026       }
29027       first = false;
29028       if (!first) sb.append(", ");
29029       sb.append("attributes:");
29030       if (this.attributes == null) {
29031         sb.append("null");
29032       } else {
29033         sb.append(this.attributes);
29034       }
29035       first = false;
29036       sb.append(")");
29037       return sb.toString();
29038     }
29039 
29040     public void validate() throws org.apache.thrift.TException {
29041       // check for required fields
29042       // check for sub-struct validity
29043     }
29044 
29045     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29046       try {
29047         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29048       } catch (org.apache.thrift.TException te) {
29049         throw new java.io.IOException(te);
29050       }
29051     }
29052 
29053     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29054       try {
29055         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29056       } catch (org.apache.thrift.TException te) {
29057         throw new java.io.IOException(te);
29058       }
29059     }
29060 
29061     private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory {
29062       public mutateRow_argsStandardScheme getScheme() {
29063         return new mutateRow_argsStandardScheme();
29064       }
29065     }
29066 
29067     private static class mutateRow_argsStandardScheme extends StandardScheme<mutateRow_args> {
29068 
29069       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException {
29070         org.apache.thrift.protocol.TField schemeField;
29071         iprot.readStructBegin();
29072         while (true)
29073         {
29074           schemeField = iprot.readFieldBegin();
29075           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
29076             break;
29077           }
29078           switch (schemeField.id) {
29079             case 1: // TABLE_NAME
29080               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29081                 struct.tableName = iprot.readBinary();
29082                 struct.setTableNameIsSet(true);
29083               } else { 
29084                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29085               }
29086               break;
29087             case 2: // ROW
29088               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29089                 struct.row = iprot.readBinary();
29090                 struct.setRowIsSet(true);
29091               } else { 
29092                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29093               }
29094               break;
29095             case 3: // MUTATIONS
29096               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
29097                 {
29098                   org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
29099                   struct.mutations = new ArrayList<Mutation>(_list346.size);
29100                   for (int _i347 = 0; _i347 < _list346.size; ++_i347)
29101                   {
29102                     Mutation _elem348; // required
29103                     _elem348 = new Mutation();
29104                     _elem348.read(iprot);
29105                     struct.mutations.add(_elem348);
29106                   }
29107                   iprot.readListEnd();
29108                 }
29109                 struct.setMutationsIsSet(true);
29110               } else { 
29111                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29112               }
29113               break;
29114             case 4: // ATTRIBUTES
29115               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
29116                 {
29117                   org.apache.thrift.protocol.TMap _map349 = iprot.readMapBegin();
29118                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map349.size);
29119                   for (int _i350 = 0; _i350 < _map349.size; ++_i350)
29120                   {
29121                     ByteBuffer _key351; // required
29122                     ByteBuffer _val352; // required
29123                     _key351 = iprot.readBinary();
29124                     _val352 = iprot.readBinary();
29125                     struct.attributes.put(_key351, _val352);
29126                   }
29127                   iprot.readMapEnd();
29128                 }
29129                 struct.setAttributesIsSet(true);
29130               } else { 
29131                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29132               }
29133               break;
29134             default:
29135               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29136           }
29137           iprot.readFieldEnd();
29138         }
29139         iprot.readStructEnd();
29140 
29141         // check for required fields of primitive type, which can't be checked in the validate method
29142         struct.validate();
29143       }
29144 
29145       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException {
29146         struct.validate();
29147 
29148         oprot.writeStructBegin(STRUCT_DESC);
29149         if (struct.tableName != null) {
29150           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
29151           oprot.writeBinary(struct.tableName);
29152           oprot.writeFieldEnd();
29153         }
29154         if (struct.row != null) {
29155           oprot.writeFieldBegin(ROW_FIELD_DESC);
29156           oprot.writeBinary(struct.row);
29157           oprot.writeFieldEnd();
29158         }
29159         if (struct.mutations != null) {
29160           oprot.writeFieldBegin(MUTATIONS_FIELD_DESC);
29161           {
29162             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size()));
29163             for (Mutation _iter353 : struct.mutations)
29164             {
29165               _iter353.write(oprot);
29166             }
29167             oprot.writeListEnd();
29168           }
29169           oprot.writeFieldEnd();
29170         }
29171         if (struct.attributes != null) {
29172           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
29173           {
29174             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
29175             for (Map.Entry<ByteBuffer, ByteBuffer> _iter354 : struct.attributes.entrySet())
29176             {
29177               oprot.writeBinary(_iter354.getKey());
29178               oprot.writeBinary(_iter354.getValue());
29179             }
29180             oprot.writeMapEnd();
29181           }
29182           oprot.writeFieldEnd();
29183         }
29184         oprot.writeFieldStop();
29185         oprot.writeStructEnd();
29186       }
29187 
29188     }
29189 
29190     private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory {
29191       public mutateRow_argsTupleScheme getScheme() {
29192         return new mutateRow_argsTupleScheme();
29193       }
29194     }
29195 
29196     private static class mutateRow_argsTupleScheme extends TupleScheme<mutateRow_args> {
29197 
29198       @Override
29199       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException {
29200         TTupleProtocol oprot = (TTupleProtocol) prot;
29201         BitSet optionals = new BitSet();
29202         if (struct.isSetTableName()) {
29203           optionals.set(0);
29204         }
29205         if (struct.isSetRow()) {
29206           optionals.set(1);
29207         }
29208         if (struct.isSetMutations()) {
29209           optionals.set(2);
29210         }
29211         if (struct.isSetAttributes()) {
29212           optionals.set(3);
29213         }
29214         oprot.writeBitSet(optionals, 4);
29215         if (struct.isSetTableName()) {
29216           oprot.writeBinary(struct.tableName);
29217         }
29218         if (struct.isSetRow()) {
29219           oprot.writeBinary(struct.row);
29220         }
29221         if (struct.isSetMutations()) {
29222           {
29223             oprot.writeI32(struct.mutations.size());
29224             for (Mutation _iter355 : struct.mutations)
29225             {
29226               _iter355.write(oprot);
29227             }
29228           }
29229         }
29230         if (struct.isSetAttributes()) {
29231           {
29232             oprot.writeI32(struct.attributes.size());
29233             for (Map.Entry<ByteBuffer, ByteBuffer> _iter356 : struct.attributes.entrySet())
29234             {
29235               oprot.writeBinary(_iter356.getKey());
29236               oprot.writeBinary(_iter356.getValue());
29237             }
29238           }
29239         }
29240       }
29241 
29242       @Override
29243       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException {
29244         TTupleProtocol iprot = (TTupleProtocol) prot;
29245         BitSet incoming = iprot.readBitSet(4);
29246         if (incoming.get(0)) {
29247           struct.tableName = iprot.readBinary();
29248           struct.setTableNameIsSet(true);
29249         }
29250         if (incoming.get(1)) {
29251           struct.row = iprot.readBinary();
29252           struct.setRowIsSet(true);
29253         }
29254         if (incoming.get(2)) {
29255           {
29256             org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
29257             struct.mutations = new ArrayList<Mutation>(_list357.size);
29258             for (int _i358 = 0; _i358 < _list357.size; ++_i358)
29259             {
29260               Mutation _elem359; // required
29261               _elem359 = new Mutation();
29262               _elem359.read(iprot);
29263               struct.mutations.add(_elem359);
29264             }
29265           }
29266           struct.setMutationsIsSet(true);
29267         }
29268         if (incoming.get(3)) {
29269           {
29270             org.apache.thrift.protocol.TMap _map360 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
29271             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map360.size);
29272             for (int _i361 = 0; _i361 < _map360.size; ++_i361)
29273             {
29274               ByteBuffer _key362; // required
29275               ByteBuffer _val363; // required
29276               _key362 = iprot.readBinary();
29277               _val363 = iprot.readBinary();
29278               struct.attributes.put(_key362, _val363);
29279             }
29280           }
29281           struct.setAttributesIsSet(true);
29282         }
29283       }
29284     }
29285 
29286   }
29287 
29288   public static class mutateRow_result implements org.apache.thrift.TBase<mutateRow_result, mutateRow_result._Fields>, java.io.Serializable, Cloneable   {
29289     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result");
29290 
29291     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29292     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
29293 
29294     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29295     static {
29296       schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory());
29297       schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory());
29298     }
29299 
29300     public IOError io; // required
29301     public IllegalArgument ia; // required
29302 
29303     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29304     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29305       IO((short)1, "io"),
29306       IA((short)2, "ia");
29307 
29308       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29309 
29310       static {
29311         for (_Fields field : EnumSet.allOf(_Fields.class)) {
29312           byName.put(field.getFieldName(), field);
29313         }
29314       }
29315 
29316       /**
29317        * Find the _Fields constant that matches fieldId, or null if its not found.
29318        */
29319       public static _Fields findByThriftId(int fieldId) {
29320         switch(fieldId) {
29321           case 1: // IO
29322             return IO;
29323           case 2: // IA
29324             return IA;
29325           default:
29326             return null;
29327         }
29328       }
29329 
29330       /**
29331        * Find the _Fields constant that matches fieldId, throwing an exception
29332        * if it is not found.
29333        */
29334       public static _Fields findByThriftIdOrThrow(int fieldId) {
29335         _Fields fields = findByThriftId(fieldId);
29336         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29337         return fields;
29338       }
29339 
29340       /**
29341        * Find the _Fields constant that matches name, or null if its not found.
29342        */
29343       public static _Fields findByName(String name) {
29344         return byName.get(name);
29345       }
29346 
29347       private final short _thriftId;
29348       private final String _fieldName;
29349 
29350       _Fields(short thriftId, String fieldName) {
29351         _thriftId = thriftId;
29352         _fieldName = fieldName;
29353       }
29354 
29355       public short getThriftFieldId() {
29356         return _thriftId;
29357       }
29358 
29359       public String getFieldName() {
29360         return _fieldName;
29361       }
29362     }
29363 
29364     // isset id assignments
29365     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29366     static {
29367       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29368       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29369           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29370       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29371           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29372       metaDataMap = Collections.unmodifiableMap(tmpMap);
29373       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap);
29374     }
29375 
29376     public mutateRow_result() {
29377     }
29378 
29379     public mutateRow_result(
29380       IOError io,
29381       IllegalArgument ia)
29382     {
29383       this();
29384       this.io = io;
29385       this.ia = ia;
29386     }
29387 
29388     /**
29389      * Performs a deep copy on <i>other</i>.
29390      */
29391     public mutateRow_result(mutateRow_result other) {
29392       if (other.isSetIo()) {
29393         this.io = new IOError(other.io);
29394       }
29395       if (other.isSetIa()) {
29396         this.ia = new IllegalArgument(other.ia);
29397       }
29398     }
29399 
29400     public mutateRow_result deepCopy() {
29401       return new mutateRow_result(this);
29402     }
29403 
29404     @Override
29405     public void clear() {
29406       this.io = null;
29407       this.ia = null;
29408     }
29409 
29410     public IOError getIo() {
29411       return this.io;
29412     }
29413 
29414     public mutateRow_result setIo(IOError io) {
29415       this.io = io;
29416       return this;
29417     }
29418 
29419     public void unsetIo() {
29420       this.io = null;
29421     }
29422 
29423     /** Returns true if field io is set (has been assigned a value) and false otherwise */
29424     public boolean isSetIo() {
29425       return this.io != null;
29426     }
29427 
29428     public void setIoIsSet(boolean value) {
29429       if (!value) {
29430         this.io = null;
29431       }
29432     }
29433 
29434     public IllegalArgument getIa() {
29435       return this.ia;
29436     }
29437 
29438     public mutateRow_result setIa(IllegalArgument ia) {
29439       this.ia = ia;
29440       return this;
29441     }
29442 
29443     public void unsetIa() {
29444       this.ia = null;
29445     }
29446 
29447     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
29448     public boolean isSetIa() {
29449       return this.ia != null;
29450     }
29451 
29452     public void setIaIsSet(boolean value) {
29453       if (!value) {
29454         this.ia = null;
29455       }
29456     }
29457 
29458     public void setFieldValue(_Fields field, Object value) {
29459       switch (field) {
29460       case IO:
29461         if (value == null) {
29462           unsetIo();
29463         } else {
29464           setIo((IOError)value);
29465         }
29466         break;
29467 
29468       case IA:
29469         if (value == null) {
29470           unsetIa();
29471         } else {
29472           setIa((IllegalArgument)value);
29473         }
29474         break;
29475 
29476       }
29477     }
29478 
29479     public Object getFieldValue(_Fields field) {
29480       switch (field) {
29481       case IO:
29482         return getIo();
29483 
29484       case IA:
29485         return getIa();
29486 
29487       }
29488       throw new IllegalStateException();
29489     }
29490 
29491     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29492     public boolean isSet(_Fields field) {
29493       if (field == null) {
29494         throw new IllegalArgumentException();
29495       }
29496 
29497       switch (field) {
29498       case IO:
29499         return isSetIo();
29500       case IA:
29501         return isSetIa();
29502       }
29503       throw new IllegalStateException();
29504     }
29505 
29506     @Override
29507     public boolean equals(Object that) {
29508       if (that == null)
29509         return false;
29510       if (that instanceof mutateRow_result)
29511         return this.equals((mutateRow_result)that);
29512       return false;
29513     }
29514 
29515     public boolean equals(mutateRow_result that) {
29516       if (that == null)
29517         return false;
29518 
29519       boolean this_present_io = true && this.isSetIo();
29520       boolean that_present_io = true && that.isSetIo();
29521       if (this_present_io || that_present_io) {
29522         if (!(this_present_io && that_present_io))
29523           return false;
29524         if (!this.io.equals(that.io))
29525           return false;
29526       }
29527 
29528       boolean this_present_ia = true && this.isSetIa();
29529       boolean that_present_ia = true && that.isSetIa();
29530       if (this_present_ia || that_present_ia) {
29531         if (!(this_present_ia && that_present_ia))
29532           return false;
29533         if (!this.ia.equals(that.ia))
29534           return false;
29535       }
29536 
29537       return true;
29538     }
29539 
29540     @Override
29541     public int hashCode() {
29542       HashCodeBuilder builder = new HashCodeBuilder();
29543 
29544       boolean present_io = true && (isSetIo());
29545       builder.append(present_io);
29546       if (present_io)
29547         builder.append(io);
29548 
29549       boolean present_ia = true && (isSetIa());
29550       builder.append(present_ia);
29551       if (present_ia)
29552         builder.append(ia);
29553 
29554       return builder.toHashCode();
29555     }
29556 
29557     public int compareTo(mutateRow_result other) {
29558       if (!getClass().equals(other.getClass())) {
29559         return getClass().getName().compareTo(other.getClass().getName());
29560       }
29561 
29562       int lastComparison = 0;
29563       mutateRow_result typedOther = (mutateRow_result)other;
29564 
29565       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
29566       if (lastComparison != 0) {
29567         return lastComparison;
29568       }
29569       if (isSetIo()) {
29570         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
29571         if (lastComparison != 0) {
29572           return lastComparison;
29573         }
29574       }
29575       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
29576       if (lastComparison != 0) {
29577         return lastComparison;
29578       }
29579       if (isSetIa()) {
29580         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
29581         if (lastComparison != 0) {
29582           return lastComparison;
29583         }
29584       }
29585       return 0;
29586     }
29587 
29588     public _Fields fieldForId(int fieldId) {
29589       return _Fields.findByThriftId(fieldId);
29590     }
29591 
29592     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29593       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29594     }
29595 
29596     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29597       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29598       }
29599 
29600     @Override
29601     public String toString() {
29602       StringBuilder sb = new StringBuilder("mutateRow_result(");
29603       boolean first = true;
29604 
29605       sb.append("io:");
29606       if (this.io == null) {
29607         sb.append("null");
29608       } else {
29609         sb.append(this.io);
29610       }
29611       first = false;
29612       if (!first) sb.append(", ");
29613       sb.append("ia:");
29614       if (this.ia == null) {
29615         sb.append("null");
29616       } else {
29617         sb.append(this.ia);
29618       }
29619       first = false;
29620       sb.append(")");
29621       return sb.toString();
29622     }
29623 
29624     public void validate() throws org.apache.thrift.TException {
29625       // check for required fields
29626       // check for sub-struct validity
29627     }
29628 
29629     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29630       try {
29631         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29632       } catch (org.apache.thrift.TException te) {
29633         throw new java.io.IOException(te);
29634       }
29635     }
29636 
29637     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29638       try {
29639         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29640       } catch (org.apache.thrift.TException te) {
29641         throw new java.io.IOException(te);
29642       }
29643     }
29644 
29645     private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory {
29646       public mutateRow_resultStandardScheme getScheme() {
29647         return new mutateRow_resultStandardScheme();
29648       }
29649     }
29650 
29651     private static class mutateRow_resultStandardScheme extends StandardScheme<mutateRow_result> {
29652 
29653       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException {
29654         org.apache.thrift.protocol.TField schemeField;
29655         iprot.readStructBegin();
29656         while (true)
29657         {
29658           schemeField = iprot.readFieldBegin();
29659           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
29660             break;
29661           }
29662           switch (schemeField.id) {
29663             case 1: // IO
29664               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29665                 struct.io = new IOError();
29666                 struct.io.read(iprot);
29667                 struct.setIoIsSet(true);
29668               } else { 
29669                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29670               }
29671               break;
29672             case 2: // IA
29673               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29674                 struct.ia = new IllegalArgument();
29675                 struct.ia.read(iprot);
29676                 struct.setIaIsSet(true);
29677               } else { 
29678                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29679               }
29680               break;
29681             default:
29682               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29683           }
29684           iprot.readFieldEnd();
29685         }
29686         iprot.readStructEnd();
29687 
29688         // check for required fields of primitive type, which can't be checked in the validate method
29689         struct.validate();
29690       }
29691 
29692       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_result struct) throws org.apache.thrift.TException {
29693         struct.validate();
29694 
29695         oprot.writeStructBegin(STRUCT_DESC);
29696         if (struct.io != null) {
29697           oprot.writeFieldBegin(IO_FIELD_DESC);
29698           struct.io.write(oprot);
29699           oprot.writeFieldEnd();
29700         }
29701         if (struct.ia != null) {
29702           oprot.writeFieldBegin(IA_FIELD_DESC);
29703           struct.ia.write(oprot);
29704           oprot.writeFieldEnd();
29705         }
29706         oprot.writeFieldStop();
29707         oprot.writeStructEnd();
29708       }
29709 
29710     }
29711 
29712     private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory {
29713       public mutateRow_resultTupleScheme getScheme() {
29714         return new mutateRow_resultTupleScheme();
29715       }
29716     }
29717 
29718     private static class mutateRow_resultTupleScheme extends TupleScheme<mutateRow_result> {
29719 
29720       @Override
29721       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException {
29722         TTupleProtocol oprot = (TTupleProtocol) prot;
29723         BitSet optionals = new BitSet();
29724         if (struct.isSetIo()) {
29725           optionals.set(0);
29726         }
29727         if (struct.isSetIa()) {
29728           optionals.set(1);
29729         }
29730         oprot.writeBitSet(optionals, 2);
29731         if (struct.isSetIo()) {
29732           struct.io.write(oprot);
29733         }
29734         if (struct.isSetIa()) {
29735           struct.ia.write(oprot);
29736         }
29737       }
29738 
29739       @Override
29740       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException {
29741         TTupleProtocol iprot = (TTupleProtocol) prot;
29742         BitSet incoming = iprot.readBitSet(2);
29743         if (incoming.get(0)) {
29744           struct.io = new IOError();
29745           struct.io.read(iprot);
29746           struct.setIoIsSet(true);
29747         }
29748         if (incoming.get(1)) {
29749           struct.ia = new IllegalArgument();
29750           struct.ia.read(iprot);
29751           struct.setIaIsSet(true);
29752         }
29753       }
29754     }
29755 
29756   }
29757 
29758   public static class mutateRowTs_args implements org.apache.thrift.TBase<mutateRowTs_args, mutateRowTs_args._Fields>, java.io.Serializable, Cloneable   {
29759     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_args");
29760 
29761     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
29762     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
29763     private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3);
29764     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
29765     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
29766 
29767     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29768     static {
29769       schemes.put(StandardScheme.class, new mutateRowTs_argsStandardSchemeFactory());
29770       schemes.put(TupleScheme.class, new mutateRowTs_argsTupleSchemeFactory());
29771     }
29772 
29773     /**
29774      * name of table
29775      */
29776     public ByteBuffer tableName; // required
29777     /**
29778      * row key
29779      */
29780     public ByteBuffer row; // required
29781     /**
29782      * list of mutation commands
29783      */
29784     public List<Mutation> mutations; // required
29785     /**
29786      * timestamp
29787      */
29788     public long timestamp; // required
29789     /**
29790      * Mutation attributes
29791      */
29792     public Map<ByteBuffer,ByteBuffer> attributes; // required
29793 
29794     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29795     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29796       /**
29797        * name of table
29798        */
29799       TABLE_NAME((short)1, "tableName"),
29800       /**
29801        * row key
29802        */
29803       ROW((short)2, "row"),
29804       /**
29805        * list of mutation commands
29806        */
29807       MUTATIONS((short)3, "mutations"),
29808       /**
29809        * timestamp
29810        */
29811       TIMESTAMP((short)4, "timestamp"),
29812       /**
29813        * Mutation attributes
29814        */
29815       ATTRIBUTES((short)5, "attributes");
29816 
29817       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29818 
29819       static {
29820         for (_Fields field : EnumSet.allOf(_Fields.class)) {
29821           byName.put(field.getFieldName(), field);
29822         }
29823       }
29824 
29825       /**
29826        * Find the _Fields constant that matches fieldId, or null if its not found.
29827        */
29828       public static _Fields findByThriftId(int fieldId) {
29829         switch(fieldId) {
29830           case 1: // TABLE_NAME
29831             return TABLE_NAME;
29832           case 2: // ROW
29833             return ROW;
29834           case 3: // MUTATIONS
29835             return MUTATIONS;
29836           case 4: // TIMESTAMP
29837             return TIMESTAMP;
29838           case 5: // ATTRIBUTES
29839             return ATTRIBUTES;
29840           default:
29841             return null;
29842         }
29843       }
29844 
29845       /**
29846        * Find the _Fields constant that matches fieldId, throwing an exception
29847        * if it is not found.
29848        */
29849       public static _Fields findByThriftIdOrThrow(int fieldId) {
29850         _Fields fields = findByThriftId(fieldId);
29851         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29852         return fields;
29853       }
29854 
29855       /**
29856        * Find the _Fields constant that matches name, or null if its not found.
29857        */
29858       public static _Fields findByName(String name) {
29859         return byName.get(name);
29860       }
29861 
29862       private final short _thriftId;
29863       private final String _fieldName;
29864 
29865       _Fields(short thriftId, String fieldName) {
29866         _thriftId = thriftId;
29867         _fieldName = fieldName;
29868       }
29869 
29870       public short getThriftFieldId() {
29871         return _thriftId;
29872       }
29873 
29874       public String getFieldName() {
29875         return _fieldName;
29876       }
29877     }
29878 
29879     // isset id assignments
29880     private static final int __TIMESTAMP_ISSET_ID = 0;
29881     private byte __isset_bitfield = 0;
29882     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29883     static {
29884       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29885       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29886           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
29887       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29888           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
29889       tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29890           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29891               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class))));
29892       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29893           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29894       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29895           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
29896               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
29897               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
29898       metaDataMap = Collections.unmodifiableMap(tmpMap);
29899       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_args.class, metaDataMap);
29900     }
29901 
29902     public mutateRowTs_args() {
29903     }
29904 
29905     public mutateRowTs_args(
29906       ByteBuffer tableName,
29907       ByteBuffer row,
29908       List<Mutation> mutations,
29909       long timestamp,
29910       Map<ByteBuffer,ByteBuffer> attributes)
29911     {
29912       this();
29913       this.tableName = tableName;
29914       this.row = row;
29915       this.mutations = mutations;
29916       this.timestamp = timestamp;
29917       setTimestampIsSet(true);
29918       this.attributes = attributes;
29919     }
29920 
29921     /**
29922      * Performs a deep copy on <i>other</i>.
29923      */
29924     public mutateRowTs_args(mutateRowTs_args other) {
29925       __isset_bitfield = other.__isset_bitfield;
29926       if (other.isSetTableName()) {
29927         this.tableName = other.tableName;
29928       }
29929       if (other.isSetRow()) {
29930         this.row = other.row;
29931       }
29932       if (other.isSetMutations()) {
29933         List<Mutation> __this__mutations = new ArrayList<Mutation>();
29934         for (Mutation other_element : other.mutations) {
29935           __this__mutations.add(new Mutation(other_element));
29936         }
29937         this.mutations = __this__mutations;
29938       }
29939       this.timestamp = other.timestamp;
29940       if (other.isSetAttributes()) {
29941         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
29942         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
29943 
29944           ByteBuffer other_element_key = other_element.getKey();
29945           ByteBuffer other_element_value = other_element.getValue();
29946 
29947           ByteBuffer __this__attributes_copy_key = other_element_key;
29948 
29949           ByteBuffer __this__attributes_copy_value = other_element_value;
29950 
29951           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
29952         }
29953         this.attributes = __this__attributes;
29954       }
29955     }
29956 
29957     public mutateRowTs_args deepCopy() {
29958       return new mutateRowTs_args(this);
29959     }
29960 
29961     @Override
29962     public void clear() {
29963       this.tableName = null;
29964       this.row = null;
29965       this.mutations = null;
29966       setTimestampIsSet(false);
29967       this.timestamp = 0;
29968       this.attributes = null;
29969     }
29970 
29971     /**
29972      * name of table
29973      */
29974     public byte[] getTableName() {
29975       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
29976       return tableName == null ? null : tableName.array();
29977     }
29978 
29979     public ByteBuffer bufferForTableName() {
29980       return tableName;
29981     }
29982 
29983     /**
29984      * name of table
29985      */
29986     public mutateRowTs_args setTableName(byte[] tableName) {
29987       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
29988       return this;
29989     }
29990 
29991     public mutateRowTs_args setTableName(ByteBuffer tableName) {
29992       this.tableName = tableName;
29993       return this;
29994     }
29995 
29996     public void unsetTableName() {
29997       this.tableName = null;
29998     }
29999 
30000     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
30001     public boolean isSetTableName() {
30002       return this.tableName != null;
30003     }
30004 
30005     public void setTableNameIsSet(boolean value) {
30006       if (!value) {
30007         this.tableName = null;
30008       }
30009     }
30010 
30011     /**
30012      * row key
30013      */
30014     public byte[] getRow() {
30015       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
30016       return row == null ? null : row.array();
30017     }
30018 
30019     public ByteBuffer bufferForRow() {
30020       return row;
30021     }
30022 
30023     /**
30024      * row key
30025      */
30026     public mutateRowTs_args setRow(byte[] row) {
30027       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
30028       return this;
30029     }
30030 
30031     public mutateRowTs_args setRow(ByteBuffer row) {
30032       this.row = row;
30033       return this;
30034     }
30035 
30036     public void unsetRow() {
30037       this.row = null;
30038     }
30039 
30040     /** Returns true if field row is set (has been assigned a value) and false otherwise */
30041     public boolean isSetRow() {
30042       return this.row != null;
30043     }
30044 
30045     public void setRowIsSet(boolean value) {
30046       if (!value) {
30047         this.row = null;
30048       }
30049     }
30050 
30051     public int getMutationsSize() {
30052       return (this.mutations == null) ? 0 : this.mutations.size();
30053     }
30054 
30055     public java.util.Iterator<Mutation> getMutationsIterator() {
30056       return (this.mutations == null) ? null : this.mutations.iterator();
30057     }
30058 
30059     public void addToMutations(Mutation elem) {
30060       if (this.mutations == null) {
30061         this.mutations = new ArrayList<Mutation>();
30062       }
30063       this.mutations.add(elem);
30064     }
30065 
30066     /**
30067      * list of mutation commands
30068      */
30069     public List<Mutation> getMutations() {
30070       return this.mutations;
30071     }
30072 
30073     /**
30074      * list of mutation commands
30075      */
30076     public mutateRowTs_args setMutations(List<Mutation> mutations) {
30077       this.mutations = mutations;
30078       return this;
30079     }
30080 
30081     public void unsetMutations() {
30082       this.mutations = null;
30083     }
30084 
30085     /** Returns true if field mutations is set (has been assigned a value) and false otherwise */
30086     public boolean isSetMutations() {
30087       return this.mutations != null;
30088     }
30089 
30090     public void setMutationsIsSet(boolean value) {
30091       if (!value) {
30092         this.mutations = null;
30093       }
30094     }
30095 
30096     /**
30097      * timestamp
30098      */
30099     public long getTimestamp() {
30100       return this.timestamp;
30101     }
30102 
30103     /**
30104      * timestamp
30105      */
30106     public mutateRowTs_args setTimestamp(long timestamp) {
30107       this.timestamp = timestamp;
30108       setTimestampIsSet(true);
30109       return this;
30110     }
30111 
30112     public void unsetTimestamp() {
30113       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
30114     }
30115 
30116     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
30117     public boolean isSetTimestamp() {
30118       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
30119     }
30120 
30121     public void setTimestampIsSet(boolean value) {
30122       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
30123     }
30124 
30125     public int getAttributesSize() {
30126       return (this.attributes == null) ? 0 : this.attributes.size();
30127     }
30128 
30129     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
30130       if (this.attributes == null) {
30131         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
30132       }
30133       this.attributes.put(key, val);
30134     }
30135 
30136     /**
30137      * Mutation attributes
30138      */
30139     public Map<ByteBuffer,ByteBuffer> getAttributes() {
30140       return this.attributes;
30141     }
30142 
30143     /**
30144      * Mutation attributes
30145      */
30146     public mutateRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
30147       this.attributes = attributes;
30148       return this;
30149     }
30150 
30151     public void unsetAttributes() {
30152       this.attributes = null;
30153     }
30154 
30155     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
30156     public boolean isSetAttributes() {
30157       return this.attributes != null;
30158     }
30159 
30160     public void setAttributesIsSet(boolean value) {
30161       if (!value) {
30162         this.attributes = null;
30163       }
30164     }
30165 
30166     public void setFieldValue(_Fields field, Object value) {
30167       switch (field) {
30168       case TABLE_NAME:
30169         if (value == null) {
30170           unsetTableName();
30171         } else {
30172           setTableName((ByteBuffer)value);
30173         }
30174         break;
30175 
30176       case ROW:
30177         if (value == null) {
30178           unsetRow();
30179         } else {
30180           setRow((ByteBuffer)value);
30181         }
30182         break;
30183 
30184       case MUTATIONS:
30185         if (value == null) {
30186           unsetMutations();
30187         } else {
30188           setMutations((List<Mutation>)value);
30189         }
30190         break;
30191 
30192       case TIMESTAMP:
30193         if (value == null) {
30194           unsetTimestamp();
30195         } else {
30196           setTimestamp((Long)value);
30197         }
30198         break;
30199 
30200       case ATTRIBUTES:
30201         if (value == null) {
30202           unsetAttributes();
30203         } else {
30204           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
30205         }
30206         break;
30207 
30208       }
30209     }
30210 
30211     public Object getFieldValue(_Fields field) {
30212       switch (field) {
30213       case TABLE_NAME:
30214         return getTableName();
30215 
30216       case ROW:
30217         return getRow();
30218 
30219       case MUTATIONS:
30220         return getMutations();
30221 
30222       case TIMESTAMP:
30223         return Long.valueOf(getTimestamp());
30224 
30225       case ATTRIBUTES:
30226         return getAttributes();
30227 
30228       }
30229       throw new IllegalStateException();
30230     }
30231 
30232     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30233     public boolean isSet(_Fields field) {
30234       if (field == null) {
30235         throw new IllegalArgumentException();
30236       }
30237 
30238       switch (field) {
30239       case TABLE_NAME:
30240         return isSetTableName();
30241       case ROW:
30242         return isSetRow();
30243       case MUTATIONS:
30244         return isSetMutations();
30245       case TIMESTAMP:
30246         return isSetTimestamp();
30247       case ATTRIBUTES:
30248         return isSetAttributes();
30249       }
30250       throw new IllegalStateException();
30251     }
30252 
30253     @Override
30254     public boolean equals(Object that) {
30255       if (that == null)
30256         return false;
30257       if (that instanceof mutateRowTs_args)
30258         return this.equals((mutateRowTs_args)that);
30259       return false;
30260     }
30261 
30262     public boolean equals(mutateRowTs_args that) {
30263       if (that == null)
30264         return false;
30265 
30266       boolean this_present_tableName = true && this.isSetTableName();
30267       boolean that_present_tableName = true && that.isSetTableName();
30268       if (this_present_tableName || that_present_tableName) {
30269         if (!(this_present_tableName && that_present_tableName))
30270           return false;
30271         if (!this.tableName.equals(that.tableName))
30272           return false;
30273       }
30274 
30275       boolean this_present_row = true && this.isSetRow();
30276       boolean that_present_row = true && that.isSetRow();
30277       if (this_present_row || that_present_row) {
30278         if (!(this_present_row && that_present_row))
30279           return false;
30280         if (!this.row.equals(that.row))
30281           return false;
30282       }
30283 
30284       boolean this_present_mutations = true && this.isSetMutations();
30285       boolean that_present_mutations = true && that.isSetMutations();
30286       if (this_present_mutations || that_present_mutations) {
30287         if (!(this_present_mutations && that_present_mutations))
30288           return false;
30289         if (!this.mutations.equals(that.mutations))
30290           return false;
30291       }
30292 
30293       boolean this_present_timestamp = true;
30294       boolean that_present_timestamp = true;
30295       if (this_present_timestamp || that_present_timestamp) {
30296         if (!(this_present_timestamp && that_present_timestamp))
30297           return false;
30298         if (this.timestamp != that.timestamp)
30299           return false;
30300       }
30301 
30302       boolean this_present_attributes = true && this.isSetAttributes();
30303       boolean that_present_attributes = true && that.isSetAttributes();
30304       if (this_present_attributes || that_present_attributes) {
30305         if (!(this_present_attributes && that_present_attributes))
30306           return false;
30307         if (!this.attributes.equals(that.attributes))
30308           return false;
30309       }
30310 
30311       return true;
30312     }
30313 
30314     @Override
30315     public int hashCode() {
30316       HashCodeBuilder builder = new HashCodeBuilder();
30317 
30318       boolean present_tableName = true && (isSetTableName());
30319       builder.append(present_tableName);
30320       if (present_tableName)
30321         builder.append(tableName);
30322 
30323       boolean present_row = true && (isSetRow());
30324       builder.append(present_row);
30325       if (present_row)
30326         builder.append(row);
30327 
30328       boolean present_mutations = true && (isSetMutations());
30329       builder.append(present_mutations);
30330       if (present_mutations)
30331         builder.append(mutations);
30332 
30333       boolean present_timestamp = true;
30334       builder.append(present_timestamp);
30335       if (present_timestamp)
30336         builder.append(timestamp);
30337 
30338       boolean present_attributes = true && (isSetAttributes());
30339       builder.append(present_attributes);
30340       if (present_attributes)
30341         builder.append(attributes);
30342 
30343       return builder.toHashCode();
30344     }
30345 
30346     public int compareTo(mutateRowTs_args other) {
30347       if (!getClass().equals(other.getClass())) {
30348         return getClass().getName().compareTo(other.getClass().getName());
30349       }
30350 
30351       int lastComparison = 0;
30352       mutateRowTs_args typedOther = (mutateRowTs_args)other;
30353 
30354       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
30355       if (lastComparison != 0) {
30356         return lastComparison;
30357       }
30358       if (isSetTableName()) {
30359         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
30360         if (lastComparison != 0) {
30361           return lastComparison;
30362         }
30363       }
30364       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
30365       if (lastComparison != 0) {
30366         return lastComparison;
30367       }
30368       if (isSetRow()) {
30369         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
30370         if (lastComparison != 0) {
30371           return lastComparison;
30372         }
30373       }
30374       lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations());
30375       if (lastComparison != 0) {
30376         return lastComparison;
30377       }
30378       if (isSetMutations()) {
30379         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations);
30380         if (lastComparison != 0) {
30381           return lastComparison;
30382         }
30383       }
30384       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
30385       if (lastComparison != 0) {
30386         return lastComparison;
30387       }
30388       if (isSetTimestamp()) {
30389         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
30390         if (lastComparison != 0) {
30391           return lastComparison;
30392         }
30393       }
30394       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
30395       if (lastComparison != 0) {
30396         return lastComparison;
30397       }
30398       if (isSetAttributes()) {
30399         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
30400         if (lastComparison != 0) {
30401           return lastComparison;
30402         }
30403       }
30404       return 0;
30405     }
30406 
30407     public _Fields fieldForId(int fieldId) {
30408       return _Fields.findByThriftId(fieldId);
30409     }
30410 
30411     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30412       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30413     }
30414 
30415     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30416       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30417     }
30418 
30419     @Override
30420     public String toString() {
30421       StringBuilder sb = new StringBuilder("mutateRowTs_args(");
30422       boolean first = true;
30423 
30424       sb.append("tableName:");
30425       if (this.tableName == null) {
30426         sb.append("null");
30427       } else {
30428         sb.append(this.tableName);
30429       }
30430       first = false;
30431       if (!first) sb.append(", ");
30432       sb.append("row:");
30433       if (this.row == null) {
30434         sb.append("null");
30435       } else {
30436         sb.append(this.row);
30437       }
30438       first = false;
30439       if (!first) sb.append(", ");
30440       sb.append("mutations:");
30441       if (this.mutations == null) {
30442         sb.append("null");
30443       } else {
30444         sb.append(this.mutations);
30445       }
30446       first = false;
30447       if (!first) sb.append(", ");
30448       sb.append("timestamp:");
30449       sb.append(this.timestamp);
30450       first = false;
30451       if (!first) sb.append(", ");
30452       sb.append("attributes:");
30453       if (this.attributes == null) {
30454         sb.append("null");
30455       } else {
30456         sb.append(this.attributes);
30457       }
30458       first = false;
30459       sb.append(")");
30460       return sb.toString();
30461     }
30462 
30463     public void validate() throws org.apache.thrift.TException {
30464       // check for required fields
30465       // check for sub-struct validity
30466     }
30467 
30468     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30469       try {
30470         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30471       } catch (org.apache.thrift.TException te) {
30472         throw new java.io.IOException(te);
30473       }
30474     }
30475 
30476     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30477       try {
30478         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30479         __isset_bitfield = 0;
30480         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30481       } catch (org.apache.thrift.TException te) {
30482         throw new java.io.IOException(te);
30483       }
30484     }
30485 
30486     private static class mutateRowTs_argsStandardSchemeFactory implements SchemeFactory {
30487       public mutateRowTs_argsStandardScheme getScheme() {
30488         return new mutateRowTs_argsStandardScheme();
30489       }
30490     }
30491 
30492     private static class mutateRowTs_argsStandardScheme extends StandardScheme<mutateRowTs_args> {
30493 
30494       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30495         org.apache.thrift.protocol.TField schemeField;
30496         iprot.readStructBegin();
30497         while (true)
30498         {
30499           schemeField = iprot.readFieldBegin();
30500           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
30501             break;
30502           }
30503           switch (schemeField.id) {
30504             case 1: // TABLE_NAME
30505               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30506                 struct.tableName = iprot.readBinary();
30507                 struct.setTableNameIsSet(true);
30508               } else { 
30509                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30510               }
30511               break;
30512             case 2: // ROW
30513               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30514                 struct.row = iprot.readBinary();
30515                 struct.setRowIsSet(true);
30516               } else { 
30517                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30518               }
30519               break;
30520             case 3: // MUTATIONS
30521               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
30522                 {
30523                   org.apache.thrift.protocol.TList _list364 = iprot.readListBegin();
30524                   struct.mutations = new ArrayList<Mutation>(_list364.size);
30525                   for (int _i365 = 0; _i365 < _list364.size; ++_i365)
30526                   {
30527                     Mutation _elem366; // required
30528                     _elem366 = new Mutation();
30529                     _elem366.read(iprot);
30530                     struct.mutations.add(_elem366);
30531                   }
30532                   iprot.readListEnd();
30533                 }
30534                 struct.setMutationsIsSet(true);
30535               } else { 
30536                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30537               }
30538               break;
30539             case 4: // TIMESTAMP
30540               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
30541                 struct.timestamp = iprot.readI64();
30542                 struct.setTimestampIsSet(true);
30543               } else { 
30544                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30545               }
30546               break;
30547             case 5: // ATTRIBUTES
30548               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
30549                 {
30550                   org.apache.thrift.protocol.TMap _map367 = iprot.readMapBegin();
30551                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map367.size);
30552                   for (int _i368 = 0; _i368 < _map367.size; ++_i368)
30553                   {
30554                     ByteBuffer _key369; // required
30555                     ByteBuffer _val370; // required
30556                     _key369 = iprot.readBinary();
30557                     _val370 = iprot.readBinary();
30558                     struct.attributes.put(_key369, _val370);
30559                   }
30560                   iprot.readMapEnd();
30561                 }
30562                 struct.setAttributesIsSet(true);
30563               } else { 
30564                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30565               }
30566               break;
30567             default:
30568               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30569           }
30570           iprot.readFieldEnd();
30571         }
30572         iprot.readStructEnd();
30573 
30574         // check for required fields of primitive type, which can't be checked in the validate method
30575         struct.validate();
30576       }
30577 
30578       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30579         struct.validate();
30580 
30581         oprot.writeStructBegin(STRUCT_DESC);
30582         if (struct.tableName != null) {
30583           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
30584           oprot.writeBinary(struct.tableName);
30585           oprot.writeFieldEnd();
30586         }
30587         if (struct.row != null) {
30588           oprot.writeFieldBegin(ROW_FIELD_DESC);
30589           oprot.writeBinary(struct.row);
30590           oprot.writeFieldEnd();
30591         }
30592         if (struct.mutations != null) {
30593           oprot.writeFieldBegin(MUTATIONS_FIELD_DESC);
30594           {
30595             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size()));
30596             for (Mutation _iter371 : struct.mutations)
30597             {
30598               _iter371.write(oprot);
30599             }
30600             oprot.writeListEnd();
30601           }
30602           oprot.writeFieldEnd();
30603         }
30604         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
30605         oprot.writeI64(struct.timestamp);
30606         oprot.writeFieldEnd();
30607         if (struct.attributes != null) {
30608           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
30609           {
30610             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
30611             for (Map.Entry<ByteBuffer, ByteBuffer> _iter372 : struct.attributes.entrySet())
30612             {
30613               oprot.writeBinary(_iter372.getKey());
30614               oprot.writeBinary(_iter372.getValue());
30615             }
30616             oprot.writeMapEnd();
30617           }
30618           oprot.writeFieldEnd();
30619         }
30620         oprot.writeFieldStop();
30621         oprot.writeStructEnd();
30622       }
30623 
30624     }
30625 
30626     private static class mutateRowTs_argsTupleSchemeFactory implements SchemeFactory {
30627       public mutateRowTs_argsTupleScheme getScheme() {
30628         return new mutateRowTs_argsTupleScheme();
30629       }
30630     }
30631 
30632     private static class mutateRowTs_argsTupleScheme extends TupleScheme<mutateRowTs_args> {
30633 
30634       @Override
30635       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30636         TTupleProtocol oprot = (TTupleProtocol) prot;
30637         BitSet optionals = new BitSet();
30638         if (struct.isSetTableName()) {
30639           optionals.set(0);
30640         }
30641         if (struct.isSetRow()) {
30642           optionals.set(1);
30643         }
30644         if (struct.isSetMutations()) {
30645           optionals.set(2);
30646         }
30647         if (struct.isSetTimestamp()) {
30648           optionals.set(3);
30649         }
30650         if (struct.isSetAttributes()) {
30651           optionals.set(4);
30652         }
30653         oprot.writeBitSet(optionals, 5);
30654         if (struct.isSetTableName()) {
30655           oprot.writeBinary(struct.tableName);
30656         }
30657         if (struct.isSetRow()) {
30658           oprot.writeBinary(struct.row);
30659         }
30660         if (struct.isSetMutations()) {
30661           {
30662             oprot.writeI32(struct.mutations.size());
30663             for (Mutation _iter373 : struct.mutations)
30664             {
30665               _iter373.write(oprot);
30666             }
30667           }
30668         }
30669         if (struct.isSetTimestamp()) {
30670           oprot.writeI64(struct.timestamp);
30671         }
30672         if (struct.isSetAttributes()) {
30673           {
30674             oprot.writeI32(struct.attributes.size());
30675             for (Map.Entry<ByteBuffer, ByteBuffer> _iter374 : struct.attributes.entrySet())
30676             {
30677               oprot.writeBinary(_iter374.getKey());
30678               oprot.writeBinary(_iter374.getValue());
30679             }
30680           }
30681         }
30682       }
30683 
30684       @Override
30685       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30686         TTupleProtocol iprot = (TTupleProtocol) prot;
30687         BitSet incoming = iprot.readBitSet(5);
30688         if (incoming.get(0)) {
30689           struct.tableName = iprot.readBinary();
30690           struct.setTableNameIsSet(true);
30691         }
30692         if (incoming.get(1)) {
30693           struct.row = iprot.readBinary();
30694           struct.setRowIsSet(true);
30695         }
30696         if (incoming.get(2)) {
30697           {
30698             org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
30699             struct.mutations = new ArrayList<Mutation>(_list375.size);
30700             for (int _i376 = 0; _i376 < _list375.size; ++_i376)
30701             {
30702               Mutation _elem377; // required
30703               _elem377 = new Mutation();
30704               _elem377.read(iprot);
30705               struct.mutations.add(_elem377);
30706             }
30707           }
30708           struct.setMutationsIsSet(true);
30709         }
30710         if (incoming.get(3)) {
30711           struct.timestamp = iprot.readI64();
30712           struct.setTimestampIsSet(true);
30713         }
30714         if (incoming.get(4)) {
30715           {
30716             org.apache.thrift.protocol.TMap _map378 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
30717             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map378.size);
30718             for (int _i379 = 0; _i379 < _map378.size; ++_i379)
30719             {
30720               ByteBuffer _key380; // required
30721               ByteBuffer _val381; // required
30722               _key380 = iprot.readBinary();
30723               _val381 = iprot.readBinary();
30724               struct.attributes.put(_key380, _val381);
30725             }
30726           }
30727           struct.setAttributesIsSet(true);
30728         }
30729       }
30730     }
30731 
30732   }
30733 
30734   public static class mutateRowTs_result implements org.apache.thrift.TBase<mutateRowTs_result, mutateRowTs_result._Fields>, java.io.Serializable, Cloneable   {
30735     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_result");
30736 
30737     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30738     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
30739 
30740     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30741     static {
30742       schemes.put(StandardScheme.class, new mutateRowTs_resultStandardSchemeFactory());
30743       schemes.put(TupleScheme.class, new mutateRowTs_resultTupleSchemeFactory());
30744     }
30745 
30746     public IOError io; // required
30747     public IllegalArgument ia; // required
30748 
30749     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30750     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30751       IO((short)1, "io"),
30752       IA((short)2, "ia");
30753 
30754       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30755 
30756       static {
30757         for (_Fields field : EnumSet.allOf(_Fields.class)) {
30758           byName.put(field.getFieldName(), field);
30759         }
30760       }
30761 
30762       /**
30763        * Find the _Fields constant that matches fieldId, or null if its not found.
30764        */
30765       public static _Fields findByThriftId(int fieldId) {
30766         switch(fieldId) {
30767           case 1: // IO
30768             return IO;
30769           case 2: // IA
30770             return IA;
30771           default:
30772             return null;
30773         }
30774       }
30775 
30776       /**
30777        * Find the _Fields constant that matches fieldId, throwing an exception
30778        * if it is not found.
30779        */
30780       public static _Fields findByThriftIdOrThrow(int fieldId) {
30781         _Fields fields = findByThriftId(fieldId);
30782         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30783         return fields;
30784       }
30785 
30786       /**
30787        * Find the _Fields constant that matches name, or null if its not found.
30788        */
30789       public static _Fields findByName(String name) {
30790         return byName.get(name);
30791       }
30792 
30793       private final short _thriftId;
30794       private final String _fieldName;
30795 
30796       _Fields(short thriftId, String fieldName) {
30797         _thriftId = thriftId;
30798         _fieldName = fieldName;
30799       }
30800 
30801       public short getThriftFieldId() {
30802         return _thriftId;
30803       }
30804 
30805       public String getFieldName() {
30806         return _fieldName;
30807       }
30808     }
30809 
30810     // isset id assignments
30811     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30812     static {
30813       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30814       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30815           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30816       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30817           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30818       metaDataMap = Collections.unmodifiableMap(tmpMap);
30819       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_result.class, metaDataMap);
30820     }
30821 
30822     public mutateRowTs_result() {
30823     }
30824 
30825     public mutateRowTs_result(
30826       IOError io,
30827       IllegalArgument ia)
30828     {
30829       this();
30830       this.io = io;
30831       this.ia = ia;
30832     }
30833 
30834     /**
30835      * Performs a deep copy on <i>other</i>.
30836      */
30837     public mutateRowTs_result(mutateRowTs_result other) {
30838       if (other.isSetIo()) {
30839         this.io = new IOError(other.io);
30840       }
30841       if (other.isSetIa()) {
30842         this.ia = new IllegalArgument(other.ia);
30843       }
30844     }
30845 
30846     public mutateRowTs_result deepCopy() {
30847       return new mutateRowTs_result(this);
30848     }
30849 
30850     @Override
30851     public void clear() {
30852       this.io = null;
30853       this.ia = null;
30854     }
30855 
30856     public IOError getIo() {
30857       return this.io;
30858     }
30859 
30860     public mutateRowTs_result setIo(IOError io) {
30861       this.io = io;
30862       return this;
30863     }
30864 
30865     public void unsetIo() {
30866       this.io = null;
30867     }
30868 
30869     /** Returns true if field io is set (has been assigned a value) and false otherwise */
30870     public boolean isSetIo() {
30871       return this.io != null;
30872     }
30873 
30874     public void setIoIsSet(boolean value) {
30875       if (!value) {
30876         this.io = null;
30877       }
30878     }
30879 
30880     public IllegalArgument getIa() {
30881       return this.ia;
30882     }
30883 
30884     public mutateRowTs_result setIa(IllegalArgument ia) {
30885       this.ia = ia;
30886       return this;
30887     }
30888 
30889     public void unsetIa() {
30890       this.ia = null;
30891     }
30892 
30893     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
30894     public boolean isSetIa() {
30895       return this.ia != null;
30896     }
30897 
30898     public void setIaIsSet(boolean value) {
30899       if (!value) {
30900         this.ia = null;
30901       }
30902     }
30903 
30904     public void setFieldValue(_Fields field, Object value) {
30905       switch (field) {
30906       case IO:
30907         if (value == null) {
30908           unsetIo();
30909         } else {
30910           setIo((IOError)value);
30911         }
30912         break;
30913 
30914       case IA:
30915         if (value == null) {
30916           unsetIa();
30917         } else {
30918           setIa((IllegalArgument)value);
30919         }
30920         break;
30921 
30922       }
30923     }
30924 
30925     public Object getFieldValue(_Fields field) {
30926       switch (field) {
30927       case IO:
30928         return getIo();
30929 
30930       case IA:
30931         return getIa();
30932 
30933       }
30934       throw new IllegalStateException();
30935     }
30936 
30937     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30938     public boolean isSet(_Fields field) {
30939       if (field == null) {
30940         throw new IllegalArgumentException();
30941       }
30942 
30943       switch (field) {
30944       case IO:
30945         return isSetIo();
30946       case IA:
30947         return isSetIa();
30948       }
30949       throw new IllegalStateException();
30950     }
30951 
30952     @Override
30953     public boolean equals(Object that) {
30954       if (that == null)
30955         return false;
30956       if (that instanceof mutateRowTs_result)
30957         return this.equals((mutateRowTs_result)that);
30958       return false;
30959     }
30960 
30961     public boolean equals(mutateRowTs_result that) {
30962       if (that == null)
30963         return false;
30964 
30965       boolean this_present_io = true && this.isSetIo();
30966       boolean that_present_io = true && that.isSetIo();
30967       if (this_present_io || that_present_io) {
30968         if (!(this_present_io && that_present_io))
30969           return false;
30970         if (!this.io.equals(that.io))
30971           return false;
30972       }
30973 
30974       boolean this_present_ia = true && this.isSetIa();
30975       boolean that_present_ia = true && that.isSetIa();
30976       if (this_present_ia || that_present_ia) {
30977         if (!(this_present_ia && that_present_ia))
30978           return false;
30979         if (!this.ia.equals(that.ia))
30980           return false;
30981       }
30982 
30983       return true;
30984     }
30985 
30986     @Override
30987     public int hashCode() {
30988       HashCodeBuilder builder = new HashCodeBuilder();
30989 
30990       boolean present_io = true && (isSetIo());
30991       builder.append(present_io);
30992       if (present_io)
30993         builder.append(io);
30994 
30995       boolean present_ia = true && (isSetIa());
30996       builder.append(present_ia);
30997       if (present_ia)
30998         builder.append(ia);
30999 
31000       return builder.toHashCode();
31001     }
31002 
31003     public int compareTo(mutateRowTs_result other) {
31004       if (!getClass().equals(other.getClass())) {
31005         return getClass().getName().compareTo(other.getClass().getName());
31006       }
31007 
31008       int lastComparison = 0;
31009       mutateRowTs_result typedOther = (mutateRowTs_result)other;
31010 
31011       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
31012       if (lastComparison != 0) {
31013         return lastComparison;
31014       }
31015       if (isSetIo()) {
31016         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
31017         if (lastComparison != 0) {
31018           return lastComparison;
31019         }
31020       }
31021       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
31022       if (lastComparison != 0) {
31023         return lastComparison;
31024       }
31025       if (isSetIa()) {
31026         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
31027         if (lastComparison != 0) {
31028           return lastComparison;
31029         }
31030       }
31031       return 0;
31032     }
31033 
31034     public _Fields fieldForId(int fieldId) {
31035       return _Fields.findByThriftId(fieldId);
31036     }
31037 
31038     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31039       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31040     }
31041 
31042     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31043       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31044       }
31045 
31046     @Override
31047     public String toString() {
31048       StringBuilder sb = new StringBuilder("mutateRowTs_result(");
31049       boolean first = true;
31050 
31051       sb.append("io:");
31052       if (this.io == null) {
31053         sb.append("null");
31054       } else {
31055         sb.append(this.io);
31056       }
31057       first = false;
31058       if (!first) sb.append(", ");
31059       sb.append("ia:");
31060       if (this.ia == null) {
31061         sb.append("null");
31062       } else {
31063         sb.append(this.ia);
31064       }
31065       first = false;
31066       sb.append(")");
31067       return sb.toString();
31068     }
31069 
31070     public void validate() throws org.apache.thrift.TException {
31071       // check for required fields
31072       // check for sub-struct validity
31073     }
31074 
31075     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31076       try {
31077         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31078       } catch (org.apache.thrift.TException te) {
31079         throw new java.io.IOException(te);
31080       }
31081     }
31082 
31083     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31084       try {
31085         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31086       } catch (org.apache.thrift.TException te) {
31087         throw new java.io.IOException(te);
31088       }
31089     }
31090 
31091     private static class mutateRowTs_resultStandardSchemeFactory implements SchemeFactory {
31092       public mutateRowTs_resultStandardScheme getScheme() {
31093         return new mutateRowTs_resultStandardScheme();
31094       }
31095     }
31096 
31097     private static class mutateRowTs_resultStandardScheme extends StandardScheme<mutateRowTs_result> {
31098 
31099       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31100         org.apache.thrift.protocol.TField schemeField;
31101         iprot.readStructBegin();
31102         while (true)
31103         {
31104           schemeField = iprot.readFieldBegin();
31105           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
31106             break;
31107           }
31108           switch (schemeField.id) {
31109             case 1: // IO
31110               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31111                 struct.io = new IOError();
31112                 struct.io.read(iprot);
31113                 struct.setIoIsSet(true);
31114               } else { 
31115                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31116               }
31117               break;
31118             case 2: // IA
31119               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31120                 struct.ia = new IllegalArgument();
31121                 struct.ia.read(iprot);
31122                 struct.setIaIsSet(true);
31123               } else { 
31124                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31125               }
31126               break;
31127             default:
31128               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31129           }
31130           iprot.readFieldEnd();
31131         }
31132         iprot.readStructEnd();
31133 
31134         // check for required fields of primitive type, which can't be checked in the validate method
31135         struct.validate();
31136       }
31137 
31138       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31139         struct.validate();
31140 
31141         oprot.writeStructBegin(STRUCT_DESC);
31142         if (struct.io != null) {
31143           oprot.writeFieldBegin(IO_FIELD_DESC);
31144           struct.io.write(oprot);
31145           oprot.writeFieldEnd();
31146         }
31147         if (struct.ia != null) {
31148           oprot.writeFieldBegin(IA_FIELD_DESC);
31149           struct.ia.write(oprot);
31150           oprot.writeFieldEnd();
31151         }
31152         oprot.writeFieldStop();
31153         oprot.writeStructEnd();
31154       }
31155 
31156     }
31157 
31158     private static class mutateRowTs_resultTupleSchemeFactory implements SchemeFactory {
31159       public mutateRowTs_resultTupleScheme getScheme() {
31160         return new mutateRowTs_resultTupleScheme();
31161       }
31162     }
31163 
31164     private static class mutateRowTs_resultTupleScheme extends TupleScheme<mutateRowTs_result> {
31165 
31166       @Override
31167       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31168         TTupleProtocol oprot = (TTupleProtocol) prot;
31169         BitSet optionals = new BitSet();
31170         if (struct.isSetIo()) {
31171           optionals.set(0);
31172         }
31173         if (struct.isSetIa()) {
31174           optionals.set(1);
31175         }
31176         oprot.writeBitSet(optionals, 2);
31177         if (struct.isSetIo()) {
31178           struct.io.write(oprot);
31179         }
31180         if (struct.isSetIa()) {
31181           struct.ia.write(oprot);
31182         }
31183       }
31184 
31185       @Override
31186       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31187         TTupleProtocol iprot = (TTupleProtocol) prot;
31188         BitSet incoming = iprot.readBitSet(2);
31189         if (incoming.get(0)) {
31190           struct.io = new IOError();
31191           struct.io.read(iprot);
31192           struct.setIoIsSet(true);
31193         }
31194         if (incoming.get(1)) {
31195           struct.ia = new IllegalArgument();
31196           struct.ia.read(iprot);
31197           struct.setIaIsSet(true);
31198         }
31199       }
31200     }
31201 
31202   }
31203 
31204   public static class mutateRows_args implements org.apache.thrift.TBase<mutateRows_args, mutateRows_args._Fields>, java.io.Serializable, Cloneable   {
31205     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_args");
31206 
31207     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
31208     private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2);
31209     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
31210 
31211     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31212     static {
31213       schemes.put(StandardScheme.class, new mutateRows_argsStandardSchemeFactory());
31214       schemes.put(TupleScheme.class, new mutateRows_argsTupleSchemeFactory());
31215     }
31216 
31217     /**
31218      * name of table
31219      */
31220     public ByteBuffer tableName; // required
31221     /**
31222      * list of row batches
31223      */
31224     public List<BatchMutation> rowBatches; // required
31225     /**
31226      * Mutation attributes
31227      */
31228     public Map<ByteBuffer,ByteBuffer> attributes; // required
31229 
31230     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31231     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31232       /**
31233        * name of table
31234        */
31235       TABLE_NAME((short)1, "tableName"),
31236       /**
31237        * list of row batches
31238        */
31239       ROW_BATCHES((short)2, "rowBatches"),
31240       /**
31241        * Mutation attributes
31242        */
31243       ATTRIBUTES((short)3, "attributes");
31244 
31245       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31246 
31247       static {
31248         for (_Fields field : EnumSet.allOf(_Fields.class)) {
31249           byName.put(field.getFieldName(), field);
31250         }
31251       }
31252 
31253       /**
31254        * Find the _Fields constant that matches fieldId, or null if its not found.
31255        */
31256       public static _Fields findByThriftId(int fieldId) {
31257         switch(fieldId) {
31258           case 1: // TABLE_NAME
31259             return TABLE_NAME;
31260           case 2: // ROW_BATCHES
31261             return ROW_BATCHES;
31262           case 3: // ATTRIBUTES
31263             return ATTRIBUTES;
31264           default:
31265             return null;
31266         }
31267       }
31268 
31269       /**
31270        * Find the _Fields constant that matches fieldId, throwing an exception
31271        * if it is not found.
31272        */
31273       public static _Fields findByThriftIdOrThrow(int fieldId) {
31274         _Fields fields = findByThriftId(fieldId);
31275         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31276         return fields;
31277       }
31278 
31279       /**
31280        * Find the _Fields constant that matches name, or null if its not found.
31281        */
31282       public static _Fields findByName(String name) {
31283         return byName.get(name);
31284       }
31285 
31286       private final short _thriftId;
31287       private final String _fieldName;
31288 
31289       _Fields(short thriftId, String fieldName) {
31290         _thriftId = thriftId;
31291         _fieldName = fieldName;
31292       }
31293 
31294       public short getThriftFieldId() {
31295         return _thriftId;
31296       }
31297 
31298       public String getFieldName() {
31299         return _fieldName;
31300       }
31301     }
31302 
31303     // isset id assignments
31304     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31305     static {
31306       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31307       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31308           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
31309       tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31310           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31311               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class))));
31312       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31313           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31314               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
31315               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
31316       metaDataMap = Collections.unmodifiableMap(tmpMap);
31317       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_args.class, metaDataMap);
31318     }
31319 
31320     public mutateRows_args() {
31321     }
31322 
31323     public mutateRows_args(
31324       ByteBuffer tableName,
31325       List<BatchMutation> rowBatches,
31326       Map<ByteBuffer,ByteBuffer> attributes)
31327     {
31328       this();
31329       this.tableName = tableName;
31330       this.rowBatches = rowBatches;
31331       this.attributes = attributes;
31332     }
31333 
31334     /**
31335      * Performs a deep copy on <i>other</i>.
31336      */
31337     public mutateRows_args(mutateRows_args other) {
31338       if (other.isSetTableName()) {
31339         this.tableName = other.tableName;
31340       }
31341       if (other.isSetRowBatches()) {
31342         List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>();
31343         for (BatchMutation other_element : other.rowBatches) {
31344           __this__rowBatches.add(new BatchMutation(other_element));
31345         }
31346         this.rowBatches = __this__rowBatches;
31347       }
31348       if (other.isSetAttributes()) {
31349         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
31350         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
31351 
31352           ByteBuffer other_element_key = other_element.getKey();
31353           ByteBuffer other_element_value = other_element.getValue();
31354 
31355           ByteBuffer __this__attributes_copy_key = other_element_key;
31356 
31357           ByteBuffer __this__attributes_copy_value = other_element_value;
31358 
31359           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
31360         }
31361         this.attributes = __this__attributes;
31362       }
31363     }
31364 
31365     public mutateRows_args deepCopy() {
31366       return new mutateRows_args(this);
31367     }
31368 
31369     @Override
31370     public void clear() {
31371       this.tableName = null;
31372       this.rowBatches = null;
31373       this.attributes = null;
31374     }
31375 
31376     /**
31377      * name of table
31378      */
31379     public byte[] getTableName() {
31380       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
31381       return tableName == null ? null : tableName.array();
31382     }
31383 
31384     public ByteBuffer bufferForTableName() {
31385       return tableName;
31386     }
31387 
31388     /**
31389      * name of table
31390      */
31391     public mutateRows_args setTableName(byte[] tableName) {
31392       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
31393       return this;
31394     }
31395 
31396     public mutateRows_args setTableName(ByteBuffer tableName) {
31397       this.tableName = tableName;
31398       return this;
31399     }
31400 
31401     public void unsetTableName() {
31402       this.tableName = null;
31403     }
31404 
31405     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
31406     public boolean isSetTableName() {
31407       return this.tableName != null;
31408     }
31409 
31410     public void setTableNameIsSet(boolean value) {
31411       if (!value) {
31412         this.tableName = null;
31413       }
31414     }
31415 
31416     public int getRowBatchesSize() {
31417       return (this.rowBatches == null) ? 0 : this.rowBatches.size();
31418     }
31419 
31420     public java.util.Iterator<BatchMutation> getRowBatchesIterator() {
31421       return (this.rowBatches == null) ? null : this.rowBatches.iterator();
31422     }
31423 
31424     public void addToRowBatches(BatchMutation elem) {
31425       if (this.rowBatches == null) {
31426         this.rowBatches = new ArrayList<BatchMutation>();
31427       }
31428       this.rowBatches.add(elem);
31429     }
31430 
31431     /**
31432      * list of row batches
31433      */
31434     public List<BatchMutation> getRowBatches() {
31435       return this.rowBatches;
31436     }
31437 
31438     /**
31439      * list of row batches
31440      */
31441     public mutateRows_args setRowBatches(List<BatchMutation> rowBatches) {
31442       this.rowBatches = rowBatches;
31443       return this;
31444     }
31445 
31446     public void unsetRowBatches() {
31447       this.rowBatches = null;
31448     }
31449 
31450     /** Returns true if field rowBatches is set (has been assigned a value) and false otherwise */
31451     public boolean isSetRowBatches() {
31452       return this.rowBatches != null;
31453     }
31454 
31455     public void setRowBatchesIsSet(boolean value) {
31456       if (!value) {
31457         this.rowBatches = null;
31458       }
31459     }
31460 
31461     public int getAttributesSize() {
31462       return (this.attributes == null) ? 0 : this.attributes.size();
31463     }
31464 
31465     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
31466       if (this.attributes == null) {
31467         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
31468       }
31469       this.attributes.put(key, val);
31470     }
31471 
31472     /**
31473      * Mutation attributes
31474      */
31475     public Map<ByteBuffer,ByteBuffer> getAttributes() {
31476       return this.attributes;
31477     }
31478 
31479     /**
31480      * Mutation attributes
31481      */
31482     public mutateRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
31483       this.attributes = attributes;
31484       return this;
31485     }
31486 
31487     public void unsetAttributes() {
31488       this.attributes = null;
31489     }
31490 
31491     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
31492     public boolean isSetAttributes() {
31493       return this.attributes != null;
31494     }
31495 
31496     public void setAttributesIsSet(boolean value) {
31497       if (!value) {
31498         this.attributes = null;
31499       }
31500     }
31501 
31502     public void setFieldValue(_Fields field, Object value) {
31503       switch (field) {
31504       case TABLE_NAME:
31505         if (value == null) {
31506           unsetTableName();
31507         } else {
31508           setTableName((ByteBuffer)value);
31509         }
31510         break;
31511 
31512       case ROW_BATCHES:
31513         if (value == null) {
31514           unsetRowBatches();
31515         } else {
31516           setRowBatches((List<BatchMutation>)value);
31517         }
31518         break;
31519 
31520       case ATTRIBUTES:
31521         if (value == null) {
31522           unsetAttributes();
31523         } else {
31524           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
31525         }
31526         break;
31527 
31528       }
31529     }
31530 
31531     public Object getFieldValue(_Fields field) {
31532       switch (field) {
31533       case TABLE_NAME:
31534         return getTableName();
31535 
31536       case ROW_BATCHES:
31537         return getRowBatches();
31538 
31539       case ATTRIBUTES:
31540         return getAttributes();
31541 
31542       }
31543       throw new IllegalStateException();
31544     }
31545 
31546     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31547     public boolean isSet(_Fields field) {
31548       if (field == null) {
31549         throw new IllegalArgumentException();
31550       }
31551 
31552       switch (field) {
31553       case TABLE_NAME:
31554         return isSetTableName();
31555       case ROW_BATCHES:
31556         return isSetRowBatches();
31557       case ATTRIBUTES:
31558         return isSetAttributes();
31559       }
31560       throw new IllegalStateException();
31561     }
31562 
31563     @Override
31564     public boolean equals(Object that) {
31565       if (that == null)
31566         return false;
31567       if (that instanceof mutateRows_args)
31568         return this.equals((mutateRows_args)that);
31569       return false;
31570     }
31571 
31572     public boolean equals(mutateRows_args that) {
31573       if (that == null)
31574         return false;
31575 
31576       boolean this_present_tableName = true && this.isSetTableName();
31577       boolean that_present_tableName = true && that.isSetTableName();
31578       if (this_present_tableName || that_present_tableName) {
31579         if (!(this_present_tableName && that_present_tableName))
31580           return false;
31581         if (!this.tableName.equals(that.tableName))
31582           return false;
31583       }
31584 
31585       boolean this_present_rowBatches = true && this.isSetRowBatches();
31586       boolean that_present_rowBatches = true && that.isSetRowBatches();
31587       if (this_present_rowBatches || that_present_rowBatches) {
31588         if (!(this_present_rowBatches && that_present_rowBatches))
31589           return false;
31590         if (!this.rowBatches.equals(that.rowBatches))
31591           return false;
31592       }
31593 
31594       boolean this_present_attributes = true && this.isSetAttributes();
31595       boolean that_present_attributes = true && that.isSetAttributes();
31596       if (this_present_attributes || that_present_attributes) {
31597         if (!(this_present_attributes && that_present_attributes))
31598           return false;
31599         if (!this.attributes.equals(that.attributes))
31600           return false;
31601       }
31602 
31603       return true;
31604     }
31605 
31606     @Override
31607     public int hashCode() {
31608       HashCodeBuilder builder = new HashCodeBuilder();
31609 
31610       boolean present_tableName = true && (isSetTableName());
31611       builder.append(present_tableName);
31612       if (present_tableName)
31613         builder.append(tableName);
31614 
31615       boolean present_rowBatches = true && (isSetRowBatches());
31616       builder.append(present_rowBatches);
31617       if (present_rowBatches)
31618         builder.append(rowBatches);
31619 
31620       boolean present_attributes = true && (isSetAttributes());
31621       builder.append(present_attributes);
31622       if (present_attributes)
31623         builder.append(attributes);
31624 
31625       return builder.toHashCode();
31626     }
31627 
31628     public int compareTo(mutateRows_args other) {
31629       if (!getClass().equals(other.getClass())) {
31630         return getClass().getName().compareTo(other.getClass().getName());
31631       }
31632 
31633       int lastComparison = 0;
31634       mutateRows_args typedOther = (mutateRows_args)other;
31635 
31636       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
31637       if (lastComparison != 0) {
31638         return lastComparison;
31639       }
31640       if (isSetTableName()) {
31641         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
31642         if (lastComparison != 0) {
31643           return lastComparison;
31644         }
31645       }
31646       lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches());
31647       if (lastComparison != 0) {
31648         return lastComparison;
31649       }
31650       if (isSetRowBatches()) {
31651         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches);
31652         if (lastComparison != 0) {
31653           return lastComparison;
31654         }
31655       }
31656       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
31657       if (lastComparison != 0) {
31658         return lastComparison;
31659       }
31660       if (isSetAttributes()) {
31661         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
31662         if (lastComparison != 0) {
31663           return lastComparison;
31664         }
31665       }
31666       return 0;
31667     }
31668 
31669     public _Fields fieldForId(int fieldId) {
31670       return _Fields.findByThriftId(fieldId);
31671     }
31672 
31673     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31674       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31675     }
31676 
31677     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31678       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31679     }
31680 
31681     @Override
31682     public String toString() {
31683       StringBuilder sb = new StringBuilder("mutateRows_args(");
31684       boolean first = true;
31685 
31686       sb.append("tableName:");
31687       if (this.tableName == null) {
31688         sb.append("null");
31689       } else {
31690         sb.append(this.tableName);
31691       }
31692       first = false;
31693       if (!first) sb.append(", ");
31694       sb.append("rowBatches:");
31695       if (this.rowBatches == null) {
31696         sb.append("null");
31697       } else {
31698         sb.append(this.rowBatches);
31699       }
31700       first = false;
31701       if (!first) sb.append(", ");
31702       sb.append("attributes:");
31703       if (this.attributes == null) {
31704         sb.append("null");
31705       } else {
31706         sb.append(this.attributes);
31707       }
31708       first = false;
31709       sb.append(")");
31710       return sb.toString();
31711     }
31712 
31713     public void validate() throws org.apache.thrift.TException {
31714       // check for required fields
31715       // check for sub-struct validity
31716     }
31717 
31718     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31719       try {
31720         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31721       } catch (org.apache.thrift.TException te) {
31722         throw new java.io.IOException(te);
31723       }
31724     }
31725 
31726     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31727       try {
31728         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31729       } catch (org.apache.thrift.TException te) {
31730         throw new java.io.IOException(te);
31731       }
31732     }
31733 
31734     private static class mutateRows_argsStandardSchemeFactory implements SchemeFactory {
31735       public mutateRows_argsStandardScheme getScheme() {
31736         return new mutateRows_argsStandardScheme();
31737       }
31738     }
31739 
31740     private static class mutateRows_argsStandardScheme extends StandardScheme<mutateRows_args> {
31741 
31742       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_args struct) throws org.apache.thrift.TException {
31743         org.apache.thrift.protocol.TField schemeField;
31744         iprot.readStructBegin();
31745         while (true)
31746         {
31747           schemeField = iprot.readFieldBegin();
31748           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
31749             break;
31750           }
31751           switch (schemeField.id) {
31752             case 1: // TABLE_NAME
31753               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
31754                 struct.tableName = iprot.readBinary();
31755                 struct.setTableNameIsSet(true);
31756               } else { 
31757                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31758               }
31759               break;
31760             case 2: // ROW_BATCHES
31761               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
31762                 {
31763                   org.apache.thrift.protocol.TList _list382 = iprot.readListBegin();
31764                   struct.rowBatches = new ArrayList<BatchMutation>(_list382.size);
31765                   for (int _i383 = 0; _i383 < _list382.size; ++_i383)
31766                   {
31767                     BatchMutation _elem384; // required
31768                     _elem384 = new BatchMutation();
31769                     _elem384.read(iprot);
31770                     struct.rowBatches.add(_elem384);
31771                   }
31772                   iprot.readListEnd();
31773                 }
31774                 struct.setRowBatchesIsSet(true);
31775               } else { 
31776                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31777               }
31778               break;
31779             case 3: // ATTRIBUTES
31780               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
31781                 {
31782                   org.apache.thrift.protocol.TMap _map385 = iprot.readMapBegin();
31783                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map385.size);
31784                   for (int _i386 = 0; _i386 < _map385.size; ++_i386)
31785                   {
31786                     ByteBuffer _key387; // required
31787                     ByteBuffer _val388; // required
31788                     _key387 = iprot.readBinary();
31789                     _val388 = iprot.readBinary();
31790                     struct.attributes.put(_key387, _val388);
31791                   }
31792                   iprot.readMapEnd();
31793                 }
31794                 struct.setAttributesIsSet(true);
31795               } else { 
31796                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31797               }
31798               break;
31799             default:
31800               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31801           }
31802           iprot.readFieldEnd();
31803         }
31804         iprot.readStructEnd();
31805 
31806         // check for required fields of primitive type, which can't be checked in the validate method
31807         struct.validate();
31808       }
31809 
31810       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_args struct) throws org.apache.thrift.TException {
31811         struct.validate();
31812 
31813         oprot.writeStructBegin(STRUCT_DESC);
31814         if (struct.tableName != null) {
31815           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
31816           oprot.writeBinary(struct.tableName);
31817           oprot.writeFieldEnd();
31818         }
31819         if (struct.rowBatches != null) {
31820           oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC);
31821           {
31822             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size()));
31823             for (BatchMutation _iter389 : struct.rowBatches)
31824             {
31825               _iter389.write(oprot);
31826             }
31827             oprot.writeListEnd();
31828           }
31829           oprot.writeFieldEnd();
31830         }
31831         if (struct.attributes != null) {
31832           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
31833           {
31834             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
31835             for (Map.Entry<ByteBuffer, ByteBuffer> _iter390 : struct.attributes.entrySet())
31836             {
31837               oprot.writeBinary(_iter390.getKey());
31838               oprot.writeBinary(_iter390.getValue());
31839             }
31840             oprot.writeMapEnd();
31841           }
31842           oprot.writeFieldEnd();
31843         }
31844         oprot.writeFieldStop();
31845         oprot.writeStructEnd();
31846       }
31847 
31848     }
31849 
31850     private static class mutateRows_argsTupleSchemeFactory implements SchemeFactory {
31851       public mutateRows_argsTupleScheme getScheme() {
31852         return new mutateRows_argsTupleScheme();
31853       }
31854     }
31855 
31856     private static class mutateRows_argsTupleScheme extends TupleScheme<mutateRows_args> {
31857 
31858       @Override
31859       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException {
31860         TTupleProtocol oprot = (TTupleProtocol) prot;
31861         BitSet optionals = new BitSet();
31862         if (struct.isSetTableName()) {
31863           optionals.set(0);
31864         }
31865         if (struct.isSetRowBatches()) {
31866           optionals.set(1);
31867         }
31868         if (struct.isSetAttributes()) {
31869           optionals.set(2);
31870         }
31871         oprot.writeBitSet(optionals, 3);
31872         if (struct.isSetTableName()) {
31873           oprot.writeBinary(struct.tableName);
31874         }
31875         if (struct.isSetRowBatches()) {
31876           {
31877             oprot.writeI32(struct.rowBatches.size());
31878             for (BatchMutation _iter391 : struct.rowBatches)
31879             {
31880               _iter391.write(oprot);
31881             }
31882           }
31883         }
31884         if (struct.isSetAttributes()) {
31885           {
31886             oprot.writeI32(struct.attributes.size());
31887             for (Map.Entry<ByteBuffer, ByteBuffer> _iter392 : struct.attributes.entrySet())
31888             {
31889               oprot.writeBinary(_iter392.getKey());
31890               oprot.writeBinary(_iter392.getValue());
31891             }
31892           }
31893         }
31894       }
31895 
31896       @Override
31897       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException {
31898         TTupleProtocol iprot = (TTupleProtocol) prot;
31899         BitSet incoming = iprot.readBitSet(3);
31900         if (incoming.get(0)) {
31901           struct.tableName = iprot.readBinary();
31902           struct.setTableNameIsSet(true);
31903         }
31904         if (incoming.get(1)) {
31905           {
31906             org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
31907             struct.rowBatches = new ArrayList<BatchMutation>(_list393.size);
31908             for (int _i394 = 0; _i394 < _list393.size; ++_i394)
31909             {
31910               BatchMutation _elem395; // required
31911               _elem395 = new BatchMutation();
31912               _elem395.read(iprot);
31913               struct.rowBatches.add(_elem395);
31914             }
31915           }
31916           struct.setRowBatchesIsSet(true);
31917         }
31918         if (incoming.get(2)) {
31919           {
31920             org.apache.thrift.protocol.TMap _map396 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
31921             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map396.size);
31922             for (int _i397 = 0; _i397 < _map396.size; ++_i397)
31923             {
31924               ByteBuffer _key398; // required
31925               ByteBuffer _val399; // required
31926               _key398 = iprot.readBinary();
31927               _val399 = iprot.readBinary();
31928               struct.attributes.put(_key398, _val399);
31929             }
31930           }
31931           struct.setAttributesIsSet(true);
31932         }
31933       }
31934     }
31935 
31936   }
31937 
31938   public static class mutateRows_result implements org.apache.thrift.TBase<mutateRows_result, mutateRows_result._Fields>, java.io.Serializable, Cloneable   {
31939     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_result");
31940 
31941     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
31942     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
31943 
31944     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31945     static {
31946       schemes.put(StandardScheme.class, new mutateRows_resultStandardSchemeFactory());
31947       schemes.put(TupleScheme.class, new mutateRows_resultTupleSchemeFactory());
31948     }
31949 
31950     public IOError io; // required
31951     public IllegalArgument ia; // required
31952 
31953     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31954     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31955       IO((short)1, "io"),
31956       IA((short)2, "ia");
31957 
31958       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31959 
31960       static {
31961         for (_Fields field : EnumSet.allOf(_Fields.class)) {
31962           byName.put(field.getFieldName(), field);
31963         }
31964       }
31965 
31966       /**
31967        * Find the _Fields constant that matches fieldId, or null if its not found.
31968        */
31969       public static _Fields findByThriftId(int fieldId) {
31970         switch(fieldId) {
31971           case 1: // IO
31972             return IO;
31973           case 2: // IA
31974             return IA;
31975           default:
31976             return null;
31977         }
31978       }
31979 
31980       /**
31981        * Find the _Fields constant that matches fieldId, throwing an exception
31982        * if it is not found.
31983        */
31984       public static _Fields findByThriftIdOrThrow(int fieldId) {
31985         _Fields fields = findByThriftId(fieldId);
31986         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31987         return fields;
31988       }
31989 
31990       /**
31991        * Find the _Fields constant that matches name, or null if its not found.
31992        */
31993       public static _Fields findByName(String name) {
31994         return byName.get(name);
31995       }
31996 
31997       private final short _thriftId;
31998       private final String _fieldName;
31999 
32000       _Fields(short thriftId, String fieldName) {
32001         _thriftId = thriftId;
32002         _fieldName = fieldName;
32003       }
32004 
32005       public short getThriftFieldId() {
32006         return _thriftId;
32007       }
32008 
32009       public String getFieldName() {
32010         return _fieldName;
32011       }
32012     }
32013 
32014     // isset id assignments
32015     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32016     static {
32017       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32018       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32019           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32020       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32021           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32022       metaDataMap = Collections.unmodifiableMap(tmpMap);
32023       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_result.class, metaDataMap);
32024     }
32025 
32026     public mutateRows_result() {
32027     }
32028 
32029     public mutateRows_result(
32030       IOError io,
32031       IllegalArgument ia)
32032     {
32033       this();
32034       this.io = io;
32035       this.ia = ia;
32036     }
32037 
32038     /**
32039      * Performs a deep copy on <i>other</i>.
32040      */
32041     public mutateRows_result(mutateRows_result other) {
32042       if (other.isSetIo()) {
32043         this.io = new IOError(other.io);
32044       }
32045       if (other.isSetIa()) {
32046         this.ia = new IllegalArgument(other.ia);
32047       }
32048     }
32049 
32050     public mutateRows_result deepCopy() {
32051       return new mutateRows_result(this);
32052     }
32053 
32054     @Override
32055     public void clear() {
32056       this.io = null;
32057       this.ia = null;
32058     }
32059 
32060     public IOError getIo() {
32061       return this.io;
32062     }
32063 
32064     public mutateRows_result setIo(IOError io) {
32065       this.io = io;
32066       return this;
32067     }
32068 
32069     public void unsetIo() {
32070       this.io = null;
32071     }
32072 
32073     /** Returns true if field io is set (has been assigned a value) and false otherwise */
32074     public boolean isSetIo() {
32075       return this.io != null;
32076     }
32077 
32078     public void setIoIsSet(boolean value) {
32079       if (!value) {
32080         this.io = null;
32081       }
32082     }
32083 
32084     public IllegalArgument getIa() {
32085       return this.ia;
32086     }
32087 
32088     public mutateRows_result setIa(IllegalArgument ia) {
32089       this.ia = ia;
32090       return this;
32091     }
32092 
32093     public void unsetIa() {
32094       this.ia = null;
32095     }
32096 
32097     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
32098     public boolean isSetIa() {
32099       return this.ia != null;
32100     }
32101 
32102     public void setIaIsSet(boolean value) {
32103       if (!value) {
32104         this.ia = null;
32105       }
32106     }
32107 
32108     public void setFieldValue(_Fields field, Object value) {
32109       switch (field) {
32110       case IO:
32111         if (value == null) {
32112           unsetIo();
32113         } else {
32114           setIo((IOError)value);
32115         }
32116         break;
32117 
32118       case IA:
32119         if (value == null) {
32120           unsetIa();
32121         } else {
32122           setIa((IllegalArgument)value);
32123         }
32124         break;
32125 
32126       }
32127     }
32128 
32129     public Object getFieldValue(_Fields field) {
32130       switch (field) {
32131       case IO:
32132         return getIo();
32133 
32134       case IA:
32135         return getIa();
32136 
32137       }
32138       throw new IllegalStateException();
32139     }
32140 
32141     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32142     public boolean isSet(_Fields field) {
32143       if (field == null) {
32144         throw new IllegalArgumentException();
32145       }
32146 
32147       switch (field) {
32148       case IO:
32149         return isSetIo();
32150       case IA:
32151         return isSetIa();
32152       }
32153       throw new IllegalStateException();
32154     }
32155 
32156     @Override
32157     public boolean equals(Object that) {
32158       if (that == null)
32159         return false;
32160       if (that instanceof mutateRows_result)
32161         return this.equals((mutateRows_result)that);
32162       return false;
32163     }
32164 
32165     public boolean equals(mutateRows_result that) {
32166       if (that == null)
32167         return false;
32168 
32169       boolean this_present_io = true && this.isSetIo();
32170       boolean that_present_io = true && that.isSetIo();
32171       if (this_present_io || that_present_io) {
32172         if (!(this_present_io && that_present_io))
32173           return false;
32174         if (!this.io.equals(that.io))
32175           return false;
32176       }
32177 
32178       boolean this_present_ia = true && this.isSetIa();
32179       boolean that_present_ia = true && that.isSetIa();
32180       if (this_present_ia || that_present_ia) {
32181         if (!(this_present_ia && that_present_ia))
32182           return false;
32183         if (!this.ia.equals(that.ia))
32184           return false;
32185       }
32186 
32187       return true;
32188     }
32189 
32190     @Override
32191     public int hashCode() {
32192       HashCodeBuilder builder = new HashCodeBuilder();
32193 
32194       boolean present_io = true && (isSetIo());
32195       builder.append(present_io);
32196       if (present_io)
32197         builder.append(io);
32198 
32199       boolean present_ia = true && (isSetIa());
32200       builder.append(present_ia);
32201       if (present_ia)
32202         builder.append(ia);
32203 
32204       return builder.toHashCode();
32205     }
32206 
32207     public int compareTo(mutateRows_result other) {
32208       if (!getClass().equals(other.getClass())) {
32209         return getClass().getName().compareTo(other.getClass().getName());
32210       }
32211 
32212       int lastComparison = 0;
32213       mutateRows_result typedOther = (mutateRows_result)other;
32214 
32215       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
32216       if (lastComparison != 0) {
32217         return lastComparison;
32218       }
32219       if (isSetIo()) {
32220         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
32221         if (lastComparison != 0) {
32222           return lastComparison;
32223         }
32224       }
32225       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
32226       if (lastComparison != 0) {
32227         return lastComparison;
32228       }
32229       if (isSetIa()) {
32230         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
32231         if (lastComparison != 0) {
32232           return lastComparison;
32233         }
32234       }
32235       return 0;
32236     }
32237 
32238     public _Fields fieldForId(int fieldId) {
32239       return _Fields.findByThriftId(fieldId);
32240     }
32241 
32242     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32243       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32244     }
32245 
32246     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32247       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32248       }
32249 
32250     @Override
32251     public String toString() {
32252       StringBuilder sb = new StringBuilder("mutateRows_result(");
32253       boolean first = true;
32254 
32255       sb.append("io:");
32256       if (this.io == null) {
32257         sb.append("null");
32258       } else {
32259         sb.append(this.io);
32260       }
32261       first = false;
32262       if (!first) sb.append(", ");
32263       sb.append("ia:");
32264       if (this.ia == null) {
32265         sb.append("null");
32266       } else {
32267         sb.append(this.ia);
32268       }
32269       first = false;
32270       sb.append(")");
32271       return sb.toString();
32272     }
32273 
32274     public void validate() throws org.apache.thrift.TException {
32275       // check for required fields
32276       // check for sub-struct validity
32277     }
32278 
32279     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32280       try {
32281         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32282       } catch (org.apache.thrift.TException te) {
32283         throw new java.io.IOException(te);
32284       }
32285     }
32286 
32287     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32288       try {
32289         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32290       } catch (org.apache.thrift.TException te) {
32291         throw new java.io.IOException(te);
32292       }
32293     }
32294 
32295     private static class mutateRows_resultStandardSchemeFactory implements SchemeFactory {
32296       public mutateRows_resultStandardScheme getScheme() {
32297         return new mutateRows_resultStandardScheme();
32298       }
32299     }
32300 
32301     private static class mutateRows_resultStandardScheme extends StandardScheme<mutateRows_result> {
32302 
32303       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_result struct) throws org.apache.thrift.TException {
32304         org.apache.thrift.protocol.TField schemeField;
32305         iprot.readStructBegin();
32306         while (true)
32307         {
32308           schemeField = iprot.readFieldBegin();
32309           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
32310             break;
32311           }
32312           switch (schemeField.id) {
32313             case 1: // IO
32314               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32315                 struct.io = new IOError();
32316                 struct.io.read(iprot);
32317                 struct.setIoIsSet(true);
32318               } else { 
32319                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32320               }
32321               break;
32322             case 2: // IA
32323               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32324                 struct.ia = new IllegalArgument();
32325                 struct.ia.read(iprot);
32326                 struct.setIaIsSet(true);
32327               } else { 
32328                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32329               }
32330               break;
32331             default:
32332               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32333           }
32334           iprot.readFieldEnd();
32335         }
32336         iprot.readStructEnd();
32337 
32338         // check for required fields of primitive type, which can't be checked in the validate method
32339         struct.validate();
32340       }
32341 
32342       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_result struct) throws org.apache.thrift.TException {
32343         struct.validate();
32344 
32345         oprot.writeStructBegin(STRUCT_DESC);
32346         if (struct.io != null) {
32347           oprot.writeFieldBegin(IO_FIELD_DESC);
32348           struct.io.write(oprot);
32349           oprot.writeFieldEnd();
32350         }
32351         if (struct.ia != null) {
32352           oprot.writeFieldBegin(IA_FIELD_DESC);
32353           struct.ia.write(oprot);
32354           oprot.writeFieldEnd();
32355         }
32356         oprot.writeFieldStop();
32357         oprot.writeStructEnd();
32358       }
32359 
32360     }
32361 
32362     private static class mutateRows_resultTupleSchemeFactory implements SchemeFactory {
32363       public mutateRows_resultTupleScheme getScheme() {
32364         return new mutateRows_resultTupleScheme();
32365       }
32366     }
32367 
32368     private static class mutateRows_resultTupleScheme extends TupleScheme<mutateRows_result> {
32369 
32370       @Override
32371       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException {
32372         TTupleProtocol oprot = (TTupleProtocol) prot;
32373         BitSet optionals = new BitSet();
32374         if (struct.isSetIo()) {
32375           optionals.set(0);
32376         }
32377         if (struct.isSetIa()) {
32378           optionals.set(1);
32379         }
32380         oprot.writeBitSet(optionals, 2);
32381         if (struct.isSetIo()) {
32382           struct.io.write(oprot);
32383         }
32384         if (struct.isSetIa()) {
32385           struct.ia.write(oprot);
32386         }
32387       }
32388 
32389       @Override
32390       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException {
32391         TTupleProtocol iprot = (TTupleProtocol) prot;
32392         BitSet incoming = iprot.readBitSet(2);
32393         if (incoming.get(0)) {
32394           struct.io = new IOError();
32395           struct.io.read(iprot);
32396           struct.setIoIsSet(true);
32397         }
32398         if (incoming.get(1)) {
32399           struct.ia = new IllegalArgument();
32400           struct.ia.read(iprot);
32401           struct.setIaIsSet(true);
32402         }
32403       }
32404     }
32405 
32406   }
32407 
32408   public static class mutateRowsTs_args implements org.apache.thrift.TBase<mutateRowsTs_args, mutateRowsTs_args._Fields>, java.io.Serializable, Cloneable   {
32409     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_args");
32410 
32411     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
32412     private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2);
32413     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
32414     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
32415 
32416     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32417     static {
32418       schemes.put(StandardScheme.class, new mutateRowsTs_argsStandardSchemeFactory());
32419       schemes.put(TupleScheme.class, new mutateRowsTs_argsTupleSchemeFactory());
32420     }
32421 
32422     /**
32423      * name of table
32424      */
32425     public ByteBuffer tableName; // required
32426     /**
32427      * list of row batches
32428      */
32429     public List<BatchMutation> rowBatches; // required
32430     /**
32431      * timestamp
32432      */
32433     public long timestamp; // required
32434     /**
32435      * Mutation attributes
32436      */
32437     public Map<ByteBuffer,ByteBuffer> attributes; // required
32438 
32439     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32440     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32441       /**
32442        * name of table
32443        */
32444       TABLE_NAME((short)1, "tableName"),
32445       /**
32446        * list of row batches
32447        */
32448       ROW_BATCHES((short)2, "rowBatches"),
32449       /**
32450        * timestamp
32451        */
32452       TIMESTAMP((short)3, "timestamp"),
32453       /**
32454        * Mutation attributes
32455        */
32456       ATTRIBUTES((short)4, "attributes");
32457 
32458       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32459 
32460       static {
32461         for (_Fields field : EnumSet.allOf(_Fields.class)) {
32462           byName.put(field.getFieldName(), field);
32463         }
32464       }
32465 
32466       /**
32467        * Find the _Fields constant that matches fieldId, or null if its not found.
32468        */
32469       public static _Fields findByThriftId(int fieldId) {
32470         switch(fieldId) {
32471           case 1: // TABLE_NAME
32472             return TABLE_NAME;
32473           case 2: // ROW_BATCHES
32474             return ROW_BATCHES;
32475           case 3: // TIMESTAMP
32476             return TIMESTAMP;
32477           case 4: // ATTRIBUTES
32478             return ATTRIBUTES;
32479           default:
32480             return null;
32481         }
32482       }
32483 
32484       /**
32485        * Find the _Fields constant that matches fieldId, throwing an exception
32486        * if it is not found.
32487        */
32488       public static _Fields findByThriftIdOrThrow(int fieldId) {
32489         _Fields fields = findByThriftId(fieldId);
32490         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32491         return fields;
32492       }
32493 
32494       /**
32495        * Find the _Fields constant that matches name, or null if its not found.
32496        */
32497       public static _Fields findByName(String name) {
32498         return byName.get(name);
32499       }
32500 
32501       private final short _thriftId;
32502       private final String _fieldName;
32503 
32504       _Fields(short thriftId, String fieldName) {
32505         _thriftId = thriftId;
32506         _fieldName = fieldName;
32507       }
32508 
32509       public short getThriftFieldId() {
32510         return _thriftId;
32511       }
32512 
32513       public String getFieldName() {
32514         return _fieldName;
32515       }
32516     }
32517 
32518     // isset id assignments
32519     private static final int __TIMESTAMP_ISSET_ID = 0;
32520     private byte __isset_bitfield = 0;
32521     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32522     static {
32523       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32524       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32525           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
32526       tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32527           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32528               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class))));
32529       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32530           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32531       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32532           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
32533               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
32534               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
32535       metaDataMap = Collections.unmodifiableMap(tmpMap);
32536       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_args.class, metaDataMap);
32537     }
32538 
32539     public mutateRowsTs_args() {
32540     }
32541 
32542     public mutateRowsTs_args(
32543       ByteBuffer tableName,
32544       List<BatchMutation> rowBatches,
32545       long timestamp,
32546       Map<ByteBuffer,ByteBuffer> attributes)
32547     {
32548       this();
32549       this.tableName = tableName;
32550       this.rowBatches = rowBatches;
32551       this.timestamp = timestamp;
32552       setTimestampIsSet(true);
32553       this.attributes = attributes;
32554     }
32555 
32556     /**
32557      * Performs a deep copy on <i>other</i>.
32558      */
32559     public mutateRowsTs_args(mutateRowsTs_args other) {
32560       __isset_bitfield = other.__isset_bitfield;
32561       if (other.isSetTableName()) {
32562         this.tableName = other.tableName;
32563       }
32564       if (other.isSetRowBatches()) {
32565         List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>();
32566         for (BatchMutation other_element : other.rowBatches) {
32567           __this__rowBatches.add(new BatchMutation(other_element));
32568         }
32569         this.rowBatches = __this__rowBatches;
32570       }
32571       this.timestamp = other.timestamp;
32572       if (other.isSetAttributes()) {
32573         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
32574         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
32575 
32576           ByteBuffer other_element_key = other_element.getKey();
32577           ByteBuffer other_element_value = other_element.getValue();
32578 
32579           ByteBuffer __this__attributes_copy_key = other_element_key;
32580 
32581           ByteBuffer __this__attributes_copy_value = other_element_value;
32582 
32583           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
32584         }
32585         this.attributes = __this__attributes;
32586       }
32587     }
32588 
32589     public mutateRowsTs_args deepCopy() {
32590       return new mutateRowsTs_args(this);
32591     }
32592 
32593     @Override
32594     public void clear() {
32595       this.tableName = null;
32596       this.rowBatches = null;
32597       setTimestampIsSet(false);
32598       this.timestamp = 0;
32599       this.attributes = null;
32600     }
32601 
32602     /**
32603      * name of table
32604      */
32605     public byte[] getTableName() {
32606       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
32607       return tableName == null ? null : tableName.array();
32608     }
32609 
32610     public ByteBuffer bufferForTableName() {
32611       return tableName;
32612     }
32613 
32614     /**
32615      * name of table
32616      */
32617     public mutateRowsTs_args setTableName(byte[] tableName) {
32618       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
32619       return this;
32620     }
32621 
32622     public mutateRowsTs_args setTableName(ByteBuffer tableName) {
32623       this.tableName = tableName;
32624       return this;
32625     }
32626 
32627     public void unsetTableName() {
32628       this.tableName = null;
32629     }
32630 
32631     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
32632     public boolean isSetTableName() {
32633       return this.tableName != null;
32634     }
32635 
32636     public void setTableNameIsSet(boolean value) {
32637       if (!value) {
32638         this.tableName = null;
32639       }
32640     }
32641 
32642     public int getRowBatchesSize() {
32643       return (this.rowBatches == null) ? 0 : this.rowBatches.size();
32644     }
32645 
32646     public java.util.Iterator<BatchMutation> getRowBatchesIterator() {
32647       return (this.rowBatches == null) ? null : this.rowBatches.iterator();
32648     }
32649 
32650     public void addToRowBatches(BatchMutation elem) {
32651       if (this.rowBatches == null) {
32652         this.rowBatches = new ArrayList<BatchMutation>();
32653       }
32654       this.rowBatches.add(elem);
32655     }
32656 
32657     /**
32658      * list of row batches
32659      */
32660     public List<BatchMutation> getRowBatches() {
32661       return this.rowBatches;
32662     }
32663 
32664     /**
32665      * list of row batches
32666      */
32667     public mutateRowsTs_args setRowBatches(List<BatchMutation> rowBatches) {
32668       this.rowBatches = rowBatches;
32669       return this;
32670     }
32671 
32672     public void unsetRowBatches() {
32673       this.rowBatches = null;
32674     }
32675 
32676     /** Returns true if field rowBatches is set (has been assigned a value) and false otherwise */
32677     public boolean isSetRowBatches() {
32678       return this.rowBatches != null;
32679     }
32680 
32681     public void setRowBatchesIsSet(boolean value) {
32682       if (!value) {
32683         this.rowBatches = null;
32684       }
32685     }
32686 
32687     /**
32688      * timestamp
32689      */
32690     public long getTimestamp() {
32691       return this.timestamp;
32692     }
32693 
32694     /**
32695      * timestamp
32696      */
32697     public mutateRowsTs_args setTimestamp(long timestamp) {
32698       this.timestamp = timestamp;
32699       setTimestampIsSet(true);
32700       return this;
32701     }
32702 
32703     public void unsetTimestamp() {
32704       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
32705     }
32706 
32707     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
32708     public boolean isSetTimestamp() {
32709       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
32710     }
32711 
32712     public void setTimestampIsSet(boolean value) {
32713       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
32714     }
32715 
32716     public int getAttributesSize() {
32717       return (this.attributes == null) ? 0 : this.attributes.size();
32718     }
32719 
32720     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
32721       if (this.attributes == null) {
32722         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
32723       }
32724       this.attributes.put(key, val);
32725     }
32726 
32727     /**
32728      * Mutation attributes
32729      */
32730     public Map<ByteBuffer,ByteBuffer> getAttributes() {
32731       return this.attributes;
32732     }
32733 
32734     /**
32735      * Mutation attributes
32736      */
32737     public mutateRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
32738       this.attributes = attributes;
32739       return this;
32740     }
32741 
32742     public void unsetAttributes() {
32743       this.attributes = null;
32744     }
32745 
32746     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
32747     public boolean isSetAttributes() {
32748       return this.attributes != null;
32749     }
32750 
32751     public void setAttributesIsSet(boolean value) {
32752       if (!value) {
32753         this.attributes = null;
32754       }
32755     }
32756 
32757     public void setFieldValue(_Fields field, Object value) {
32758       switch (field) {
32759       case TABLE_NAME:
32760         if (value == null) {
32761           unsetTableName();
32762         } else {
32763           setTableName((ByteBuffer)value);
32764         }
32765         break;
32766 
32767       case ROW_BATCHES:
32768         if (value == null) {
32769           unsetRowBatches();
32770         } else {
32771           setRowBatches((List<BatchMutation>)value);
32772         }
32773         break;
32774 
32775       case TIMESTAMP:
32776         if (value == null) {
32777           unsetTimestamp();
32778         } else {
32779           setTimestamp((Long)value);
32780         }
32781         break;
32782 
32783       case ATTRIBUTES:
32784         if (value == null) {
32785           unsetAttributes();
32786         } else {
32787           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
32788         }
32789         break;
32790 
32791       }
32792     }
32793 
32794     public Object getFieldValue(_Fields field) {
32795       switch (field) {
32796       case TABLE_NAME:
32797         return getTableName();
32798 
32799       case ROW_BATCHES:
32800         return getRowBatches();
32801 
32802       case TIMESTAMP:
32803         return Long.valueOf(getTimestamp());
32804 
32805       case ATTRIBUTES:
32806         return getAttributes();
32807 
32808       }
32809       throw new IllegalStateException();
32810     }
32811 
32812     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32813     public boolean isSet(_Fields field) {
32814       if (field == null) {
32815         throw new IllegalArgumentException();
32816       }
32817 
32818       switch (field) {
32819       case TABLE_NAME:
32820         return isSetTableName();
32821       case ROW_BATCHES:
32822         return isSetRowBatches();
32823       case TIMESTAMP:
32824         return isSetTimestamp();
32825       case ATTRIBUTES:
32826         return isSetAttributes();
32827       }
32828       throw new IllegalStateException();
32829     }
32830 
32831     @Override
32832     public boolean equals(Object that) {
32833       if (that == null)
32834         return false;
32835       if (that instanceof mutateRowsTs_args)
32836         return this.equals((mutateRowsTs_args)that);
32837       return false;
32838     }
32839 
32840     public boolean equals(mutateRowsTs_args that) {
32841       if (that == null)
32842         return false;
32843 
32844       boolean this_present_tableName = true && this.isSetTableName();
32845       boolean that_present_tableName = true && that.isSetTableName();
32846       if (this_present_tableName || that_present_tableName) {
32847         if (!(this_present_tableName && that_present_tableName))
32848           return false;
32849         if (!this.tableName.equals(that.tableName))
32850           return false;
32851       }
32852 
32853       boolean this_present_rowBatches = true && this.isSetRowBatches();
32854       boolean that_present_rowBatches = true && that.isSetRowBatches();
32855       if (this_present_rowBatches || that_present_rowBatches) {
32856         if (!(this_present_rowBatches && that_present_rowBatches))
32857           return false;
32858         if (!this.rowBatches.equals(that.rowBatches))
32859           return false;
32860       }
32861 
32862       boolean this_present_timestamp = true;
32863       boolean that_present_timestamp = true;
32864       if (this_present_timestamp || that_present_timestamp) {
32865         if (!(this_present_timestamp && that_present_timestamp))
32866           return false;
32867         if (this.timestamp != that.timestamp)
32868           return false;
32869       }
32870 
32871       boolean this_present_attributes = true && this.isSetAttributes();
32872       boolean that_present_attributes = true && that.isSetAttributes();
32873       if (this_present_attributes || that_present_attributes) {
32874         if (!(this_present_attributes && that_present_attributes))
32875           return false;
32876         if (!this.attributes.equals(that.attributes))
32877           return false;
32878       }
32879 
32880       return true;
32881     }
32882 
32883     @Override
32884     public int hashCode() {
32885       HashCodeBuilder builder = new HashCodeBuilder();
32886 
32887       boolean present_tableName = true && (isSetTableName());
32888       builder.append(present_tableName);
32889       if (present_tableName)
32890         builder.append(tableName);
32891 
32892       boolean present_rowBatches = true && (isSetRowBatches());
32893       builder.append(present_rowBatches);
32894       if (present_rowBatches)
32895         builder.append(rowBatches);
32896 
32897       boolean present_timestamp = true;
32898       builder.append(present_timestamp);
32899       if (present_timestamp)
32900         builder.append(timestamp);
32901 
32902       boolean present_attributes = true && (isSetAttributes());
32903       builder.append(present_attributes);
32904       if (present_attributes)
32905         builder.append(attributes);
32906 
32907       return builder.toHashCode();
32908     }
32909 
32910     public int compareTo(mutateRowsTs_args other) {
32911       if (!getClass().equals(other.getClass())) {
32912         return getClass().getName().compareTo(other.getClass().getName());
32913       }
32914 
32915       int lastComparison = 0;
32916       mutateRowsTs_args typedOther = (mutateRowsTs_args)other;
32917 
32918       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
32919       if (lastComparison != 0) {
32920         return lastComparison;
32921       }
32922       if (isSetTableName()) {
32923         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
32924         if (lastComparison != 0) {
32925           return lastComparison;
32926         }
32927       }
32928       lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches());
32929       if (lastComparison != 0) {
32930         return lastComparison;
32931       }
32932       if (isSetRowBatches()) {
32933         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches);
32934         if (lastComparison != 0) {
32935           return lastComparison;
32936         }
32937       }
32938       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
32939       if (lastComparison != 0) {
32940         return lastComparison;
32941       }
32942       if (isSetTimestamp()) {
32943         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
32944         if (lastComparison != 0) {
32945           return lastComparison;
32946         }
32947       }
32948       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
32949       if (lastComparison != 0) {
32950         return lastComparison;
32951       }
32952       if (isSetAttributes()) {
32953         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
32954         if (lastComparison != 0) {
32955           return lastComparison;
32956         }
32957       }
32958       return 0;
32959     }
32960 
32961     public _Fields fieldForId(int fieldId) {
32962       return _Fields.findByThriftId(fieldId);
32963     }
32964 
32965     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32966       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32967     }
32968 
32969     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32970       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32971     }
32972 
32973     @Override
32974     public String toString() {
32975       StringBuilder sb = new StringBuilder("mutateRowsTs_args(");
32976       boolean first = true;
32977 
32978       sb.append("tableName:");
32979       if (this.tableName == null) {
32980         sb.append("null");
32981       } else {
32982         sb.append(this.tableName);
32983       }
32984       first = false;
32985       if (!first) sb.append(", ");
32986       sb.append("rowBatches:");
32987       if (this.rowBatches == null) {
32988         sb.append("null");
32989       } else {
32990         sb.append(this.rowBatches);
32991       }
32992       first = false;
32993       if (!first) sb.append(", ");
32994       sb.append("timestamp:");
32995       sb.append(this.timestamp);
32996       first = false;
32997       if (!first) sb.append(", ");
32998       sb.append("attributes:");
32999       if (this.attributes == null) {
33000         sb.append("null");
33001       } else {
33002         sb.append(this.attributes);
33003       }
33004       first = false;
33005       sb.append(")");
33006       return sb.toString();
33007     }
33008 
33009     public void validate() throws org.apache.thrift.TException {
33010       // check for required fields
33011       // check for sub-struct validity
33012     }
33013 
33014     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33015       try {
33016         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33017       } catch (org.apache.thrift.TException te) {
33018         throw new java.io.IOException(te);
33019       }
33020     }
33021 
33022     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33023       try {
33024         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33025         __isset_bitfield = 0;
33026         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33027       } catch (org.apache.thrift.TException te) {
33028         throw new java.io.IOException(te);
33029       }
33030     }
33031 
33032     private static class mutateRowsTs_argsStandardSchemeFactory implements SchemeFactory {
33033       public mutateRowsTs_argsStandardScheme getScheme() {
33034         return new mutateRowsTs_argsStandardScheme();
33035       }
33036     }
33037 
33038     private static class mutateRowsTs_argsStandardScheme extends StandardScheme<mutateRowsTs_args> {
33039 
33040       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33041         org.apache.thrift.protocol.TField schemeField;
33042         iprot.readStructBegin();
33043         while (true)
33044         {
33045           schemeField = iprot.readFieldBegin();
33046           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
33047             break;
33048           }
33049           switch (schemeField.id) {
33050             case 1: // TABLE_NAME
33051               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
33052                 struct.tableName = iprot.readBinary();
33053                 struct.setTableNameIsSet(true);
33054               } else { 
33055                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33056               }
33057               break;
33058             case 2: // ROW_BATCHES
33059               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
33060                 {
33061                   org.apache.thrift.protocol.TList _list400 = iprot.readListBegin();
33062                   struct.rowBatches = new ArrayList<BatchMutation>(_list400.size);
33063                   for (int _i401 = 0; _i401 < _list400.size; ++_i401)
33064                   {
33065                     BatchMutation _elem402; // required
33066                     _elem402 = new BatchMutation();
33067                     _elem402.read(iprot);
33068                     struct.rowBatches.add(_elem402);
33069                   }
33070                   iprot.readListEnd();
33071                 }
33072                 struct.setRowBatchesIsSet(true);
33073               } else { 
33074                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33075               }
33076               break;
33077             case 3: // TIMESTAMP
33078               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
33079                 struct.timestamp = iprot.readI64();
33080                 struct.setTimestampIsSet(true);
33081               } else { 
33082                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33083               }
33084               break;
33085             case 4: // ATTRIBUTES
33086               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
33087                 {
33088                   org.apache.thrift.protocol.TMap _map403 = iprot.readMapBegin();
33089                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map403.size);
33090                   for (int _i404 = 0; _i404 < _map403.size; ++_i404)
33091                   {
33092                     ByteBuffer _key405; // required
33093                     ByteBuffer _val406; // required
33094                     _key405 = iprot.readBinary();
33095                     _val406 = iprot.readBinary();
33096                     struct.attributes.put(_key405, _val406);
33097                   }
33098                   iprot.readMapEnd();
33099                 }
33100                 struct.setAttributesIsSet(true);
33101               } else { 
33102                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33103               }
33104               break;
33105             default:
33106               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33107           }
33108           iprot.readFieldEnd();
33109         }
33110         iprot.readStructEnd();
33111 
33112         // check for required fields of primitive type, which can't be checked in the validate method
33113         struct.validate();
33114       }
33115 
33116       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33117         struct.validate();
33118 
33119         oprot.writeStructBegin(STRUCT_DESC);
33120         if (struct.tableName != null) {
33121           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
33122           oprot.writeBinary(struct.tableName);
33123           oprot.writeFieldEnd();
33124         }
33125         if (struct.rowBatches != null) {
33126           oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC);
33127           {
33128             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size()));
33129             for (BatchMutation _iter407 : struct.rowBatches)
33130             {
33131               _iter407.write(oprot);
33132             }
33133             oprot.writeListEnd();
33134           }
33135           oprot.writeFieldEnd();
33136         }
33137         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
33138         oprot.writeI64(struct.timestamp);
33139         oprot.writeFieldEnd();
33140         if (struct.attributes != null) {
33141           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
33142           {
33143             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
33144             for (Map.Entry<ByteBuffer, ByteBuffer> _iter408 : struct.attributes.entrySet())
33145             {
33146               oprot.writeBinary(_iter408.getKey());
33147               oprot.writeBinary(_iter408.getValue());
33148             }
33149             oprot.writeMapEnd();
33150           }
33151           oprot.writeFieldEnd();
33152         }
33153         oprot.writeFieldStop();
33154         oprot.writeStructEnd();
33155       }
33156 
33157     }
33158 
33159     private static class mutateRowsTs_argsTupleSchemeFactory implements SchemeFactory {
33160       public mutateRowsTs_argsTupleScheme getScheme() {
33161         return new mutateRowsTs_argsTupleScheme();
33162       }
33163     }
33164 
33165     private static class mutateRowsTs_argsTupleScheme extends TupleScheme<mutateRowsTs_args> {
33166 
33167       @Override
33168       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33169         TTupleProtocol oprot = (TTupleProtocol) prot;
33170         BitSet optionals = new BitSet();
33171         if (struct.isSetTableName()) {
33172           optionals.set(0);
33173         }
33174         if (struct.isSetRowBatches()) {
33175           optionals.set(1);
33176         }
33177         if (struct.isSetTimestamp()) {
33178           optionals.set(2);
33179         }
33180         if (struct.isSetAttributes()) {
33181           optionals.set(3);
33182         }
33183         oprot.writeBitSet(optionals, 4);
33184         if (struct.isSetTableName()) {
33185           oprot.writeBinary(struct.tableName);
33186         }
33187         if (struct.isSetRowBatches()) {
33188           {
33189             oprot.writeI32(struct.rowBatches.size());
33190             for (BatchMutation _iter409 : struct.rowBatches)
33191             {
33192               _iter409.write(oprot);
33193             }
33194           }
33195         }
33196         if (struct.isSetTimestamp()) {
33197           oprot.writeI64(struct.timestamp);
33198         }
33199         if (struct.isSetAttributes()) {
33200           {
33201             oprot.writeI32(struct.attributes.size());
33202             for (Map.Entry<ByteBuffer, ByteBuffer> _iter410 : struct.attributes.entrySet())
33203             {
33204               oprot.writeBinary(_iter410.getKey());
33205               oprot.writeBinary(_iter410.getValue());
33206             }
33207           }
33208         }
33209       }
33210 
33211       @Override
33212       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33213         TTupleProtocol iprot = (TTupleProtocol) prot;
33214         BitSet incoming = iprot.readBitSet(4);
33215         if (incoming.get(0)) {
33216           struct.tableName = iprot.readBinary();
33217           struct.setTableNameIsSet(true);
33218         }
33219         if (incoming.get(1)) {
33220           {
33221             org.apache.thrift.protocol.TList _list411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
33222             struct.rowBatches = new ArrayList<BatchMutation>(_list411.size);
33223             for (int _i412 = 0; _i412 < _list411.size; ++_i412)
33224             {
33225               BatchMutation _elem413; // required
33226               _elem413 = new BatchMutation();
33227               _elem413.read(iprot);
33228               struct.rowBatches.add(_elem413);
33229             }
33230           }
33231           struct.setRowBatchesIsSet(true);
33232         }
33233         if (incoming.get(2)) {
33234           struct.timestamp = iprot.readI64();
33235           struct.setTimestampIsSet(true);
33236         }
33237         if (incoming.get(3)) {
33238           {
33239             org.apache.thrift.protocol.TMap _map414 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
33240             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map414.size);
33241             for (int _i415 = 0; _i415 < _map414.size; ++_i415)
33242             {
33243               ByteBuffer _key416; // required
33244               ByteBuffer _val417; // required
33245               _key416 = iprot.readBinary();
33246               _val417 = iprot.readBinary();
33247               struct.attributes.put(_key416, _val417);
33248             }
33249           }
33250           struct.setAttributesIsSet(true);
33251         }
33252       }
33253     }
33254 
33255   }
33256 
33257   public static class mutateRowsTs_result implements org.apache.thrift.TBase<mutateRowsTs_result, mutateRowsTs_result._Fields>, java.io.Serializable, Cloneable   {
33258     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_result");
33259 
33260     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33261     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
33262 
33263     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33264     static {
33265       schemes.put(StandardScheme.class, new mutateRowsTs_resultStandardSchemeFactory());
33266       schemes.put(TupleScheme.class, new mutateRowsTs_resultTupleSchemeFactory());
33267     }
33268 
33269     public IOError io; // required
33270     public IllegalArgument ia; // required
33271 
33272     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33273     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33274       IO((short)1, "io"),
33275       IA((short)2, "ia");
33276 
33277       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33278 
33279       static {
33280         for (_Fields field : EnumSet.allOf(_Fields.class)) {
33281           byName.put(field.getFieldName(), field);
33282         }
33283       }
33284 
33285       /**
33286        * Find the _Fields constant that matches fieldId, or null if its not found.
33287        */
33288       public static _Fields findByThriftId(int fieldId) {
33289         switch(fieldId) {
33290           case 1: // IO
33291             return IO;
33292           case 2: // IA
33293             return IA;
33294           default:
33295             return null;
33296         }
33297       }
33298 
33299       /**
33300        * Find the _Fields constant that matches fieldId, throwing an exception
33301        * if it is not found.
33302        */
33303       public static _Fields findByThriftIdOrThrow(int fieldId) {
33304         _Fields fields = findByThriftId(fieldId);
33305         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33306         return fields;
33307       }
33308 
33309       /**
33310        * Find the _Fields constant that matches name, or null if its not found.
33311        */
33312       public static _Fields findByName(String name) {
33313         return byName.get(name);
33314       }
33315 
33316       private final short _thriftId;
33317       private final String _fieldName;
33318 
33319       _Fields(short thriftId, String fieldName) {
33320         _thriftId = thriftId;
33321         _fieldName = fieldName;
33322       }
33323 
33324       public short getThriftFieldId() {
33325         return _thriftId;
33326       }
33327 
33328       public String getFieldName() {
33329         return _fieldName;
33330       }
33331     }
33332 
33333     // isset id assignments
33334     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33335     static {
33336       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33337       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33338           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33339       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33340           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33341       metaDataMap = Collections.unmodifiableMap(tmpMap);
33342       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_result.class, metaDataMap);
33343     }
33344 
33345     public mutateRowsTs_result() {
33346     }
33347 
33348     public mutateRowsTs_result(
33349       IOError io,
33350       IllegalArgument ia)
33351     {
33352       this();
33353       this.io = io;
33354       this.ia = ia;
33355     }
33356 
33357     /**
33358      * Performs a deep copy on <i>other</i>.
33359      */
33360     public mutateRowsTs_result(mutateRowsTs_result other) {
33361       if (other.isSetIo()) {
33362         this.io = new IOError(other.io);
33363       }
33364       if (other.isSetIa()) {
33365         this.ia = new IllegalArgument(other.ia);
33366       }
33367     }
33368 
33369     public mutateRowsTs_result deepCopy() {
33370       return new mutateRowsTs_result(this);
33371     }
33372 
33373     @Override
33374     public void clear() {
33375       this.io = null;
33376       this.ia = null;
33377     }
33378 
33379     public IOError getIo() {
33380       return this.io;
33381     }
33382 
33383     public mutateRowsTs_result setIo(IOError io) {
33384       this.io = io;
33385       return this;
33386     }
33387 
33388     public void unsetIo() {
33389       this.io = null;
33390     }
33391 
33392     /** Returns true if field io is set (has been assigned a value) and false otherwise */
33393     public boolean isSetIo() {
33394       return this.io != null;
33395     }
33396 
33397     public void setIoIsSet(boolean value) {
33398       if (!value) {
33399         this.io = null;
33400       }
33401     }
33402 
33403     public IllegalArgument getIa() {
33404       return this.ia;
33405     }
33406 
33407     public mutateRowsTs_result setIa(IllegalArgument ia) {
33408       this.ia = ia;
33409       return this;
33410     }
33411 
33412     public void unsetIa() {
33413       this.ia = null;
33414     }
33415 
33416     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
33417     public boolean isSetIa() {
33418       return this.ia != null;
33419     }
33420 
33421     public void setIaIsSet(boolean value) {
33422       if (!value) {
33423         this.ia = null;
33424       }
33425     }
33426 
33427     public void setFieldValue(_Fields field, Object value) {
33428       switch (field) {
33429       case IO:
33430         if (value == null) {
33431           unsetIo();
33432         } else {
33433           setIo((IOError)value);
33434         }
33435         break;
33436 
33437       case IA:
33438         if (value == null) {
33439           unsetIa();
33440         } else {
33441           setIa((IllegalArgument)value);
33442         }
33443         break;
33444 
33445       }
33446     }
33447 
33448     public Object getFieldValue(_Fields field) {
33449       switch (field) {
33450       case IO:
33451         return getIo();
33452 
33453       case IA:
33454         return getIa();
33455 
33456       }
33457       throw new IllegalStateException();
33458     }
33459 
33460     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33461     public boolean isSet(_Fields field) {
33462       if (field == null) {
33463         throw new IllegalArgumentException();
33464       }
33465 
33466       switch (field) {
33467       case IO:
33468         return isSetIo();
33469       case IA:
33470         return isSetIa();
33471       }
33472       throw new IllegalStateException();
33473     }
33474 
33475     @Override
33476     public boolean equals(Object that) {
33477       if (that == null)
33478         return false;
33479       if (that instanceof mutateRowsTs_result)
33480         return this.equals((mutateRowsTs_result)that);
33481       return false;
33482     }
33483 
33484     public boolean equals(mutateRowsTs_result that) {
33485       if (that == null)
33486         return false;
33487 
33488       boolean this_present_io = true && this.isSetIo();
33489       boolean that_present_io = true && that.isSetIo();
33490       if (this_present_io || that_present_io) {
33491         if (!(this_present_io && that_present_io))
33492           return false;
33493         if (!this.io.equals(that.io))
33494           return false;
33495       }
33496 
33497       boolean this_present_ia = true && this.isSetIa();
33498       boolean that_present_ia = true && that.isSetIa();
33499       if (this_present_ia || that_present_ia) {
33500         if (!(this_present_ia && that_present_ia))
33501           return false;
33502         if (!this.ia.equals(that.ia))
33503           return false;
33504       }
33505 
33506       return true;
33507     }
33508 
33509     @Override
33510     public int hashCode() {
33511       HashCodeBuilder builder = new HashCodeBuilder();
33512 
33513       boolean present_io = true && (isSetIo());
33514       builder.append(present_io);
33515       if (present_io)
33516         builder.append(io);
33517 
33518       boolean present_ia = true && (isSetIa());
33519       builder.append(present_ia);
33520       if (present_ia)
33521         builder.append(ia);
33522 
33523       return builder.toHashCode();
33524     }
33525 
33526     public int compareTo(mutateRowsTs_result other) {
33527       if (!getClass().equals(other.getClass())) {
33528         return getClass().getName().compareTo(other.getClass().getName());
33529       }
33530 
33531       int lastComparison = 0;
33532       mutateRowsTs_result typedOther = (mutateRowsTs_result)other;
33533 
33534       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
33535       if (lastComparison != 0) {
33536         return lastComparison;
33537       }
33538       if (isSetIo()) {
33539         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
33540         if (lastComparison != 0) {
33541           return lastComparison;
33542         }
33543       }
33544       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
33545       if (lastComparison != 0) {
33546         return lastComparison;
33547       }
33548       if (isSetIa()) {
33549         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
33550         if (lastComparison != 0) {
33551           return lastComparison;
33552         }
33553       }
33554       return 0;
33555     }
33556 
33557     public _Fields fieldForId(int fieldId) {
33558       return _Fields.findByThriftId(fieldId);
33559     }
33560 
33561     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33562       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33563     }
33564 
33565     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33566       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33567       }
33568 
33569     @Override
33570     public String toString() {
33571       StringBuilder sb = new StringBuilder("mutateRowsTs_result(");
33572       boolean first = true;
33573 
33574       sb.append("io:");
33575       if (this.io == null) {
33576         sb.append("null");
33577       } else {
33578         sb.append(this.io);
33579       }
33580       first = false;
33581       if (!first) sb.append(", ");
33582       sb.append("ia:");
33583       if (this.ia == null) {
33584         sb.append("null");
33585       } else {
33586         sb.append(this.ia);
33587       }
33588       first = false;
33589       sb.append(")");
33590       return sb.toString();
33591     }
33592 
33593     public void validate() throws org.apache.thrift.TException {
33594       // check for required fields
33595       // check for sub-struct validity
33596     }
33597 
33598     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33599       try {
33600         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33601       } catch (org.apache.thrift.TException te) {
33602         throw new java.io.IOException(te);
33603       }
33604     }
33605 
33606     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33607       try {
33608         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33609       } catch (org.apache.thrift.TException te) {
33610         throw new java.io.IOException(te);
33611       }
33612     }
33613 
33614     private static class mutateRowsTs_resultStandardSchemeFactory implements SchemeFactory {
33615       public mutateRowsTs_resultStandardScheme getScheme() {
33616         return new mutateRowsTs_resultStandardScheme();
33617       }
33618     }
33619 
33620     private static class mutateRowsTs_resultStandardScheme extends StandardScheme<mutateRowsTs_result> {
33621 
33622       public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33623         org.apache.thrift.protocol.TField schemeField;
33624         iprot.readStructBegin();
33625         while (true)
33626         {
33627           schemeField = iprot.readFieldBegin();
33628           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
33629             break;
33630           }
33631           switch (schemeField.id) {
33632             case 1: // IO
33633               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33634                 struct.io = new IOError();
33635                 struct.io.read(iprot);
33636                 struct.setIoIsSet(true);
33637               } else { 
33638                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33639               }
33640               break;
33641             case 2: // IA
33642               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33643                 struct.ia = new IllegalArgument();
33644                 struct.ia.read(iprot);
33645                 struct.setIaIsSet(true);
33646               } else { 
33647                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33648               }
33649               break;
33650             default:
33651               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33652           }
33653           iprot.readFieldEnd();
33654         }
33655         iprot.readStructEnd();
33656 
33657         // check for required fields of primitive type, which can't be checked in the validate method
33658         struct.validate();
33659       }
33660 
33661       public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33662         struct.validate();
33663 
33664         oprot.writeStructBegin(STRUCT_DESC);
33665         if (struct.io != null) {
33666           oprot.writeFieldBegin(IO_FIELD_DESC);
33667           struct.io.write(oprot);
33668           oprot.writeFieldEnd();
33669         }
33670         if (struct.ia != null) {
33671           oprot.writeFieldBegin(IA_FIELD_DESC);
33672           struct.ia.write(oprot);
33673           oprot.writeFieldEnd();
33674         }
33675         oprot.writeFieldStop();
33676         oprot.writeStructEnd();
33677       }
33678 
33679     }
33680 
33681     private static class mutateRowsTs_resultTupleSchemeFactory implements SchemeFactory {
33682       public mutateRowsTs_resultTupleScheme getScheme() {
33683         return new mutateRowsTs_resultTupleScheme();
33684       }
33685     }
33686 
33687     private static class mutateRowsTs_resultTupleScheme extends TupleScheme<mutateRowsTs_result> {
33688 
33689       @Override
33690       public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33691         TTupleProtocol oprot = (TTupleProtocol) prot;
33692         BitSet optionals = new BitSet();
33693         if (struct.isSetIo()) {
33694           optionals.set(0);
33695         }
33696         if (struct.isSetIa()) {
33697           optionals.set(1);
33698         }
33699         oprot.writeBitSet(optionals, 2);
33700         if (struct.isSetIo()) {
33701           struct.io.write(oprot);
33702         }
33703         if (struct.isSetIa()) {
33704           struct.ia.write(oprot);
33705         }
33706       }
33707 
33708       @Override
33709       public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33710         TTupleProtocol iprot = (TTupleProtocol) prot;
33711         BitSet incoming = iprot.readBitSet(2);
33712         if (incoming.get(0)) {
33713           struct.io = new IOError();
33714           struct.io.read(iprot);
33715           struct.setIoIsSet(true);
33716         }
33717         if (incoming.get(1)) {
33718           struct.ia = new IllegalArgument();
33719           struct.ia.read(iprot);
33720           struct.setIaIsSet(true);
33721         }
33722       }
33723     }
33724 
33725   }
33726 
33727   public static class atomicIncrement_args implements org.apache.thrift.TBase<atomicIncrement_args, atomicIncrement_args._Fields>, java.io.Serializable, Cloneable   {
33728     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_args");
33729 
33730     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
33731     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
33732     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
33733     private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)4);
33734 
33735     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33736     static {
33737       schemes.put(StandardScheme.class, new atomicIncrement_argsStandardSchemeFactory());
33738       schemes.put(TupleScheme.class, new atomicIncrement_argsTupleSchemeFactory());
33739     }
33740 
33741     /**
33742      * name of table
33743      */
33744     public ByteBuffer tableName; // required
33745     /**
33746      * row to increment
33747      */
33748     public ByteBuffer row; // required
33749     /**
33750      * name of column
33751      */
33752     public ByteBuffer column; // required
33753     /**
33754      * amount to increment by
33755      */
33756     public long value; // required
33757 
33758     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33759     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33760       /**
33761        * name of table
33762        */
33763       TABLE_NAME((short)1, "tableName"),
33764       /**
33765        * row to increment
33766        */
33767       ROW((short)2, "row"),
33768       /**
33769        * name of column
33770        */
33771       COLUMN((short)3, "column"),
33772       /**
33773        * amount to increment by
33774        */
33775       VALUE((short)4, "value");
33776 
33777       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33778 
33779       static {
33780         for (_Fields field : EnumSet.allOf(_Fields.class)) {
33781           byName.put(field.getFieldName(), field);
33782         }
33783       }
33784 
33785       /**
33786        * Find the _Fields constant that matches fieldId, or null if its not found.
33787        */
33788       public static _Fields findByThriftId(int fieldId) {
33789         switch(fieldId) {
33790           case 1: // TABLE_NAME
33791             return TABLE_NAME;
33792           case 2: // ROW
33793             return ROW;
33794           case 3: // COLUMN
33795             return COLUMN;
33796           case 4: // VALUE
33797             return VALUE;
33798           default:
33799             return null;
33800         }
33801       }
33802 
33803       /**
33804        * Find the _Fields constant that matches fieldId, throwing an exception
33805        * if it is not found.
33806        */
33807       public static _Fields findByThriftIdOrThrow(int fieldId) {
33808         _Fields fields = findByThriftId(fieldId);
33809         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33810         return fields;
33811       }
33812 
33813       /**
33814        * Find the _Fields constant that matches name, or null if its not found.
33815        */
33816       public static _Fields findByName(String name) {
33817         return byName.get(name);
33818       }
33819 
33820       private final short _thriftId;
33821       private final String _fieldName;
33822 
33823       _Fields(short thriftId, String fieldName) {
33824         _thriftId = thriftId;
33825         _fieldName = fieldName;
33826       }
33827 
33828       public short getThriftFieldId() {
33829         return _thriftId;
33830       }
33831 
33832       public String getFieldName() {
33833         return _fieldName;
33834       }
33835     }
33836 
33837     // isset id assignments
33838     private static final int __VALUE_ISSET_ID = 0;
33839     private byte __isset_bitfield = 0;
33840     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33841     static {
33842       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33843       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33844           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
33845       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33846           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
33847       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33848           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
33849       tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33850           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33851       metaDataMap = Collections.unmodifiableMap(tmpMap);
33852       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_args.class, metaDataMap);
33853     }
33854 
33855     public atomicIncrement_args() {
33856     }
33857 
33858     public atomicIncrement_args(
33859       ByteBuffer tableName,
33860       ByteBuffer row,
33861       ByteBuffer column,
33862       long value)
33863     {
33864       this();
33865       this.tableName = tableName;
33866       this.row = row;
33867       this.column = column;
33868       this.value = value;
33869       setValueIsSet(true);
33870     }
33871 
33872     /**
33873      * Performs a deep copy on <i>other</i>.
33874      */
33875     public atomicIncrement_args(atomicIncrement_args other) {
33876       __isset_bitfield = other.__isset_bitfield;
33877       if (other.isSetTableName()) {
33878         this.tableName = other.tableName;
33879       }
33880       if (other.isSetRow()) {
33881         this.row = other.row;
33882       }
33883       if (other.isSetColumn()) {
33884         this.column = other.column;
33885       }
33886       this.value = other.value;
33887     }
33888 
33889     public atomicIncrement_args deepCopy() {
33890       return new atomicIncrement_args(this);
33891     }
33892 
33893     @Override
33894     public void clear() {
33895       this.tableName = null;
33896       this.row = null;
33897       this.column = null;
33898       setValueIsSet(false);
33899       this.value = 0;
33900     }
33901 
33902     /**
33903      * name of table
33904      */
33905     public byte[] getTableName() {
33906       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
33907       return tableName == null ? null : tableName.array();
33908     }
33909 
33910     public ByteBuffer bufferForTableName() {
33911       return tableName;
33912     }
33913 
33914     /**
33915      * name of table
33916      */
33917     public atomicIncrement_args setTableName(byte[] tableName) {
33918       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
33919       return this;
33920     }
33921 
33922     public atomicIncrement_args setTableName(ByteBuffer tableName) {
33923       this.tableName = tableName;
33924       return this;
33925     }
33926 
33927     public void unsetTableName() {
33928       this.tableName = null;
33929     }
33930 
33931     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
33932     public boolean isSetTableName() {
33933       return this.tableName != null;
33934     }
33935 
33936     public void setTableNameIsSet(boolean value) {
33937       if (!value) {
33938         this.tableName = null;
33939       }
33940     }
33941 
33942     /**
33943      * row to increment
33944      */
33945     public byte[] getRow() {
33946       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
33947       return row == null ? null : row.array();
33948     }
33949 
33950     public ByteBuffer bufferForRow() {
33951       return row;
33952     }
33953 
33954     /**
33955      * row to increment
33956      */
33957     public atomicIncrement_args setRow(byte[] row) {
33958       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
33959       return this;
33960     }
33961 
33962     public atomicIncrement_args setRow(ByteBuffer row) {
33963       this.row = row;
33964       return this;
33965     }
33966 
33967     public void unsetRow() {
33968       this.row = null;
33969     }
33970 
33971     /** Returns true if field row is set (has been assigned a value) and false otherwise */
33972     public boolean isSetRow() {
33973       return this.row != null;
33974     }
33975 
33976     public void setRowIsSet(boolean value) {
33977       if (!value) {
33978         this.row = null;
33979       }
33980     }
33981 
33982     /**
33983      * name of column
33984      */
33985     public byte[] getColumn() {
33986       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
33987       return column == null ? null : column.array();
33988     }
33989 
33990     public ByteBuffer bufferForColumn() {
33991       return column;
33992     }
33993 
33994     /**
33995      * name of column
33996      */
33997     public atomicIncrement_args setColumn(byte[] column) {
33998       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
33999       return this;
34000     }
34001 
34002     public atomicIncrement_args setColumn(ByteBuffer column) {
34003       this.column = column;
34004       return this;
34005     }
34006 
34007     public void unsetColumn() {
34008       this.column = null;
34009     }
34010 
34011     /** Returns true if field column is set (has been assigned a value) and false otherwise */
34012     public boolean isSetColumn() {
34013       return this.column != null;
34014     }
34015 
34016     public void setColumnIsSet(boolean value) {
34017       if (!value) {
34018         this.column = null;
34019       }
34020     }
34021 
34022     /**
34023      * amount to increment by
34024      */
34025     public long getValue() {
34026       return this.value;
34027     }
34028 
34029     /**
34030      * amount to increment by
34031      */
34032     public atomicIncrement_args setValue(long value) {
34033       this.value = value;
34034       setValueIsSet(true);
34035       return this;
34036     }
34037 
34038     public void unsetValue() {
34039       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID);
34040     }
34041 
34042     /** Returns true if field value is set (has been assigned a value) and false otherwise */
34043     public boolean isSetValue() {
34044       return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
34045     }
34046 
34047     public void setValueIsSet(boolean value) {
34048       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
34049     }
34050 
34051     public void setFieldValue(_Fields field, Object value) {
34052       switch (field) {
34053       case TABLE_NAME:
34054         if (value == null) {
34055           unsetTableName();
34056         } else {
34057           setTableName((ByteBuffer)value);
34058         }
34059         break;
34060 
34061       case ROW:
34062         if (value == null) {
34063           unsetRow();
34064         } else {
34065           setRow((ByteBuffer)value);
34066         }
34067         break;
34068 
34069       case COLUMN:
34070         if (value == null) {
34071           unsetColumn();
34072         } else {
34073           setColumn((ByteBuffer)value);
34074         }
34075         break;
34076 
34077       case VALUE:
34078         if (value == null) {
34079           unsetValue();
34080         } else {
34081           setValue((Long)value);
34082         }
34083         break;
34084 
34085       }
34086     }
34087 
34088     public Object getFieldValue(_Fields field) {
34089       switch (field) {
34090       case TABLE_NAME:
34091         return getTableName();
34092 
34093       case ROW:
34094         return getRow();
34095 
34096       case COLUMN:
34097         return getColumn();
34098 
34099       case VALUE:
34100         return Long.valueOf(getValue());
34101 
34102       }
34103       throw new IllegalStateException();
34104     }
34105 
34106     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34107     public boolean isSet(_Fields field) {
34108       if (field == null) {
34109         throw new IllegalArgumentException();
34110       }
34111 
34112       switch (field) {
34113       case TABLE_NAME:
34114         return isSetTableName();
34115       case ROW:
34116         return isSetRow();
34117       case COLUMN:
34118         return isSetColumn();
34119       case VALUE:
34120         return isSetValue();
34121       }
34122       throw new IllegalStateException();
34123     }
34124 
34125     @Override
34126     public boolean equals(Object that) {
34127       if (that == null)
34128         return false;
34129       if (that instanceof atomicIncrement_args)
34130         return this.equals((atomicIncrement_args)that);
34131       return false;
34132     }
34133 
34134     public boolean equals(atomicIncrement_args that) {
34135       if (that == null)
34136         return false;
34137 
34138       boolean this_present_tableName = true && this.isSetTableName();
34139       boolean that_present_tableName = true && that.isSetTableName();
34140       if (this_present_tableName || that_present_tableName) {
34141         if (!(this_present_tableName && that_present_tableName))
34142           return false;
34143         if (!this.tableName.equals(that.tableName))
34144           return false;
34145       }
34146 
34147       boolean this_present_row = true && this.isSetRow();
34148       boolean that_present_row = true && that.isSetRow();
34149       if (this_present_row || that_present_row) {
34150         if (!(this_present_row && that_present_row))
34151           return false;
34152         if (!this.row.equals(that.row))
34153           return false;
34154       }
34155 
34156       boolean this_present_column = true && this.isSetColumn();
34157       boolean that_present_column = true && that.isSetColumn();
34158       if (this_present_column || that_present_column) {
34159         if (!(this_present_column && that_present_column))
34160           return false;
34161         if (!this.column.equals(that.column))
34162           return false;
34163       }
34164 
34165       boolean this_present_value = true;
34166       boolean that_present_value = true;
34167       if (this_present_value || that_present_value) {
34168         if (!(this_present_value && that_present_value))
34169           return false;
34170         if (this.value != that.value)
34171           return false;
34172       }
34173 
34174       return true;
34175     }
34176 
34177     @Override
34178     public int hashCode() {
34179       HashCodeBuilder builder = new HashCodeBuilder();
34180 
34181       boolean present_tableName = true && (isSetTableName());
34182       builder.append(present_tableName);
34183       if (present_tableName)
34184         builder.append(tableName);
34185 
34186       boolean present_row = true && (isSetRow());
34187       builder.append(present_row);
34188       if (present_row)
34189         builder.append(row);
34190 
34191       boolean present_column = true && (isSetColumn());
34192       builder.append(present_column);
34193       if (present_column)
34194         builder.append(column);
34195 
34196       boolean present_value = true;
34197       builder.append(present_value);
34198       if (present_value)
34199         builder.append(value);
34200 
34201       return builder.toHashCode();
34202     }
34203 
34204     public int compareTo(atomicIncrement_args other) {
34205       if (!getClass().equals(other.getClass())) {
34206         return getClass().getName().compareTo(other.getClass().getName());
34207       }
34208 
34209       int lastComparison = 0;
34210       atomicIncrement_args typedOther = (atomicIncrement_args)other;
34211 
34212       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
34213       if (lastComparison != 0) {
34214         return lastComparison;
34215       }
34216       if (isSetTableName()) {
34217         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
34218         if (lastComparison != 0) {
34219           return lastComparison;
34220         }
34221       }
34222       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
34223       if (lastComparison != 0) {
34224         return lastComparison;
34225       }
34226       if (isSetRow()) {
34227         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
34228         if (lastComparison != 0) {
34229           return lastComparison;
34230         }
34231       }
34232       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
34233       if (lastComparison != 0) {
34234         return lastComparison;
34235       }
34236       if (isSetColumn()) {
34237         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
34238         if (lastComparison != 0) {
34239           return lastComparison;
34240         }
34241       }
34242       lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
34243       if (lastComparison != 0) {
34244         return lastComparison;
34245       }
34246       if (isSetValue()) {
34247         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
34248         if (lastComparison != 0) {
34249           return lastComparison;
34250         }
34251       }
34252       return 0;
34253     }
34254 
34255     public _Fields fieldForId(int fieldId) {
34256       return _Fields.findByThriftId(fieldId);
34257     }
34258 
34259     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34260       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34261     }
34262 
34263     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34264       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34265     }
34266 
34267     @Override
34268     public String toString() {
34269       StringBuilder sb = new StringBuilder("atomicIncrement_args(");
34270       boolean first = true;
34271 
34272       sb.append("tableName:");
34273       if (this.tableName == null) {
34274         sb.append("null");
34275       } else {
34276         sb.append(this.tableName);
34277       }
34278       first = false;
34279       if (!first) sb.append(", ");
34280       sb.append("row:");
34281       if (this.row == null) {
34282         sb.append("null");
34283       } else {
34284         sb.append(this.row);
34285       }
34286       first = false;
34287       if (!first) sb.append(", ");
34288       sb.append("column:");
34289       if (this.column == null) {
34290         sb.append("null");
34291       } else {
34292         sb.append(this.column);
34293       }
34294       first = false;
34295       if (!first) sb.append(", ");
34296       sb.append("value:");
34297       sb.append(this.value);
34298       first = false;
34299       sb.append(")");
34300       return sb.toString();
34301     }
34302 
34303     public void validate() throws org.apache.thrift.TException {
34304       // check for required fields
34305       // check for sub-struct validity
34306     }
34307 
34308     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34309       try {
34310         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34311       } catch (org.apache.thrift.TException te) {
34312         throw new java.io.IOException(te);
34313       }
34314     }
34315 
34316     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34317       try {
34318         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34319         __isset_bitfield = 0;
34320         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34321       } catch (org.apache.thrift.TException te) {
34322         throw new java.io.IOException(te);
34323       }
34324     }
34325 
34326     private static class atomicIncrement_argsStandardSchemeFactory implements SchemeFactory {
34327       public atomicIncrement_argsStandardScheme getScheme() {
34328         return new atomicIncrement_argsStandardScheme();
34329       }
34330     }
34331 
34332     private static class atomicIncrement_argsStandardScheme extends StandardScheme<atomicIncrement_args> {
34333 
34334       public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34335         org.apache.thrift.protocol.TField schemeField;
34336         iprot.readStructBegin();
34337         while (true)
34338         {
34339           schemeField = iprot.readFieldBegin();
34340           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
34341             break;
34342           }
34343           switch (schemeField.id) {
34344             case 1: // TABLE_NAME
34345               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34346                 struct.tableName = iprot.readBinary();
34347                 struct.setTableNameIsSet(true);
34348               } else { 
34349                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34350               }
34351               break;
34352             case 2: // ROW
34353               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34354                 struct.row = iprot.readBinary();
34355                 struct.setRowIsSet(true);
34356               } else { 
34357                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34358               }
34359               break;
34360             case 3: // COLUMN
34361               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34362                 struct.column = iprot.readBinary();
34363                 struct.setColumnIsSet(true);
34364               } else { 
34365                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34366               }
34367               break;
34368             case 4: // VALUE
34369               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
34370                 struct.value = iprot.readI64();
34371                 struct.setValueIsSet(true);
34372               } else { 
34373                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34374               }
34375               break;
34376             default:
34377               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34378           }
34379           iprot.readFieldEnd();
34380         }
34381         iprot.readStructEnd();
34382 
34383         // check for required fields of primitive type, which can't be checked in the validate method
34384         struct.validate();
34385       }
34386 
34387       public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34388         struct.validate();
34389 
34390         oprot.writeStructBegin(STRUCT_DESC);
34391         if (struct.tableName != null) {
34392           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
34393           oprot.writeBinary(struct.tableName);
34394           oprot.writeFieldEnd();
34395         }
34396         if (struct.row != null) {
34397           oprot.writeFieldBegin(ROW_FIELD_DESC);
34398           oprot.writeBinary(struct.row);
34399           oprot.writeFieldEnd();
34400         }
34401         if (struct.column != null) {
34402           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
34403           oprot.writeBinary(struct.column);
34404           oprot.writeFieldEnd();
34405         }
34406         oprot.writeFieldBegin(VALUE_FIELD_DESC);
34407         oprot.writeI64(struct.value);
34408         oprot.writeFieldEnd();
34409         oprot.writeFieldStop();
34410         oprot.writeStructEnd();
34411       }
34412 
34413     }
34414 
34415     private static class atomicIncrement_argsTupleSchemeFactory implements SchemeFactory {
34416       public atomicIncrement_argsTupleScheme getScheme() {
34417         return new atomicIncrement_argsTupleScheme();
34418       }
34419     }
34420 
34421     private static class atomicIncrement_argsTupleScheme extends TupleScheme<atomicIncrement_args> {
34422 
34423       @Override
34424       public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34425         TTupleProtocol oprot = (TTupleProtocol) prot;
34426         BitSet optionals = new BitSet();
34427         if (struct.isSetTableName()) {
34428           optionals.set(0);
34429         }
34430         if (struct.isSetRow()) {
34431           optionals.set(1);
34432         }
34433         if (struct.isSetColumn()) {
34434           optionals.set(2);
34435         }
34436         if (struct.isSetValue()) {
34437           optionals.set(3);
34438         }
34439         oprot.writeBitSet(optionals, 4);
34440         if (struct.isSetTableName()) {
34441           oprot.writeBinary(struct.tableName);
34442         }
34443         if (struct.isSetRow()) {
34444           oprot.writeBinary(struct.row);
34445         }
34446         if (struct.isSetColumn()) {
34447           oprot.writeBinary(struct.column);
34448         }
34449         if (struct.isSetValue()) {
34450           oprot.writeI64(struct.value);
34451         }
34452       }
34453 
34454       @Override
34455       public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34456         TTupleProtocol iprot = (TTupleProtocol) prot;
34457         BitSet incoming = iprot.readBitSet(4);
34458         if (incoming.get(0)) {
34459           struct.tableName = iprot.readBinary();
34460           struct.setTableNameIsSet(true);
34461         }
34462         if (incoming.get(1)) {
34463           struct.row = iprot.readBinary();
34464           struct.setRowIsSet(true);
34465         }
34466         if (incoming.get(2)) {
34467           struct.column = iprot.readBinary();
34468           struct.setColumnIsSet(true);
34469         }
34470         if (incoming.get(3)) {
34471           struct.value = iprot.readI64();
34472           struct.setValueIsSet(true);
34473         }
34474       }
34475     }
34476 
34477   }
34478 
34479   public static class atomicIncrement_result implements org.apache.thrift.TBase<atomicIncrement_result, atomicIncrement_result._Fields>, java.io.Serializable, Cloneable   {
34480     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_result");
34481 
34482     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
34483     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
34484     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
34485 
34486     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34487     static {
34488       schemes.put(StandardScheme.class, new atomicIncrement_resultStandardSchemeFactory());
34489       schemes.put(TupleScheme.class, new atomicIncrement_resultTupleSchemeFactory());
34490     }
34491 
34492     public long success; // required
34493     public IOError io; // required
34494     public IllegalArgument ia; // required
34495 
34496     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34497     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34498       SUCCESS((short)0, "success"),
34499       IO((short)1, "io"),
34500       IA((short)2, "ia");
34501 
34502       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34503 
34504       static {
34505         for (_Fields field : EnumSet.allOf(_Fields.class)) {
34506           byName.put(field.getFieldName(), field);
34507         }
34508       }
34509 
34510       /**
34511        * Find the _Fields constant that matches fieldId, or null if its not found.
34512        */
34513       public static _Fields findByThriftId(int fieldId) {
34514         switch(fieldId) {
34515           case 0: // SUCCESS
34516             return SUCCESS;
34517           case 1: // IO
34518             return IO;
34519           case 2: // IA
34520             return IA;
34521           default:
34522             return null;
34523         }
34524       }
34525 
34526       /**
34527        * Find the _Fields constant that matches fieldId, throwing an exception
34528        * if it is not found.
34529        */
34530       public static _Fields findByThriftIdOrThrow(int fieldId) {
34531         _Fields fields = findByThriftId(fieldId);
34532         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34533         return fields;
34534       }
34535 
34536       /**
34537        * Find the _Fields constant that matches name, or null if its not found.
34538        */
34539       public static _Fields findByName(String name) {
34540         return byName.get(name);
34541       }
34542 
34543       private final short _thriftId;
34544       private final String _fieldName;
34545 
34546       _Fields(short thriftId, String fieldName) {
34547         _thriftId = thriftId;
34548         _fieldName = fieldName;
34549       }
34550 
34551       public short getThriftFieldId() {
34552         return _thriftId;
34553       }
34554 
34555       public String getFieldName() {
34556         return _fieldName;
34557       }
34558     }
34559 
34560     // isset id assignments
34561     private static final int __SUCCESS_ISSET_ID = 0;
34562     private byte __isset_bitfield = 0;
34563     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34564     static {
34565       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34566       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34567           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34568       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34569           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34570       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34571           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34572       metaDataMap = Collections.unmodifiableMap(tmpMap);
34573       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_result.class, metaDataMap);
34574     }
34575 
34576     public atomicIncrement_result() {
34577     }
34578 
34579     public atomicIncrement_result(
34580       long success,
34581       IOError io,
34582       IllegalArgument ia)
34583     {
34584       this();
34585       this.success = success;
34586       setSuccessIsSet(true);
34587       this.io = io;
34588       this.ia = ia;
34589     }
34590 
34591     /**
34592      * Performs a deep copy on <i>other</i>.
34593      */
34594     public atomicIncrement_result(atomicIncrement_result other) {
34595       __isset_bitfield = other.__isset_bitfield;
34596       this.success = other.success;
34597       if (other.isSetIo()) {
34598         this.io = new IOError(other.io);
34599       }
34600       if (other.isSetIa()) {
34601         this.ia = new IllegalArgument(other.ia);
34602       }
34603     }
34604 
34605     public atomicIncrement_result deepCopy() {
34606       return new atomicIncrement_result(this);
34607     }
34608 
34609     @Override
34610     public void clear() {
34611       setSuccessIsSet(false);
34612       this.success = 0;
34613       this.io = null;
34614       this.ia = null;
34615     }
34616 
34617     public long getSuccess() {
34618       return this.success;
34619     }
34620 
34621     public atomicIncrement_result setSuccess(long success) {
34622       this.success = success;
34623       setSuccessIsSet(true);
34624       return this;
34625     }
34626 
34627     public void unsetSuccess() {
34628       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
34629     }
34630 
34631     /** Returns true if field success is set (has been assigned a value) and false otherwise */
34632     public boolean isSetSuccess() {
34633       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
34634     }
34635 
34636     public void setSuccessIsSet(boolean value) {
34637       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
34638     }
34639 
34640     public IOError getIo() {
34641       return this.io;
34642     }
34643 
34644     public atomicIncrement_result setIo(IOError io) {
34645       this.io = io;
34646       return this;
34647     }
34648 
34649     public void unsetIo() {
34650       this.io = null;
34651     }
34652 
34653     /** Returns true if field io is set (has been assigned a value) and false otherwise */
34654     public boolean isSetIo() {
34655       return this.io != null;
34656     }
34657 
34658     public void setIoIsSet(boolean value) {
34659       if (!value) {
34660         this.io = null;
34661       }
34662     }
34663 
34664     public IllegalArgument getIa() {
34665       return this.ia;
34666     }
34667 
34668     public atomicIncrement_result setIa(IllegalArgument ia) {
34669       this.ia = ia;
34670       return this;
34671     }
34672 
34673     public void unsetIa() {
34674       this.ia = null;
34675     }
34676 
34677     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
34678     public boolean isSetIa() {
34679       return this.ia != null;
34680     }
34681 
34682     public void setIaIsSet(boolean value) {
34683       if (!value) {
34684         this.ia = null;
34685       }
34686     }
34687 
34688     public void setFieldValue(_Fields field, Object value) {
34689       switch (field) {
34690       case SUCCESS:
34691         if (value == null) {
34692           unsetSuccess();
34693         } else {
34694           setSuccess((Long)value);
34695         }
34696         break;
34697 
34698       case IO:
34699         if (value == null) {
34700           unsetIo();
34701         } else {
34702           setIo((IOError)value);
34703         }
34704         break;
34705 
34706       case IA:
34707         if (value == null) {
34708           unsetIa();
34709         } else {
34710           setIa((IllegalArgument)value);
34711         }
34712         break;
34713 
34714       }
34715     }
34716 
34717     public Object getFieldValue(_Fields field) {
34718       switch (field) {
34719       case SUCCESS:
34720         return Long.valueOf(getSuccess());
34721 
34722       case IO:
34723         return getIo();
34724 
34725       case IA:
34726         return getIa();
34727 
34728       }
34729       throw new IllegalStateException();
34730     }
34731 
34732     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34733     public boolean isSet(_Fields field) {
34734       if (field == null) {
34735         throw new IllegalArgumentException();
34736       }
34737 
34738       switch (field) {
34739       case SUCCESS:
34740         return isSetSuccess();
34741       case IO:
34742         return isSetIo();
34743       case IA:
34744         return isSetIa();
34745       }
34746       throw new IllegalStateException();
34747     }
34748 
34749     @Override
34750     public boolean equals(Object that) {
34751       if (that == null)
34752         return false;
34753       if (that instanceof atomicIncrement_result)
34754         return this.equals((atomicIncrement_result)that);
34755       return false;
34756     }
34757 
34758     public boolean equals(atomicIncrement_result that) {
34759       if (that == null)
34760         return false;
34761 
34762       boolean this_present_success = true;
34763       boolean that_present_success = true;
34764       if (this_present_success || that_present_success) {
34765         if (!(this_present_success && that_present_success))
34766           return false;
34767         if (this.success != that.success)
34768           return false;
34769       }
34770 
34771       boolean this_present_io = true && this.isSetIo();
34772       boolean that_present_io = true && that.isSetIo();
34773       if (this_present_io || that_present_io) {
34774         if (!(this_present_io && that_present_io))
34775           return false;
34776         if (!this.io.equals(that.io))
34777           return false;
34778       }
34779 
34780       boolean this_present_ia = true && this.isSetIa();
34781       boolean that_present_ia = true && that.isSetIa();
34782       if (this_present_ia || that_present_ia) {
34783         if (!(this_present_ia && that_present_ia))
34784           return false;
34785         if (!this.ia.equals(that.ia))
34786           return false;
34787       }
34788 
34789       return true;
34790     }
34791 
34792     @Override
34793     public int hashCode() {
34794       HashCodeBuilder builder = new HashCodeBuilder();
34795 
34796       boolean present_success = true;
34797       builder.append(present_success);
34798       if (present_success)
34799         builder.append(success);
34800 
34801       boolean present_io = true && (isSetIo());
34802       builder.append(present_io);
34803       if (present_io)
34804         builder.append(io);
34805 
34806       boolean present_ia = true && (isSetIa());
34807       builder.append(present_ia);
34808       if (present_ia)
34809         builder.append(ia);
34810 
34811       return builder.toHashCode();
34812     }
34813 
34814     public int compareTo(atomicIncrement_result other) {
34815       if (!getClass().equals(other.getClass())) {
34816         return getClass().getName().compareTo(other.getClass().getName());
34817       }
34818 
34819       int lastComparison = 0;
34820       atomicIncrement_result typedOther = (atomicIncrement_result)other;
34821 
34822       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34823       if (lastComparison != 0) {
34824         return lastComparison;
34825       }
34826       if (isSetSuccess()) {
34827         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34828         if (lastComparison != 0) {
34829           return lastComparison;
34830         }
34831       }
34832       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
34833       if (lastComparison != 0) {
34834         return lastComparison;
34835       }
34836       if (isSetIo()) {
34837         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
34838         if (lastComparison != 0) {
34839           return lastComparison;
34840         }
34841       }
34842       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
34843       if (lastComparison != 0) {
34844         return lastComparison;
34845       }
34846       if (isSetIa()) {
34847         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
34848         if (lastComparison != 0) {
34849           return lastComparison;
34850         }
34851       }
34852       return 0;
34853     }
34854 
34855     public _Fields fieldForId(int fieldId) {
34856       return _Fields.findByThriftId(fieldId);
34857     }
34858 
34859     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34860       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34861     }
34862 
34863     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34864       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34865       }
34866 
34867     @Override
34868     public String toString() {
34869       StringBuilder sb = new StringBuilder("atomicIncrement_result(");
34870       boolean first = true;
34871 
34872       sb.append("success:");
34873       sb.append(this.success);
34874       first = false;
34875       if (!first) sb.append(", ");
34876       sb.append("io:");
34877       if (this.io == null) {
34878         sb.append("null");
34879       } else {
34880         sb.append(this.io);
34881       }
34882       first = false;
34883       if (!first) sb.append(", ");
34884       sb.append("ia:");
34885       if (this.ia == null) {
34886         sb.append("null");
34887       } else {
34888         sb.append(this.ia);
34889       }
34890       first = false;
34891       sb.append(")");
34892       return sb.toString();
34893     }
34894 
34895     public void validate() throws org.apache.thrift.TException {
34896       // check for required fields
34897       // check for sub-struct validity
34898     }
34899 
34900     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34901       try {
34902         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34903       } catch (org.apache.thrift.TException te) {
34904         throw new java.io.IOException(te);
34905       }
34906     }
34907 
34908     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34909       try {
34910         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34911         __isset_bitfield = 0;
34912         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34913       } catch (org.apache.thrift.TException te) {
34914         throw new java.io.IOException(te);
34915       }
34916     }
34917 
34918     private static class atomicIncrement_resultStandardSchemeFactory implements SchemeFactory {
34919       public atomicIncrement_resultStandardScheme getScheme() {
34920         return new atomicIncrement_resultStandardScheme();
34921       }
34922     }
34923 
34924     private static class atomicIncrement_resultStandardScheme extends StandardScheme<atomicIncrement_result> {
34925 
34926       public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_result struct) throws org.apache.thrift.TException {
34927         org.apache.thrift.protocol.TField schemeField;
34928         iprot.readStructBegin();
34929         while (true)
34930         {
34931           schemeField = iprot.readFieldBegin();
34932           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
34933             break;
34934           }
34935           switch (schemeField.id) {
34936             case 0: // SUCCESS
34937               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
34938                 struct.success = iprot.readI64();
34939                 struct.setSuccessIsSet(true);
34940               } else { 
34941                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34942               }
34943               break;
34944             case 1: // IO
34945               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
34946                 struct.io = new IOError();
34947                 struct.io.read(iprot);
34948                 struct.setIoIsSet(true);
34949               } else { 
34950                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34951               }
34952               break;
34953             case 2: // IA
34954               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
34955                 struct.ia = new IllegalArgument();
34956                 struct.ia.read(iprot);
34957                 struct.setIaIsSet(true);
34958               } else { 
34959                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34960               }
34961               break;
34962             default:
34963               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34964           }
34965           iprot.readFieldEnd();
34966         }
34967         iprot.readStructEnd();
34968 
34969         // check for required fields of primitive type, which can't be checked in the validate method
34970         struct.validate();
34971       }
34972 
34973       public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_result struct) throws org.apache.thrift.TException {
34974         struct.validate();
34975 
34976         oprot.writeStructBegin(STRUCT_DESC);
34977         if (struct.isSetSuccess()) {
34978           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34979           oprot.writeI64(struct.success);
34980           oprot.writeFieldEnd();
34981         }
34982         if (struct.io != null) {
34983           oprot.writeFieldBegin(IO_FIELD_DESC);
34984           struct.io.write(oprot);
34985           oprot.writeFieldEnd();
34986         }
34987         if (struct.ia != null) {
34988           oprot.writeFieldBegin(IA_FIELD_DESC);
34989           struct.ia.write(oprot);
34990           oprot.writeFieldEnd();
34991         }
34992         oprot.writeFieldStop();
34993         oprot.writeStructEnd();
34994       }
34995 
34996     }
34997 
34998     private static class atomicIncrement_resultTupleSchemeFactory implements SchemeFactory {
34999       public atomicIncrement_resultTupleScheme getScheme() {
35000         return new atomicIncrement_resultTupleScheme();
35001       }
35002     }
35003 
35004     private static class atomicIncrement_resultTupleScheme extends TupleScheme<atomicIncrement_result> {
35005 
35006       @Override
35007       public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35008         TTupleProtocol oprot = (TTupleProtocol) prot;
35009         BitSet optionals = new BitSet();
35010         if (struct.isSetSuccess()) {
35011           optionals.set(0);
35012         }
35013         if (struct.isSetIo()) {
35014           optionals.set(1);
35015         }
35016         if (struct.isSetIa()) {
35017           optionals.set(2);
35018         }
35019         oprot.writeBitSet(optionals, 3);
35020         if (struct.isSetSuccess()) {
35021           oprot.writeI64(struct.success);
35022         }
35023         if (struct.isSetIo()) {
35024           struct.io.write(oprot);
35025         }
35026         if (struct.isSetIa()) {
35027           struct.ia.write(oprot);
35028         }
35029       }
35030 
35031       @Override
35032       public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35033         TTupleProtocol iprot = (TTupleProtocol) prot;
35034         BitSet incoming = iprot.readBitSet(3);
35035         if (incoming.get(0)) {
35036           struct.success = iprot.readI64();
35037           struct.setSuccessIsSet(true);
35038         }
35039         if (incoming.get(1)) {
35040           struct.io = new IOError();
35041           struct.io.read(iprot);
35042           struct.setIoIsSet(true);
35043         }
35044         if (incoming.get(2)) {
35045           struct.ia = new IllegalArgument();
35046           struct.ia.read(iprot);
35047           struct.setIaIsSet(true);
35048         }
35049       }
35050     }
35051 
35052   }
35053 
35054   public static class deleteAll_args implements org.apache.thrift.TBase<deleteAll_args, deleteAll_args._Fields>, java.io.Serializable, Cloneable   {
35055     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_args");
35056 
35057     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
35058     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
35059     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
35060     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
35061 
35062     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35063     static {
35064       schemes.put(StandardScheme.class, new deleteAll_argsStandardSchemeFactory());
35065       schemes.put(TupleScheme.class, new deleteAll_argsTupleSchemeFactory());
35066     }
35067 
35068     /**
35069      * name of table
35070      */
35071     public ByteBuffer tableName; // required
35072     /**
35073      * Row to update
35074      */
35075     public ByteBuffer row; // required
35076     /**
35077      * name of column whose value is to be deleted
35078      */
35079     public ByteBuffer column; // required
35080     /**
35081      * Delete attributes
35082      */
35083     public Map<ByteBuffer,ByteBuffer> attributes; // required
35084 
35085     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35086     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35087       /**
35088        * name of table
35089        */
35090       TABLE_NAME((short)1, "tableName"),
35091       /**
35092        * Row to update
35093        */
35094       ROW((short)2, "row"),
35095       /**
35096        * name of column whose value is to be deleted
35097        */
35098       COLUMN((short)3, "column"),
35099       /**
35100        * Delete attributes
35101        */
35102       ATTRIBUTES((short)4, "attributes");
35103 
35104       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35105 
35106       static {
35107         for (_Fields field : EnumSet.allOf(_Fields.class)) {
35108           byName.put(field.getFieldName(), field);
35109         }
35110       }
35111 
35112       /**
35113        * Find the _Fields constant that matches fieldId, or null if its not found.
35114        */
35115       public static _Fields findByThriftId(int fieldId) {
35116         switch(fieldId) {
35117           case 1: // TABLE_NAME
35118             return TABLE_NAME;
35119           case 2: // ROW
35120             return ROW;
35121           case 3: // COLUMN
35122             return COLUMN;
35123           case 4: // ATTRIBUTES
35124             return ATTRIBUTES;
35125           default:
35126             return null;
35127         }
35128       }
35129 
35130       /**
35131        * Find the _Fields constant that matches fieldId, throwing an exception
35132        * if it is not found.
35133        */
35134       public static _Fields findByThriftIdOrThrow(int fieldId) {
35135         _Fields fields = findByThriftId(fieldId);
35136         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35137         return fields;
35138       }
35139 
35140       /**
35141        * Find the _Fields constant that matches name, or null if its not found.
35142        */
35143       public static _Fields findByName(String name) {
35144         return byName.get(name);
35145       }
35146 
35147       private final short _thriftId;
35148       private final String _fieldName;
35149 
35150       _Fields(short thriftId, String fieldName) {
35151         _thriftId = thriftId;
35152         _fieldName = fieldName;
35153       }
35154 
35155       public short getThriftFieldId() {
35156         return _thriftId;
35157       }
35158 
35159       public String getFieldName() {
35160         return _fieldName;
35161       }
35162     }
35163 
35164     // isset id assignments
35165     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35166     static {
35167       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35168       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35169           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
35170       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35171           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
35172       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35173           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
35174       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35175           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
35176               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
35177               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
35178       metaDataMap = Collections.unmodifiableMap(tmpMap);
35179       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_args.class, metaDataMap);
35180     }
35181 
35182     public deleteAll_args() {
35183     }
35184 
35185     public deleteAll_args(
35186       ByteBuffer tableName,
35187       ByteBuffer row,
35188       ByteBuffer column,
35189       Map<ByteBuffer,ByteBuffer> attributes)
35190     {
35191       this();
35192       this.tableName = tableName;
35193       this.row = row;
35194       this.column = column;
35195       this.attributes = attributes;
35196     }
35197 
35198     /**
35199      * Performs a deep copy on <i>other</i>.
35200      */
35201     public deleteAll_args(deleteAll_args other) {
35202       if (other.isSetTableName()) {
35203         this.tableName = other.tableName;
35204       }
35205       if (other.isSetRow()) {
35206         this.row = other.row;
35207       }
35208       if (other.isSetColumn()) {
35209         this.column = other.column;
35210       }
35211       if (other.isSetAttributes()) {
35212         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
35213         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
35214 
35215           ByteBuffer other_element_key = other_element.getKey();
35216           ByteBuffer other_element_value = other_element.getValue();
35217 
35218           ByteBuffer __this__attributes_copy_key = other_element_key;
35219 
35220           ByteBuffer __this__attributes_copy_value = other_element_value;
35221 
35222           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
35223         }
35224         this.attributes = __this__attributes;
35225       }
35226     }
35227 
35228     public deleteAll_args deepCopy() {
35229       return new deleteAll_args(this);
35230     }
35231 
35232     @Override
35233     public void clear() {
35234       this.tableName = null;
35235       this.row = null;
35236       this.column = null;
35237       this.attributes = null;
35238     }
35239 
35240     /**
35241      * name of table
35242      */
35243     public byte[] getTableName() {
35244       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
35245       return tableName == null ? null : tableName.array();
35246     }
35247 
35248     public ByteBuffer bufferForTableName() {
35249       return tableName;
35250     }
35251 
35252     /**
35253      * name of table
35254      */
35255     public deleteAll_args setTableName(byte[] tableName) {
35256       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
35257       return this;
35258     }
35259 
35260     public deleteAll_args setTableName(ByteBuffer tableName) {
35261       this.tableName = tableName;
35262       return this;
35263     }
35264 
35265     public void unsetTableName() {
35266       this.tableName = null;
35267     }
35268 
35269     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
35270     public boolean isSetTableName() {
35271       return this.tableName != null;
35272     }
35273 
35274     public void setTableNameIsSet(boolean value) {
35275       if (!value) {
35276         this.tableName = null;
35277       }
35278     }
35279 
35280     /**
35281      * Row to update
35282      */
35283     public byte[] getRow() {
35284       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
35285       return row == null ? null : row.array();
35286     }
35287 
35288     public ByteBuffer bufferForRow() {
35289       return row;
35290     }
35291 
35292     /**
35293      * Row to update
35294      */
35295     public deleteAll_args setRow(byte[] row) {
35296       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
35297       return this;
35298     }
35299 
35300     public deleteAll_args setRow(ByteBuffer row) {
35301       this.row = row;
35302       return this;
35303     }
35304 
35305     public void unsetRow() {
35306       this.row = null;
35307     }
35308 
35309     /** Returns true if field row is set (has been assigned a value) and false otherwise */
35310     public boolean isSetRow() {
35311       return this.row != null;
35312     }
35313 
35314     public void setRowIsSet(boolean value) {
35315       if (!value) {
35316         this.row = null;
35317       }
35318     }
35319 
35320     /**
35321      * name of column whose value is to be deleted
35322      */
35323     public byte[] getColumn() {
35324       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
35325       return column == null ? null : column.array();
35326     }
35327 
35328     public ByteBuffer bufferForColumn() {
35329       return column;
35330     }
35331 
35332     /**
35333      * name of column whose value is to be deleted
35334      */
35335     public deleteAll_args setColumn(byte[] column) {
35336       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
35337       return this;
35338     }
35339 
35340     public deleteAll_args setColumn(ByteBuffer column) {
35341       this.column = column;
35342       return this;
35343     }
35344 
35345     public void unsetColumn() {
35346       this.column = null;
35347     }
35348 
35349     /** Returns true if field column is set (has been assigned a value) and false otherwise */
35350     public boolean isSetColumn() {
35351       return this.column != null;
35352     }
35353 
35354     public void setColumnIsSet(boolean value) {
35355       if (!value) {
35356         this.column = null;
35357       }
35358     }
35359 
35360     public int getAttributesSize() {
35361       return (this.attributes == null) ? 0 : this.attributes.size();
35362     }
35363 
35364     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
35365       if (this.attributes == null) {
35366         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
35367       }
35368       this.attributes.put(key, val);
35369     }
35370 
35371     /**
35372      * Delete attributes
35373      */
35374     public Map<ByteBuffer,ByteBuffer> getAttributes() {
35375       return this.attributes;
35376     }
35377 
35378     /**
35379      * Delete attributes
35380      */
35381     public deleteAll_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
35382       this.attributes = attributes;
35383       return this;
35384     }
35385 
35386     public void unsetAttributes() {
35387       this.attributes = null;
35388     }
35389 
35390     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
35391     public boolean isSetAttributes() {
35392       return this.attributes != null;
35393     }
35394 
35395     public void setAttributesIsSet(boolean value) {
35396       if (!value) {
35397         this.attributes = null;
35398       }
35399     }
35400 
35401     public void setFieldValue(_Fields field, Object value) {
35402       switch (field) {
35403       case TABLE_NAME:
35404         if (value == null) {
35405           unsetTableName();
35406         } else {
35407           setTableName((ByteBuffer)value);
35408         }
35409         break;
35410 
35411       case ROW:
35412         if (value == null) {
35413           unsetRow();
35414         } else {
35415           setRow((ByteBuffer)value);
35416         }
35417         break;
35418 
35419       case COLUMN:
35420         if (value == null) {
35421           unsetColumn();
35422         } else {
35423           setColumn((ByteBuffer)value);
35424         }
35425         break;
35426 
35427       case ATTRIBUTES:
35428         if (value == null) {
35429           unsetAttributes();
35430         } else {
35431           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
35432         }
35433         break;
35434 
35435       }
35436     }
35437 
35438     public Object getFieldValue(_Fields field) {
35439       switch (field) {
35440       case TABLE_NAME:
35441         return getTableName();
35442 
35443       case ROW:
35444         return getRow();
35445 
35446       case COLUMN:
35447         return getColumn();
35448 
35449       case ATTRIBUTES:
35450         return getAttributes();
35451 
35452       }
35453       throw new IllegalStateException();
35454     }
35455 
35456     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35457     public boolean isSet(_Fields field) {
35458       if (field == null) {
35459         throw new IllegalArgumentException();
35460       }
35461 
35462       switch (field) {
35463       case TABLE_NAME:
35464         return isSetTableName();
35465       case ROW:
35466         return isSetRow();
35467       case COLUMN:
35468         return isSetColumn();
35469       case ATTRIBUTES:
35470         return isSetAttributes();
35471       }
35472       throw new IllegalStateException();
35473     }
35474 
35475     @Override
35476     public boolean equals(Object that) {
35477       if (that == null)
35478         return false;
35479       if (that instanceof deleteAll_args)
35480         return this.equals((deleteAll_args)that);
35481       return false;
35482     }
35483 
35484     public boolean equals(deleteAll_args that) {
35485       if (that == null)
35486         return false;
35487 
35488       boolean this_present_tableName = true && this.isSetTableName();
35489       boolean that_present_tableName = true && that.isSetTableName();
35490       if (this_present_tableName || that_present_tableName) {
35491         if (!(this_present_tableName && that_present_tableName))
35492           return false;
35493         if (!this.tableName.equals(that.tableName))
35494           return false;
35495       }
35496 
35497       boolean this_present_row = true && this.isSetRow();
35498       boolean that_present_row = true && that.isSetRow();
35499       if (this_present_row || that_present_row) {
35500         if (!(this_present_row && that_present_row))
35501           return false;
35502         if (!this.row.equals(that.row))
35503           return false;
35504       }
35505 
35506       boolean this_present_column = true && this.isSetColumn();
35507       boolean that_present_column = true && that.isSetColumn();
35508       if (this_present_column || that_present_column) {
35509         if (!(this_present_column && that_present_column))
35510           return false;
35511         if (!this.column.equals(that.column))
35512           return false;
35513       }
35514 
35515       boolean this_present_attributes = true && this.isSetAttributes();
35516       boolean that_present_attributes = true && that.isSetAttributes();
35517       if (this_present_attributes || that_present_attributes) {
35518         if (!(this_present_attributes && that_present_attributes))
35519           return false;
35520         if (!this.attributes.equals(that.attributes))
35521           return false;
35522       }
35523 
35524       return true;
35525     }
35526 
35527     @Override
35528     public int hashCode() {
35529       HashCodeBuilder builder = new HashCodeBuilder();
35530 
35531       boolean present_tableName = true && (isSetTableName());
35532       builder.append(present_tableName);
35533       if (present_tableName)
35534         builder.append(tableName);
35535 
35536       boolean present_row = true && (isSetRow());
35537       builder.append(present_row);
35538       if (present_row)
35539         builder.append(row);
35540 
35541       boolean present_column = true && (isSetColumn());
35542       builder.append(present_column);
35543       if (present_column)
35544         builder.append(column);
35545 
35546       boolean present_attributes = true && (isSetAttributes());
35547       builder.append(present_attributes);
35548       if (present_attributes)
35549         builder.append(attributes);
35550 
35551       return builder.toHashCode();
35552     }
35553 
35554     public int compareTo(deleteAll_args other) {
35555       if (!getClass().equals(other.getClass())) {
35556         return getClass().getName().compareTo(other.getClass().getName());
35557       }
35558 
35559       int lastComparison = 0;
35560       deleteAll_args typedOther = (deleteAll_args)other;
35561 
35562       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
35563       if (lastComparison != 0) {
35564         return lastComparison;
35565       }
35566       if (isSetTableName()) {
35567         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
35568         if (lastComparison != 0) {
35569           return lastComparison;
35570         }
35571       }
35572       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
35573       if (lastComparison != 0) {
35574         return lastComparison;
35575       }
35576       if (isSetRow()) {
35577         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
35578         if (lastComparison != 0) {
35579           return lastComparison;
35580         }
35581       }
35582       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
35583       if (lastComparison != 0) {
35584         return lastComparison;
35585       }
35586       if (isSetColumn()) {
35587         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
35588         if (lastComparison != 0) {
35589           return lastComparison;
35590         }
35591       }
35592       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
35593       if (lastComparison != 0) {
35594         return lastComparison;
35595       }
35596       if (isSetAttributes()) {
35597         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
35598         if (lastComparison != 0) {
35599           return lastComparison;
35600         }
35601       }
35602       return 0;
35603     }
35604 
35605     public _Fields fieldForId(int fieldId) {
35606       return _Fields.findByThriftId(fieldId);
35607     }
35608 
35609     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35610       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35611     }
35612 
35613     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35614       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35615     }
35616 
35617     @Override
35618     public String toString() {
35619       StringBuilder sb = new StringBuilder("deleteAll_args(");
35620       boolean first = true;
35621 
35622       sb.append("tableName:");
35623       if (this.tableName == null) {
35624         sb.append("null");
35625       } else {
35626         sb.append(this.tableName);
35627       }
35628       first = false;
35629       if (!first) sb.append(", ");
35630       sb.append("row:");
35631       if (this.row == null) {
35632         sb.append("null");
35633       } else {
35634         sb.append(this.row);
35635       }
35636       first = false;
35637       if (!first) sb.append(", ");
35638       sb.append("column:");
35639       if (this.column == null) {
35640         sb.append("null");
35641       } else {
35642         sb.append(this.column);
35643       }
35644       first = false;
35645       if (!first) sb.append(", ");
35646       sb.append("attributes:");
35647       if (this.attributes == null) {
35648         sb.append("null");
35649       } else {
35650         sb.append(this.attributes);
35651       }
35652       first = false;
35653       sb.append(")");
35654       return sb.toString();
35655     }
35656 
35657     public void validate() throws org.apache.thrift.TException {
35658       // check for required fields
35659       // check for sub-struct validity
35660     }
35661 
35662     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35663       try {
35664         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35665       } catch (org.apache.thrift.TException te) {
35666         throw new java.io.IOException(te);
35667       }
35668     }
35669 
35670     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35671       try {
35672         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35673       } catch (org.apache.thrift.TException te) {
35674         throw new java.io.IOException(te);
35675       }
35676     }
35677 
35678     private static class deleteAll_argsStandardSchemeFactory implements SchemeFactory {
35679       public deleteAll_argsStandardScheme getScheme() {
35680         return new deleteAll_argsStandardScheme();
35681       }
35682     }
35683 
35684     private static class deleteAll_argsStandardScheme extends StandardScheme<deleteAll_args> {
35685 
35686       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_args struct) throws org.apache.thrift.TException {
35687         org.apache.thrift.protocol.TField schemeField;
35688         iprot.readStructBegin();
35689         while (true)
35690         {
35691           schemeField = iprot.readFieldBegin();
35692           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
35693             break;
35694           }
35695           switch (schemeField.id) {
35696             case 1: // TABLE_NAME
35697               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35698                 struct.tableName = iprot.readBinary();
35699                 struct.setTableNameIsSet(true);
35700               } else { 
35701                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35702               }
35703               break;
35704             case 2: // ROW
35705               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35706                 struct.row = iprot.readBinary();
35707                 struct.setRowIsSet(true);
35708               } else { 
35709                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35710               }
35711               break;
35712             case 3: // COLUMN
35713               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35714                 struct.column = iprot.readBinary();
35715                 struct.setColumnIsSet(true);
35716               } else { 
35717                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35718               }
35719               break;
35720             case 4: // ATTRIBUTES
35721               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
35722                 {
35723                   org.apache.thrift.protocol.TMap _map418 = iprot.readMapBegin();
35724                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map418.size);
35725                   for (int _i419 = 0; _i419 < _map418.size; ++_i419)
35726                   {
35727                     ByteBuffer _key420; // required
35728                     ByteBuffer _val421; // required
35729                     _key420 = iprot.readBinary();
35730                     _val421 = iprot.readBinary();
35731                     struct.attributes.put(_key420, _val421);
35732                   }
35733                   iprot.readMapEnd();
35734                 }
35735                 struct.setAttributesIsSet(true);
35736               } else { 
35737                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35738               }
35739               break;
35740             default:
35741               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35742           }
35743           iprot.readFieldEnd();
35744         }
35745         iprot.readStructEnd();
35746 
35747         // check for required fields of primitive type, which can't be checked in the validate method
35748         struct.validate();
35749       }
35750 
35751       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_args struct) throws org.apache.thrift.TException {
35752         struct.validate();
35753 
35754         oprot.writeStructBegin(STRUCT_DESC);
35755         if (struct.tableName != null) {
35756           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
35757           oprot.writeBinary(struct.tableName);
35758           oprot.writeFieldEnd();
35759         }
35760         if (struct.row != null) {
35761           oprot.writeFieldBegin(ROW_FIELD_DESC);
35762           oprot.writeBinary(struct.row);
35763           oprot.writeFieldEnd();
35764         }
35765         if (struct.column != null) {
35766           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
35767           oprot.writeBinary(struct.column);
35768           oprot.writeFieldEnd();
35769         }
35770         if (struct.attributes != null) {
35771           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
35772           {
35773             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
35774             for (Map.Entry<ByteBuffer, ByteBuffer> _iter422 : struct.attributes.entrySet())
35775             {
35776               oprot.writeBinary(_iter422.getKey());
35777               oprot.writeBinary(_iter422.getValue());
35778             }
35779             oprot.writeMapEnd();
35780           }
35781           oprot.writeFieldEnd();
35782         }
35783         oprot.writeFieldStop();
35784         oprot.writeStructEnd();
35785       }
35786 
35787     }
35788 
35789     private static class deleteAll_argsTupleSchemeFactory implements SchemeFactory {
35790       public deleteAll_argsTupleScheme getScheme() {
35791         return new deleteAll_argsTupleScheme();
35792       }
35793     }
35794 
35795     private static class deleteAll_argsTupleScheme extends TupleScheme<deleteAll_args> {
35796 
35797       @Override
35798       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException {
35799         TTupleProtocol oprot = (TTupleProtocol) prot;
35800         BitSet optionals = new BitSet();
35801         if (struct.isSetTableName()) {
35802           optionals.set(0);
35803         }
35804         if (struct.isSetRow()) {
35805           optionals.set(1);
35806         }
35807         if (struct.isSetColumn()) {
35808           optionals.set(2);
35809         }
35810         if (struct.isSetAttributes()) {
35811           optionals.set(3);
35812         }
35813         oprot.writeBitSet(optionals, 4);
35814         if (struct.isSetTableName()) {
35815           oprot.writeBinary(struct.tableName);
35816         }
35817         if (struct.isSetRow()) {
35818           oprot.writeBinary(struct.row);
35819         }
35820         if (struct.isSetColumn()) {
35821           oprot.writeBinary(struct.column);
35822         }
35823         if (struct.isSetAttributes()) {
35824           {
35825             oprot.writeI32(struct.attributes.size());
35826             for (Map.Entry<ByteBuffer, ByteBuffer> _iter423 : struct.attributes.entrySet())
35827             {
35828               oprot.writeBinary(_iter423.getKey());
35829               oprot.writeBinary(_iter423.getValue());
35830             }
35831           }
35832         }
35833       }
35834 
35835       @Override
35836       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException {
35837         TTupleProtocol iprot = (TTupleProtocol) prot;
35838         BitSet incoming = iprot.readBitSet(4);
35839         if (incoming.get(0)) {
35840           struct.tableName = iprot.readBinary();
35841           struct.setTableNameIsSet(true);
35842         }
35843         if (incoming.get(1)) {
35844           struct.row = iprot.readBinary();
35845           struct.setRowIsSet(true);
35846         }
35847         if (incoming.get(2)) {
35848           struct.column = iprot.readBinary();
35849           struct.setColumnIsSet(true);
35850         }
35851         if (incoming.get(3)) {
35852           {
35853             org.apache.thrift.protocol.TMap _map424 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
35854             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map424.size);
35855             for (int _i425 = 0; _i425 < _map424.size; ++_i425)
35856             {
35857               ByteBuffer _key426; // required
35858               ByteBuffer _val427; // required
35859               _key426 = iprot.readBinary();
35860               _val427 = iprot.readBinary();
35861               struct.attributes.put(_key426, _val427);
35862             }
35863           }
35864           struct.setAttributesIsSet(true);
35865         }
35866       }
35867     }
35868 
35869   }
35870 
35871   public static class deleteAll_result implements org.apache.thrift.TBase<deleteAll_result, deleteAll_result._Fields>, java.io.Serializable, Cloneable   {
35872     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_result");
35873 
35874     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
35875 
35876     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35877     static {
35878       schemes.put(StandardScheme.class, new deleteAll_resultStandardSchemeFactory());
35879       schemes.put(TupleScheme.class, new deleteAll_resultTupleSchemeFactory());
35880     }
35881 
35882     public IOError io; // required
35883 
35884     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35885     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35886       IO((short)1, "io");
35887 
35888       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35889 
35890       static {
35891         for (_Fields field : EnumSet.allOf(_Fields.class)) {
35892           byName.put(field.getFieldName(), field);
35893         }
35894       }
35895 
35896       /**
35897        * Find the _Fields constant that matches fieldId, or null if its not found.
35898        */
35899       public static _Fields findByThriftId(int fieldId) {
35900         switch(fieldId) {
35901           case 1: // IO
35902             return IO;
35903           default:
35904             return null;
35905         }
35906       }
35907 
35908       /**
35909        * Find the _Fields constant that matches fieldId, throwing an exception
35910        * if it is not found.
35911        */
35912       public static _Fields findByThriftIdOrThrow(int fieldId) {
35913         _Fields fields = findByThriftId(fieldId);
35914         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35915         return fields;
35916       }
35917 
35918       /**
35919        * Find the _Fields constant that matches name, or null if its not found.
35920        */
35921       public static _Fields findByName(String name) {
35922         return byName.get(name);
35923       }
35924 
35925       private final short _thriftId;
35926       private final String _fieldName;
35927 
35928       _Fields(short thriftId, String fieldName) {
35929         _thriftId = thriftId;
35930         _fieldName = fieldName;
35931       }
35932 
35933       public short getThriftFieldId() {
35934         return _thriftId;
35935       }
35936 
35937       public String getFieldName() {
35938         return _fieldName;
35939       }
35940     }
35941 
35942     // isset id assignments
35943     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35944     static {
35945       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35946       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35947           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35948       metaDataMap = Collections.unmodifiableMap(tmpMap);
35949       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_result.class, metaDataMap);
35950     }
35951 
35952     public deleteAll_result() {
35953     }
35954 
35955     public deleteAll_result(
35956       IOError io)
35957     {
35958       this();
35959       this.io = io;
35960     }
35961 
35962     /**
35963      * Performs a deep copy on <i>other</i>.
35964      */
35965     public deleteAll_result(deleteAll_result other) {
35966       if (other.isSetIo()) {
35967         this.io = new IOError(other.io);
35968       }
35969     }
35970 
35971     public deleteAll_result deepCopy() {
35972       return new deleteAll_result(this);
35973     }
35974 
35975     @Override
35976     public void clear() {
35977       this.io = null;
35978     }
35979 
35980     public IOError getIo() {
35981       return this.io;
35982     }
35983 
35984     public deleteAll_result setIo(IOError io) {
35985       this.io = io;
35986       return this;
35987     }
35988 
35989     public void unsetIo() {
35990       this.io = null;
35991     }
35992 
35993     /** Returns true if field io is set (has been assigned a value) and false otherwise */
35994     public boolean isSetIo() {
35995       return this.io != null;
35996     }
35997 
35998     public void setIoIsSet(boolean value) {
35999       if (!value) {
36000         this.io = null;
36001       }
36002     }
36003 
36004     public void setFieldValue(_Fields field, Object value) {
36005       switch (field) {
36006       case IO:
36007         if (value == null) {
36008           unsetIo();
36009         } else {
36010           setIo((IOError)value);
36011         }
36012         break;
36013 
36014       }
36015     }
36016 
36017     public Object getFieldValue(_Fields field) {
36018       switch (field) {
36019       case IO:
36020         return getIo();
36021 
36022       }
36023       throw new IllegalStateException();
36024     }
36025 
36026     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36027     public boolean isSet(_Fields field) {
36028       if (field == null) {
36029         throw new IllegalArgumentException();
36030       }
36031 
36032       switch (field) {
36033       case IO:
36034         return isSetIo();
36035       }
36036       throw new IllegalStateException();
36037     }
36038 
36039     @Override
36040     public boolean equals(Object that) {
36041       if (that == null)
36042         return false;
36043       if (that instanceof deleteAll_result)
36044         return this.equals((deleteAll_result)that);
36045       return false;
36046     }
36047 
36048     public boolean equals(deleteAll_result that) {
36049       if (that == null)
36050         return false;
36051 
36052       boolean this_present_io = true && this.isSetIo();
36053       boolean that_present_io = true && that.isSetIo();
36054       if (this_present_io || that_present_io) {
36055         if (!(this_present_io && that_present_io))
36056           return false;
36057         if (!this.io.equals(that.io))
36058           return false;
36059       }
36060 
36061       return true;
36062     }
36063 
36064     @Override
36065     public int hashCode() {
36066       HashCodeBuilder builder = new HashCodeBuilder();
36067 
36068       boolean present_io = true && (isSetIo());
36069       builder.append(present_io);
36070       if (present_io)
36071         builder.append(io);
36072 
36073       return builder.toHashCode();
36074     }
36075 
36076     public int compareTo(deleteAll_result other) {
36077       if (!getClass().equals(other.getClass())) {
36078         return getClass().getName().compareTo(other.getClass().getName());
36079       }
36080 
36081       int lastComparison = 0;
36082       deleteAll_result typedOther = (deleteAll_result)other;
36083 
36084       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
36085       if (lastComparison != 0) {
36086         return lastComparison;
36087       }
36088       if (isSetIo()) {
36089         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
36090         if (lastComparison != 0) {
36091           return lastComparison;
36092         }
36093       }
36094       return 0;
36095     }
36096 
36097     public _Fields fieldForId(int fieldId) {
36098       return _Fields.findByThriftId(fieldId);
36099     }
36100 
36101     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36102       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36103     }
36104 
36105     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36106       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36107       }
36108 
36109     @Override
36110     public String toString() {
36111       StringBuilder sb = new StringBuilder("deleteAll_result(");
36112       boolean first = true;
36113 
36114       sb.append("io:");
36115       if (this.io == null) {
36116         sb.append("null");
36117       } else {
36118         sb.append(this.io);
36119       }
36120       first = false;
36121       sb.append(")");
36122       return sb.toString();
36123     }
36124 
36125     public void validate() throws org.apache.thrift.TException {
36126       // check for required fields
36127       // check for sub-struct validity
36128     }
36129 
36130     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36131       try {
36132         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36133       } catch (org.apache.thrift.TException te) {
36134         throw new java.io.IOException(te);
36135       }
36136     }
36137 
36138     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36139       try {
36140         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36141       } catch (org.apache.thrift.TException te) {
36142         throw new java.io.IOException(te);
36143       }
36144     }
36145 
36146     private static class deleteAll_resultStandardSchemeFactory implements SchemeFactory {
36147       public deleteAll_resultStandardScheme getScheme() {
36148         return new deleteAll_resultStandardScheme();
36149       }
36150     }
36151 
36152     private static class deleteAll_resultStandardScheme extends StandardScheme<deleteAll_result> {
36153 
36154       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_result struct) throws org.apache.thrift.TException {
36155         org.apache.thrift.protocol.TField schemeField;
36156         iprot.readStructBegin();
36157         while (true)
36158         {
36159           schemeField = iprot.readFieldBegin();
36160           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
36161             break;
36162           }
36163           switch (schemeField.id) {
36164             case 1: // IO
36165               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
36166                 struct.io = new IOError();
36167                 struct.io.read(iprot);
36168                 struct.setIoIsSet(true);
36169               } else { 
36170                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36171               }
36172               break;
36173             default:
36174               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36175           }
36176           iprot.readFieldEnd();
36177         }
36178         iprot.readStructEnd();
36179 
36180         // check for required fields of primitive type, which can't be checked in the validate method
36181         struct.validate();
36182       }
36183 
36184       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_result struct) throws org.apache.thrift.TException {
36185         struct.validate();
36186 
36187         oprot.writeStructBegin(STRUCT_DESC);
36188         if (struct.io != null) {
36189           oprot.writeFieldBegin(IO_FIELD_DESC);
36190           struct.io.write(oprot);
36191           oprot.writeFieldEnd();
36192         }
36193         oprot.writeFieldStop();
36194         oprot.writeStructEnd();
36195       }
36196 
36197     }
36198 
36199     private static class deleteAll_resultTupleSchemeFactory implements SchemeFactory {
36200       public deleteAll_resultTupleScheme getScheme() {
36201         return new deleteAll_resultTupleScheme();
36202       }
36203     }
36204 
36205     private static class deleteAll_resultTupleScheme extends TupleScheme<deleteAll_result> {
36206 
36207       @Override
36208       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException {
36209         TTupleProtocol oprot = (TTupleProtocol) prot;
36210         BitSet optionals = new BitSet();
36211         if (struct.isSetIo()) {
36212           optionals.set(0);
36213         }
36214         oprot.writeBitSet(optionals, 1);
36215         if (struct.isSetIo()) {
36216           struct.io.write(oprot);
36217         }
36218       }
36219 
36220       @Override
36221       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException {
36222         TTupleProtocol iprot = (TTupleProtocol) prot;
36223         BitSet incoming = iprot.readBitSet(1);
36224         if (incoming.get(0)) {
36225           struct.io = new IOError();
36226           struct.io.read(iprot);
36227           struct.setIoIsSet(true);
36228         }
36229       }
36230     }
36231 
36232   }
36233 
36234   public static class deleteAllTs_args implements org.apache.thrift.TBase<deleteAllTs_args, deleteAllTs_args._Fields>, java.io.Serializable, Cloneable   {
36235     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_args");
36236 
36237     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
36238     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
36239     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
36240     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
36241     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
36242 
36243     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36244     static {
36245       schemes.put(StandardScheme.class, new deleteAllTs_argsStandardSchemeFactory());
36246       schemes.put(TupleScheme.class, new deleteAllTs_argsTupleSchemeFactory());
36247     }
36248 
36249     /**
36250      * name of table
36251      */
36252     public ByteBuffer tableName; // required
36253     /**
36254      * Row to update
36255      */
36256     public ByteBuffer row; // required
36257     /**
36258      * name of column whose value is to be deleted
36259      */
36260     public ByteBuffer column; // required
36261     /**
36262      * timestamp
36263      */
36264     public long timestamp; // required
36265     /**
36266      * Delete attributes
36267      */
36268     public Map<ByteBuffer,ByteBuffer> attributes; // required
36269 
36270     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36271     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36272       /**
36273        * name of table
36274        */
36275       TABLE_NAME((short)1, "tableName"),
36276       /**
36277        * Row to update
36278        */
36279       ROW((short)2, "row"),
36280       /**
36281        * name of column whose value is to be deleted
36282        */
36283       COLUMN((short)3, "column"),
36284       /**
36285        * timestamp
36286        */
36287       TIMESTAMP((short)4, "timestamp"),
36288       /**
36289        * Delete attributes
36290        */
36291       ATTRIBUTES((short)5, "attributes");
36292 
36293       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36294 
36295       static {
36296         for (_Fields field : EnumSet.allOf(_Fields.class)) {
36297           byName.put(field.getFieldName(), field);
36298         }
36299       }
36300 
36301       /**
36302        * Find the _Fields constant that matches fieldId, or null if its not found.
36303        */
36304       public static _Fields findByThriftId(int fieldId) {
36305         switch(fieldId) {
36306           case 1: // TABLE_NAME
36307             return TABLE_NAME;
36308           case 2: // ROW
36309             return ROW;
36310           case 3: // COLUMN
36311             return COLUMN;
36312           case 4: // TIMESTAMP
36313             return TIMESTAMP;
36314           case 5: // ATTRIBUTES
36315             return ATTRIBUTES;
36316           default:
36317             return null;
36318         }
36319       }
36320 
36321       /**
36322        * Find the _Fields constant that matches fieldId, throwing an exception
36323        * if it is not found.
36324        */
36325       public static _Fields findByThriftIdOrThrow(int fieldId) {
36326         _Fields fields = findByThriftId(fieldId);
36327         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36328         return fields;
36329       }
36330 
36331       /**
36332        * Find the _Fields constant that matches name, or null if its not found.
36333        */
36334       public static _Fields findByName(String name) {
36335         return byName.get(name);
36336       }
36337 
36338       private final short _thriftId;
36339       private final String _fieldName;
36340 
36341       _Fields(short thriftId, String fieldName) {
36342         _thriftId = thriftId;
36343         _fieldName = fieldName;
36344       }
36345 
36346       public short getThriftFieldId() {
36347         return _thriftId;
36348       }
36349 
36350       public String getFieldName() {
36351         return _fieldName;
36352       }
36353     }
36354 
36355     // isset id assignments
36356     private static final int __TIMESTAMP_ISSET_ID = 0;
36357     private byte __isset_bitfield = 0;
36358     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36359     static {
36360       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36361       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36362           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
36363       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36364           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
36365       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36366           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
36367       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36368           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36369       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36370           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
36371               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
36372               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
36373       metaDataMap = Collections.unmodifiableMap(tmpMap);
36374       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_args.class, metaDataMap);
36375     }
36376 
36377     public deleteAllTs_args() {
36378     }
36379 
36380     public deleteAllTs_args(
36381       ByteBuffer tableName,
36382       ByteBuffer row,
36383       ByteBuffer column,
36384       long timestamp,
36385       Map<ByteBuffer,ByteBuffer> attributes)
36386     {
36387       this();
36388       this.tableName = tableName;
36389       this.row = row;
36390       this.column = column;
36391       this.timestamp = timestamp;
36392       setTimestampIsSet(true);
36393       this.attributes = attributes;
36394     }
36395 
36396     /**
36397      * Performs a deep copy on <i>other</i>.
36398      */
36399     public deleteAllTs_args(deleteAllTs_args other) {
36400       __isset_bitfield = other.__isset_bitfield;
36401       if (other.isSetTableName()) {
36402         this.tableName = other.tableName;
36403       }
36404       if (other.isSetRow()) {
36405         this.row = other.row;
36406       }
36407       if (other.isSetColumn()) {
36408         this.column = other.column;
36409       }
36410       this.timestamp = other.timestamp;
36411       if (other.isSetAttributes()) {
36412         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
36413         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
36414 
36415           ByteBuffer other_element_key = other_element.getKey();
36416           ByteBuffer other_element_value = other_element.getValue();
36417 
36418           ByteBuffer __this__attributes_copy_key = other_element_key;
36419 
36420           ByteBuffer __this__attributes_copy_value = other_element_value;
36421 
36422           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
36423         }
36424         this.attributes = __this__attributes;
36425       }
36426     }
36427 
36428     public deleteAllTs_args deepCopy() {
36429       return new deleteAllTs_args(this);
36430     }
36431 
36432     @Override
36433     public void clear() {
36434       this.tableName = null;
36435       this.row = null;
36436       this.column = null;
36437       setTimestampIsSet(false);
36438       this.timestamp = 0;
36439       this.attributes = null;
36440     }
36441 
36442     /**
36443      * name of table
36444      */
36445     public byte[] getTableName() {
36446       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
36447       return tableName == null ? null : tableName.array();
36448     }
36449 
36450     public ByteBuffer bufferForTableName() {
36451       return tableName;
36452     }
36453 
36454     /**
36455      * name of table
36456      */
36457     public deleteAllTs_args setTableName(byte[] tableName) {
36458       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
36459       return this;
36460     }
36461 
36462     public deleteAllTs_args setTableName(ByteBuffer tableName) {
36463       this.tableName = tableName;
36464       return this;
36465     }
36466 
36467     public void unsetTableName() {
36468       this.tableName = null;
36469     }
36470 
36471     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
36472     public boolean isSetTableName() {
36473       return this.tableName != null;
36474     }
36475 
36476     public void setTableNameIsSet(boolean value) {
36477       if (!value) {
36478         this.tableName = null;
36479       }
36480     }
36481 
36482     /**
36483      * Row to update
36484      */
36485     public byte[] getRow() {
36486       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
36487       return row == null ? null : row.array();
36488     }
36489 
36490     public ByteBuffer bufferForRow() {
36491       return row;
36492     }
36493 
36494     /**
36495      * Row to update
36496      */
36497     public deleteAllTs_args setRow(byte[] row) {
36498       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
36499       return this;
36500     }
36501 
36502     public deleteAllTs_args setRow(ByteBuffer row) {
36503       this.row = row;
36504       return this;
36505     }
36506 
36507     public void unsetRow() {
36508       this.row = null;
36509     }
36510 
36511     /** Returns true if field row is set (has been assigned a value) and false otherwise */
36512     public boolean isSetRow() {
36513       return this.row != null;
36514     }
36515 
36516     public void setRowIsSet(boolean value) {
36517       if (!value) {
36518         this.row = null;
36519       }
36520     }
36521 
36522     /**
36523      * name of column whose value is to be deleted
36524      */
36525     public byte[] getColumn() {
36526       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
36527       return column == null ? null : column.array();
36528     }
36529 
36530     public ByteBuffer bufferForColumn() {
36531       return column;
36532     }
36533 
36534     /**
36535      * name of column whose value is to be deleted
36536      */
36537     public deleteAllTs_args setColumn(byte[] column) {
36538       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
36539       return this;
36540     }
36541 
36542     public deleteAllTs_args setColumn(ByteBuffer column) {
36543       this.column = column;
36544       return this;
36545     }
36546 
36547     public void unsetColumn() {
36548       this.column = null;
36549     }
36550 
36551     /** Returns true if field column is set (has been assigned a value) and false otherwise */
36552     public boolean isSetColumn() {
36553       return this.column != null;
36554     }
36555 
36556     public void setColumnIsSet(boolean value) {
36557       if (!value) {
36558         this.column = null;
36559       }
36560     }
36561 
36562     /**
36563      * timestamp
36564      */
36565     public long getTimestamp() {
36566       return this.timestamp;
36567     }
36568 
36569     /**
36570      * timestamp
36571      */
36572     public deleteAllTs_args setTimestamp(long timestamp) {
36573       this.timestamp = timestamp;
36574       setTimestampIsSet(true);
36575       return this;
36576     }
36577 
36578     public void unsetTimestamp() {
36579       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
36580     }
36581 
36582     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
36583     public boolean isSetTimestamp() {
36584       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
36585     }
36586 
36587     public void setTimestampIsSet(boolean value) {
36588       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
36589     }
36590 
36591     public int getAttributesSize() {
36592       return (this.attributes == null) ? 0 : this.attributes.size();
36593     }
36594 
36595     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
36596       if (this.attributes == null) {
36597         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
36598       }
36599       this.attributes.put(key, val);
36600     }
36601 
36602     /**
36603      * Delete attributes
36604      */
36605     public Map<ByteBuffer,ByteBuffer> getAttributes() {
36606       return this.attributes;
36607     }
36608 
36609     /**
36610      * Delete attributes
36611      */
36612     public deleteAllTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
36613       this.attributes = attributes;
36614       return this;
36615     }
36616 
36617     public void unsetAttributes() {
36618       this.attributes = null;
36619     }
36620 
36621     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
36622     public boolean isSetAttributes() {
36623       return this.attributes != null;
36624     }
36625 
36626     public void setAttributesIsSet(boolean value) {
36627       if (!value) {
36628         this.attributes = null;
36629       }
36630     }
36631 
36632     public void setFieldValue(_Fields field, Object value) {
36633       switch (field) {
36634       case TABLE_NAME:
36635         if (value == null) {
36636           unsetTableName();
36637         } else {
36638           setTableName((ByteBuffer)value);
36639         }
36640         break;
36641 
36642       case ROW:
36643         if (value == null) {
36644           unsetRow();
36645         } else {
36646           setRow((ByteBuffer)value);
36647         }
36648         break;
36649 
36650       case COLUMN:
36651         if (value == null) {
36652           unsetColumn();
36653         } else {
36654           setColumn((ByteBuffer)value);
36655         }
36656         break;
36657 
36658       case TIMESTAMP:
36659         if (value == null) {
36660           unsetTimestamp();
36661         } else {
36662           setTimestamp((Long)value);
36663         }
36664         break;
36665 
36666       case ATTRIBUTES:
36667         if (value == null) {
36668           unsetAttributes();
36669         } else {
36670           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
36671         }
36672         break;
36673 
36674       }
36675     }
36676 
36677     public Object getFieldValue(_Fields field) {
36678       switch (field) {
36679       case TABLE_NAME:
36680         return getTableName();
36681 
36682       case ROW:
36683         return getRow();
36684 
36685       case COLUMN:
36686         return getColumn();
36687 
36688       case TIMESTAMP:
36689         return Long.valueOf(getTimestamp());
36690 
36691       case ATTRIBUTES:
36692         return getAttributes();
36693 
36694       }
36695       throw new IllegalStateException();
36696     }
36697 
36698     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36699     public boolean isSet(_Fields field) {
36700       if (field == null) {
36701         throw new IllegalArgumentException();
36702       }
36703 
36704       switch (field) {
36705       case TABLE_NAME:
36706         return isSetTableName();
36707       case ROW:
36708         return isSetRow();
36709       case COLUMN:
36710         return isSetColumn();
36711       case TIMESTAMP:
36712         return isSetTimestamp();
36713       case ATTRIBUTES:
36714         return isSetAttributes();
36715       }
36716       throw new IllegalStateException();
36717     }
36718 
36719     @Override
36720     public boolean equals(Object that) {
36721       if (that == null)
36722         return false;
36723       if (that instanceof deleteAllTs_args)
36724         return this.equals((deleteAllTs_args)that);
36725       return false;
36726     }
36727 
36728     public boolean equals(deleteAllTs_args that) {
36729       if (that == null)
36730         return false;
36731 
36732       boolean this_present_tableName = true && this.isSetTableName();
36733       boolean that_present_tableName = true && that.isSetTableName();
36734       if (this_present_tableName || that_present_tableName) {
36735         if (!(this_present_tableName && that_present_tableName))
36736           return false;
36737         if (!this.tableName.equals(that.tableName))
36738           return false;
36739       }
36740 
36741       boolean this_present_row = true && this.isSetRow();
36742       boolean that_present_row = true && that.isSetRow();
36743       if (this_present_row || that_present_row) {
36744         if (!(this_present_row && that_present_row))
36745           return false;
36746         if (!this.row.equals(that.row))
36747           return false;
36748       }
36749 
36750       boolean this_present_column = true && this.isSetColumn();
36751       boolean that_present_column = true && that.isSetColumn();
36752       if (this_present_column || that_present_column) {
36753         if (!(this_present_column && that_present_column))
36754           return false;
36755         if (!this.column.equals(that.column))
36756           return false;
36757       }
36758 
36759       boolean this_present_timestamp = true;
36760       boolean that_present_timestamp = true;
36761       if (this_present_timestamp || that_present_timestamp) {
36762         if (!(this_present_timestamp && that_present_timestamp))
36763           return false;
36764         if (this.timestamp != that.timestamp)
36765           return false;
36766       }
36767 
36768       boolean this_present_attributes = true && this.isSetAttributes();
36769       boolean that_present_attributes = true && that.isSetAttributes();
36770       if (this_present_attributes || that_present_attributes) {
36771         if (!(this_present_attributes && that_present_attributes))
36772           return false;
36773         if (!this.attributes.equals(that.attributes))
36774           return false;
36775       }
36776 
36777       return true;
36778     }
36779 
36780     @Override
36781     public int hashCode() {
36782       HashCodeBuilder builder = new HashCodeBuilder();
36783 
36784       boolean present_tableName = true && (isSetTableName());
36785       builder.append(present_tableName);
36786       if (present_tableName)
36787         builder.append(tableName);
36788 
36789       boolean present_row = true && (isSetRow());
36790       builder.append(present_row);
36791       if (present_row)
36792         builder.append(row);
36793 
36794       boolean present_column = true && (isSetColumn());
36795       builder.append(present_column);
36796       if (present_column)
36797         builder.append(column);
36798 
36799       boolean present_timestamp = true;
36800       builder.append(present_timestamp);
36801       if (present_timestamp)
36802         builder.append(timestamp);
36803 
36804       boolean present_attributes = true && (isSetAttributes());
36805       builder.append(present_attributes);
36806       if (present_attributes)
36807         builder.append(attributes);
36808 
36809       return builder.toHashCode();
36810     }
36811 
36812     public int compareTo(deleteAllTs_args other) {
36813       if (!getClass().equals(other.getClass())) {
36814         return getClass().getName().compareTo(other.getClass().getName());
36815       }
36816 
36817       int lastComparison = 0;
36818       deleteAllTs_args typedOther = (deleteAllTs_args)other;
36819 
36820       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
36821       if (lastComparison != 0) {
36822         return lastComparison;
36823       }
36824       if (isSetTableName()) {
36825         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
36826         if (lastComparison != 0) {
36827           return lastComparison;
36828         }
36829       }
36830       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
36831       if (lastComparison != 0) {
36832         return lastComparison;
36833       }
36834       if (isSetRow()) {
36835         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
36836         if (lastComparison != 0) {
36837           return lastComparison;
36838         }
36839       }
36840       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
36841       if (lastComparison != 0) {
36842         return lastComparison;
36843       }
36844       if (isSetColumn()) {
36845         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
36846         if (lastComparison != 0) {
36847           return lastComparison;
36848         }
36849       }
36850       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
36851       if (lastComparison != 0) {
36852         return lastComparison;
36853       }
36854       if (isSetTimestamp()) {
36855         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
36856         if (lastComparison != 0) {
36857           return lastComparison;
36858         }
36859       }
36860       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
36861       if (lastComparison != 0) {
36862         return lastComparison;
36863       }
36864       if (isSetAttributes()) {
36865         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
36866         if (lastComparison != 0) {
36867           return lastComparison;
36868         }
36869       }
36870       return 0;
36871     }
36872 
36873     public _Fields fieldForId(int fieldId) {
36874       return _Fields.findByThriftId(fieldId);
36875     }
36876 
36877     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36878       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36879     }
36880 
36881     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36882       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36883     }
36884 
36885     @Override
36886     public String toString() {
36887       StringBuilder sb = new StringBuilder("deleteAllTs_args(");
36888       boolean first = true;
36889 
36890       sb.append("tableName:");
36891       if (this.tableName == null) {
36892         sb.append("null");
36893       } else {
36894         sb.append(this.tableName);
36895       }
36896       first = false;
36897       if (!first) sb.append(", ");
36898       sb.append("row:");
36899       if (this.row == null) {
36900         sb.append("null");
36901       } else {
36902         sb.append(this.row);
36903       }
36904       first = false;
36905       if (!first) sb.append(", ");
36906       sb.append("column:");
36907       if (this.column == null) {
36908         sb.append("null");
36909       } else {
36910         sb.append(this.column);
36911       }
36912       first = false;
36913       if (!first) sb.append(", ");
36914       sb.append("timestamp:");
36915       sb.append(this.timestamp);
36916       first = false;
36917       if (!first) sb.append(", ");
36918       sb.append("attributes:");
36919       if (this.attributes == null) {
36920         sb.append("null");
36921       } else {
36922         sb.append(this.attributes);
36923       }
36924       first = false;
36925       sb.append(")");
36926       return sb.toString();
36927     }
36928 
36929     public void validate() throws org.apache.thrift.TException {
36930       // check for required fields
36931       // check for sub-struct validity
36932     }
36933 
36934     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36935       try {
36936         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36937       } catch (org.apache.thrift.TException te) {
36938         throw new java.io.IOException(te);
36939       }
36940     }
36941 
36942     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36943       try {
36944         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36945         __isset_bitfield = 0;
36946         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36947       } catch (org.apache.thrift.TException te) {
36948         throw new java.io.IOException(te);
36949       }
36950     }
36951 
36952     private static class deleteAllTs_argsStandardSchemeFactory implements SchemeFactory {
36953       public deleteAllTs_argsStandardScheme getScheme() {
36954         return new deleteAllTs_argsStandardScheme();
36955       }
36956     }
36957 
36958     private static class deleteAllTs_argsStandardScheme extends StandardScheme<deleteAllTs_args> {
36959 
36960       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_args struct) throws org.apache.thrift.TException {
36961         org.apache.thrift.protocol.TField schemeField;
36962         iprot.readStructBegin();
36963         while (true)
36964         {
36965           schemeField = iprot.readFieldBegin();
36966           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
36967             break;
36968           }
36969           switch (schemeField.id) {
36970             case 1: // TABLE_NAME
36971               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36972                 struct.tableName = iprot.readBinary();
36973                 struct.setTableNameIsSet(true);
36974               } else { 
36975                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36976               }
36977               break;
36978             case 2: // ROW
36979               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36980                 struct.row = iprot.readBinary();
36981                 struct.setRowIsSet(true);
36982               } else { 
36983                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36984               }
36985               break;
36986             case 3: // COLUMN
36987               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36988                 struct.column = iprot.readBinary();
36989                 struct.setColumnIsSet(true);
36990               } else { 
36991                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36992               }
36993               break;
36994             case 4: // TIMESTAMP
36995               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
36996                 struct.timestamp = iprot.readI64();
36997                 struct.setTimestampIsSet(true);
36998               } else { 
36999                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37000               }
37001               break;
37002             case 5: // ATTRIBUTES
37003               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
37004                 {
37005                   org.apache.thrift.protocol.TMap _map428 = iprot.readMapBegin();
37006                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map428.size);
37007                   for (int _i429 = 0; _i429 < _map428.size; ++_i429)
37008                   {
37009                     ByteBuffer _key430; // required
37010                     ByteBuffer _val431; // required
37011                     _key430 = iprot.readBinary();
37012                     _val431 = iprot.readBinary();
37013                     struct.attributes.put(_key430, _val431);
37014                   }
37015                   iprot.readMapEnd();
37016                 }
37017                 struct.setAttributesIsSet(true);
37018               } else { 
37019                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37020               }
37021               break;
37022             default:
37023               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37024           }
37025           iprot.readFieldEnd();
37026         }
37027         iprot.readStructEnd();
37028 
37029         // check for required fields of primitive type, which can't be checked in the validate method
37030         struct.validate();
37031       }
37032 
37033       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37034         struct.validate();
37035 
37036         oprot.writeStructBegin(STRUCT_DESC);
37037         if (struct.tableName != null) {
37038           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
37039           oprot.writeBinary(struct.tableName);
37040           oprot.writeFieldEnd();
37041         }
37042         if (struct.row != null) {
37043           oprot.writeFieldBegin(ROW_FIELD_DESC);
37044           oprot.writeBinary(struct.row);
37045           oprot.writeFieldEnd();
37046         }
37047         if (struct.column != null) {
37048           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
37049           oprot.writeBinary(struct.column);
37050           oprot.writeFieldEnd();
37051         }
37052         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
37053         oprot.writeI64(struct.timestamp);
37054         oprot.writeFieldEnd();
37055         if (struct.attributes != null) {
37056           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
37057           {
37058             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
37059             for (Map.Entry<ByteBuffer, ByteBuffer> _iter432 : struct.attributes.entrySet())
37060             {
37061               oprot.writeBinary(_iter432.getKey());
37062               oprot.writeBinary(_iter432.getValue());
37063             }
37064             oprot.writeMapEnd();
37065           }
37066           oprot.writeFieldEnd();
37067         }
37068         oprot.writeFieldStop();
37069         oprot.writeStructEnd();
37070       }
37071 
37072     }
37073 
37074     private static class deleteAllTs_argsTupleSchemeFactory implements SchemeFactory {
37075       public deleteAllTs_argsTupleScheme getScheme() {
37076         return new deleteAllTs_argsTupleScheme();
37077       }
37078     }
37079 
37080     private static class deleteAllTs_argsTupleScheme extends TupleScheme<deleteAllTs_args> {
37081 
37082       @Override
37083       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37084         TTupleProtocol oprot = (TTupleProtocol) prot;
37085         BitSet optionals = new BitSet();
37086         if (struct.isSetTableName()) {
37087           optionals.set(0);
37088         }
37089         if (struct.isSetRow()) {
37090           optionals.set(1);
37091         }
37092         if (struct.isSetColumn()) {
37093           optionals.set(2);
37094         }
37095         if (struct.isSetTimestamp()) {
37096           optionals.set(3);
37097         }
37098         if (struct.isSetAttributes()) {
37099           optionals.set(4);
37100         }
37101         oprot.writeBitSet(optionals, 5);
37102         if (struct.isSetTableName()) {
37103           oprot.writeBinary(struct.tableName);
37104         }
37105         if (struct.isSetRow()) {
37106           oprot.writeBinary(struct.row);
37107         }
37108         if (struct.isSetColumn()) {
37109           oprot.writeBinary(struct.column);
37110         }
37111         if (struct.isSetTimestamp()) {
37112           oprot.writeI64(struct.timestamp);
37113         }
37114         if (struct.isSetAttributes()) {
37115           {
37116             oprot.writeI32(struct.attributes.size());
37117             for (Map.Entry<ByteBuffer, ByteBuffer> _iter433 : struct.attributes.entrySet())
37118             {
37119               oprot.writeBinary(_iter433.getKey());
37120               oprot.writeBinary(_iter433.getValue());
37121             }
37122           }
37123         }
37124       }
37125 
37126       @Override
37127       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37128         TTupleProtocol iprot = (TTupleProtocol) prot;
37129         BitSet incoming = iprot.readBitSet(5);
37130         if (incoming.get(0)) {
37131           struct.tableName = iprot.readBinary();
37132           struct.setTableNameIsSet(true);
37133         }
37134         if (incoming.get(1)) {
37135           struct.row = iprot.readBinary();
37136           struct.setRowIsSet(true);
37137         }
37138         if (incoming.get(2)) {
37139           struct.column = iprot.readBinary();
37140           struct.setColumnIsSet(true);
37141         }
37142         if (incoming.get(3)) {
37143           struct.timestamp = iprot.readI64();
37144           struct.setTimestampIsSet(true);
37145         }
37146         if (incoming.get(4)) {
37147           {
37148             org.apache.thrift.protocol.TMap _map434 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
37149             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map434.size);
37150             for (int _i435 = 0; _i435 < _map434.size; ++_i435)
37151             {
37152               ByteBuffer _key436; // required
37153               ByteBuffer _val437; // required
37154               _key436 = iprot.readBinary();
37155               _val437 = iprot.readBinary();
37156               struct.attributes.put(_key436, _val437);
37157             }
37158           }
37159           struct.setAttributesIsSet(true);
37160         }
37161       }
37162     }
37163 
37164   }
37165 
37166   public static class deleteAllTs_result implements org.apache.thrift.TBase<deleteAllTs_result, deleteAllTs_result._Fields>, java.io.Serializable, Cloneable   {
37167     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_result");
37168 
37169     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37170 
37171     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37172     static {
37173       schemes.put(StandardScheme.class, new deleteAllTs_resultStandardSchemeFactory());
37174       schemes.put(TupleScheme.class, new deleteAllTs_resultTupleSchemeFactory());
37175     }
37176 
37177     public IOError io; // required
37178 
37179     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37180     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37181       IO((short)1, "io");
37182 
37183       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37184 
37185       static {
37186         for (_Fields field : EnumSet.allOf(_Fields.class)) {
37187           byName.put(field.getFieldName(), field);
37188         }
37189       }
37190 
37191       /**
37192        * Find the _Fields constant that matches fieldId, or null if its not found.
37193        */
37194       public static _Fields findByThriftId(int fieldId) {
37195         switch(fieldId) {
37196           case 1: // IO
37197             return IO;
37198           default:
37199             return null;
37200         }
37201       }
37202 
37203       /**
37204        * Find the _Fields constant that matches fieldId, throwing an exception
37205        * if it is not found.
37206        */
37207       public static _Fields findByThriftIdOrThrow(int fieldId) {
37208         _Fields fields = findByThriftId(fieldId);
37209         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37210         return fields;
37211       }
37212 
37213       /**
37214        * Find the _Fields constant that matches name, or null if its not found.
37215        */
37216       public static _Fields findByName(String name) {
37217         return byName.get(name);
37218       }
37219 
37220       private final short _thriftId;
37221       private final String _fieldName;
37222 
37223       _Fields(short thriftId, String fieldName) {
37224         _thriftId = thriftId;
37225         _fieldName = fieldName;
37226       }
37227 
37228       public short getThriftFieldId() {
37229         return _thriftId;
37230       }
37231 
37232       public String getFieldName() {
37233         return _fieldName;
37234       }
37235     }
37236 
37237     // isset id assignments
37238     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37239     static {
37240       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37241       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37242           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37243       metaDataMap = Collections.unmodifiableMap(tmpMap);
37244       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_result.class, metaDataMap);
37245     }
37246 
37247     public deleteAllTs_result() {
37248     }
37249 
37250     public deleteAllTs_result(
37251       IOError io)
37252     {
37253       this();
37254       this.io = io;
37255     }
37256 
37257     /**
37258      * Performs a deep copy on <i>other</i>.
37259      */
37260     public deleteAllTs_result(deleteAllTs_result other) {
37261       if (other.isSetIo()) {
37262         this.io = new IOError(other.io);
37263       }
37264     }
37265 
37266     public deleteAllTs_result deepCopy() {
37267       return new deleteAllTs_result(this);
37268     }
37269 
37270     @Override
37271     public void clear() {
37272       this.io = null;
37273     }
37274 
37275     public IOError getIo() {
37276       return this.io;
37277     }
37278 
37279     public deleteAllTs_result setIo(IOError io) {
37280       this.io = io;
37281       return this;
37282     }
37283 
37284     public void unsetIo() {
37285       this.io = null;
37286     }
37287 
37288     /** Returns true if field io is set (has been assigned a value) and false otherwise */
37289     public boolean isSetIo() {
37290       return this.io != null;
37291     }
37292 
37293     public void setIoIsSet(boolean value) {
37294       if (!value) {
37295         this.io = null;
37296       }
37297     }
37298 
37299     public void setFieldValue(_Fields field, Object value) {
37300       switch (field) {
37301       case IO:
37302         if (value == null) {
37303           unsetIo();
37304         } else {
37305           setIo((IOError)value);
37306         }
37307         break;
37308 
37309       }
37310     }
37311 
37312     public Object getFieldValue(_Fields field) {
37313       switch (field) {
37314       case IO:
37315         return getIo();
37316 
37317       }
37318       throw new IllegalStateException();
37319     }
37320 
37321     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37322     public boolean isSet(_Fields field) {
37323       if (field == null) {
37324         throw new IllegalArgumentException();
37325       }
37326 
37327       switch (field) {
37328       case IO:
37329         return isSetIo();
37330       }
37331       throw new IllegalStateException();
37332     }
37333 
37334     @Override
37335     public boolean equals(Object that) {
37336       if (that == null)
37337         return false;
37338       if (that instanceof deleteAllTs_result)
37339         return this.equals((deleteAllTs_result)that);
37340       return false;
37341     }
37342 
37343     public boolean equals(deleteAllTs_result that) {
37344       if (that == null)
37345         return false;
37346 
37347       boolean this_present_io = true && this.isSetIo();
37348       boolean that_present_io = true && that.isSetIo();
37349       if (this_present_io || that_present_io) {
37350         if (!(this_present_io && that_present_io))
37351           return false;
37352         if (!this.io.equals(that.io))
37353           return false;
37354       }
37355 
37356       return true;
37357     }
37358 
37359     @Override
37360     public int hashCode() {
37361       HashCodeBuilder builder = new HashCodeBuilder();
37362 
37363       boolean present_io = true && (isSetIo());
37364       builder.append(present_io);
37365       if (present_io)
37366         builder.append(io);
37367 
37368       return builder.toHashCode();
37369     }
37370 
37371     public int compareTo(deleteAllTs_result other) {
37372       if (!getClass().equals(other.getClass())) {
37373         return getClass().getName().compareTo(other.getClass().getName());
37374       }
37375 
37376       int lastComparison = 0;
37377       deleteAllTs_result typedOther = (deleteAllTs_result)other;
37378 
37379       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
37380       if (lastComparison != 0) {
37381         return lastComparison;
37382       }
37383       if (isSetIo()) {
37384         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
37385         if (lastComparison != 0) {
37386           return lastComparison;
37387         }
37388       }
37389       return 0;
37390     }
37391 
37392     public _Fields fieldForId(int fieldId) {
37393       return _Fields.findByThriftId(fieldId);
37394     }
37395 
37396     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37397       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37398     }
37399 
37400     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37401       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37402       }
37403 
37404     @Override
37405     public String toString() {
37406       StringBuilder sb = new StringBuilder("deleteAllTs_result(");
37407       boolean first = true;
37408 
37409       sb.append("io:");
37410       if (this.io == null) {
37411         sb.append("null");
37412       } else {
37413         sb.append(this.io);
37414       }
37415       first = false;
37416       sb.append(")");
37417       return sb.toString();
37418     }
37419 
37420     public void validate() throws org.apache.thrift.TException {
37421       // check for required fields
37422       // check for sub-struct validity
37423     }
37424 
37425     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37426       try {
37427         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37428       } catch (org.apache.thrift.TException te) {
37429         throw new java.io.IOException(te);
37430       }
37431     }
37432 
37433     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37434       try {
37435         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37436       } catch (org.apache.thrift.TException te) {
37437         throw new java.io.IOException(te);
37438       }
37439     }
37440 
37441     private static class deleteAllTs_resultStandardSchemeFactory implements SchemeFactory {
37442       public deleteAllTs_resultStandardScheme getScheme() {
37443         return new deleteAllTs_resultStandardScheme();
37444       }
37445     }
37446 
37447     private static class deleteAllTs_resultStandardScheme extends StandardScheme<deleteAllTs_result> {
37448 
37449       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37450         org.apache.thrift.protocol.TField schemeField;
37451         iprot.readStructBegin();
37452         while (true)
37453         {
37454           schemeField = iprot.readFieldBegin();
37455           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
37456             break;
37457           }
37458           switch (schemeField.id) {
37459             case 1: // IO
37460               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
37461                 struct.io = new IOError();
37462                 struct.io.read(iprot);
37463                 struct.setIoIsSet(true);
37464               } else { 
37465                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37466               }
37467               break;
37468             default:
37469               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37470           }
37471           iprot.readFieldEnd();
37472         }
37473         iprot.readStructEnd();
37474 
37475         // check for required fields of primitive type, which can't be checked in the validate method
37476         struct.validate();
37477       }
37478 
37479       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37480         struct.validate();
37481 
37482         oprot.writeStructBegin(STRUCT_DESC);
37483         if (struct.io != null) {
37484           oprot.writeFieldBegin(IO_FIELD_DESC);
37485           struct.io.write(oprot);
37486           oprot.writeFieldEnd();
37487         }
37488         oprot.writeFieldStop();
37489         oprot.writeStructEnd();
37490       }
37491 
37492     }
37493 
37494     private static class deleteAllTs_resultTupleSchemeFactory implements SchemeFactory {
37495       public deleteAllTs_resultTupleScheme getScheme() {
37496         return new deleteAllTs_resultTupleScheme();
37497       }
37498     }
37499 
37500     private static class deleteAllTs_resultTupleScheme extends TupleScheme<deleteAllTs_result> {
37501 
37502       @Override
37503       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37504         TTupleProtocol oprot = (TTupleProtocol) prot;
37505         BitSet optionals = new BitSet();
37506         if (struct.isSetIo()) {
37507           optionals.set(0);
37508         }
37509         oprot.writeBitSet(optionals, 1);
37510         if (struct.isSetIo()) {
37511           struct.io.write(oprot);
37512         }
37513       }
37514 
37515       @Override
37516       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37517         TTupleProtocol iprot = (TTupleProtocol) prot;
37518         BitSet incoming = iprot.readBitSet(1);
37519         if (incoming.get(0)) {
37520           struct.io = new IOError();
37521           struct.io.read(iprot);
37522           struct.setIoIsSet(true);
37523         }
37524       }
37525     }
37526 
37527   }
37528 
37529   public static class deleteAllRow_args implements org.apache.thrift.TBase<deleteAllRow_args, deleteAllRow_args._Fields>, java.io.Serializable, Cloneable   {
37530     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_args");
37531 
37532     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
37533     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
37534     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
37535 
37536     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37537     static {
37538       schemes.put(StandardScheme.class, new deleteAllRow_argsStandardSchemeFactory());
37539       schemes.put(TupleScheme.class, new deleteAllRow_argsTupleSchemeFactory());
37540     }
37541 
37542     /**
37543      * name of table
37544      */
37545     public ByteBuffer tableName; // required
37546     /**
37547      * key of the row to be completely deleted.
37548      */
37549     public ByteBuffer row; // required
37550     /**
37551      * Delete attributes
37552      */
37553     public Map<ByteBuffer,ByteBuffer> attributes; // required
37554 
37555     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37556     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37557       /**
37558        * name of table
37559        */
37560       TABLE_NAME((short)1, "tableName"),
37561       /**
37562        * key of the row to be completely deleted.
37563        */
37564       ROW((short)2, "row"),
37565       /**
37566        * Delete attributes
37567        */
37568       ATTRIBUTES((short)3, "attributes");
37569 
37570       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37571 
37572       static {
37573         for (_Fields field : EnumSet.allOf(_Fields.class)) {
37574           byName.put(field.getFieldName(), field);
37575         }
37576       }
37577 
37578       /**
37579        * Find the _Fields constant that matches fieldId, or null if its not found.
37580        */
37581       public static _Fields findByThriftId(int fieldId) {
37582         switch(fieldId) {
37583           case 1: // TABLE_NAME
37584             return TABLE_NAME;
37585           case 2: // ROW
37586             return ROW;
37587           case 3: // ATTRIBUTES
37588             return ATTRIBUTES;
37589           default:
37590             return null;
37591         }
37592       }
37593 
37594       /**
37595        * Find the _Fields constant that matches fieldId, throwing an exception
37596        * if it is not found.
37597        */
37598       public static _Fields findByThriftIdOrThrow(int fieldId) {
37599         _Fields fields = findByThriftId(fieldId);
37600         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37601         return fields;
37602       }
37603 
37604       /**
37605        * Find the _Fields constant that matches name, or null if its not found.
37606        */
37607       public static _Fields findByName(String name) {
37608         return byName.get(name);
37609       }
37610 
37611       private final short _thriftId;
37612       private final String _fieldName;
37613 
37614       _Fields(short thriftId, String fieldName) {
37615         _thriftId = thriftId;
37616         _fieldName = fieldName;
37617       }
37618 
37619       public short getThriftFieldId() {
37620         return _thriftId;
37621       }
37622 
37623       public String getFieldName() {
37624         return _fieldName;
37625       }
37626     }
37627 
37628     // isset id assignments
37629     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37630     static {
37631       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37632       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37633           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
37634       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37635           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
37636       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37637           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
37638               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
37639               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
37640       metaDataMap = Collections.unmodifiableMap(tmpMap);
37641       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_args.class, metaDataMap);
37642     }
37643 
37644     public deleteAllRow_args() {
37645     }
37646 
37647     public deleteAllRow_args(
37648       ByteBuffer tableName,
37649       ByteBuffer row,
37650       Map<ByteBuffer,ByteBuffer> attributes)
37651     {
37652       this();
37653       this.tableName = tableName;
37654       this.row = row;
37655       this.attributes = attributes;
37656     }
37657 
37658     /**
37659      * Performs a deep copy on <i>other</i>.
37660      */
37661     public deleteAllRow_args(deleteAllRow_args other) {
37662       if (other.isSetTableName()) {
37663         this.tableName = other.tableName;
37664       }
37665       if (other.isSetRow()) {
37666         this.row = other.row;
37667       }
37668       if (other.isSetAttributes()) {
37669         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
37670         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
37671 
37672           ByteBuffer other_element_key = other_element.getKey();
37673           ByteBuffer other_element_value = other_element.getValue();
37674 
37675           ByteBuffer __this__attributes_copy_key = other_element_key;
37676 
37677           ByteBuffer __this__attributes_copy_value = other_element_value;
37678 
37679           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
37680         }
37681         this.attributes = __this__attributes;
37682       }
37683     }
37684 
37685     public deleteAllRow_args deepCopy() {
37686       return new deleteAllRow_args(this);
37687     }
37688 
37689     @Override
37690     public void clear() {
37691       this.tableName = null;
37692       this.row = null;
37693       this.attributes = null;
37694     }
37695 
37696     /**
37697      * name of table
37698      */
37699     public byte[] getTableName() {
37700       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
37701       return tableName == null ? null : tableName.array();
37702     }
37703 
37704     public ByteBuffer bufferForTableName() {
37705       return tableName;
37706     }
37707 
37708     /**
37709      * name of table
37710      */
37711     public deleteAllRow_args setTableName(byte[] tableName) {
37712       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
37713       return this;
37714     }
37715 
37716     public deleteAllRow_args setTableName(ByteBuffer tableName) {
37717       this.tableName = tableName;
37718       return this;
37719     }
37720 
37721     public void unsetTableName() {
37722       this.tableName = null;
37723     }
37724 
37725     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
37726     public boolean isSetTableName() {
37727       return this.tableName != null;
37728     }
37729 
37730     public void setTableNameIsSet(boolean value) {
37731       if (!value) {
37732         this.tableName = null;
37733       }
37734     }
37735 
37736     /**
37737      * key of the row to be completely deleted.
37738      */
37739     public byte[] getRow() {
37740       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
37741       return row == null ? null : row.array();
37742     }
37743 
37744     public ByteBuffer bufferForRow() {
37745       return row;
37746     }
37747 
37748     /**
37749      * key of the row to be completely deleted.
37750      */
37751     public deleteAllRow_args setRow(byte[] row) {
37752       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
37753       return this;
37754     }
37755 
37756     public deleteAllRow_args setRow(ByteBuffer row) {
37757       this.row = row;
37758       return this;
37759     }
37760 
37761     public void unsetRow() {
37762       this.row = null;
37763     }
37764 
37765     /** Returns true if field row is set (has been assigned a value) and false otherwise */
37766     public boolean isSetRow() {
37767       return this.row != null;
37768     }
37769 
37770     public void setRowIsSet(boolean value) {
37771       if (!value) {
37772         this.row = null;
37773       }
37774     }
37775 
37776     public int getAttributesSize() {
37777       return (this.attributes == null) ? 0 : this.attributes.size();
37778     }
37779 
37780     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
37781       if (this.attributes == null) {
37782         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
37783       }
37784       this.attributes.put(key, val);
37785     }
37786 
37787     /**
37788      * Delete attributes
37789      */
37790     public Map<ByteBuffer,ByteBuffer> getAttributes() {
37791       return this.attributes;
37792     }
37793 
37794     /**
37795      * Delete attributes
37796      */
37797     public deleteAllRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
37798       this.attributes = attributes;
37799       return this;
37800     }
37801 
37802     public void unsetAttributes() {
37803       this.attributes = null;
37804     }
37805 
37806     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
37807     public boolean isSetAttributes() {
37808       return this.attributes != null;
37809     }
37810 
37811     public void setAttributesIsSet(boolean value) {
37812       if (!value) {
37813         this.attributes = null;
37814       }
37815     }
37816 
37817     public void setFieldValue(_Fields field, Object value) {
37818       switch (field) {
37819       case TABLE_NAME:
37820         if (value == null) {
37821           unsetTableName();
37822         } else {
37823           setTableName((ByteBuffer)value);
37824         }
37825         break;
37826 
37827       case ROW:
37828         if (value == null) {
37829           unsetRow();
37830         } else {
37831           setRow((ByteBuffer)value);
37832         }
37833         break;
37834 
37835       case ATTRIBUTES:
37836         if (value == null) {
37837           unsetAttributes();
37838         } else {
37839           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
37840         }
37841         break;
37842 
37843       }
37844     }
37845 
37846     public Object getFieldValue(_Fields field) {
37847       switch (field) {
37848       case TABLE_NAME:
37849         return getTableName();
37850 
37851       case ROW:
37852         return getRow();
37853 
37854       case ATTRIBUTES:
37855         return getAttributes();
37856 
37857       }
37858       throw new IllegalStateException();
37859     }
37860 
37861     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37862     public boolean isSet(_Fields field) {
37863       if (field == null) {
37864         throw new IllegalArgumentException();
37865       }
37866 
37867       switch (field) {
37868       case TABLE_NAME:
37869         return isSetTableName();
37870       case ROW:
37871         return isSetRow();
37872       case ATTRIBUTES:
37873         return isSetAttributes();
37874       }
37875       throw new IllegalStateException();
37876     }
37877 
37878     @Override
37879     public boolean equals(Object that) {
37880       if (that == null)
37881         return false;
37882       if (that instanceof deleteAllRow_args)
37883         return this.equals((deleteAllRow_args)that);
37884       return false;
37885     }
37886 
37887     public boolean equals(deleteAllRow_args that) {
37888       if (that == null)
37889         return false;
37890 
37891       boolean this_present_tableName = true && this.isSetTableName();
37892       boolean that_present_tableName = true && that.isSetTableName();
37893       if (this_present_tableName || that_present_tableName) {
37894         if (!(this_present_tableName && that_present_tableName))
37895           return false;
37896         if (!this.tableName.equals(that.tableName))
37897           return false;
37898       }
37899 
37900       boolean this_present_row = true && this.isSetRow();
37901       boolean that_present_row = true && that.isSetRow();
37902       if (this_present_row || that_present_row) {
37903         if (!(this_present_row && that_present_row))
37904           return false;
37905         if (!this.row.equals(that.row))
37906           return false;
37907       }
37908 
37909       boolean this_present_attributes = true && this.isSetAttributes();
37910       boolean that_present_attributes = true && that.isSetAttributes();
37911       if (this_present_attributes || that_present_attributes) {
37912         if (!(this_present_attributes && that_present_attributes))
37913           return false;
37914         if (!this.attributes.equals(that.attributes))
37915           return false;
37916       }
37917 
37918       return true;
37919     }
37920 
37921     @Override
37922     public int hashCode() {
37923       HashCodeBuilder builder = new HashCodeBuilder();
37924 
37925       boolean present_tableName = true && (isSetTableName());
37926       builder.append(present_tableName);
37927       if (present_tableName)
37928         builder.append(tableName);
37929 
37930       boolean present_row = true && (isSetRow());
37931       builder.append(present_row);
37932       if (present_row)
37933         builder.append(row);
37934 
37935       boolean present_attributes = true && (isSetAttributes());
37936       builder.append(present_attributes);
37937       if (present_attributes)
37938         builder.append(attributes);
37939 
37940       return builder.toHashCode();
37941     }
37942 
37943     public int compareTo(deleteAllRow_args other) {
37944       if (!getClass().equals(other.getClass())) {
37945         return getClass().getName().compareTo(other.getClass().getName());
37946       }
37947 
37948       int lastComparison = 0;
37949       deleteAllRow_args typedOther = (deleteAllRow_args)other;
37950 
37951       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
37952       if (lastComparison != 0) {
37953         return lastComparison;
37954       }
37955       if (isSetTableName()) {
37956         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
37957         if (lastComparison != 0) {
37958           return lastComparison;
37959         }
37960       }
37961       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
37962       if (lastComparison != 0) {
37963         return lastComparison;
37964       }
37965       if (isSetRow()) {
37966         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
37967         if (lastComparison != 0) {
37968           return lastComparison;
37969         }
37970       }
37971       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
37972       if (lastComparison != 0) {
37973         return lastComparison;
37974       }
37975       if (isSetAttributes()) {
37976         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
37977         if (lastComparison != 0) {
37978           return lastComparison;
37979         }
37980       }
37981       return 0;
37982     }
37983 
37984     public _Fields fieldForId(int fieldId) {
37985       return _Fields.findByThriftId(fieldId);
37986     }
37987 
37988     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37989       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37990     }
37991 
37992     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37993       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37994     }
37995 
37996     @Override
37997     public String toString() {
37998       StringBuilder sb = new StringBuilder("deleteAllRow_args(");
37999       boolean first = true;
38000 
38001       sb.append("tableName:");
38002       if (this.tableName == null) {
38003         sb.append("null");
38004       } else {
38005         sb.append(this.tableName);
38006       }
38007       first = false;
38008       if (!first) sb.append(", ");
38009       sb.append("row:");
38010       if (this.row == null) {
38011         sb.append("null");
38012       } else {
38013         sb.append(this.row);
38014       }
38015       first = false;
38016       if (!first) sb.append(", ");
38017       sb.append("attributes:");
38018       if (this.attributes == null) {
38019         sb.append("null");
38020       } else {
38021         sb.append(this.attributes);
38022       }
38023       first = false;
38024       sb.append(")");
38025       return sb.toString();
38026     }
38027 
38028     public void validate() throws org.apache.thrift.TException {
38029       // check for required fields
38030       // check for sub-struct validity
38031     }
38032 
38033     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38034       try {
38035         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38036       } catch (org.apache.thrift.TException te) {
38037         throw new java.io.IOException(te);
38038       }
38039     }
38040 
38041     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38042       try {
38043         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38044       } catch (org.apache.thrift.TException te) {
38045         throw new java.io.IOException(te);
38046       }
38047     }
38048 
38049     private static class deleteAllRow_argsStandardSchemeFactory implements SchemeFactory {
38050       public deleteAllRow_argsStandardScheme getScheme() {
38051         return new deleteAllRow_argsStandardScheme();
38052       }
38053     }
38054 
38055     private static class deleteAllRow_argsStandardScheme extends StandardScheme<deleteAllRow_args> {
38056 
38057       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38058         org.apache.thrift.protocol.TField schemeField;
38059         iprot.readStructBegin();
38060         while (true)
38061         {
38062           schemeField = iprot.readFieldBegin();
38063           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
38064             break;
38065           }
38066           switch (schemeField.id) {
38067             case 1: // TABLE_NAME
38068               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38069                 struct.tableName = iprot.readBinary();
38070                 struct.setTableNameIsSet(true);
38071               } else { 
38072                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38073               }
38074               break;
38075             case 2: // ROW
38076               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38077                 struct.row = iprot.readBinary();
38078                 struct.setRowIsSet(true);
38079               } else { 
38080                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38081               }
38082               break;
38083             case 3: // ATTRIBUTES
38084               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
38085                 {
38086                   org.apache.thrift.protocol.TMap _map438 = iprot.readMapBegin();
38087                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map438.size);
38088                   for (int _i439 = 0; _i439 < _map438.size; ++_i439)
38089                   {
38090                     ByteBuffer _key440; // required
38091                     ByteBuffer _val441; // required
38092                     _key440 = iprot.readBinary();
38093                     _val441 = iprot.readBinary();
38094                     struct.attributes.put(_key440, _val441);
38095                   }
38096                   iprot.readMapEnd();
38097                 }
38098                 struct.setAttributesIsSet(true);
38099               } else { 
38100                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38101               }
38102               break;
38103             default:
38104               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38105           }
38106           iprot.readFieldEnd();
38107         }
38108         iprot.readStructEnd();
38109 
38110         // check for required fields of primitive type, which can't be checked in the validate method
38111         struct.validate();
38112       }
38113 
38114       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38115         struct.validate();
38116 
38117         oprot.writeStructBegin(STRUCT_DESC);
38118         if (struct.tableName != null) {
38119           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
38120           oprot.writeBinary(struct.tableName);
38121           oprot.writeFieldEnd();
38122         }
38123         if (struct.row != null) {
38124           oprot.writeFieldBegin(ROW_FIELD_DESC);
38125           oprot.writeBinary(struct.row);
38126           oprot.writeFieldEnd();
38127         }
38128         if (struct.attributes != null) {
38129           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
38130           {
38131             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
38132             for (Map.Entry<ByteBuffer, ByteBuffer> _iter442 : struct.attributes.entrySet())
38133             {
38134               oprot.writeBinary(_iter442.getKey());
38135               oprot.writeBinary(_iter442.getValue());
38136             }
38137             oprot.writeMapEnd();
38138           }
38139           oprot.writeFieldEnd();
38140         }
38141         oprot.writeFieldStop();
38142         oprot.writeStructEnd();
38143       }
38144 
38145     }
38146 
38147     private static class deleteAllRow_argsTupleSchemeFactory implements SchemeFactory {
38148       public deleteAllRow_argsTupleScheme getScheme() {
38149         return new deleteAllRow_argsTupleScheme();
38150       }
38151     }
38152 
38153     private static class deleteAllRow_argsTupleScheme extends TupleScheme<deleteAllRow_args> {
38154 
38155       @Override
38156       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38157         TTupleProtocol oprot = (TTupleProtocol) prot;
38158         BitSet optionals = new BitSet();
38159         if (struct.isSetTableName()) {
38160           optionals.set(0);
38161         }
38162         if (struct.isSetRow()) {
38163           optionals.set(1);
38164         }
38165         if (struct.isSetAttributes()) {
38166           optionals.set(2);
38167         }
38168         oprot.writeBitSet(optionals, 3);
38169         if (struct.isSetTableName()) {
38170           oprot.writeBinary(struct.tableName);
38171         }
38172         if (struct.isSetRow()) {
38173           oprot.writeBinary(struct.row);
38174         }
38175         if (struct.isSetAttributes()) {
38176           {
38177             oprot.writeI32(struct.attributes.size());
38178             for (Map.Entry<ByteBuffer, ByteBuffer> _iter443 : struct.attributes.entrySet())
38179             {
38180               oprot.writeBinary(_iter443.getKey());
38181               oprot.writeBinary(_iter443.getValue());
38182             }
38183           }
38184         }
38185       }
38186 
38187       @Override
38188       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38189         TTupleProtocol iprot = (TTupleProtocol) prot;
38190         BitSet incoming = iprot.readBitSet(3);
38191         if (incoming.get(0)) {
38192           struct.tableName = iprot.readBinary();
38193           struct.setTableNameIsSet(true);
38194         }
38195         if (incoming.get(1)) {
38196           struct.row = iprot.readBinary();
38197           struct.setRowIsSet(true);
38198         }
38199         if (incoming.get(2)) {
38200           {
38201             org.apache.thrift.protocol.TMap _map444 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
38202             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map444.size);
38203             for (int _i445 = 0; _i445 < _map444.size; ++_i445)
38204             {
38205               ByteBuffer _key446; // required
38206               ByteBuffer _val447; // required
38207               _key446 = iprot.readBinary();
38208               _val447 = iprot.readBinary();
38209               struct.attributes.put(_key446, _val447);
38210             }
38211           }
38212           struct.setAttributesIsSet(true);
38213         }
38214       }
38215     }
38216 
38217   }
38218 
38219   public static class deleteAllRow_result implements org.apache.thrift.TBase<deleteAllRow_result, deleteAllRow_result._Fields>, java.io.Serializable, Cloneable   {
38220     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_result");
38221 
38222     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38223 
38224     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38225     static {
38226       schemes.put(StandardScheme.class, new deleteAllRow_resultStandardSchemeFactory());
38227       schemes.put(TupleScheme.class, new deleteAllRow_resultTupleSchemeFactory());
38228     }
38229 
38230     public IOError io; // required
38231 
38232     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38233     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38234       IO((short)1, "io");
38235 
38236       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38237 
38238       static {
38239         for (_Fields field : EnumSet.allOf(_Fields.class)) {
38240           byName.put(field.getFieldName(), field);
38241         }
38242       }
38243 
38244       /**
38245        * Find the _Fields constant that matches fieldId, or null if its not found.
38246        */
38247       public static _Fields findByThriftId(int fieldId) {
38248         switch(fieldId) {
38249           case 1: // IO
38250             return IO;
38251           default:
38252             return null;
38253         }
38254       }
38255 
38256       /**
38257        * Find the _Fields constant that matches fieldId, throwing an exception
38258        * if it is not found.
38259        */
38260       public static _Fields findByThriftIdOrThrow(int fieldId) {
38261         _Fields fields = findByThriftId(fieldId);
38262         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38263         return fields;
38264       }
38265 
38266       /**
38267        * Find the _Fields constant that matches name, or null if its not found.
38268        */
38269       public static _Fields findByName(String name) {
38270         return byName.get(name);
38271       }
38272 
38273       private final short _thriftId;
38274       private final String _fieldName;
38275 
38276       _Fields(short thriftId, String fieldName) {
38277         _thriftId = thriftId;
38278         _fieldName = fieldName;
38279       }
38280 
38281       public short getThriftFieldId() {
38282         return _thriftId;
38283       }
38284 
38285       public String getFieldName() {
38286         return _fieldName;
38287       }
38288     }
38289 
38290     // isset id assignments
38291     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38292     static {
38293       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38294       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38295           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38296       metaDataMap = Collections.unmodifiableMap(tmpMap);
38297       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_result.class, metaDataMap);
38298     }
38299 
38300     public deleteAllRow_result() {
38301     }
38302 
38303     public deleteAllRow_result(
38304       IOError io)
38305     {
38306       this();
38307       this.io = io;
38308     }
38309 
38310     /**
38311      * Performs a deep copy on <i>other</i>.
38312      */
38313     public deleteAllRow_result(deleteAllRow_result other) {
38314       if (other.isSetIo()) {
38315         this.io = new IOError(other.io);
38316       }
38317     }
38318 
38319     public deleteAllRow_result deepCopy() {
38320       return new deleteAllRow_result(this);
38321     }
38322 
38323     @Override
38324     public void clear() {
38325       this.io = null;
38326     }
38327 
38328     public IOError getIo() {
38329       return this.io;
38330     }
38331 
38332     public deleteAllRow_result setIo(IOError io) {
38333       this.io = io;
38334       return this;
38335     }
38336 
38337     public void unsetIo() {
38338       this.io = null;
38339     }
38340 
38341     /** Returns true if field io is set (has been assigned a value) and false otherwise */
38342     public boolean isSetIo() {
38343       return this.io != null;
38344     }
38345 
38346     public void setIoIsSet(boolean value) {
38347       if (!value) {
38348         this.io = null;
38349       }
38350     }
38351 
38352     public void setFieldValue(_Fields field, Object value) {
38353       switch (field) {
38354       case IO:
38355         if (value == null) {
38356           unsetIo();
38357         } else {
38358           setIo((IOError)value);
38359         }
38360         break;
38361 
38362       }
38363     }
38364 
38365     public Object getFieldValue(_Fields field) {
38366       switch (field) {
38367       case IO:
38368         return getIo();
38369 
38370       }
38371       throw new IllegalStateException();
38372     }
38373 
38374     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38375     public boolean isSet(_Fields field) {
38376       if (field == null) {
38377         throw new IllegalArgumentException();
38378       }
38379 
38380       switch (field) {
38381       case IO:
38382         return isSetIo();
38383       }
38384       throw new IllegalStateException();
38385     }
38386 
38387     @Override
38388     public boolean equals(Object that) {
38389       if (that == null)
38390         return false;
38391       if (that instanceof deleteAllRow_result)
38392         return this.equals((deleteAllRow_result)that);
38393       return false;
38394     }
38395 
38396     public boolean equals(deleteAllRow_result that) {
38397       if (that == null)
38398         return false;
38399 
38400       boolean this_present_io = true && this.isSetIo();
38401       boolean that_present_io = true && that.isSetIo();
38402       if (this_present_io || that_present_io) {
38403         if (!(this_present_io && that_present_io))
38404           return false;
38405         if (!this.io.equals(that.io))
38406           return false;
38407       }
38408 
38409       return true;
38410     }
38411 
38412     @Override
38413     public int hashCode() {
38414       HashCodeBuilder builder = new HashCodeBuilder();
38415 
38416       boolean present_io = true && (isSetIo());
38417       builder.append(present_io);
38418       if (present_io)
38419         builder.append(io);
38420 
38421       return builder.toHashCode();
38422     }
38423 
38424     public int compareTo(deleteAllRow_result other) {
38425       if (!getClass().equals(other.getClass())) {
38426         return getClass().getName().compareTo(other.getClass().getName());
38427       }
38428 
38429       int lastComparison = 0;
38430       deleteAllRow_result typedOther = (deleteAllRow_result)other;
38431 
38432       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
38433       if (lastComparison != 0) {
38434         return lastComparison;
38435       }
38436       if (isSetIo()) {
38437         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
38438         if (lastComparison != 0) {
38439           return lastComparison;
38440         }
38441       }
38442       return 0;
38443     }
38444 
38445     public _Fields fieldForId(int fieldId) {
38446       return _Fields.findByThriftId(fieldId);
38447     }
38448 
38449     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38450       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38451     }
38452 
38453     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38454       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38455       }
38456 
38457     @Override
38458     public String toString() {
38459       StringBuilder sb = new StringBuilder("deleteAllRow_result(");
38460       boolean first = true;
38461 
38462       sb.append("io:");
38463       if (this.io == null) {
38464         sb.append("null");
38465       } else {
38466         sb.append(this.io);
38467       }
38468       first = false;
38469       sb.append(")");
38470       return sb.toString();
38471     }
38472 
38473     public void validate() throws org.apache.thrift.TException {
38474       // check for required fields
38475       // check for sub-struct validity
38476     }
38477 
38478     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38479       try {
38480         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38481       } catch (org.apache.thrift.TException te) {
38482         throw new java.io.IOException(te);
38483       }
38484     }
38485 
38486     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38487       try {
38488         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38489       } catch (org.apache.thrift.TException te) {
38490         throw new java.io.IOException(te);
38491       }
38492     }
38493 
38494     private static class deleteAllRow_resultStandardSchemeFactory implements SchemeFactory {
38495       public deleteAllRow_resultStandardScheme getScheme() {
38496         return new deleteAllRow_resultStandardScheme();
38497       }
38498     }
38499 
38500     private static class deleteAllRow_resultStandardScheme extends StandardScheme<deleteAllRow_result> {
38501 
38502       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38503         org.apache.thrift.protocol.TField schemeField;
38504         iprot.readStructBegin();
38505         while (true)
38506         {
38507           schemeField = iprot.readFieldBegin();
38508           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
38509             break;
38510           }
38511           switch (schemeField.id) {
38512             case 1: // IO
38513               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38514                 struct.io = new IOError();
38515                 struct.io.read(iprot);
38516                 struct.setIoIsSet(true);
38517               } else { 
38518                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38519               }
38520               break;
38521             default:
38522               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38523           }
38524           iprot.readFieldEnd();
38525         }
38526         iprot.readStructEnd();
38527 
38528         // check for required fields of primitive type, which can't be checked in the validate method
38529         struct.validate();
38530       }
38531 
38532       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38533         struct.validate();
38534 
38535         oprot.writeStructBegin(STRUCT_DESC);
38536         if (struct.io != null) {
38537           oprot.writeFieldBegin(IO_FIELD_DESC);
38538           struct.io.write(oprot);
38539           oprot.writeFieldEnd();
38540         }
38541         oprot.writeFieldStop();
38542         oprot.writeStructEnd();
38543       }
38544 
38545     }
38546 
38547     private static class deleteAllRow_resultTupleSchemeFactory implements SchemeFactory {
38548       public deleteAllRow_resultTupleScheme getScheme() {
38549         return new deleteAllRow_resultTupleScheme();
38550       }
38551     }
38552 
38553     private static class deleteAllRow_resultTupleScheme extends TupleScheme<deleteAllRow_result> {
38554 
38555       @Override
38556       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38557         TTupleProtocol oprot = (TTupleProtocol) prot;
38558         BitSet optionals = new BitSet();
38559         if (struct.isSetIo()) {
38560           optionals.set(0);
38561         }
38562         oprot.writeBitSet(optionals, 1);
38563         if (struct.isSetIo()) {
38564           struct.io.write(oprot);
38565         }
38566       }
38567 
38568       @Override
38569       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38570         TTupleProtocol iprot = (TTupleProtocol) prot;
38571         BitSet incoming = iprot.readBitSet(1);
38572         if (incoming.get(0)) {
38573           struct.io = new IOError();
38574           struct.io.read(iprot);
38575           struct.setIoIsSet(true);
38576         }
38577       }
38578     }
38579 
38580   }
38581 
38582   public static class increment_args implements org.apache.thrift.TBase<increment_args, increment_args._Fields>, java.io.Serializable, Cloneable   {
38583     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args");
38584 
38585     private static final org.apache.thrift.protocol.TField INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("increment", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38586 
38587     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38588     static {
38589       schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory());
38590       schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory());
38591     }
38592 
38593     /**
38594      * The single increment to apply
38595      */
38596     public TIncrement increment; // required
38597 
38598     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38599     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38600       /**
38601        * The single increment to apply
38602        */
38603       INCREMENT((short)1, "increment");
38604 
38605       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38606 
38607       static {
38608         for (_Fields field : EnumSet.allOf(_Fields.class)) {
38609           byName.put(field.getFieldName(), field);
38610         }
38611       }
38612 
38613       /**
38614        * Find the _Fields constant that matches fieldId, or null if its not found.
38615        */
38616       public static _Fields findByThriftId(int fieldId) {
38617         switch(fieldId) {
38618           case 1: // INCREMENT
38619             return INCREMENT;
38620           default:
38621             return null;
38622         }
38623       }
38624 
38625       /**
38626        * Find the _Fields constant that matches fieldId, throwing an exception
38627        * if it is not found.
38628        */
38629       public static _Fields findByThriftIdOrThrow(int fieldId) {
38630         _Fields fields = findByThriftId(fieldId);
38631         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38632         return fields;
38633       }
38634 
38635       /**
38636        * Find the _Fields constant that matches name, or null if its not found.
38637        */
38638       public static _Fields findByName(String name) {
38639         return byName.get(name);
38640       }
38641 
38642       private final short _thriftId;
38643       private final String _fieldName;
38644 
38645       _Fields(short thriftId, String fieldName) {
38646         _thriftId = thriftId;
38647         _fieldName = fieldName;
38648       }
38649 
38650       public short getThriftFieldId() {
38651         return _thriftId;
38652       }
38653 
38654       public String getFieldName() {
38655         return _fieldName;
38656       }
38657     }
38658 
38659     // isset id assignments
38660     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38661     static {
38662       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38663       tmpMap.put(_Fields.INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("increment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38664           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class)));
38665       metaDataMap = Collections.unmodifiableMap(tmpMap);
38666       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap);
38667     }
38668 
38669     public increment_args() {
38670     }
38671 
38672     public increment_args(
38673       TIncrement increment)
38674     {
38675       this();
38676       this.increment = increment;
38677     }
38678 
38679     /**
38680      * Performs a deep copy on <i>other</i>.
38681      */
38682     public increment_args(increment_args other) {
38683       if (other.isSetIncrement()) {
38684         this.increment = new TIncrement(other.increment);
38685       }
38686     }
38687 
38688     public increment_args deepCopy() {
38689       return new increment_args(this);
38690     }
38691 
38692     @Override
38693     public void clear() {
38694       this.increment = null;
38695     }
38696 
38697     /**
38698      * The single increment to apply
38699      */
38700     public TIncrement getIncrement() {
38701       return this.increment;
38702     }
38703 
38704     /**
38705      * The single increment to apply
38706      */
38707     public increment_args setIncrement(TIncrement increment) {
38708       this.increment = increment;
38709       return this;
38710     }
38711 
38712     public void unsetIncrement() {
38713       this.increment = null;
38714     }
38715 
38716     /** Returns true if field increment is set (has been assigned a value) and false otherwise */
38717     public boolean isSetIncrement() {
38718       return this.increment != null;
38719     }
38720 
38721     public void setIncrementIsSet(boolean value) {
38722       if (!value) {
38723         this.increment = null;
38724       }
38725     }
38726 
38727     public void setFieldValue(_Fields field, Object value) {
38728       switch (field) {
38729       case INCREMENT:
38730         if (value == null) {
38731           unsetIncrement();
38732         } else {
38733           setIncrement((TIncrement)value);
38734         }
38735         break;
38736 
38737       }
38738     }
38739 
38740     public Object getFieldValue(_Fields field) {
38741       switch (field) {
38742       case INCREMENT:
38743         return getIncrement();
38744 
38745       }
38746       throw new IllegalStateException();
38747     }
38748 
38749     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38750     public boolean isSet(_Fields field) {
38751       if (field == null) {
38752         throw new IllegalArgumentException();
38753       }
38754 
38755       switch (field) {
38756       case INCREMENT:
38757         return isSetIncrement();
38758       }
38759       throw new IllegalStateException();
38760     }
38761 
38762     @Override
38763     public boolean equals(Object that) {
38764       if (that == null)
38765         return false;
38766       if (that instanceof increment_args)
38767         return this.equals((increment_args)that);
38768       return false;
38769     }
38770 
38771     public boolean equals(increment_args that) {
38772       if (that == null)
38773         return false;
38774 
38775       boolean this_present_increment = true && this.isSetIncrement();
38776       boolean that_present_increment = true && that.isSetIncrement();
38777       if (this_present_increment || that_present_increment) {
38778         if (!(this_present_increment && that_present_increment))
38779           return false;
38780         if (!this.increment.equals(that.increment))
38781           return false;
38782       }
38783 
38784       return true;
38785     }
38786 
38787     @Override
38788     public int hashCode() {
38789       HashCodeBuilder builder = new HashCodeBuilder();
38790 
38791       boolean present_increment = true && (isSetIncrement());
38792       builder.append(present_increment);
38793       if (present_increment)
38794         builder.append(increment);
38795 
38796       return builder.toHashCode();
38797     }
38798 
38799     public int compareTo(increment_args other) {
38800       if (!getClass().equals(other.getClass())) {
38801         return getClass().getName().compareTo(other.getClass().getName());
38802       }
38803 
38804       int lastComparison = 0;
38805       increment_args typedOther = (increment_args)other;
38806 
38807       lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(typedOther.isSetIncrement());
38808       if (lastComparison != 0) {
38809         return lastComparison;
38810       }
38811       if (isSetIncrement()) {
38812         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increment, typedOther.increment);
38813         if (lastComparison != 0) {
38814           return lastComparison;
38815         }
38816       }
38817       return 0;
38818     }
38819 
38820     public _Fields fieldForId(int fieldId) {
38821       return _Fields.findByThriftId(fieldId);
38822     }
38823 
38824     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38825       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38826     }
38827 
38828     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38829       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38830     }
38831 
38832     @Override
38833     public String toString() {
38834       StringBuilder sb = new StringBuilder("increment_args(");
38835       boolean first = true;
38836 
38837       sb.append("increment:");
38838       if (this.increment == null) {
38839         sb.append("null");
38840       } else {
38841         sb.append(this.increment);
38842       }
38843       first = false;
38844       sb.append(")");
38845       return sb.toString();
38846     }
38847 
38848     public void validate() throws org.apache.thrift.TException {
38849       // check for required fields
38850       // check for sub-struct validity
38851       if (increment != null) {
38852         increment.validate();
38853       }
38854     }
38855 
38856     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38857       try {
38858         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38859       } catch (org.apache.thrift.TException te) {
38860         throw new java.io.IOException(te);
38861       }
38862     }
38863 
38864     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38865       try {
38866         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38867       } catch (org.apache.thrift.TException te) {
38868         throw new java.io.IOException(te);
38869       }
38870     }
38871 
38872     private static class increment_argsStandardSchemeFactory implements SchemeFactory {
38873       public increment_argsStandardScheme getScheme() {
38874         return new increment_argsStandardScheme();
38875       }
38876     }
38877 
38878     private static class increment_argsStandardScheme extends StandardScheme<increment_args> {
38879 
38880       public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException {
38881         org.apache.thrift.protocol.TField schemeField;
38882         iprot.readStructBegin();
38883         while (true)
38884         {
38885           schemeField = iprot.readFieldBegin();
38886           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
38887             break;
38888           }
38889           switch (schemeField.id) {
38890             case 1: // INCREMENT
38891               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38892                 struct.increment = new TIncrement();
38893                 struct.increment.read(iprot);
38894                 struct.setIncrementIsSet(true);
38895               } else { 
38896                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38897               }
38898               break;
38899             default:
38900               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38901           }
38902           iprot.readFieldEnd();
38903         }
38904         iprot.readStructEnd();
38905 
38906         // check for required fields of primitive type, which can't be checked in the validate method
38907         struct.validate();
38908       }
38909 
38910       public void write(org.apache.thrift.protocol.TProtocol oprot, increment_args struct) throws org.apache.thrift.TException {
38911         struct.validate();
38912 
38913         oprot.writeStructBegin(STRUCT_DESC);
38914         if (struct.increment != null) {
38915           oprot.writeFieldBegin(INCREMENT_FIELD_DESC);
38916           struct.increment.write(oprot);
38917           oprot.writeFieldEnd();
38918         }
38919         oprot.writeFieldStop();
38920         oprot.writeStructEnd();
38921       }
38922 
38923     }
38924 
38925     private static class increment_argsTupleSchemeFactory implements SchemeFactory {
38926       public increment_argsTupleScheme getScheme() {
38927         return new increment_argsTupleScheme();
38928       }
38929     }
38930 
38931     private static class increment_argsTupleScheme extends TupleScheme<increment_args> {
38932 
38933       @Override
38934       public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException {
38935         TTupleProtocol oprot = (TTupleProtocol) prot;
38936         BitSet optionals = new BitSet();
38937         if (struct.isSetIncrement()) {
38938           optionals.set(0);
38939         }
38940         oprot.writeBitSet(optionals, 1);
38941         if (struct.isSetIncrement()) {
38942           struct.increment.write(oprot);
38943         }
38944       }
38945 
38946       @Override
38947       public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException {
38948         TTupleProtocol iprot = (TTupleProtocol) prot;
38949         BitSet incoming = iprot.readBitSet(1);
38950         if (incoming.get(0)) {
38951           struct.increment = new TIncrement();
38952           struct.increment.read(iprot);
38953           struct.setIncrementIsSet(true);
38954         }
38955       }
38956     }
38957 
38958   }
38959 
38960   public static class increment_result implements org.apache.thrift.TBase<increment_result, increment_result._Fields>, java.io.Serializable, Cloneable   {
38961     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result");
38962 
38963     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38964 
38965     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38966     static {
38967       schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory());
38968       schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory());
38969     }
38970 
38971     public IOError io; // required
38972 
38973     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38974     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38975       IO((short)1, "io");
38976 
38977       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38978 
38979       static {
38980         for (_Fields field : EnumSet.allOf(_Fields.class)) {
38981           byName.put(field.getFieldName(), field);
38982         }
38983       }
38984 
38985       /**
38986        * Find the _Fields constant that matches fieldId, or null if its not found.
38987        */
38988       public static _Fields findByThriftId(int fieldId) {
38989         switch(fieldId) {
38990           case 1: // IO
38991             return IO;
38992           default:
38993             return null;
38994         }
38995       }
38996 
38997       /**
38998        * Find the _Fields constant that matches fieldId, throwing an exception
38999        * if it is not found.
39000        */
39001       public static _Fields findByThriftIdOrThrow(int fieldId) {
39002         _Fields fields = findByThriftId(fieldId);
39003         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39004         return fields;
39005       }
39006 
39007       /**
39008        * Find the _Fields constant that matches name, or null if its not found.
39009        */
39010       public static _Fields findByName(String name) {
39011         return byName.get(name);
39012       }
39013 
39014       private final short _thriftId;
39015       private final String _fieldName;
39016 
39017       _Fields(short thriftId, String fieldName) {
39018         _thriftId = thriftId;
39019         _fieldName = fieldName;
39020       }
39021 
39022       public short getThriftFieldId() {
39023         return _thriftId;
39024       }
39025 
39026       public String getFieldName() {
39027         return _fieldName;
39028       }
39029     }
39030 
39031     // isset id assignments
39032     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39033     static {
39034       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39035       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39036           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39037       metaDataMap = Collections.unmodifiableMap(tmpMap);
39038       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap);
39039     }
39040 
39041     public increment_result() {
39042     }
39043 
39044     public increment_result(
39045       IOError io)
39046     {
39047       this();
39048       this.io = io;
39049     }
39050 
39051     /**
39052      * Performs a deep copy on <i>other</i>.
39053      */
39054     public increment_result(increment_result other) {
39055       if (other.isSetIo()) {
39056         this.io = new IOError(other.io);
39057       }
39058     }
39059 
39060     public increment_result deepCopy() {
39061       return new increment_result(this);
39062     }
39063 
39064     @Override
39065     public void clear() {
39066       this.io = null;
39067     }
39068 
39069     public IOError getIo() {
39070       return this.io;
39071     }
39072 
39073     public increment_result setIo(IOError io) {
39074       this.io = io;
39075       return this;
39076     }
39077 
39078     public void unsetIo() {
39079       this.io = null;
39080     }
39081 
39082     /** Returns true if field io is set (has been assigned a value) and false otherwise */
39083     public boolean isSetIo() {
39084       return this.io != null;
39085     }
39086 
39087     public void setIoIsSet(boolean value) {
39088       if (!value) {
39089         this.io = null;
39090       }
39091     }
39092 
39093     public void setFieldValue(_Fields field, Object value) {
39094       switch (field) {
39095       case IO:
39096         if (value == null) {
39097           unsetIo();
39098         } else {
39099           setIo((IOError)value);
39100         }
39101         break;
39102 
39103       }
39104     }
39105 
39106     public Object getFieldValue(_Fields field) {
39107       switch (field) {
39108       case IO:
39109         return getIo();
39110 
39111       }
39112       throw new IllegalStateException();
39113     }
39114 
39115     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39116     public boolean isSet(_Fields field) {
39117       if (field == null) {
39118         throw new IllegalArgumentException();
39119       }
39120 
39121       switch (field) {
39122       case IO:
39123         return isSetIo();
39124       }
39125       throw new IllegalStateException();
39126     }
39127 
39128     @Override
39129     public boolean equals(Object that) {
39130       if (that == null)
39131         return false;
39132       if (that instanceof increment_result)
39133         return this.equals((increment_result)that);
39134       return false;
39135     }
39136 
39137     public boolean equals(increment_result that) {
39138       if (that == null)
39139         return false;
39140 
39141       boolean this_present_io = true && this.isSetIo();
39142       boolean that_present_io = true && that.isSetIo();
39143       if (this_present_io || that_present_io) {
39144         if (!(this_present_io && that_present_io))
39145           return false;
39146         if (!this.io.equals(that.io))
39147           return false;
39148       }
39149 
39150       return true;
39151     }
39152 
39153     @Override
39154     public int hashCode() {
39155       HashCodeBuilder builder = new HashCodeBuilder();
39156 
39157       boolean present_io = true && (isSetIo());
39158       builder.append(present_io);
39159       if (present_io)
39160         builder.append(io);
39161 
39162       return builder.toHashCode();
39163     }
39164 
39165     public int compareTo(increment_result other) {
39166       if (!getClass().equals(other.getClass())) {
39167         return getClass().getName().compareTo(other.getClass().getName());
39168       }
39169 
39170       int lastComparison = 0;
39171       increment_result typedOther = (increment_result)other;
39172 
39173       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
39174       if (lastComparison != 0) {
39175         return lastComparison;
39176       }
39177       if (isSetIo()) {
39178         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
39179         if (lastComparison != 0) {
39180           return lastComparison;
39181         }
39182       }
39183       return 0;
39184     }
39185 
39186     public _Fields fieldForId(int fieldId) {
39187       return _Fields.findByThriftId(fieldId);
39188     }
39189 
39190     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39191       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39192     }
39193 
39194     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39195       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39196       }
39197 
39198     @Override
39199     public String toString() {
39200       StringBuilder sb = new StringBuilder("increment_result(");
39201       boolean first = true;
39202 
39203       sb.append("io:");
39204       if (this.io == null) {
39205         sb.append("null");
39206       } else {
39207         sb.append(this.io);
39208       }
39209       first = false;
39210       sb.append(")");
39211       return sb.toString();
39212     }
39213 
39214     public void validate() throws org.apache.thrift.TException {
39215       // check for required fields
39216       // check for sub-struct validity
39217     }
39218 
39219     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39220       try {
39221         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39222       } catch (org.apache.thrift.TException te) {
39223         throw new java.io.IOException(te);
39224       }
39225     }
39226 
39227     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39228       try {
39229         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39230       } catch (org.apache.thrift.TException te) {
39231         throw new java.io.IOException(te);
39232       }
39233     }
39234 
39235     private static class increment_resultStandardSchemeFactory implements SchemeFactory {
39236       public increment_resultStandardScheme getScheme() {
39237         return new increment_resultStandardScheme();
39238       }
39239     }
39240 
39241     private static class increment_resultStandardScheme extends StandardScheme<increment_result> {
39242 
39243       public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException {
39244         org.apache.thrift.protocol.TField schemeField;
39245         iprot.readStructBegin();
39246         while (true)
39247         {
39248           schemeField = iprot.readFieldBegin();
39249           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
39250             break;
39251           }
39252           switch (schemeField.id) {
39253             case 1: // IO
39254               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39255                 struct.io = new IOError();
39256                 struct.io.read(iprot);
39257                 struct.setIoIsSet(true);
39258               } else { 
39259                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39260               }
39261               break;
39262             default:
39263               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39264           }
39265           iprot.readFieldEnd();
39266         }
39267         iprot.readStructEnd();
39268 
39269         // check for required fields of primitive type, which can't be checked in the validate method
39270         struct.validate();
39271       }
39272 
39273       public void write(org.apache.thrift.protocol.TProtocol oprot, increment_result struct) throws org.apache.thrift.TException {
39274         struct.validate();
39275 
39276         oprot.writeStructBegin(STRUCT_DESC);
39277         if (struct.io != null) {
39278           oprot.writeFieldBegin(IO_FIELD_DESC);
39279           struct.io.write(oprot);
39280           oprot.writeFieldEnd();
39281         }
39282         oprot.writeFieldStop();
39283         oprot.writeStructEnd();
39284       }
39285 
39286     }
39287 
39288     private static class increment_resultTupleSchemeFactory implements SchemeFactory {
39289       public increment_resultTupleScheme getScheme() {
39290         return new increment_resultTupleScheme();
39291       }
39292     }
39293 
39294     private static class increment_resultTupleScheme extends TupleScheme<increment_result> {
39295 
39296       @Override
39297       public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException {
39298         TTupleProtocol oprot = (TTupleProtocol) prot;
39299         BitSet optionals = new BitSet();
39300         if (struct.isSetIo()) {
39301           optionals.set(0);
39302         }
39303         oprot.writeBitSet(optionals, 1);
39304         if (struct.isSetIo()) {
39305           struct.io.write(oprot);
39306         }
39307       }
39308 
39309       @Override
39310       public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException {
39311         TTupleProtocol iprot = (TTupleProtocol) prot;
39312         BitSet incoming = iprot.readBitSet(1);
39313         if (incoming.get(0)) {
39314           struct.io = new IOError();
39315           struct.io.read(iprot);
39316           struct.setIoIsSet(true);
39317         }
39318       }
39319     }
39320 
39321   }
39322 
39323   public static class incrementRows_args implements org.apache.thrift.TBase<incrementRows_args, incrementRows_args._Fields>, java.io.Serializable, Cloneable   {
39324     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_args");
39325 
39326     private static final org.apache.thrift.protocol.TField INCREMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("increments", org.apache.thrift.protocol.TType.LIST, (short)1);
39327 
39328     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39329     static {
39330       schemes.put(StandardScheme.class, new incrementRows_argsStandardSchemeFactory());
39331       schemes.put(TupleScheme.class, new incrementRows_argsTupleSchemeFactory());
39332     }
39333 
39334     /**
39335      * The list of increments
39336      */
39337     public List<TIncrement> increments; // required
39338 
39339     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39340     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39341       /**
39342        * The list of increments
39343        */
39344       INCREMENTS((short)1, "increments");
39345 
39346       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39347 
39348       static {
39349         for (_Fields field : EnumSet.allOf(_Fields.class)) {
39350           byName.put(field.getFieldName(), field);
39351         }
39352       }
39353 
39354       /**
39355        * Find the _Fields constant that matches fieldId, or null if its not found.
39356        */
39357       public static _Fields findByThriftId(int fieldId) {
39358         switch(fieldId) {
39359           case 1: // INCREMENTS
39360             return INCREMENTS;
39361           default:
39362             return null;
39363         }
39364       }
39365 
39366       /**
39367        * Find the _Fields constant that matches fieldId, throwing an exception
39368        * if it is not found.
39369        */
39370       public static _Fields findByThriftIdOrThrow(int fieldId) {
39371         _Fields fields = findByThriftId(fieldId);
39372         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39373         return fields;
39374       }
39375 
39376       /**
39377        * Find the _Fields constant that matches name, or null if its not found.
39378        */
39379       public static _Fields findByName(String name) {
39380         return byName.get(name);
39381       }
39382 
39383       private final short _thriftId;
39384       private final String _fieldName;
39385 
39386       _Fields(short thriftId, String fieldName) {
39387         _thriftId = thriftId;
39388         _fieldName = fieldName;
39389       }
39390 
39391       public short getThriftFieldId() {
39392         return _thriftId;
39393       }
39394 
39395       public String getFieldName() {
39396         return _fieldName;
39397       }
39398     }
39399 
39400     // isset id assignments
39401     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39402     static {
39403       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39404       tmpMap.put(_Fields.INCREMENTS, new org.apache.thrift.meta_data.FieldMetaData("increments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39405           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39406               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))));
39407       metaDataMap = Collections.unmodifiableMap(tmpMap);
39408       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_args.class, metaDataMap);
39409     }
39410 
39411     public incrementRows_args() {
39412     }
39413 
39414     public incrementRows_args(
39415       List<TIncrement> increments)
39416     {
39417       this();
39418       this.increments = increments;
39419     }
39420 
39421     /**
39422      * Performs a deep copy on <i>other</i>.
39423      */
39424     public incrementRows_args(incrementRows_args other) {
39425       if (other.isSetIncrements()) {
39426         List<TIncrement> __this__increments = new ArrayList<TIncrement>();
39427         for (TIncrement other_element : other.increments) {
39428           __this__increments.add(new TIncrement(other_element));
39429         }
39430         this.increments = __this__increments;
39431       }
39432     }
39433 
39434     public incrementRows_args deepCopy() {
39435       return new incrementRows_args(this);
39436     }
39437 
39438     @Override
39439     public void clear() {
39440       this.increments = null;
39441     }
39442 
39443     public int getIncrementsSize() {
39444       return (this.increments == null) ? 0 : this.increments.size();
39445     }
39446 
39447     public java.util.Iterator<TIncrement> getIncrementsIterator() {
39448       return (this.increments == null) ? null : this.increments.iterator();
39449     }
39450 
39451     public void addToIncrements(TIncrement elem) {
39452       if (this.increments == null) {
39453         this.increments = new ArrayList<TIncrement>();
39454       }
39455       this.increments.add(elem);
39456     }
39457 
39458     /**
39459      * The list of increments
39460      */
39461     public List<TIncrement> getIncrements() {
39462       return this.increments;
39463     }
39464 
39465     /**
39466      * The list of increments
39467      */
39468     public incrementRows_args setIncrements(List<TIncrement> increments) {
39469       this.increments = increments;
39470       return this;
39471     }
39472 
39473     public void unsetIncrements() {
39474       this.increments = null;
39475     }
39476 
39477     /** Returns true if field increments is set (has been assigned a value) and false otherwise */
39478     public boolean isSetIncrements() {
39479       return this.increments != null;
39480     }
39481 
39482     public void setIncrementsIsSet(boolean value) {
39483       if (!value) {
39484         this.increments = null;
39485       }
39486     }
39487 
39488     public void setFieldValue(_Fields field, Object value) {
39489       switch (field) {
39490       case INCREMENTS:
39491         if (value == null) {
39492           unsetIncrements();
39493         } else {
39494           setIncrements((List<TIncrement>)value);
39495         }
39496         break;
39497 
39498       }
39499     }
39500 
39501     public Object getFieldValue(_Fields field) {
39502       switch (field) {
39503       case INCREMENTS:
39504         return getIncrements();
39505 
39506       }
39507       throw new IllegalStateException();
39508     }
39509 
39510     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39511     public boolean isSet(_Fields field) {
39512       if (field == null) {
39513         throw new IllegalArgumentException();
39514       }
39515 
39516       switch (field) {
39517       case INCREMENTS:
39518         return isSetIncrements();
39519       }
39520       throw new IllegalStateException();
39521     }
39522 
39523     @Override
39524     public boolean equals(Object that) {
39525       if (that == null)
39526         return false;
39527       if (that instanceof incrementRows_args)
39528         return this.equals((incrementRows_args)that);
39529       return false;
39530     }
39531 
39532     public boolean equals(incrementRows_args that) {
39533       if (that == null)
39534         return false;
39535 
39536       boolean this_present_increments = true && this.isSetIncrements();
39537       boolean that_present_increments = true && that.isSetIncrements();
39538       if (this_present_increments || that_present_increments) {
39539         if (!(this_present_increments && that_present_increments))
39540           return false;
39541         if (!this.increments.equals(that.increments))
39542           return false;
39543       }
39544 
39545       return true;
39546     }
39547 
39548     @Override
39549     public int hashCode() {
39550       HashCodeBuilder builder = new HashCodeBuilder();
39551 
39552       boolean present_increments = true && (isSetIncrements());
39553       builder.append(present_increments);
39554       if (present_increments)
39555         builder.append(increments);
39556 
39557       return builder.toHashCode();
39558     }
39559 
39560     public int compareTo(incrementRows_args other) {
39561       if (!getClass().equals(other.getClass())) {
39562         return getClass().getName().compareTo(other.getClass().getName());
39563       }
39564 
39565       int lastComparison = 0;
39566       incrementRows_args typedOther = (incrementRows_args)other;
39567 
39568       lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(typedOther.isSetIncrements());
39569       if (lastComparison != 0) {
39570         return lastComparison;
39571       }
39572       if (isSetIncrements()) {
39573         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increments, typedOther.increments);
39574         if (lastComparison != 0) {
39575           return lastComparison;
39576         }
39577       }
39578       return 0;
39579     }
39580 
39581     public _Fields fieldForId(int fieldId) {
39582       return _Fields.findByThriftId(fieldId);
39583     }
39584 
39585     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39586       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39587     }
39588 
39589     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39590       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39591     }
39592 
39593     @Override
39594     public String toString() {
39595       StringBuilder sb = new StringBuilder("incrementRows_args(");
39596       boolean first = true;
39597 
39598       sb.append("increments:");
39599       if (this.increments == null) {
39600         sb.append("null");
39601       } else {
39602         sb.append(this.increments);
39603       }
39604       first = false;
39605       sb.append(")");
39606       return sb.toString();
39607     }
39608 
39609     public void validate() throws org.apache.thrift.TException {
39610       // check for required fields
39611       // check for sub-struct validity
39612     }
39613 
39614     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39615       try {
39616         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39617       } catch (org.apache.thrift.TException te) {
39618         throw new java.io.IOException(te);
39619       }
39620     }
39621 
39622     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39623       try {
39624         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39625       } catch (org.apache.thrift.TException te) {
39626         throw new java.io.IOException(te);
39627       }
39628     }
39629 
39630     private static class incrementRows_argsStandardSchemeFactory implements SchemeFactory {
39631       public incrementRows_argsStandardScheme getScheme() {
39632         return new incrementRows_argsStandardScheme();
39633       }
39634     }
39635 
39636     private static class incrementRows_argsStandardScheme extends StandardScheme<incrementRows_args> {
39637 
39638       public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_args struct) throws org.apache.thrift.TException {
39639         org.apache.thrift.protocol.TField schemeField;
39640         iprot.readStructBegin();
39641         while (true)
39642         {
39643           schemeField = iprot.readFieldBegin();
39644           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
39645             break;
39646           }
39647           switch (schemeField.id) {
39648             case 1: // INCREMENTS
39649               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
39650                 {
39651                   org.apache.thrift.protocol.TList _list448 = iprot.readListBegin();
39652                   struct.increments = new ArrayList<TIncrement>(_list448.size);
39653                   for (int _i449 = 0; _i449 < _list448.size; ++_i449)
39654                   {
39655                     TIncrement _elem450; // required
39656                     _elem450 = new TIncrement();
39657                     _elem450.read(iprot);
39658                     struct.increments.add(_elem450);
39659                   }
39660                   iprot.readListEnd();
39661                 }
39662                 struct.setIncrementsIsSet(true);
39663               } else { 
39664                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39665               }
39666               break;
39667             default:
39668               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39669           }
39670           iprot.readFieldEnd();
39671         }
39672         iprot.readStructEnd();
39673 
39674         // check for required fields of primitive type, which can't be checked in the validate method
39675         struct.validate();
39676       }
39677 
39678       public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_args struct) throws org.apache.thrift.TException {
39679         struct.validate();
39680 
39681         oprot.writeStructBegin(STRUCT_DESC);
39682         if (struct.increments != null) {
39683           oprot.writeFieldBegin(INCREMENTS_FIELD_DESC);
39684           {
39685             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.increments.size()));
39686             for (TIncrement _iter451 : struct.increments)
39687             {
39688               _iter451.write(oprot);
39689             }
39690             oprot.writeListEnd();
39691           }
39692           oprot.writeFieldEnd();
39693         }
39694         oprot.writeFieldStop();
39695         oprot.writeStructEnd();
39696       }
39697 
39698     }
39699 
39700     private static class incrementRows_argsTupleSchemeFactory implements SchemeFactory {
39701       public incrementRows_argsTupleScheme getScheme() {
39702         return new incrementRows_argsTupleScheme();
39703       }
39704     }
39705 
39706     private static class incrementRows_argsTupleScheme extends TupleScheme<incrementRows_args> {
39707 
39708       @Override
39709       public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException {
39710         TTupleProtocol oprot = (TTupleProtocol) prot;
39711         BitSet optionals = new BitSet();
39712         if (struct.isSetIncrements()) {
39713           optionals.set(0);
39714         }
39715         oprot.writeBitSet(optionals, 1);
39716         if (struct.isSetIncrements()) {
39717           {
39718             oprot.writeI32(struct.increments.size());
39719             for (TIncrement _iter452 : struct.increments)
39720             {
39721               _iter452.write(oprot);
39722             }
39723           }
39724         }
39725       }
39726 
39727       @Override
39728       public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException {
39729         TTupleProtocol iprot = (TTupleProtocol) prot;
39730         BitSet incoming = iprot.readBitSet(1);
39731         if (incoming.get(0)) {
39732           {
39733             org.apache.thrift.protocol.TList _list453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
39734             struct.increments = new ArrayList<TIncrement>(_list453.size);
39735             for (int _i454 = 0; _i454 < _list453.size; ++_i454)
39736             {
39737               TIncrement _elem455; // required
39738               _elem455 = new TIncrement();
39739               _elem455.read(iprot);
39740               struct.increments.add(_elem455);
39741             }
39742           }
39743           struct.setIncrementsIsSet(true);
39744         }
39745       }
39746     }
39747 
39748   }
39749 
39750   public static class incrementRows_result implements org.apache.thrift.TBase<incrementRows_result, incrementRows_result._Fields>, java.io.Serializable, Cloneable   {
39751     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_result");
39752 
39753     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
39754 
39755     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39756     static {
39757       schemes.put(StandardScheme.class, new incrementRows_resultStandardSchemeFactory());
39758       schemes.put(TupleScheme.class, new incrementRows_resultTupleSchemeFactory());
39759     }
39760 
39761     public IOError io; // required
39762 
39763     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39764     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39765       IO((short)1, "io");
39766 
39767       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39768 
39769       static {
39770         for (_Fields field : EnumSet.allOf(_Fields.class)) {
39771           byName.put(field.getFieldName(), field);
39772         }
39773       }
39774 
39775       /**
39776        * Find the _Fields constant that matches fieldId, or null if its not found.
39777        */
39778       public static _Fields findByThriftId(int fieldId) {
39779         switch(fieldId) {
39780           case 1: // IO
39781             return IO;
39782           default:
39783             return null;
39784         }
39785       }
39786 
39787       /**
39788        * Find the _Fields constant that matches fieldId, throwing an exception
39789        * if it is not found.
39790        */
39791       public static _Fields findByThriftIdOrThrow(int fieldId) {
39792         _Fields fields = findByThriftId(fieldId);
39793         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39794         return fields;
39795       }
39796 
39797       /**
39798        * Find the _Fields constant that matches name, or null if its not found.
39799        */
39800       public static _Fields findByName(String name) {
39801         return byName.get(name);
39802       }
39803 
39804       private final short _thriftId;
39805       private final String _fieldName;
39806 
39807       _Fields(short thriftId, String fieldName) {
39808         _thriftId = thriftId;
39809         _fieldName = fieldName;
39810       }
39811 
39812       public short getThriftFieldId() {
39813         return _thriftId;
39814       }
39815 
39816       public String getFieldName() {
39817         return _fieldName;
39818       }
39819     }
39820 
39821     // isset id assignments
39822     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39823     static {
39824       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39825       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39826           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39827       metaDataMap = Collections.unmodifiableMap(tmpMap);
39828       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_result.class, metaDataMap);
39829     }
39830 
39831     public incrementRows_result() {
39832     }
39833 
39834     public incrementRows_result(
39835       IOError io)
39836     {
39837       this();
39838       this.io = io;
39839     }
39840 
39841     /**
39842      * Performs a deep copy on <i>other</i>.
39843      */
39844     public incrementRows_result(incrementRows_result other) {
39845       if (other.isSetIo()) {
39846         this.io = new IOError(other.io);
39847       }
39848     }
39849 
39850     public incrementRows_result deepCopy() {
39851       return new incrementRows_result(this);
39852     }
39853 
39854     @Override
39855     public void clear() {
39856       this.io = null;
39857     }
39858 
39859     public IOError getIo() {
39860       return this.io;
39861     }
39862 
39863     public incrementRows_result setIo(IOError io) {
39864       this.io = io;
39865       return this;
39866     }
39867 
39868     public void unsetIo() {
39869       this.io = null;
39870     }
39871 
39872     /** Returns true if field io is set (has been assigned a value) and false otherwise */
39873     public boolean isSetIo() {
39874       return this.io != null;
39875     }
39876 
39877     public void setIoIsSet(boolean value) {
39878       if (!value) {
39879         this.io = null;
39880       }
39881     }
39882 
39883     public void setFieldValue(_Fields field, Object value) {
39884       switch (field) {
39885       case IO:
39886         if (value == null) {
39887           unsetIo();
39888         } else {
39889           setIo((IOError)value);
39890         }
39891         break;
39892 
39893       }
39894     }
39895 
39896     public Object getFieldValue(_Fields field) {
39897       switch (field) {
39898       case IO:
39899         return getIo();
39900 
39901       }
39902       throw new IllegalStateException();
39903     }
39904 
39905     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39906     public boolean isSet(_Fields field) {
39907       if (field == null) {
39908         throw new IllegalArgumentException();
39909       }
39910 
39911       switch (field) {
39912       case IO:
39913         return isSetIo();
39914       }
39915       throw new IllegalStateException();
39916     }
39917 
39918     @Override
39919     public boolean equals(Object that) {
39920       if (that == null)
39921         return false;
39922       if (that instanceof incrementRows_result)
39923         return this.equals((incrementRows_result)that);
39924       return false;
39925     }
39926 
39927     public boolean equals(incrementRows_result that) {
39928       if (that == null)
39929         return false;
39930 
39931       boolean this_present_io = true && this.isSetIo();
39932       boolean that_present_io = true && that.isSetIo();
39933       if (this_present_io || that_present_io) {
39934         if (!(this_present_io && that_present_io))
39935           return false;
39936         if (!this.io.equals(that.io))
39937           return false;
39938       }
39939 
39940       return true;
39941     }
39942 
39943     @Override
39944     public int hashCode() {
39945       HashCodeBuilder builder = new HashCodeBuilder();
39946 
39947       boolean present_io = true && (isSetIo());
39948       builder.append(present_io);
39949       if (present_io)
39950         builder.append(io);
39951 
39952       return builder.toHashCode();
39953     }
39954 
39955     public int compareTo(incrementRows_result other) {
39956       if (!getClass().equals(other.getClass())) {
39957         return getClass().getName().compareTo(other.getClass().getName());
39958       }
39959 
39960       int lastComparison = 0;
39961       incrementRows_result typedOther = (incrementRows_result)other;
39962 
39963       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
39964       if (lastComparison != 0) {
39965         return lastComparison;
39966       }
39967       if (isSetIo()) {
39968         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
39969         if (lastComparison != 0) {
39970           return lastComparison;
39971         }
39972       }
39973       return 0;
39974     }
39975 
39976     public _Fields fieldForId(int fieldId) {
39977       return _Fields.findByThriftId(fieldId);
39978     }
39979 
39980     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39981       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39982     }
39983 
39984     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39985       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39986       }
39987 
39988     @Override
39989     public String toString() {
39990       StringBuilder sb = new StringBuilder("incrementRows_result(");
39991       boolean first = true;
39992 
39993       sb.append("io:");
39994       if (this.io == null) {
39995         sb.append("null");
39996       } else {
39997         sb.append(this.io);
39998       }
39999       first = false;
40000       sb.append(")");
40001       return sb.toString();
40002     }
40003 
40004     public void validate() throws org.apache.thrift.TException {
40005       // check for required fields
40006       // check for sub-struct validity
40007     }
40008 
40009     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40010       try {
40011         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40012       } catch (org.apache.thrift.TException te) {
40013         throw new java.io.IOException(te);
40014       }
40015     }
40016 
40017     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40018       try {
40019         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40020       } catch (org.apache.thrift.TException te) {
40021         throw new java.io.IOException(te);
40022       }
40023     }
40024 
40025     private static class incrementRows_resultStandardSchemeFactory implements SchemeFactory {
40026       public incrementRows_resultStandardScheme getScheme() {
40027         return new incrementRows_resultStandardScheme();
40028       }
40029     }
40030 
40031     private static class incrementRows_resultStandardScheme extends StandardScheme<incrementRows_result> {
40032 
40033       public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_result struct) throws org.apache.thrift.TException {
40034         org.apache.thrift.protocol.TField schemeField;
40035         iprot.readStructBegin();
40036         while (true)
40037         {
40038           schemeField = iprot.readFieldBegin();
40039           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
40040             break;
40041           }
40042           switch (schemeField.id) {
40043             case 1: // IO
40044               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
40045                 struct.io = new IOError();
40046                 struct.io.read(iprot);
40047                 struct.setIoIsSet(true);
40048               } else { 
40049                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40050               }
40051               break;
40052             default:
40053               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40054           }
40055           iprot.readFieldEnd();
40056         }
40057         iprot.readStructEnd();
40058 
40059         // check for required fields of primitive type, which can't be checked in the validate method
40060         struct.validate();
40061       }
40062 
40063       public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_result struct) throws org.apache.thrift.TException {
40064         struct.validate();
40065 
40066         oprot.writeStructBegin(STRUCT_DESC);
40067         if (struct.io != null) {
40068           oprot.writeFieldBegin(IO_FIELD_DESC);
40069           struct.io.write(oprot);
40070           oprot.writeFieldEnd();
40071         }
40072         oprot.writeFieldStop();
40073         oprot.writeStructEnd();
40074       }
40075 
40076     }
40077 
40078     private static class incrementRows_resultTupleSchemeFactory implements SchemeFactory {
40079       public incrementRows_resultTupleScheme getScheme() {
40080         return new incrementRows_resultTupleScheme();
40081       }
40082     }
40083 
40084     private static class incrementRows_resultTupleScheme extends TupleScheme<incrementRows_result> {
40085 
40086       @Override
40087       public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException {
40088         TTupleProtocol oprot = (TTupleProtocol) prot;
40089         BitSet optionals = new BitSet();
40090         if (struct.isSetIo()) {
40091           optionals.set(0);
40092         }
40093         oprot.writeBitSet(optionals, 1);
40094         if (struct.isSetIo()) {
40095           struct.io.write(oprot);
40096         }
40097       }
40098 
40099       @Override
40100       public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException {
40101         TTupleProtocol iprot = (TTupleProtocol) prot;
40102         BitSet incoming = iprot.readBitSet(1);
40103         if (incoming.get(0)) {
40104           struct.io = new IOError();
40105           struct.io.read(iprot);
40106           struct.setIoIsSet(true);
40107         }
40108       }
40109     }
40110 
40111   }
40112 
40113   public static class deleteAllRowTs_args implements org.apache.thrift.TBase<deleteAllRowTs_args, deleteAllRowTs_args._Fields>, java.io.Serializable, Cloneable   {
40114     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_args");
40115 
40116     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
40117     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
40118     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
40119     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
40120 
40121     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40122     static {
40123       schemes.put(StandardScheme.class, new deleteAllRowTs_argsStandardSchemeFactory());
40124       schemes.put(TupleScheme.class, new deleteAllRowTs_argsTupleSchemeFactory());
40125     }
40126 
40127     /**
40128      * name of table
40129      */
40130     public ByteBuffer tableName; // required
40131     /**
40132      * key of the row to be completely deleted.
40133      */
40134     public ByteBuffer row; // required
40135     /**
40136      * timestamp
40137      */
40138     public long timestamp; // required
40139     /**
40140      * Delete attributes
40141      */
40142     public Map<ByteBuffer,ByteBuffer> attributes; // required
40143 
40144     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40145     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40146       /**
40147        * name of table
40148        */
40149       TABLE_NAME((short)1, "tableName"),
40150       /**
40151        * key of the row to be completely deleted.
40152        */
40153       ROW((short)2, "row"),
40154       /**
40155        * timestamp
40156        */
40157       TIMESTAMP((short)3, "timestamp"),
40158       /**
40159        * Delete attributes
40160        */
40161       ATTRIBUTES((short)4, "attributes");
40162 
40163       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40164 
40165       static {
40166         for (_Fields field : EnumSet.allOf(_Fields.class)) {
40167           byName.put(field.getFieldName(), field);
40168         }
40169       }
40170 
40171       /**
40172        * Find the _Fields constant that matches fieldId, or null if its not found.
40173        */
40174       public static _Fields findByThriftId(int fieldId) {
40175         switch(fieldId) {
40176           case 1: // TABLE_NAME
40177             return TABLE_NAME;
40178           case 2: // ROW
40179             return ROW;
40180           case 3: // TIMESTAMP
40181             return TIMESTAMP;
40182           case 4: // ATTRIBUTES
40183             return ATTRIBUTES;
40184           default:
40185             return null;
40186         }
40187       }
40188 
40189       /**
40190        * Find the _Fields constant that matches fieldId, throwing an exception
40191        * if it is not found.
40192        */
40193       public static _Fields findByThriftIdOrThrow(int fieldId) {
40194         _Fields fields = findByThriftId(fieldId);
40195         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40196         return fields;
40197       }
40198 
40199       /**
40200        * Find the _Fields constant that matches name, or null if its not found.
40201        */
40202       public static _Fields findByName(String name) {
40203         return byName.get(name);
40204       }
40205 
40206       private final short _thriftId;
40207       private final String _fieldName;
40208 
40209       _Fields(short thriftId, String fieldName) {
40210         _thriftId = thriftId;
40211         _fieldName = fieldName;
40212       }
40213 
40214       public short getThriftFieldId() {
40215         return _thriftId;
40216       }
40217 
40218       public String getFieldName() {
40219         return _fieldName;
40220       }
40221     }
40222 
40223     // isset id assignments
40224     private static final int __TIMESTAMP_ISSET_ID = 0;
40225     private byte __isset_bitfield = 0;
40226     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40227     static {
40228       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40229       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40230           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
40231       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40232           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
40233       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40234           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40235       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40236           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
40237               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
40238               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
40239       metaDataMap = Collections.unmodifiableMap(tmpMap);
40240       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_args.class, metaDataMap);
40241     }
40242 
40243     public deleteAllRowTs_args() {
40244     }
40245 
40246     public deleteAllRowTs_args(
40247       ByteBuffer tableName,
40248       ByteBuffer row,
40249       long timestamp,
40250       Map<ByteBuffer,ByteBuffer> attributes)
40251     {
40252       this();
40253       this.tableName = tableName;
40254       this.row = row;
40255       this.timestamp = timestamp;
40256       setTimestampIsSet(true);
40257       this.attributes = attributes;
40258     }
40259 
40260     /**
40261      * Performs a deep copy on <i>other</i>.
40262      */
40263     public deleteAllRowTs_args(deleteAllRowTs_args other) {
40264       __isset_bitfield = other.__isset_bitfield;
40265       if (other.isSetTableName()) {
40266         this.tableName = other.tableName;
40267       }
40268       if (other.isSetRow()) {
40269         this.row = other.row;
40270       }
40271       this.timestamp = other.timestamp;
40272       if (other.isSetAttributes()) {
40273         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
40274         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
40275 
40276           ByteBuffer other_element_key = other_element.getKey();
40277           ByteBuffer other_element_value = other_element.getValue();
40278 
40279           ByteBuffer __this__attributes_copy_key = other_element_key;
40280 
40281           ByteBuffer __this__attributes_copy_value = other_element_value;
40282 
40283           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
40284         }
40285         this.attributes = __this__attributes;
40286       }
40287     }
40288 
40289     public deleteAllRowTs_args deepCopy() {
40290       return new deleteAllRowTs_args(this);
40291     }
40292 
40293     @Override
40294     public void clear() {
40295       this.tableName = null;
40296       this.row = null;
40297       setTimestampIsSet(false);
40298       this.timestamp = 0;
40299       this.attributes = null;
40300     }
40301 
40302     /**
40303      * name of table
40304      */
40305     public byte[] getTableName() {
40306       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
40307       return tableName == null ? null : tableName.array();
40308     }
40309 
40310     public ByteBuffer bufferForTableName() {
40311       return tableName;
40312     }
40313 
40314     /**
40315      * name of table
40316      */
40317     public deleteAllRowTs_args setTableName(byte[] tableName) {
40318       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
40319       return this;
40320     }
40321 
40322     public deleteAllRowTs_args setTableName(ByteBuffer tableName) {
40323       this.tableName = tableName;
40324       return this;
40325     }
40326 
40327     public void unsetTableName() {
40328       this.tableName = null;
40329     }
40330 
40331     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
40332     public boolean isSetTableName() {
40333       return this.tableName != null;
40334     }
40335 
40336     public void setTableNameIsSet(boolean value) {
40337       if (!value) {
40338         this.tableName = null;
40339       }
40340     }
40341 
40342     /**
40343      * key of the row to be completely deleted.
40344      */
40345     public byte[] getRow() {
40346       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
40347       return row == null ? null : row.array();
40348     }
40349 
40350     public ByteBuffer bufferForRow() {
40351       return row;
40352     }
40353 
40354     /**
40355      * key of the row to be completely deleted.
40356      */
40357     public deleteAllRowTs_args setRow(byte[] row) {
40358       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
40359       return this;
40360     }
40361 
40362     public deleteAllRowTs_args setRow(ByteBuffer row) {
40363       this.row = row;
40364       return this;
40365     }
40366 
40367     public void unsetRow() {
40368       this.row = null;
40369     }
40370 
40371     /** Returns true if field row is set (has been assigned a value) and false otherwise */
40372     public boolean isSetRow() {
40373       return this.row != null;
40374     }
40375 
40376     public void setRowIsSet(boolean value) {
40377       if (!value) {
40378         this.row = null;
40379       }
40380     }
40381 
40382     /**
40383      * timestamp
40384      */
40385     public long getTimestamp() {
40386       return this.timestamp;
40387     }
40388 
40389     /**
40390      * timestamp
40391      */
40392     public deleteAllRowTs_args setTimestamp(long timestamp) {
40393       this.timestamp = timestamp;
40394       setTimestampIsSet(true);
40395       return this;
40396     }
40397 
40398     public void unsetTimestamp() {
40399       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
40400     }
40401 
40402     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
40403     public boolean isSetTimestamp() {
40404       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
40405     }
40406 
40407     public void setTimestampIsSet(boolean value) {
40408       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
40409     }
40410 
40411     public int getAttributesSize() {
40412       return (this.attributes == null) ? 0 : this.attributes.size();
40413     }
40414 
40415     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
40416       if (this.attributes == null) {
40417         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
40418       }
40419       this.attributes.put(key, val);
40420     }
40421 
40422     /**
40423      * Delete attributes
40424      */
40425     public Map<ByteBuffer,ByteBuffer> getAttributes() {
40426       return this.attributes;
40427     }
40428 
40429     /**
40430      * Delete attributes
40431      */
40432     public deleteAllRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
40433       this.attributes = attributes;
40434       return this;
40435     }
40436 
40437     public void unsetAttributes() {
40438       this.attributes = null;
40439     }
40440 
40441     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
40442     public boolean isSetAttributes() {
40443       return this.attributes != null;
40444     }
40445 
40446     public void setAttributesIsSet(boolean value) {
40447       if (!value) {
40448         this.attributes = null;
40449       }
40450     }
40451 
40452     public void setFieldValue(_Fields field, Object value) {
40453       switch (field) {
40454       case TABLE_NAME:
40455         if (value == null) {
40456           unsetTableName();
40457         } else {
40458           setTableName((ByteBuffer)value);
40459         }
40460         break;
40461 
40462       case ROW:
40463         if (value == null) {
40464           unsetRow();
40465         } else {
40466           setRow((ByteBuffer)value);
40467         }
40468         break;
40469 
40470       case TIMESTAMP:
40471         if (value == null) {
40472           unsetTimestamp();
40473         } else {
40474           setTimestamp((Long)value);
40475         }
40476         break;
40477 
40478       case ATTRIBUTES:
40479         if (value == null) {
40480           unsetAttributes();
40481         } else {
40482           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
40483         }
40484         break;
40485 
40486       }
40487     }
40488 
40489     public Object getFieldValue(_Fields field) {
40490       switch (field) {
40491       case TABLE_NAME:
40492         return getTableName();
40493 
40494       case ROW:
40495         return getRow();
40496 
40497       case TIMESTAMP:
40498         return Long.valueOf(getTimestamp());
40499 
40500       case ATTRIBUTES:
40501         return getAttributes();
40502 
40503       }
40504       throw new IllegalStateException();
40505     }
40506 
40507     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40508     public boolean isSet(_Fields field) {
40509       if (field == null) {
40510         throw new IllegalArgumentException();
40511       }
40512 
40513       switch (field) {
40514       case TABLE_NAME:
40515         return isSetTableName();
40516       case ROW:
40517         return isSetRow();
40518       case TIMESTAMP:
40519         return isSetTimestamp();
40520       case ATTRIBUTES:
40521         return isSetAttributes();
40522       }
40523       throw new IllegalStateException();
40524     }
40525 
40526     @Override
40527     public boolean equals(Object that) {
40528       if (that == null)
40529         return false;
40530       if (that instanceof deleteAllRowTs_args)
40531         return this.equals((deleteAllRowTs_args)that);
40532       return false;
40533     }
40534 
40535     public boolean equals(deleteAllRowTs_args that) {
40536       if (that == null)
40537         return false;
40538 
40539       boolean this_present_tableName = true && this.isSetTableName();
40540       boolean that_present_tableName = true && that.isSetTableName();
40541       if (this_present_tableName || that_present_tableName) {
40542         if (!(this_present_tableName && that_present_tableName))
40543           return false;
40544         if (!this.tableName.equals(that.tableName))
40545           return false;
40546       }
40547 
40548       boolean this_present_row = true && this.isSetRow();
40549       boolean that_present_row = true && that.isSetRow();
40550       if (this_present_row || that_present_row) {
40551         if (!(this_present_row && that_present_row))
40552           return false;
40553         if (!this.row.equals(that.row))
40554           return false;
40555       }
40556 
40557       boolean this_present_timestamp = true;
40558       boolean that_present_timestamp = true;
40559       if (this_present_timestamp || that_present_timestamp) {
40560         if (!(this_present_timestamp && that_present_timestamp))
40561           return false;
40562         if (this.timestamp != that.timestamp)
40563           return false;
40564       }
40565 
40566       boolean this_present_attributes = true && this.isSetAttributes();
40567       boolean that_present_attributes = true && that.isSetAttributes();
40568       if (this_present_attributes || that_present_attributes) {
40569         if (!(this_present_attributes && that_present_attributes))
40570           return false;
40571         if (!this.attributes.equals(that.attributes))
40572           return false;
40573       }
40574 
40575       return true;
40576     }
40577 
40578     @Override
40579     public int hashCode() {
40580       HashCodeBuilder builder = new HashCodeBuilder();
40581 
40582       boolean present_tableName = true && (isSetTableName());
40583       builder.append(present_tableName);
40584       if (present_tableName)
40585         builder.append(tableName);
40586 
40587       boolean present_row = true && (isSetRow());
40588       builder.append(present_row);
40589       if (present_row)
40590         builder.append(row);
40591 
40592       boolean present_timestamp = true;
40593       builder.append(present_timestamp);
40594       if (present_timestamp)
40595         builder.append(timestamp);
40596 
40597       boolean present_attributes = true && (isSetAttributes());
40598       builder.append(present_attributes);
40599       if (present_attributes)
40600         builder.append(attributes);
40601 
40602       return builder.toHashCode();
40603     }
40604 
40605     public int compareTo(deleteAllRowTs_args other) {
40606       if (!getClass().equals(other.getClass())) {
40607         return getClass().getName().compareTo(other.getClass().getName());
40608       }
40609 
40610       int lastComparison = 0;
40611       deleteAllRowTs_args typedOther = (deleteAllRowTs_args)other;
40612 
40613       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
40614       if (lastComparison != 0) {
40615         return lastComparison;
40616       }
40617       if (isSetTableName()) {
40618         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
40619         if (lastComparison != 0) {
40620           return lastComparison;
40621         }
40622       }
40623       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
40624       if (lastComparison != 0) {
40625         return lastComparison;
40626       }
40627       if (isSetRow()) {
40628         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
40629         if (lastComparison != 0) {
40630           return lastComparison;
40631         }
40632       }
40633       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
40634       if (lastComparison != 0) {
40635         return lastComparison;
40636       }
40637       if (isSetTimestamp()) {
40638         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
40639         if (lastComparison != 0) {
40640           return lastComparison;
40641         }
40642       }
40643       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
40644       if (lastComparison != 0) {
40645         return lastComparison;
40646       }
40647       if (isSetAttributes()) {
40648         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
40649         if (lastComparison != 0) {
40650           return lastComparison;
40651         }
40652       }
40653       return 0;
40654     }
40655 
40656     public _Fields fieldForId(int fieldId) {
40657       return _Fields.findByThriftId(fieldId);
40658     }
40659 
40660     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40661       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40662     }
40663 
40664     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40665       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40666     }
40667 
40668     @Override
40669     public String toString() {
40670       StringBuilder sb = new StringBuilder("deleteAllRowTs_args(");
40671       boolean first = true;
40672 
40673       sb.append("tableName:");
40674       if (this.tableName == null) {
40675         sb.append("null");
40676       } else {
40677         sb.append(this.tableName);
40678       }
40679       first = false;
40680       if (!first) sb.append(", ");
40681       sb.append("row:");
40682       if (this.row == null) {
40683         sb.append("null");
40684       } else {
40685         sb.append(this.row);
40686       }
40687       first = false;
40688       if (!first) sb.append(", ");
40689       sb.append("timestamp:");
40690       sb.append(this.timestamp);
40691       first = false;
40692       if (!first) sb.append(", ");
40693       sb.append("attributes:");
40694       if (this.attributes == null) {
40695         sb.append("null");
40696       } else {
40697         sb.append(this.attributes);
40698       }
40699       first = false;
40700       sb.append(")");
40701       return sb.toString();
40702     }
40703 
40704     public void validate() throws org.apache.thrift.TException {
40705       // check for required fields
40706       // check for sub-struct validity
40707     }
40708 
40709     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40710       try {
40711         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40712       } catch (org.apache.thrift.TException te) {
40713         throw new java.io.IOException(te);
40714       }
40715     }
40716 
40717     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40718       try {
40719         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40720         __isset_bitfield = 0;
40721         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40722       } catch (org.apache.thrift.TException te) {
40723         throw new java.io.IOException(te);
40724       }
40725     }
40726 
40727     private static class deleteAllRowTs_argsStandardSchemeFactory implements SchemeFactory {
40728       public deleteAllRowTs_argsStandardScheme getScheme() {
40729         return new deleteAllRowTs_argsStandardScheme();
40730       }
40731     }
40732 
40733     private static class deleteAllRowTs_argsStandardScheme extends StandardScheme<deleteAllRowTs_args> {
40734 
40735       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40736         org.apache.thrift.protocol.TField schemeField;
40737         iprot.readStructBegin();
40738         while (true)
40739         {
40740           schemeField = iprot.readFieldBegin();
40741           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
40742             break;
40743           }
40744           switch (schemeField.id) {
40745             case 1: // TABLE_NAME
40746               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40747                 struct.tableName = iprot.readBinary();
40748                 struct.setTableNameIsSet(true);
40749               } else { 
40750                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40751               }
40752               break;
40753             case 2: // ROW
40754               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40755                 struct.row = iprot.readBinary();
40756                 struct.setRowIsSet(true);
40757               } else { 
40758                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40759               }
40760               break;
40761             case 3: // TIMESTAMP
40762               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
40763                 struct.timestamp = iprot.readI64();
40764                 struct.setTimestampIsSet(true);
40765               } else { 
40766                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40767               }
40768               break;
40769             case 4: // ATTRIBUTES
40770               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
40771                 {
40772                   org.apache.thrift.protocol.TMap _map456 = iprot.readMapBegin();
40773                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map456.size);
40774                   for (int _i457 = 0; _i457 < _map456.size; ++_i457)
40775                   {
40776                     ByteBuffer _key458; // required
40777                     ByteBuffer _val459; // required
40778                     _key458 = iprot.readBinary();
40779                     _val459 = iprot.readBinary();
40780                     struct.attributes.put(_key458, _val459);
40781                   }
40782                   iprot.readMapEnd();
40783                 }
40784                 struct.setAttributesIsSet(true);
40785               } else { 
40786                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40787               }
40788               break;
40789             default:
40790               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40791           }
40792           iprot.readFieldEnd();
40793         }
40794         iprot.readStructEnd();
40795 
40796         // check for required fields of primitive type, which can't be checked in the validate method
40797         struct.validate();
40798       }
40799 
40800       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40801         struct.validate();
40802 
40803         oprot.writeStructBegin(STRUCT_DESC);
40804         if (struct.tableName != null) {
40805           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
40806           oprot.writeBinary(struct.tableName);
40807           oprot.writeFieldEnd();
40808         }
40809         if (struct.row != null) {
40810           oprot.writeFieldBegin(ROW_FIELD_DESC);
40811           oprot.writeBinary(struct.row);
40812           oprot.writeFieldEnd();
40813         }
40814         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
40815         oprot.writeI64(struct.timestamp);
40816         oprot.writeFieldEnd();
40817         if (struct.attributes != null) {
40818           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
40819           {
40820             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
40821             for (Map.Entry<ByteBuffer, ByteBuffer> _iter460 : struct.attributes.entrySet())
40822             {
40823               oprot.writeBinary(_iter460.getKey());
40824               oprot.writeBinary(_iter460.getValue());
40825             }
40826             oprot.writeMapEnd();
40827           }
40828           oprot.writeFieldEnd();
40829         }
40830         oprot.writeFieldStop();
40831         oprot.writeStructEnd();
40832       }
40833 
40834     }
40835 
40836     private static class deleteAllRowTs_argsTupleSchemeFactory implements SchemeFactory {
40837       public deleteAllRowTs_argsTupleScheme getScheme() {
40838         return new deleteAllRowTs_argsTupleScheme();
40839       }
40840     }
40841 
40842     private static class deleteAllRowTs_argsTupleScheme extends TupleScheme<deleteAllRowTs_args> {
40843 
40844       @Override
40845       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40846         TTupleProtocol oprot = (TTupleProtocol) prot;
40847         BitSet optionals = new BitSet();
40848         if (struct.isSetTableName()) {
40849           optionals.set(0);
40850         }
40851         if (struct.isSetRow()) {
40852           optionals.set(1);
40853         }
40854         if (struct.isSetTimestamp()) {
40855           optionals.set(2);
40856         }
40857         if (struct.isSetAttributes()) {
40858           optionals.set(3);
40859         }
40860         oprot.writeBitSet(optionals, 4);
40861         if (struct.isSetTableName()) {
40862           oprot.writeBinary(struct.tableName);
40863         }
40864         if (struct.isSetRow()) {
40865           oprot.writeBinary(struct.row);
40866         }
40867         if (struct.isSetTimestamp()) {
40868           oprot.writeI64(struct.timestamp);
40869         }
40870         if (struct.isSetAttributes()) {
40871           {
40872             oprot.writeI32(struct.attributes.size());
40873             for (Map.Entry<ByteBuffer, ByteBuffer> _iter461 : struct.attributes.entrySet())
40874             {
40875               oprot.writeBinary(_iter461.getKey());
40876               oprot.writeBinary(_iter461.getValue());
40877             }
40878           }
40879         }
40880       }
40881 
40882       @Override
40883       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40884         TTupleProtocol iprot = (TTupleProtocol) prot;
40885         BitSet incoming = iprot.readBitSet(4);
40886         if (incoming.get(0)) {
40887           struct.tableName = iprot.readBinary();
40888           struct.setTableNameIsSet(true);
40889         }
40890         if (incoming.get(1)) {
40891           struct.row = iprot.readBinary();
40892           struct.setRowIsSet(true);
40893         }
40894         if (incoming.get(2)) {
40895           struct.timestamp = iprot.readI64();
40896           struct.setTimestampIsSet(true);
40897         }
40898         if (incoming.get(3)) {
40899           {
40900             org.apache.thrift.protocol.TMap _map462 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
40901             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map462.size);
40902             for (int _i463 = 0; _i463 < _map462.size; ++_i463)
40903             {
40904               ByteBuffer _key464; // required
40905               ByteBuffer _val465; // required
40906               _key464 = iprot.readBinary();
40907               _val465 = iprot.readBinary();
40908               struct.attributes.put(_key464, _val465);
40909             }
40910           }
40911           struct.setAttributesIsSet(true);
40912         }
40913       }
40914     }
40915 
40916   }
40917 
40918   public static class deleteAllRowTs_result implements org.apache.thrift.TBase<deleteAllRowTs_result, deleteAllRowTs_result._Fields>, java.io.Serializable, Cloneable   {
40919     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_result");
40920 
40921     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
40922 
40923     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40924     static {
40925       schemes.put(StandardScheme.class, new deleteAllRowTs_resultStandardSchemeFactory());
40926       schemes.put(TupleScheme.class, new deleteAllRowTs_resultTupleSchemeFactory());
40927     }
40928 
40929     public IOError io; // required
40930 
40931     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40932     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40933       IO((short)1, "io");
40934 
40935       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40936 
40937       static {
40938         for (_Fields field : EnumSet.allOf(_Fields.class)) {
40939           byName.put(field.getFieldName(), field);
40940         }
40941       }
40942 
40943       /**
40944        * Find the _Fields constant that matches fieldId, or null if its not found.
40945        */
40946       public static _Fields findByThriftId(int fieldId) {
40947         switch(fieldId) {
40948           case 1: // IO
40949             return IO;
40950           default:
40951             return null;
40952         }
40953       }
40954 
40955       /**
40956        * Find the _Fields constant that matches fieldId, throwing an exception
40957        * if it is not found.
40958        */
40959       public static _Fields findByThriftIdOrThrow(int fieldId) {
40960         _Fields fields = findByThriftId(fieldId);
40961         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40962         return fields;
40963       }
40964 
40965       /**
40966        * Find the _Fields constant that matches name, or null if its not found.
40967        */
40968       public static _Fields findByName(String name) {
40969         return byName.get(name);
40970       }
40971 
40972       private final short _thriftId;
40973       private final String _fieldName;
40974 
40975       _Fields(short thriftId, String fieldName) {
40976         _thriftId = thriftId;
40977         _fieldName = fieldName;
40978       }
40979 
40980       public short getThriftFieldId() {
40981         return _thriftId;
40982       }
40983 
40984       public String getFieldName() {
40985         return _fieldName;
40986       }
40987     }
40988 
40989     // isset id assignments
40990     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40991     static {
40992       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40993       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40994           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40995       metaDataMap = Collections.unmodifiableMap(tmpMap);
40996       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_result.class, metaDataMap);
40997     }
40998 
40999     public deleteAllRowTs_result() {
41000     }
41001 
41002     public deleteAllRowTs_result(
41003       IOError io)
41004     {
41005       this();
41006       this.io = io;
41007     }
41008 
41009     /**
41010      * Performs a deep copy on <i>other</i>.
41011      */
41012     public deleteAllRowTs_result(deleteAllRowTs_result other) {
41013       if (other.isSetIo()) {
41014         this.io = new IOError(other.io);
41015       }
41016     }
41017 
41018     public deleteAllRowTs_result deepCopy() {
41019       return new deleteAllRowTs_result(this);
41020     }
41021 
41022     @Override
41023     public void clear() {
41024       this.io = null;
41025     }
41026 
41027     public IOError getIo() {
41028       return this.io;
41029     }
41030 
41031     public deleteAllRowTs_result setIo(IOError io) {
41032       this.io = io;
41033       return this;
41034     }
41035 
41036     public void unsetIo() {
41037       this.io = null;
41038     }
41039 
41040     /** Returns true if field io is set (has been assigned a value) and false otherwise */
41041     public boolean isSetIo() {
41042       return this.io != null;
41043     }
41044 
41045     public void setIoIsSet(boolean value) {
41046       if (!value) {
41047         this.io = null;
41048       }
41049     }
41050 
41051     public void setFieldValue(_Fields field, Object value) {
41052       switch (field) {
41053       case IO:
41054         if (value == null) {
41055           unsetIo();
41056         } else {
41057           setIo((IOError)value);
41058         }
41059         break;
41060 
41061       }
41062     }
41063 
41064     public Object getFieldValue(_Fields field) {
41065       switch (field) {
41066       case IO:
41067         return getIo();
41068 
41069       }
41070       throw new IllegalStateException();
41071     }
41072 
41073     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41074     public boolean isSet(_Fields field) {
41075       if (field == null) {
41076         throw new IllegalArgumentException();
41077       }
41078 
41079       switch (field) {
41080       case IO:
41081         return isSetIo();
41082       }
41083       throw new IllegalStateException();
41084     }
41085 
41086     @Override
41087     public boolean equals(Object that) {
41088       if (that == null)
41089         return false;
41090       if (that instanceof deleteAllRowTs_result)
41091         return this.equals((deleteAllRowTs_result)that);
41092       return false;
41093     }
41094 
41095     public boolean equals(deleteAllRowTs_result that) {
41096       if (that == null)
41097         return false;
41098 
41099       boolean this_present_io = true && this.isSetIo();
41100       boolean that_present_io = true && that.isSetIo();
41101       if (this_present_io || that_present_io) {
41102         if (!(this_present_io && that_present_io))
41103           return false;
41104         if (!this.io.equals(that.io))
41105           return false;
41106       }
41107 
41108       return true;
41109     }
41110 
41111     @Override
41112     public int hashCode() {
41113       HashCodeBuilder builder = new HashCodeBuilder();
41114 
41115       boolean present_io = true && (isSetIo());
41116       builder.append(present_io);
41117       if (present_io)
41118         builder.append(io);
41119 
41120       return builder.toHashCode();
41121     }
41122 
41123     public int compareTo(deleteAllRowTs_result other) {
41124       if (!getClass().equals(other.getClass())) {
41125         return getClass().getName().compareTo(other.getClass().getName());
41126       }
41127 
41128       int lastComparison = 0;
41129       deleteAllRowTs_result typedOther = (deleteAllRowTs_result)other;
41130 
41131       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
41132       if (lastComparison != 0) {
41133         return lastComparison;
41134       }
41135       if (isSetIo()) {
41136         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
41137         if (lastComparison != 0) {
41138           return lastComparison;
41139         }
41140       }
41141       return 0;
41142     }
41143 
41144     public _Fields fieldForId(int fieldId) {
41145       return _Fields.findByThriftId(fieldId);
41146     }
41147 
41148     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41149       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41150     }
41151 
41152     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41153       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41154       }
41155 
41156     @Override
41157     public String toString() {
41158       StringBuilder sb = new StringBuilder("deleteAllRowTs_result(");
41159       boolean first = true;
41160 
41161       sb.append("io:");
41162       if (this.io == null) {
41163         sb.append("null");
41164       } else {
41165         sb.append(this.io);
41166       }
41167       first = false;
41168       sb.append(")");
41169       return sb.toString();
41170     }
41171 
41172     public void validate() throws org.apache.thrift.TException {
41173       // check for required fields
41174       // check for sub-struct validity
41175     }
41176 
41177     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41178       try {
41179         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41180       } catch (org.apache.thrift.TException te) {
41181         throw new java.io.IOException(te);
41182       }
41183     }
41184 
41185     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41186       try {
41187         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41188       } catch (org.apache.thrift.TException te) {
41189         throw new java.io.IOException(te);
41190       }
41191     }
41192 
41193     private static class deleteAllRowTs_resultStandardSchemeFactory implements SchemeFactory {
41194       public deleteAllRowTs_resultStandardScheme getScheme() {
41195         return new deleteAllRowTs_resultStandardScheme();
41196       }
41197     }
41198 
41199     private static class deleteAllRowTs_resultStandardScheme extends StandardScheme<deleteAllRowTs_result> {
41200 
41201       public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41202         org.apache.thrift.protocol.TField schemeField;
41203         iprot.readStructBegin();
41204         while (true)
41205         {
41206           schemeField = iprot.readFieldBegin();
41207           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
41208             break;
41209           }
41210           switch (schemeField.id) {
41211             case 1: // IO
41212               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41213                 struct.io = new IOError();
41214                 struct.io.read(iprot);
41215                 struct.setIoIsSet(true);
41216               } else { 
41217                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41218               }
41219               break;
41220             default:
41221               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41222           }
41223           iprot.readFieldEnd();
41224         }
41225         iprot.readStructEnd();
41226 
41227         // check for required fields of primitive type, which can't be checked in the validate method
41228         struct.validate();
41229       }
41230 
41231       public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41232         struct.validate();
41233 
41234         oprot.writeStructBegin(STRUCT_DESC);
41235         if (struct.io != null) {
41236           oprot.writeFieldBegin(IO_FIELD_DESC);
41237           struct.io.write(oprot);
41238           oprot.writeFieldEnd();
41239         }
41240         oprot.writeFieldStop();
41241         oprot.writeStructEnd();
41242       }
41243 
41244     }
41245 
41246     private static class deleteAllRowTs_resultTupleSchemeFactory implements SchemeFactory {
41247       public deleteAllRowTs_resultTupleScheme getScheme() {
41248         return new deleteAllRowTs_resultTupleScheme();
41249       }
41250     }
41251 
41252     private static class deleteAllRowTs_resultTupleScheme extends TupleScheme<deleteAllRowTs_result> {
41253 
41254       @Override
41255       public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41256         TTupleProtocol oprot = (TTupleProtocol) prot;
41257         BitSet optionals = new BitSet();
41258         if (struct.isSetIo()) {
41259           optionals.set(0);
41260         }
41261         oprot.writeBitSet(optionals, 1);
41262         if (struct.isSetIo()) {
41263           struct.io.write(oprot);
41264         }
41265       }
41266 
41267       @Override
41268       public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41269         TTupleProtocol iprot = (TTupleProtocol) prot;
41270         BitSet incoming = iprot.readBitSet(1);
41271         if (incoming.get(0)) {
41272           struct.io = new IOError();
41273           struct.io.read(iprot);
41274           struct.setIoIsSet(true);
41275         }
41276       }
41277     }
41278 
41279   }
41280 
41281   public static class scannerOpenWithScan_args implements org.apache.thrift.TBase<scannerOpenWithScan_args, scannerOpenWithScan_args._Fields>, java.io.Serializable, Cloneable   {
41282     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_args");
41283 
41284     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
41285     private static final org.apache.thrift.protocol.TField SCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("scan", org.apache.thrift.protocol.TType.STRUCT, (short)2);
41286     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
41287 
41288     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41289     static {
41290       schemes.put(StandardScheme.class, new scannerOpenWithScan_argsStandardSchemeFactory());
41291       schemes.put(TupleScheme.class, new scannerOpenWithScan_argsTupleSchemeFactory());
41292     }
41293 
41294     /**
41295      * name of table
41296      */
41297     public ByteBuffer tableName; // required
41298     /**
41299      * Scan instance
41300      */
41301     public TScan scan; // required
41302     /**
41303      * Scan attributes
41304      */
41305     public Map<ByteBuffer,ByteBuffer> attributes; // required
41306 
41307     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41308     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41309       /**
41310        * name of table
41311        */
41312       TABLE_NAME((short)1, "tableName"),
41313       /**
41314        * Scan instance
41315        */
41316       SCAN((short)2, "scan"),
41317       /**
41318        * Scan attributes
41319        */
41320       ATTRIBUTES((short)3, "attributes");
41321 
41322       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41323 
41324       static {
41325         for (_Fields field : EnumSet.allOf(_Fields.class)) {
41326           byName.put(field.getFieldName(), field);
41327         }
41328       }
41329 
41330       /**
41331        * Find the _Fields constant that matches fieldId, or null if its not found.
41332        */
41333       public static _Fields findByThriftId(int fieldId) {
41334         switch(fieldId) {
41335           case 1: // TABLE_NAME
41336             return TABLE_NAME;
41337           case 2: // SCAN
41338             return SCAN;
41339           case 3: // ATTRIBUTES
41340             return ATTRIBUTES;
41341           default:
41342             return null;
41343         }
41344       }
41345 
41346       /**
41347        * Find the _Fields constant that matches fieldId, throwing an exception
41348        * if it is not found.
41349        */
41350       public static _Fields findByThriftIdOrThrow(int fieldId) {
41351         _Fields fields = findByThriftId(fieldId);
41352         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41353         return fields;
41354       }
41355 
41356       /**
41357        * Find the _Fields constant that matches name, or null if its not found.
41358        */
41359       public static _Fields findByName(String name) {
41360         return byName.get(name);
41361       }
41362 
41363       private final short _thriftId;
41364       private final String _fieldName;
41365 
41366       _Fields(short thriftId, String fieldName) {
41367         _thriftId = thriftId;
41368         _fieldName = fieldName;
41369       }
41370 
41371       public short getThriftFieldId() {
41372         return _thriftId;
41373       }
41374 
41375       public String getFieldName() {
41376         return _fieldName;
41377       }
41378     }
41379 
41380     // isset id assignments
41381     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41382     static {
41383       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41384       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41385           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
41386       tmpMap.put(_Fields.SCAN, new org.apache.thrift.meta_data.FieldMetaData("scan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41387           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class)));
41388       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41389           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
41390               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
41391               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
41392       metaDataMap = Collections.unmodifiableMap(tmpMap);
41393       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_args.class, metaDataMap);
41394     }
41395 
41396     public scannerOpenWithScan_args() {
41397     }
41398 
41399     public scannerOpenWithScan_args(
41400       ByteBuffer tableName,
41401       TScan scan,
41402       Map<ByteBuffer,ByteBuffer> attributes)
41403     {
41404       this();
41405       this.tableName = tableName;
41406       this.scan = scan;
41407       this.attributes = attributes;
41408     }
41409 
41410     /**
41411      * Performs a deep copy on <i>other</i>.
41412      */
41413     public scannerOpenWithScan_args(scannerOpenWithScan_args other) {
41414       if (other.isSetTableName()) {
41415         this.tableName = other.tableName;
41416       }
41417       if (other.isSetScan()) {
41418         this.scan = new TScan(other.scan);
41419       }
41420       if (other.isSetAttributes()) {
41421         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
41422         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
41423 
41424           ByteBuffer other_element_key = other_element.getKey();
41425           ByteBuffer other_element_value = other_element.getValue();
41426 
41427           ByteBuffer __this__attributes_copy_key = other_element_key;
41428 
41429           ByteBuffer __this__attributes_copy_value = other_element_value;
41430 
41431           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
41432         }
41433         this.attributes = __this__attributes;
41434       }
41435     }
41436 
41437     public scannerOpenWithScan_args deepCopy() {
41438       return new scannerOpenWithScan_args(this);
41439     }
41440 
41441     @Override
41442     public void clear() {
41443       this.tableName = null;
41444       this.scan = null;
41445       this.attributes = null;
41446     }
41447 
41448     /**
41449      * name of table
41450      */
41451     public byte[] getTableName() {
41452       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
41453       return tableName == null ? null : tableName.array();
41454     }
41455 
41456     public ByteBuffer bufferForTableName() {
41457       return tableName;
41458     }
41459 
41460     /**
41461      * name of table
41462      */
41463     public scannerOpenWithScan_args setTableName(byte[] tableName) {
41464       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
41465       return this;
41466     }
41467 
41468     public scannerOpenWithScan_args setTableName(ByteBuffer tableName) {
41469       this.tableName = tableName;
41470       return this;
41471     }
41472 
41473     public void unsetTableName() {
41474       this.tableName = null;
41475     }
41476 
41477     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
41478     public boolean isSetTableName() {
41479       return this.tableName != null;
41480     }
41481 
41482     public void setTableNameIsSet(boolean value) {
41483       if (!value) {
41484         this.tableName = null;
41485       }
41486     }
41487 
41488     /**
41489      * Scan instance
41490      */
41491     public TScan getScan() {
41492       return this.scan;
41493     }
41494 
41495     /**
41496      * Scan instance
41497      */
41498     public scannerOpenWithScan_args setScan(TScan scan) {
41499       this.scan = scan;
41500       return this;
41501     }
41502 
41503     public void unsetScan() {
41504       this.scan = null;
41505     }
41506 
41507     /** Returns true if field scan is set (has been assigned a value) and false otherwise */
41508     public boolean isSetScan() {
41509       return this.scan != null;
41510     }
41511 
41512     public void setScanIsSet(boolean value) {
41513       if (!value) {
41514         this.scan = null;
41515       }
41516     }
41517 
41518     public int getAttributesSize() {
41519       return (this.attributes == null) ? 0 : this.attributes.size();
41520     }
41521 
41522     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
41523       if (this.attributes == null) {
41524         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
41525       }
41526       this.attributes.put(key, val);
41527     }
41528 
41529     /**
41530      * Scan attributes
41531      */
41532     public Map<ByteBuffer,ByteBuffer> getAttributes() {
41533       return this.attributes;
41534     }
41535 
41536     /**
41537      * Scan attributes
41538      */
41539     public scannerOpenWithScan_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
41540       this.attributes = attributes;
41541       return this;
41542     }
41543 
41544     public void unsetAttributes() {
41545       this.attributes = null;
41546     }
41547 
41548     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
41549     public boolean isSetAttributes() {
41550       return this.attributes != null;
41551     }
41552 
41553     public void setAttributesIsSet(boolean value) {
41554       if (!value) {
41555         this.attributes = null;
41556       }
41557     }
41558 
41559     public void setFieldValue(_Fields field, Object value) {
41560       switch (field) {
41561       case TABLE_NAME:
41562         if (value == null) {
41563           unsetTableName();
41564         } else {
41565           setTableName((ByteBuffer)value);
41566         }
41567         break;
41568 
41569       case SCAN:
41570         if (value == null) {
41571           unsetScan();
41572         } else {
41573           setScan((TScan)value);
41574         }
41575         break;
41576 
41577       case ATTRIBUTES:
41578         if (value == null) {
41579           unsetAttributes();
41580         } else {
41581           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
41582         }
41583         break;
41584 
41585       }
41586     }
41587 
41588     public Object getFieldValue(_Fields field) {
41589       switch (field) {
41590       case TABLE_NAME:
41591         return getTableName();
41592 
41593       case SCAN:
41594         return getScan();
41595 
41596       case ATTRIBUTES:
41597         return getAttributes();
41598 
41599       }
41600       throw new IllegalStateException();
41601     }
41602 
41603     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41604     public boolean isSet(_Fields field) {
41605       if (field == null) {
41606         throw new IllegalArgumentException();
41607       }
41608 
41609       switch (field) {
41610       case TABLE_NAME:
41611         return isSetTableName();
41612       case SCAN:
41613         return isSetScan();
41614       case ATTRIBUTES:
41615         return isSetAttributes();
41616       }
41617       throw new IllegalStateException();
41618     }
41619 
41620     @Override
41621     public boolean equals(Object that) {
41622       if (that == null)
41623         return false;
41624       if (that instanceof scannerOpenWithScan_args)
41625         return this.equals((scannerOpenWithScan_args)that);
41626       return false;
41627     }
41628 
41629     public boolean equals(scannerOpenWithScan_args that) {
41630       if (that == null)
41631         return false;
41632 
41633       boolean this_present_tableName = true && this.isSetTableName();
41634       boolean that_present_tableName = true && that.isSetTableName();
41635       if (this_present_tableName || that_present_tableName) {
41636         if (!(this_present_tableName && that_present_tableName))
41637           return false;
41638         if (!this.tableName.equals(that.tableName))
41639           return false;
41640       }
41641 
41642       boolean this_present_scan = true && this.isSetScan();
41643       boolean that_present_scan = true && that.isSetScan();
41644       if (this_present_scan || that_present_scan) {
41645         if (!(this_present_scan && that_present_scan))
41646           return false;
41647         if (!this.scan.equals(that.scan))
41648           return false;
41649       }
41650 
41651       boolean this_present_attributes = true && this.isSetAttributes();
41652       boolean that_present_attributes = true && that.isSetAttributes();
41653       if (this_present_attributes || that_present_attributes) {
41654         if (!(this_present_attributes && that_present_attributes))
41655           return false;
41656         if (!this.attributes.equals(that.attributes))
41657           return false;
41658       }
41659 
41660       return true;
41661     }
41662 
41663     @Override
41664     public int hashCode() {
41665       HashCodeBuilder builder = new HashCodeBuilder();
41666 
41667       boolean present_tableName = true && (isSetTableName());
41668       builder.append(present_tableName);
41669       if (present_tableName)
41670         builder.append(tableName);
41671 
41672       boolean present_scan = true && (isSetScan());
41673       builder.append(present_scan);
41674       if (present_scan)
41675         builder.append(scan);
41676 
41677       boolean present_attributes = true && (isSetAttributes());
41678       builder.append(present_attributes);
41679       if (present_attributes)
41680         builder.append(attributes);
41681 
41682       return builder.toHashCode();
41683     }
41684 
41685     public int compareTo(scannerOpenWithScan_args other) {
41686       if (!getClass().equals(other.getClass())) {
41687         return getClass().getName().compareTo(other.getClass().getName());
41688       }
41689 
41690       int lastComparison = 0;
41691       scannerOpenWithScan_args typedOther = (scannerOpenWithScan_args)other;
41692 
41693       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
41694       if (lastComparison != 0) {
41695         return lastComparison;
41696       }
41697       if (isSetTableName()) {
41698         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
41699         if (lastComparison != 0) {
41700           return lastComparison;
41701         }
41702       }
41703       lastComparison = Boolean.valueOf(isSetScan()).compareTo(typedOther.isSetScan());
41704       if (lastComparison != 0) {
41705         return lastComparison;
41706       }
41707       if (isSetScan()) {
41708         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, typedOther.scan);
41709         if (lastComparison != 0) {
41710           return lastComparison;
41711         }
41712       }
41713       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
41714       if (lastComparison != 0) {
41715         return lastComparison;
41716       }
41717       if (isSetAttributes()) {
41718         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
41719         if (lastComparison != 0) {
41720           return lastComparison;
41721         }
41722       }
41723       return 0;
41724     }
41725 
41726     public _Fields fieldForId(int fieldId) {
41727       return _Fields.findByThriftId(fieldId);
41728     }
41729 
41730     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41731       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41732     }
41733 
41734     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41735       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41736     }
41737 
41738     @Override
41739     public String toString() {
41740       StringBuilder sb = new StringBuilder("scannerOpenWithScan_args(");
41741       boolean first = true;
41742 
41743       sb.append("tableName:");
41744       if (this.tableName == null) {
41745         sb.append("null");
41746       } else {
41747         sb.append(this.tableName);
41748       }
41749       first = false;
41750       if (!first) sb.append(", ");
41751       sb.append("scan:");
41752       if (this.scan == null) {
41753         sb.append("null");
41754       } else {
41755         sb.append(this.scan);
41756       }
41757       first = false;
41758       if (!first) sb.append(", ");
41759       sb.append("attributes:");
41760       if (this.attributes == null) {
41761         sb.append("null");
41762       } else {
41763         sb.append(this.attributes);
41764       }
41765       first = false;
41766       sb.append(")");
41767       return sb.toString();
41768     }
41769 
41770     public void validate() throws org.apache.thrift.TException {
41771       // check for required fields
41772       // check for sub-struct validity
41773       if (scan != null) {
41774         scan.validate();
41775       }
41776     }
41777 
41778     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41779       try {
41780         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41781       } catch (org.apache.thrift.TException te) {
41782         throw new java.io.IOException(te);
41783       }
41784     }
41785 
41786     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41787       try {
41788         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41789       } catch (org.apache.thrift.TException te) {
41790         throw new java.io.IOException(te);
41791       }
41792     }
41793 
41794     private static class scannerOpenWithScan_argsStandardSchemeFactory implements SchemeFactory {
41795       public scannerOpenWithScan_argsStandardScheme getScheme() {
41796         return new scannerOpenWithScan_argsStandardScheme();
41797       }
41798     }
41799 
41800     private static class scannerOpenWithScan_argsStandardScheme extends StandardScheme<scannerOpenWithScan_args> {
41801 
41802       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41803         org.apache.thrift.protocol.TField schemeField;
41804         iprot.readStructBegin();
41805         while (true)
41806         {
41807           schemeField = iprot.readFieldBegin();
41808           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
41809             break;
41810           }
41811           switch (schemeField.id) {
41812             case 1: // TABLE_NAME
41813               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
41814                 struct.tableName = iprot.readBinary();
41815                 struct.setTableNameIsSet(true);
41816               } else { 
41817                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41818               }
41819               break;
41820             case 2: // SCAN
41821               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41822                 struct.scan = new TScan();
41823                 struct.scan.read(iprot);
41824                 struct.setScanIsSet(true);
41825               } else { 
41826                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41827               }
41828               break;
41829             case 3: // ATTRIBUTES
41830               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
41831                 {
41832                   org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin();
41833                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map466.size);
41834                   for (int _i467 = 0; _i467 < _map466.size; ++_i467)
41835                   {
41836                     ByteBuffer _key468; // required
41837                     ByteBuffer _val469; // required
41838                     _key468 = iprot.readBinary();
41839                     _val469 = iprot.readBinary();
41840                     struct.attributes.put(_key468, _val469);
41841                   }
41842                   iprot.readMapEnd();
41843                 }
41844                 struct.setAttributesIsSet(true);
41845               } else { 
41846                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41847               }
41848               break;
41849             default:
41850               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41851           }
41852           iprot.readFieldEnd();
41853         }
41854         iprot.readStructEnd();
41855 
41856         // check for required fields of primitive type, which can't be checked in the validate method
41857         struct.validate();
41858       }
41859 
41860       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41861         struct.validate();
41862 
41863         oprot.writeStructBegin(STRUCT_DESC);
41864         if (struct.tableName != null) {
41865           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
41866           oprot.writeBinary(struct.tableName);
41867           oprot.writeFieldEnd();
41868         }
41869         if (struct.scan != null) {
41870           oprot.writeFieldBegin(SCAN_FIELD_DESC);
41871           struct.scan.write(oprot);
41872           oprot.writeFieldEnd();
41873         }
41874         if (struct.attributes != null) {
41875           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
41876           {
41877             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
41878             for (Map.Entry<ByteBuffer, ByteBuffer> _iter470 : struct.attributes.entrySet())
41879             {
41880               oprot.writeBinary(_iter470.getKey());
41881               oprot.writeBinary(_iter470.getValue());
41882             }
41883             oprot.writeMapEnd();
41884           }
41885           oprot.writeFieldEnd();
41886         }
41887         oprot.writeFieldStop();
41888         oprot.writeStructEnd();
41889       }
41890 
41891     }
41892 
41893     private static class scannerOpenWithScan_argsTupleSchemeFactory implements SchemeFactory {
41894       public scannerOpenWithScan_argsTupleScheme getScheme() {
41895         return new scannerOpenWithScan_argsTupleScheme();
41896       }
41897     }
41898 
41899     private static class scannerOpenWithScan_argsTupleScheme extends TupleScheme<scannerOpenWithScan_args> {
41900 
41901       @Override
41902       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41903         TTupleProtocol oprot = (TTupleProtocol) prot;
41904         BitSet optionals = new BitSet();
41905         if (struct.isSetTableName()) {
41906           optionals.set(0);
41907         }
41908         if (struct.isSetScan()) {
41909           optionals.set(1);
41910         }
41911         if (struct.isSetAttributes()) {
41912           optionals.set(2);
41913         }
41914         oprot.writeBitSet(optionals, 3);
41915         if (struct.isSetTableName()) {
41916           oprot.writeBinary(struct.tableName);
41917         }
41918         if (struct.isSetScan()) {
41919           struct.scan.write(oprot);
41920         }
41921         if (struct.isSetAttributes()) {
41922           {
41923             oprot.writeI32(struct.attributes.size());
41924             for (Map.Entry<ByteBuffer, ByteBuffer> _iter471 : struct.attributes.entrySet())
41925             {
41926               oprot.writeBinary(_iter471.getKey());
41927               oprot.writeBinary(_iter471.getValue());
41928             }
41929           }
41930         }
41931       }
41932 
41933       @Override
41934       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41935         TTupleProtocol iprot = (TTupleProtocol) prot;
41936         BitSet incoming = iprot.readBitSet(3);
41937         if (incoming.get(0)) {
41938           struct.tableName = iprot.readBinary();
41939           struct.setTableNameIsSet(true);
41940         }
41941         if (incoming.get(1)) {
41942           struct.scan = new TScan();
41943           struct.scan.read(iprot);
41944           struct.setScanIsSet(true);
41945         }
41946         if (incoming.get(2)) {
41947           {
41948             org.apache.thrift.protocol.TMap _map472 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
41949             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map472.size);
41950             for (int _i473 = 0; _i473 < _map472.size; ++_i473)
41951             {
41952               ByteBuffer _key474; // required
41953               ByteBuffer _val475; // required
41954               _key474 = iprot.readBinary();
41955               _val475 = iprot.readBinary();
41956               struct.attributes.put(_key474, _val475);
41957             }
41958           }
41959           struct.setAttributesIsSet(true);
41960         }
41961       }
41962     }
41963 
41964   }
41965 
41966   public static class scannerOpenWithScan_result implements org.apache.thrift.TBase<scannerOpenWithScan_result, scannerOpenWithScan_result._Fields>, java.io.Serializable, Cloneable   {
41967     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_result");
41968 
41969     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
41970     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
41971 
41972     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41973     static {
41974       schemes.put(StandardScheme.class, new scannerOpenWithScan_resultStandardSchemeFactory());
41975       schemes.put(TupleScheme.class, new scannerOpenWithScan_resultTupleSchemeFactory());
41976     }
41977 
41978     public int success; // required
41979     public IOError io; // required
41980 
41981     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41982     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41983       SUCCESS((short)0, "success"),
41984       IO((short)1, "io");
41985 
41986       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41987 
41988       static {
41989         for (_Fields field : EnumSet.allOf(_Fields.class)) {
41990           byName.put(field.getFieldName(), field);
41991         }
41992       }
41993 
41994       /**
41995        * Find the _Fields constant that matches fieldId, or null if its not found.
41996        */
41997       public static _Fields findByThriftId(int fieldId) {
41998         switch(fieldId) {
41999           case 0: // SUCCESS
42000             return SUCCESS;
42001           case 1: // IO
42002             return IO;
42003           default:
42004             return null;
42005         }
42006       }
42007 
42008       /**
42009        * Find the _Fields constant that matches fieldId, throwing an exception
42010        * if it is not found.
42011        */
42012       public static _Fields findByThriftIdOrThrow(int fieldId) {
42013         _Fields fields = findByThriftId(fieldId);
42014         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42015         return fields;
42016       }
42017 
42018       /**
42019        * Find the _Fields constant that matches name, or null if its not found.
42020        */
42021       public static _Fields findByName(String name) {
42022         return byName.get(name);
42023       }
42024 
42025       private final short _thriftId;
42026       private final String _fieldName;
42027 
42028       _Fields(short thriftId, String fieldName) {
42029         _thriftId = thriftId;
42030         _fieldName = fieldName;
42031       }
42032 
42033       public short getThriftFieldId() {
42034         return _thriftId;
42035       }
42036 
42037       public String getFieldName() {
42038         return _fieldName;
42039       }
42040     }
42041 
42042     // isset id assignments
42043     private static final int __SUCCESS_ISSET_ID = 0;
42044     private byte __isset_bitfield = 0;
42045     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42046     static {
42047       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42048       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42049           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
42050       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42051           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42052       metaDataMap = Collections.unmodifiableMap(tmpMap);
42053       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_result.class, metaDataMap);
42054     }
42055 
42056     public scannerOpenWithScan_result() {
42057     }
42058 
42059     public scannerOpenWithScan_result(
42060       int success,
42061       IOError io)
42062     {
42063       this();
42064       this.success = success;
42065       setSuccessIsSet(true);
42066       this.io = io;
42067     }
42068 
42069     /**
42070      * Performs a deep copy on <i>other</i>.
42071      */
42072     public scannerOpenWithScan_result(scannerOpenWithScan_result other) {
42073       __isset_bitfield = other.__isset_bitfield;
42074       this.success = other.success;
42075       if (other.isSetIo()) {
42076         this.io = new IOError(other.io);
42077       }
42078     }
42079 
42080     public scannerOpenWithScan_result deepCopy() {
42081       return new scannerOpenWithScan_result(this);
42082     }
42083 
42084     @Override
42085     public void clear() {
42086       setSuccessIsSet(false);
42087       this.success = 0;
42088       this.io = null;
42089     }
42090 
42091     public int getSuccess() {
42092       return this.success;
42093     }
42094 
42095     public scannerOpenWithScan_result setSuccess(int success) {
42096       this.success = success;
42097       setSuccessIsSet(true);
42098       return this;
42099     }
42100 
42101     public void unsetSuccess() {
42102       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
42103     }
42104 
42105     /** Returns true if field success is set (has been assigned a value) and false otherwise */
42106     public boolean isSetSuccess() {
42107       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
42108     }
42109 
42110     public void setSuccessIsSet(boolean value) {
42111       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
42112     }
42113 
42114     public IOError getIo() {
42115       return this.io;
42116     }
42117 
42118     public scannerOpenWithScan_result setIo(IOError io) {
42119       this.io = io;
42120       return this;
42121     }
42122 
42123     public void unsetIo() {
42124       this.io = null;
42125     }
42126 
42127     /** Returns true if field io is set (has been assigned a value) and false otherwise */
42128     public boolean isSetIo() {
42129       return this.io != null;
42130     }
42131 
42132     public void setIoIsSet(boolean value) {
42133       if (!value) {
42134         this.io = null;
42135       }
42136     }
42137 
42138     public void setFieldValue(_Fields field, Object value) {
42139       switch (field) {
42140       case SUCCESS:
42141         if (value == null) {
42142           unsetSuccess();
42143         } else {
42144           setSuccess((Integer)value);
42145         }
42146         break;
42147 
42148       case IO:
42149         if (value == null) {
42150           unsetIo();
42151         } else {
42152           setIo((IOError)value);
42153         }
42154         break;
42155 
42156       }
42157     }
42158 
42159     public Object getFieldValue(_Fields field) {
42160       switch (field) {
42161       case SUCCESS:
42162         return Integer.valueOf(getSuccess());
42163 
42164       case IO:
42165         return getIo();
42166 
42167       }
42168       throw new IllegalStateException();
42169     }
42170 
42171     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42172     public boolean isSet(_Fields field) {
42173       if (field == null) {
42174         throw new IllegalArgumentException();
42175       }
42176 
42177       switch (field) {
42178       case SUCCESS:
42179         return isSetSuccess();
42180       case IO:
42181         return isSetIo();
42182       }
42183       throw new IllegalStateException();
42184     }
42185 
42186     @Override
42187     public boolean equals(Object that) {
42188       if (that == null)
42189         return false;
42190       if (that instanceof scannerOpenWithScan_result)
42191         return this.equals((scannerOpenWithScan_result)that);
42192       return false;
42193     }
42194 
42195     public boolean equals(scannerOpenWithScan_result that) {
42196       if (that == null)
42197         return false;
42198 
42199       boolean this_present_success = true;
42200       boolean that_present_success = true;
42201       if (this_present_success || that_present_success) {
42202         if (!(this_present_success && that_present_success))
42203           return false;
42204         if (this.success != that.success)
42205           return false;
42206       }
42207 
42208       boolean this_present_io = true && this.isSetIo();
42209       boolean that_present_io = true && that.isSetIo();
42210       if (this_present_io || that_present_io) {
42211         if (!(this_present_io && that_present_io))
42212           return false;
42213         if (!this.io.equals(that.io))
42214           return false;
42215       }
42216 
42217       return true;
42218     }
42219 
42220     @Override
42221     public int hashCode() {
42222       HashCodeBuilder builder = new HashCodeBuilder();
42223 
42224       boolean present_success = true;
42225       builder.append(present_success);
42226       if (present_success)
42227         builder.append(success);
42228 
42229       boolean present_io = true && (isSetIo());
42230       builder.append(present_io);
42231       if (present_io)
42232         builder.append(io);
42233 
42234       return builder.toHashCode();
42235     }
42236 
42237     public int compareTo(scannerOpenWithScan_result other) {
42238       if (!getClass().equals(other.getClass())) {
42239         return getClass().getName().compareTo(other.getClass().getName());
42240       }
42241 
42242       int lastComparison = 0;
42243       scannerOpenWithScan_result typedOther = (scannerOpenWithScan_result)other;
42244 
42245       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42246       if (lastComparison != 0) {
42247         return lastComparison;
42248       }
42249       if (isSetSuccess()) {
42250         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42251         if (lastComparison != 0) {
42252           return lastComparison;
42253         }
42254       }
42255       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
42256       if (lastComparison != 0) {
42257         return lastComparison;
42258       }
42259       if (isSetIo()) {
42260         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
42261         if (lastComparison != 0) {
42262           return lastComparison;
42263         }
42264       }
42265       return 0;
42266     }
42267 
42268     public _Fields fieldForId(int fieldId) {
42269       return _Fields.findByThriftId(fieldId);
42270     }
42271 
42272     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42273       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
42274     }
42275 
42276     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42277       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
42278       }
42279 
42280     @Override
42281     public String toString() {
42282       StringBuilder sb = new StringBuilder("scannerOpenWithScan_result(");
42283       boolean first = true;
42284 
42285       sb.append("success:");
42286       sb.append(this.success);
42287       first = false;
42288       if (!first) sb.append(", ");
42289       sb.append("io:");
42290       if (this.io == null) {
42291         sb.append("null");
42292       } else {
42293         sb.append(this.io);
42294       }
42295       first = false;
42296       sb.append(")");
42297       return sb.toString();
42298     }
42299 
42300     public void validate() throws org.apache.thrift.TException {
42301       // check for required fields
42302       // check for sub-struct validity
42303     }
42304 
42305     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42306       try {
42307         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42308       } catch (org.apache.thrift.TException te) {
42309         throw new java.io.IOException(te);
42310       }
42311     }
42312 
42313     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42314       try {
42315         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42316         __isset_bitfield = 0;
42317         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42318       } catch (org.apache.thrift.TException te) {
42319         throw new java.io.IOException(te);
42320       }
42321     }
42322 
42323     private static class scannerOpenWithScan_resultStandardSchemeFactory implements SchemeFactory {
42324       public scannerOpenWithScan_resultStandardScheme getScheme() {
42325         return new scannerOpenWithScan_resultStandardScheme();
42326       }
42327     }
42328 
42329     private static class scannerOpenWithScan_resultStandardScheme extends StandardScheme<scannerOpenWithScan_result> {
42330 
42331       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42332         org.apache.thrift.protocol.TField schemeField;
42333         iprot.readStructBegin();
42334         while (true)
42335         {
42336           schemeField = iprot.readFieldBegin();
42337           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
42338             break;
42339           }
42340           switch (schemeField.id) {
42341             case 0: // SUCCESS
42342               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
42343                 struct.success = iprot.readI32();
42344                 struct.setSuccessIsSet(true);
42345               } else { 
42346                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42347               }
42348               break;
42349             case 1: // IO
42350               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
42351                 struct.io = new IOError();
42352                 struct.io.read(iprot);
42353                 struct.setIoIsSet(true);
42354               } else { 
42355                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42356               }
42357               break;
42358             default:
42359               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42360           }
42361           iprot.readFieldEnd();
42362         }
42363         iprot.readStructEnd();
42364 
42365         // check for required fields of primitive type, which can't be checked in the validate method
42366         struct.validate();
42367       }
42368 
42369       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42370         struct.validate();
42371 
42372         oprot.writeStructBegin(STRUCT_DESC);
42373         if (struct.isSetSuccess()) {
42374           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42375           oprot.writeI32(struct.success);
42376           oprot.writeFieldEnd();
42377         }
42378         if (struct.io != null) {
42379           oprot.writeFieldBegin(IO_FIELD_DESC);
42380           struct.io.write(oprot);
42381           oprot.writeFieldEnd();
42382         }
42383         oprot.writeFieldStop();
42384         oprot.writeStructEnd();
42385       }
42386 
42387     }
42388 
42389     private static class scannerOpenWithScan_resultTupleSchemeFactory implements SchemeFactory {
42390       public scannerOpenWithScan_resultTupleScheme getScheme() {
42391         return new scannerOpenWithScan_resultTupleScheme();
42392       }
42393     }
42394 
42395     private static class scannerOpenWithScan_resultTupleScheme extends TupleScheme<scannerOpenWithScan_result> {
42396 
42397       @Override
42398       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42399         TTupleProtocol oprot = (TTupleProtocol) prot;
42400         BitSet optionals = new BitSet();
42401         if (struct.isSetSuccess()) {
42402           optionals.set(0);
42403         }
42404         if (struct.isSetIo()) {
42405           optionals.set(1);
42406         }
42407         oprot.writeBitSet(optionals, 2);
42408         if (struct.isSetSuccess()) {
42409           oprot.writeI32(struct.success);
42410         }
42411         if (struct.isSetIo()) {
42412           struct.io.write(oprot);
42413         }
42414       }
42415 
42416       @Override
42417       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42418         TTupleProtocol iprot = (TTupleProtocol) prot;
42419         BitSet incoming = iprot.readBitSet(2);
42420         if (incoming.get(0)) {
42421           struct.success = iprot.readI32();
42422           struct.setSuccessIsSet(true);
42423         }
42424         if (incoming.get(1)) {
42425           struct.io = new IOError();
42426           struct.io.read(iprot);
42427           struct.setIoIsSet(true);
42428         }
42429       }
42430     }
42431 
42432   }
42433 
42434   public static class scannerOpen_args implements org.apache.thrift.TBase<scannerOpen_args, scannerOpen_args._Fields>, java.io.Serializable, Cloneable   {
42435     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_args");
42436 
42437     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
42438     private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
42439     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
42440     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
42441 
42442     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
42443     static {
42444       schemes.put(StandardScheme.class, new scannerOpen_argsStandardSchemeFactory());
42445       schemes.put(TupleScheme.class, new scannerOpen_argsTupleSchemeFactory());
42446     }
42447 
42448     /**
42449      * name of table
42450      */
42451     public ByteBuffer tableName; // required
42452     /**
42453      * Starting row in table to scan.
42454      * Send "" (empty string) to start at the first row.
42455      */
42456     public ByteBuffer startRow; // required
42457     /**
42458      * columns to scan. If column name is a column family, all
42459      * columns of the specified column family are returned. It's also possible
42460      * to pass a regex in the column qualifier.
42461      */
42462     public List<ByteBuffer> columns; // required
42463     /**
42464      * Scan attributes
42465      */
42466     public Map<ByteBuffer,ByteBuffer> attributes; // required
42467 
42468     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42469     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42470       /**
42471        * name of table
42472        */
42473       TABLE_NAME((short)1, "tableName"),
42474       /**
42475        * Starting row in table to scan.
42476        * Send "" (empty string) to start at the first row.
42477        */
42478       START_ROW((short)2, "startRow"),
42479       /**
42480        * columns to scan. If column name is a column family, all
42481        * columns of the specified column family are returned. It's also possible
42482        * to pass a regex in the column qualifier.
42483        */
42484       COLUMNS((short)3, "columns"),
42485       /**
42486        * Scan attributes
42487        */
42488       ATTRIBUTES((short)4, "attributes");
42489 
42490       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42491 
42492       static {
42493         for (_Fields field : EnumSet.allOf(_Fields.class)) {
42494           byName.put(field.getFieldName(), field);
42495         }
42496       }
42497 
42498       /**
42499        * Find the _Fields constant that matches fieldId, or null if its not found.
42500        */
42501       public static _Fields findByThriftId(int fieldId) {
42502         switch(fieldId) {
42503           case 1: // TABLE_NAME
42504             return TABLE_NAME;
42505           case 2: // START_ROW
42506             return START_ROW;
42507           case 3: // COLUMNS
42508             return COLUMNS;
42509           case 4: // ATTRIBUTES
42510             return ATTRIBUTES;
42511           default:
42512             return null;
42513         }
42514       }
42515 
42516       /**
42517        * Find the _Fields constant that matches fieldId, throwing an exception
42518        * if it is not found.
42519        */
42520       public static _Fields findByThriftIdOrThrow(int fieldId) {
42521         _Fields fields = findByThriftId(fieldId);
42522         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42523         return fields;
42524       }
42525 
42526       /**
42527        * Find the _Fields constant that matches name, or null if its not found.
42528        */
42529       public static _Fields findByName(String name) {
42530         return byName.get(name);
42531       }
42532 
42533       private final short _thriftId;
42534       private final String _fieldName;
42535 
42536       _Fields(short thriftId, String fieldName) {
42537         _thriftId = thriftId;
42538         _fieldName = fieldName;
42539       }
42540 
42541       public short getThriftFieldId() {
42542         return _thriftId;
42543       }
42544 
42545       public String getFieldName() {
42546         return _fieldName;
42547       }
42548     }
42549 
42550     // isset id assignments
42551     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42552     static {
42553       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42554       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42555           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
42556       tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42557           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
42558       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42559           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42560               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
42561       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42562           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
42563               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
42564               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
42565       metaDataMap = Collections.unmodifiableMap(tmpMap);
42566       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_args.class, metaDataMap);
42567     }
42568 
42569     public scannerOpen_args() {
42570     }
42571 
42572     public scannerOpen_args(
42573       ByteBuffer tableName,
42574       ByteBuffer startRow,
42575       List<ByteBuffer> columns,
42576       Map<ByteBuffer,ByteBuffer> attributes)
42577     {
42578       this();
42579       this.tableName = tableName;
42580       this.startRow = startRow;
42581       this.columns = columns;
42582       this.attributes = attributes;
42583     }
42584 
42585     /**
42586      * Performs a deep copy on <i>other</i>.
42587      */
42588     public scannerOpen_args(scannerOpen_args other) {
42589       if (other.isSetTableName()) {
42590         this.tableName = other.tableName;
42591       }
42592       if (other.isSetStartRow()) {
42593         this.startRow = other.startRow;
42594       }
42595       if (other.isSetColumns()) {
42596         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
42597         for (ByteBuffer other_element : other.columns) {
42598           __this__columns.add(other_element);
42599         }
42600         this.columns = __this__columns;
42601       }
42602       if (other.isSetAttributes()) {
42603         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
42604         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
42605 
42606           ByteBuffer other_element_key = other_element.getKey();
42607           ByteBuffer other_element_value = other_element.getValue();
42608 
42609           ByteBuffer __this__attributes_copy_key = other_element_key;
42610 
42611           ByteBuffer __this__attributes_copy_value = other_element_value;
42612 
42613           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
42614         }
42615         this.attributes = __this__attributes;
42616       }
42617     }
42618 
42619     public scannerOpen_args deepCopy() {
42620       return new scannerOpen_args(this);
42621     }
42622 
42623     @Override
42624     public void clear() {
42625       this.tableName = null;
42626       this.startRow = null;
42627       this.columns = null;
42628       this.attributes = null;
42629     }
42630 
42631     /**
42632      * name of table
42633      */
42634     public byte[] getTableName() {
42635       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
42636       return tableName == null ? null : tableName.array();
42637     }
42638 
42639     public ByteBuffer bufferForTableName() {
42640       return tableName;
42641     }
42642 
42643     /**
42644      * name of table
42645      */
42646     public scannerOpen_args setTableName(byte[] tableName) {
42647       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
42648       return this;
42649     }
42650 
42651     public scannerOpen_args setTableName(ByteBuffer tableName) {
42652       this.tableName = tableName;
42653       return this;
42654     }
42655 
42656     public void unsetTableName() {
42657       this.tableName = null;
42658     }
42659 
42660     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
42661     public boolean isSetTableName() {
42662       return this.tableName != null;
42663     }
42664 
42665     public void setTableNameIsSet(boolean value) {
42666       if (!value) {
42667         this.tableName = null;
42668       }
42669     }
42670 
42671     /**
42672      * Starting row in table to scan.
42673      * Send "" (empty string) to start at the first row.
42674      */
42675     public byte[] getStartRow() {
42676       setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
42677       return startRow == null ? null : startRow.array();
42678     }
42679 
42680     public ByteBuffer bufferForStartRow() {
42681       return startRow;
42682     }
42683 
42684     /**
42685      * Starting row in table to scan.
42686      * Send "" (empty string) to start at the first row.
42687      */
42688     public scannerOpen_args setStartRow(byte[] startRow) {
42689       setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
42690       return this;
42691     }
42692 
42693     public scannerOpen_args setStartRow(ByteBuffer startRow) {
42694       this.startRow = startRow;
42695       return this;
42696     }
42697 
42698     public void unsetStartRow() {
42699       this.startRow = null;
42700     }
42701 
42702     /** Returns true if field startRow is set (has been assigned a value) and false otherwise */
42703     public boolean isSetStartRow() {
42704       return this.startRow != null;
42705     }
42706 
42707     public void setStartRowIsSet(boolean value) {
42708       if (!value) {
42709         this.startRow = null;
42710       }
42711     }
42712 
42713     public int getColumnsSize() {
42714       return (this.columns == null) ? 0 : this.columns.size();
42715     }
42716 
42717     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
42718       return (this.columns == null) ? null : this.columns.iterator();
42719     }
42720 
42721     public void addToColumns(ByteBuffer elem) {
42722       if (this.columns == null) {
42723         this.columns = new ArrayList<ByteBuffer>();
42724       }
42725       this.columns.add(elem);
42726     }
42727 
42728     /**
42729      * columns to scan. If column name is a column family, all
42730      * columns of the specified column family are returned. It's also possible
42731      * to pass a regex in the column qualifier.
42732      */
42733     public List<ByteBuffer> getColumns() {
42734       return this.columns;
42735     }
42736 
42737     /**
42738      * columns to scan. If column name is a column family, all
42739      * columns of the specified column family are returned. It's also possible
42740      * to pass a regex in the column qualifier.
42741      */
42742     public scannerOpen_args setColumns(List<ByteBuffer> columns) {
42743       this.columns = columns;
42744       return this;
42745     }
42746 
42747     public void unsetColumns() {
42748       this.columns = null;
42749     }
42750 
42751     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
42752     public boolean isSetColumns() {
42753       return this.columns != null;
42754     }
42755 
42756     public void setColumnsIsSet(boolean value) {
42757       if (!value) {
42758         this.columns = null;
42759       }
42760     }
42761 
42762     public int getAttributesSize() {
42763       return (this.attributes == null) ? 0 : this.attributes.size();
42764     }
42765 
42766     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
42767       if (this.attributes == null) {
42768         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
42769       }
42770       this.attributes.put(key, val);
42771     }
42772 
42773     /**
42774      * Scan attributes
42775      */
42776     public Map<ByteBuffer,ByteBuffer> getAttributes() {
42777       return this.attributes;
42778     }
42779 
42780     /**
42781      * Scan attributes
42782      */
42783     public scannerOpen_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
42784       this.attributes = attributes;
42785       return this;
42786     }
42787 
42788     public void unsetAttributes() {
42789       this.attributes = null;
42790     }
42791 
42792     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
42793     public boolean isSetAttributes() {
42794       return this.attributes != null;
42795     }
42796 
42797     public void setAttributesIsSet(boolean value) {
42798       if (!value) {
42799         this.attributes = null;
42800       }
42801     }
42802 
42803     public void setFieldValue(_Fields field, Object value) {
42804       switch (field) {
42805       case TABLE_NAME:
42806         if (value == null) {
42807           unsetTableName();
42808         } else {
42809           setTableName((ByteBuffer)value);
42810         }
42811         break;
42812 
42813       case START_ROW:
42814         if (value == null) {
42815           unsetStartRow();
42816         } else {
42817           setStartRow((ByteBuffer)value);
42818         }
42819         break;
42820 
42821       case COLUMNS:
42822         if (value == null) {
42823           unsetColumns();
42824         } else {
42825           setColumns((List<ByteBuffer>)value);
42826         }
42827         break;
42828 
42829       case ATTRIBUTES:
42830         if (value == null) {
42831           unsetAttributes();
42832         } else {
42833           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
42834         }
42835         break;
42836 
42837       }
42838     }
42839 
42840     public Object getFieldValue(_Fields field) {
42841       switch (field) {
42842       case TABLE_NAME:
42843         return getTableName();
42844 
42845       case START_ROW:
42846         return getStartRow();
42847 
42848       case COLUMNS:
42849         return getColumns();
42850 
42851       case ATTRIBUTES:
42852         return getAttributes();
42853 
42854       }
42855       throw new IllegalStateException();
42856     }
42857 
42858     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42859     public boolean isSet(_Fields field) {
42860       if (field == null) {
42861         throw new IllegalArgumentException();
42862       }
42863 
42864       switch (field) {
42865       case TABLE_NAME:
42866         return isSetTableName();
42867       case START_ROW:
42868         return isSetStartRow();
42869       case COLUMNS:
42870         return isSetColumns();
42871       case ATTRIBUTES:
42872         return isSetAttributes();
42873       }
42874       throw new IllegalStateException();
42875     }
42876 
42877     @Override
42878     public boolean equals(Object that) {
42879       if (that == null)
42880         return false;
42881       if (that instanceof scannerOpen_args)
42882         return this.equals((scannerOpen_args)that);
42883       return false;
42884     }
42885 
42886     public boolean equals(scannerOpen_args that) {
42887       if (that == null)
42888         return false;
42889 
42890       boolean this_present_tableName = true && this.isSetTableName();
42891       boolean that_present_tableName = true && that.isSetTableName();
42892       if (this_present_tableName || that_present_tableName) {
42893         if (!(this_present_tableName && that_present_tableName))
42894           return false;
42895         if (!this.tableName.equals(that.tableName))
42896           return false;
42897       }
42898 
42899       boolean this_present_startRow = true && this.isSetStartRow();
42900       boolean that_present_startRow = true && that.isSetStartRow();
42901       if (this_present_startRow || that_present_startRow) {
42902         if (!(this_present_startRow && that_present_startRow))
42903           return false;
42904         if (!this.startRow.equals(that.startRow))
42905           return false;
42906       }
42907 
42908       boolean this_present_columns = true && this.isSetColumns();
42909       boolean that_present_columns = true && that.isSetColumns();
42910       if (this_present_columns || that_present_columns) {
42911         if (!(this_present_columns && that_present_columns))
42912           return false;
42913         if (!this.columns.equals(that.columns))
42914           return false;
42915       }
42916 
42917       boolean this_present_attributes = true && this.isSetAttributes();
42918       boolean that_present_attributes = true && that.isSetAttributes();
42919       if (this_present_attributes || that_present_attributes) {
42920         if (!(this_present_attributes && that_present_attributes))
42921           return false;
42922         if (!this.attributes.equals(that.attributes))
42923           return false;
42924       }
42925 
42926       return true;
42927     }
42928 
42929     @Override
42930     public int hashCode() {
42931       HashCodeBuilder builder = new HashCodeBuilder();
42932 
42933       boolean present_tableName = true && (isSetTableName());
42934       builder.append(present_tableName);
42935       if (present_tableName)
42936         builder.append(tableName);
42937 
42938       boolean present_startRow = true && (isSetStartRow());
42939       builder.append(present_startRow);
42940       if (present_startRow)
42941         builder.append(startRow);
42942 
42943       boolean present_columns = true && (isSetColumns());
42944       builder.append(present_columns);
42945       if (present_columns)
42946         builder.append(columns);
42947 
42948       boolean present_attributes = true && (isSetAttributes());
42949       builder.append(present_attributes);
42950       if (present_attributes)
42951         builder.append(attributes);
42952 
42953       return builder.toHashCode();
42954     }
42955 
42956     public int compareTo(scannerOpen_args other) {
42957       if (!getClass().equals(other.getClass())) {
42958         return getClass().getName().compareTo(other.getClass().getName());
42959       }
42960 
42961       int lastComparison = 0;
42962       scannerOpen_args typedOther = (scannerOpen_args)other;
42963 
42964       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
42965       if (lastComparison != 0) {
42966         return lastComparison;
42967       }
42968       if (isSetTableName()) {
42969         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
42970         if (lastComparison != 0) {
42971           return lastComparison;
42972         }
42973       }
42974       lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
42975       if (lastComparison != 0) {
42976         return lastComparison;
42977       }
42978       if (isSetStartRow()) {
42979         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
42980         if (lastComparison != 0) {
42981           return lastComparison;
42982         }
42983       }
42984       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
42985       if (lastComparison != 0) {
42986         return lastComparison;
42987       }
42988       if (isSetColumns()) {
42989         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
42990         if (lastComparison != 0) {
42991           return lastComparison;
42992         }
42993       }
42994       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
42995       if (lastComparison != 0) {
42996         return lastComparison;
42997       }
42998       if (isSetAttributes()) {
42999         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
43000         if (lastComparison != 0) {
43001           return lastComparison;
43002         }
43003       }
43004       return 0;
43005     }
43006 
43007     public _Fields fieldForId(int fieldId) {
43008       return _Fields.findByThriftId(fieldId);
43009     }
43010 
43011     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43012       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
43013     }
43014 
43015     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43016       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
43017     }
43018 
43019     @Override
43020     public String toString() {
43021       StringBuilder sb = new StringBuilder("scannerOpen_args(");
43022       boolean first = true;
43023 
43024       sb.append("tableName:");
43025       if (this.tableName == null) {
43026         sb.append("null");
43027       } else {
43028         sb.append(this.tableName);
43029       }
43030       first = false;
43031       if (!first) sb.append(", ");
43032       sb.append("startRow:");
43033       if (this.startRow == null) {
43034         sb.append("null");
43035       } else {
43036         sb.append(this.startRow);
43037       }
43038       first = false;
43039       if (!first) sb.append(", ");
43040       sb.append("columns:");
43041       if (this.columns == null) {
43042         sb.append("null");
43043       } else {
43044         sb.append(this.columns);
43045       }
43046       first = false;
43047       if (!first) sb.append(", ");
43048       sb.append("attributes:");
43049       if (this.attributes == null) {
43050         sb.append("null");
43051       } else {
43052         sb.append(this.attributes);
43053       }
43054       first = false;
43055       sb.append(")");
43056       return sb.toString();
43057     }
43058 
43059     public void validate() throws org.apache.thrift.TException {
43060       // check for required fields
43061       // check for sub-struct validity
43062     }
43063 
43064     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43065       try {
43066         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43067       } catch (org.apache.thrift.TException te) {
43068         throw new java.io.IOException(te);
43069       }
43070     }
43071 
43072     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43073       try {
43074         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43075       } catch (org.apache.thrift.TException te) {
43076         throw new java.io.IOException(te);
43077       }
43078     }
43079 
43080     private static class scannerOpen_argsStandardSchemeFactory implements SchemeFactory {
43081       public scannerOpen_argsStandardScheme getScheme() {
43082         return new scannerOpen_argsStandardScheme();
43083       }
43084     }
43085 
43086     private static class scannerOpen_argsStandardScheme extends StandardScheme<scannerOpen_args> {
43087 
43088       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_args struct) throws org.apache.thrift.TException {
43089         org.apache.thrift.protocol.TField schemeField;
43090         iprot.readStructBegin();
43091         while (true)
43092         {
43093           schemeField = iprot.readFieldBegin();
43094           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
43095             break;
43096           }
43097           switch (schemeField.id) {
43098             case 1: // TABLE_NAME
43099               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
43100                 struct.tableName = iprot.readBinary();
43101                 struct.setTableNameIsSet(true);
43102               } else { 
43103                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43104               }
43105               break;
43106             case 2: // START_ROW
43107               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
43108                 struct.startRow = iprot.readBinary();
43109                 struct.setStartRowIsSet(true);
43110               } else { 
43111                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43112               }
43113               break;
43114             case 3: // COLUMNS
43115               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
43116                 {
43117                   org.apache.thrift.protocol.TList _list476 = iprot.readListBegin();
43118                   struct.columns = new ArrayList<ByteBuffer>(_list476.size);
43119                   for (int _i477 = 0; _i477 < _list476.size; ++_i477)
43120                   {
43121                     ByteBuffer _elem478; // required
43122                     _elem478 = iprot.readBinary();
43123                     struct.columns.add(_elem478);
43124                   }
43125                   iprot.readListEnd();
43126                 }
43127                 struct.setColumnsIsSet(true);
43128               } else { 
43129                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43130               }
43131               break;
43132             case 4: // ATTRIBUTES
43133               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
43134                 {
43135                   org.apache.thrift.protocol.TMap _map479 = iprot.readMapBegin();
43136                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map479.size);
43137                   for (int _i480 = 0; _i480 < _map479.size; ++_i480)
43138                   {
43139                     ByteBuffer _key481; // required
43140                     ByteBuffer _val482; // required
43141                     _key481 = iprot.readBinary();
43142                     _val482 = iprot.readBinary();
43143                     struct.attributes.put(_key481, _val482);
43144                   }
43145                   iprot.readMapEnd();
43146                 }
43147                 struct.setAttributesIsSet(true);
43148               } else { 
43149                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43150               }
43151               break;
43152             default:
43153               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43154           }
43155           iprot.readFieldEnd();
43156         }
43157         iprot.readStructEnd();
43158 
43159         // check for required fields of primitive type, which can't be checked in the validate method
43160         struct.validate();
43161       }
43162 
43163       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_args struct) throws org.apache.thrift.TException {
43164         struct.validate();
43165 
43166         oprot.writeStructBegin(STRUCT_DESC);
43167         if (struct.tableName != null) {
43168           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
43169           oprot.writeBinary(struct.tableName);
43170           oprot.writeFieldEnd();
43171         }
43172         if (struct.startRow != null) {
43173           oprot.writeFieldBegin(START_ROW_FIELD_DESC);
43174           oprot.writeBinary(struct.startRow);
43175           oprot.writeFieldEnd();
43176         }
43177         if (struct.columns != null) {
43178           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
43179           {
43180             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
43181             for (ByteBuffer _iter483 : struct.columns)
43182             {
43183               oprot.writeBinary(_iter483);
43184             }
43185             oprot.writeListEnd();
43186           }
43187           oprot.writeFieldEnd();
43188         }
43189         if (struct.attributes != null) {
43190           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
43191           {
43192             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
43193             for (Map.Entry<ByteBuffer, ByteBuffer> _iter484 : struct.attributes.entrySet())
43194             {
43195               oprot.writeBinary(_iter484.getKey());
43196               oprot.writeBinary(_iter484.getValue());
43197             }
43198             oprot.writeMapEnd();
43199           }
43200           oprot.writeFieldEnd();
43201         }
43202         oprot.writeFieldStop();
43203         oprot.writeStructEnd();
43204       }
43205 
43206     }
43207 
43208     private static class scannerOpen_argsTupleSchemeFactory implements SchemeFactory {
43209       public scannerOpen_argsTupleScheme getScheme() {
43210         return new scannerOpen_argsTupleScheme();
43211       }
43212     }
43213 
43214     private static class scannerOpen_argsTupleScheme extends TupleScheme<scannerOpen_args> {
43215 
43216       @Override
43217       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException {
43218         TTupleProtocol oprot = (TTupleProtocol) prot;
43219         BitSet optionals = new BitSet();
43220         if (struct.isSetTableName()) {
43221           optionals.set(0);
43222         }
43223         if (struct.isSetStartRow()) {
43224           optionals.set(1);
43225         }
43226         if (struct.isSetColumns()) {
43227           optionals.set(2);
43228         }
43229         if (struct.isSetAttributes()) {
43230           optionals.set(3);
43231         }
43232         oprot.writeBitSet(optionals, 4);
43233         if (struct.isSetTableName()) {
43234           oprot.writeBinary(struct.tableName);
43235         }
43236         if (struct.isSetStartRow()) {
43237           oprot.writeBinary(struct.startRow);
43238         }
43239         if (struct.isSetColumns()) {
43240           {
43241             oprot.writeI32(struct.columns.size());
43242             for (ByteBuffer _iter485 : struct.columns)
43243             {
43244               oprot.writeBinary(_iter485);
43245             }
43246           }
43247         }
43248         if (struct.isSetAttributes()) {
43249           {
43250             oprot.writeI32(struct.attributes.size());
43251             for (Map.Entry<ByteBuffer, ByteBuffer> _iter486 : struct.attributes.entrySet())
43252             {
43253               oprot.writeBinary(_iter486.getKey());
43254               oprot.writeBinary(_iter486.getValue());
43255             }
43256           }
43257         }
43258       }
43259 
43260       @Override
43261       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException {
43262         TTupleProtocol iprot = (TTupleProtocol) prot;
43263         BitSet incoming = iprot.readBitSet(4);
43264         if (incoming.get(0)) {
43265           struct.tableName = iprot.readBinary();
43266           struct.setTableNameIsSet(true);
43267         }
43268         if (incoming.get(1)) {
43269           struct.startRow = iprot.readBinary();
43270           struct.setStartRowIsSet(true);
43271         }
43272         if (incoming.get(2)) {
43273           {
43274             org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
43275             struct.columns = new ArrayList<ByteBuffer>(_list487.size);
43276             for (int _i488 = 0; _i488 < _list487.size; ++_i488)
43277             {
43278               ByteBuffer _elem489; // required
43279               _elem489 = iprot.readBinary();
43280               struct.columns.add(_elem489);
43281             }
43282           }
43283           struct.setColumnsIsSet(true);
43284         }
43285         if (incoming.get(3)) {
43286           {
43287             org.apache.thrift.protocol.TMap _map490 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
43288             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map490.size);
43289             for (int _i491 = 0; _i491 < _map490.size; ++_i491)
43290             {
43291               ByteBuffer _key492; // required
43292               ByteBuffer _val493; // required
43293               _key492 = iprot.readBinary();
43294               _val493 = iprot.readBinary();
43295               struct.attributes.put(_key492, _val493);
43296             }
43297           }
43298           struct.setAttributesIsSet(true);
43299         }
43300       }
43301     }
43302 
43303   }
43304 
43305   public static class scannerOpen_result implements org.apache.thrift.TBase<scannerOpen_result, scannerOpen_result._Fields>, java.io.Serializable, Cloneable   {
43306     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_result");
43307 
43308     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
43309     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
43310 
43311     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
43312     static {
43313       schemes.put(StandardScheme.class, new scannerOpen_resultStandardSchemeFactory());
43314       schemes.put(TupleScheme.class, new scannerOpen_resultTupleSchemeFactory());
43315     }
43316 
43317     public int success; // required
43318     public IOError io; // required
43319 
43320     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43321     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43322       SUCCESS((short)0, "success"),
43323       IO((short)1, "io");
43324 
43325       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43326 
43327       static {
43328         for (_Fields field : EnumSet.allOf(_Fields.class)) {
43329           byName.put(field.getFieldName(), field);
43330         }
43331       }
43332 
43333       /**
43334        * Find the _Fields constant that matches fieldId, or null if its not found.
43335        */
43336       public static _Fields findByThriftId(int fieldId) {
43337         switch(fieldId) {
43338           case 0: // SUCCESS
43339             return SUCCESS;
43340           case 1: // IO
43341             return IO;
43342           default:
43343             return null;
43344         }
43345       }
43346 
43347       /**
43348        * Find the _Fields constant that matches fieldId, throwing an exception
43349        * if it is not found.
43350        */
43351       public static _Fields findByThriftIdOrThrow(int fieldId) {
43352         _Fields fields = findByThriftId(fieldId);
43353         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43354         return fields;
43355       }
43356 
43357       /**
43358        * Find the _Fields constant that matches name, or null if its not found.
43359        */
43360       public static _Fields findByName(String name) {
43361         return byName.get(name);
43362       }
43363 
43364       private final short _thriftId;
43365       private final String _fieldName;
43366 
43367       _Fields(short thriftId, String fieldName) {
43368         _thriftId = thriftId;
43369         _fieldName = fieldName;
43370       }
43371 
43372       public short getThriftFieldId() {
43373         return _thriftId;
43374       }
43375 
43376       public String getFieldName() {
43377         return _fieldName;
43378       }
43379     }
43380 
43381     // isset id assignments
43382     private static final int __SUCCESS_ISSET_ID = 0;
43383     private byte __isset_bitfield = 0;
43384     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43385     static {
43386       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43387       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43388           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
43389       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43390           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43391       metaDataMap = Collections.unmodifiableMap(tmpMap);
43392       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_result.class, metaDataMap);
43393     }
43394 
43395     public scannerOpen_result() {
43396     }
43397 
43398     public scannerOpen_result(
43399       int success,
43400       IOError io)
43401     {
43402       this();
43403       this.success = success;
43404       setSuccessIsSet(true);
43405       this.io = io;
43406     }
43407 
43408     /**
43409      * Performs a deep copy on <i>other</i>.
43410      */
43411     public scannerOpen_result(scannerOpen_result other) {
43412       __isset_bitfield = other.__isset_bitfield;
43413       this.success = other.success;
43414       if (other.isSetIo()) {
43415         this.io = new IOError(other.io);
43416       }
43417     }
43418 
43419     public scannerOpen_result deepCopy() {
43420       return new scannerOpen_result(this);
43421     }
43422 
43423     @Override
43424     public void clear() {
43425       setSuccessIsSet(false);
43426       this.success = 0;
43427       this.io = null;
43428     }
43429 
43430     public int getSuccess() {
43431       return this.success;
43432     }
43433 
43434     public scannerOpen_result setSuccess(int success) {
43435       this.success = success;
43436       setSuccessIsSet(true);
43437       return this;
43438     }
43439 
43440     public void unsetSuccess() {
43441       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
43442     }
43443 
43444     /** Returns true if field success is set (has been assigned a value) and false otherwise */
43445     public boolean isSetSuccess() {
43446       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
43447     }
43448 
43449     public void setSuccessIsSet(boolean value) {
43450       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
43451     }
43452 
43453     public IOError getIo() {
43454       return this.io;
43455     }
43456 
43457     public scannerOpen_result setIo(IOError io) {
43458       this.io = io;
43459       return this;
43460     }
43461 
43462     public void unsetIo() {
43463       this.io = null;
43464     }
43465 
43466     /** Returns true if field io is set (has been assigned a value) and false otherwise */
43467     public boolean isSetIo() {
43468       return this.io != null;
43469     }
43470 
43471     public void setIoIsSet(boolean value) {
43472       if (!value) {
43473         this.io = null;
43474       }
43475     }
43476 
43477     public void setFieldValue(_Fields field, Object value) {
43478       switch (field) {
43479       case SUCCESS:
43480         if (value == null) {
43481           unsetSuccess();
43482         } else {
43483           setSuccess((Integer)value);
43484         }
43485         break;
43486 
43487       case IO:
43488         if (value == null) {
43489           unsetIo();
43490         } else {
43491           setIo((IOError)value);
43492         }
43493         break;
43494 
43495       }
43496     }
43497 
43498     public Object getFieldValue(_Fields field) {
43499       switch (field) {
43500       case SUCCESS:
43501         return Integer.valueOf(getSuccess());
43502 
43503       case IO:
43504         return getIo();
43505 
43506       }
43507       throw new IllegalStateException();
43508     }
43509 
43510     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43511     public boolean isSet(_Fields field) {
43512       if (field == null) {
43513         throw new IllegalArgumentException();
43514       }
43515 
43516       switch (field) {
43517       case SUCCESS:
43518         return isSetSuccess();
43519       case IO:
43520         return isSetIo();
43521       }
43522       throw new IllegalStateException();
43523     }
43524 
43525     @Override
43526     public boolean equals(Object that) {
43527       if (that == null)
43528         return false;
43529       if (that instanceof scannerOpen_result)
43530         return this.equals((scannerOpen_result)that);
43531       return false;
43532     }
43533 
43534     public boolean equals(scannerOpen_result that) {
43535       if (that == null)
43536         return false;
43537 
43538       boolean this_present_success = true;
43539       boolean that_present_success = true;
43540       if (this_present_success || that_present_success) {
43541         if (!(this_present_success && that_present_success))
43542           return false;
43543         if (this.success != that.success)
43544           return false;
43545       }
43546 
43547       boolean this_present_io = true && this.isSetIo();
43548       boolean that_present_io = true && that.isSetIo();
43549       if (this_present_io || that_present_io) {
43550         if (!(this_present_io && that_present_io))
43551           return false;
43552         if (!this.io.equals(that.io))
43553           return false;
43554       }
43555 
43556       return true;
43557     }
43558 
43559     @Override
43560     public int hashCode() {
43561       HashCodeBuilder builder = new HashCodeBuilder();
43562 
43563       boolean present_success = true;
43564       builder.append(present_success);
43565       if (present_success)
43566         builder.append(success);
43567 
43568       boolean present_io = true && (isSetIo());
43569       builder.append(present_io);
43570       if (present_io)
43571         builder.append(io);
43572 
43573       return builder.toHashCode();
43574     }
43575 
43576     public int compareTo(scannerOpen_result other) {
43577       if (!getClass().equals(other.getClass())) {
43578         return getClass().getName().compareTo(other.getClass().getName());
43579       }
43580 
43581       int lastComparison = 0;
43582       scannerOpen_result typedOther = (scannerOpen_result)other;
43583 
43584       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43585       if (lastComparison != 0) {
43586         return lastComparison;
43587       }
43588       if (isSetSuccess()) {
43589         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43590         if (lastComparison != 0) {
43591           return lastComparison;
43592         }
43593       }
43594       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
43595       if (lastComparison != 0) {
43596         return lastComparison;
43597       }
43598       if (isSetIo()) {
43599         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
43600         if (lastComparison != 0) {
43601           return lastComparison;
43602         }
43603       }
43604       return 0;
43605     }
43606 
43607     public _Fields fieldForId(int fieldId) {
43608       return _Fields.findByThriftId(fieldId);
43609     }
43610 
43611     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43612       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
43613     }
43614 
43615     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43616       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
43617       }
43618 
43619     @Override
43620     public String toString() {
43621       StringBuilder sb = new StringBuilder("scannerOpen_result(");
43622       boolean first = true;
43623 
43624       sb.append("success:");
43625       sb.append(this.success);
43626       first = false;
43627       if (!first) sb.append(", ");
43628       sb.append("io:");
43629       if (this.io == null) {
43630         sb.append("null");
43631       } else {
43632         sb.append(this.io);
43633       }
43634       first = false;
43635       sb.append(")");
43636       return sb.toString();
43637     }
43638 
43639     public void validate() throws org.apache.thrift.TException {
43640       // check for required fields
43641       // check for sub-struct validity
43642     }
43643 
43644     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43645       try {
43646         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43647       } catch (org.apache.thrift.TException te) {
43648         throw new java.io.IOException(te);
43649       }
43650     }
43651 
43652     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43653       try {
43654         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43655         __isset_bitfield = 0;
43656         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43657       } catch (org.apache.thrift.TException te) {
43658         throw new java.io.IOException(te);
43659       }
43660     }
43661 
43662     private static class scannerOpen_resultStandardSchemeFactory implements SchemeFactory {
43663       public scannerOpen_resultStandardScheme getScheme() {
43664         return new scannerOpen_resultStandardScheme();
43665       }
43666     }
43667 
43668     private static class scannerOpen_resultStandardScheme extends StandardScheme<scannerOpen_result> {
43669 
43670       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_result struct) throws org.apache.thrift.TException {
43671         org.apache.thrift.protocol.TField schemeField;
43672         iprot.readStructBegin();
43673         while (true)
43674         {
43675           schemeField = iprot.readFieldBegin();
43676           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
43677             break;
43678           }
43679           switch (schemeField.id) {
43680             case 0: // SUCCESS
43681               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
43682                 struct.success = iprot.readI32();
43683                 struct.setSuccessIsSet(true);
43684               } else { 
43685                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43686               }
43687               break;
43688             case 1: // IO
43689               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
43690                 struct.io = new IOError();
43691                 struct.io.read(iprot);
43692                 struct.setIoIsSet(true);
43693               } else { 
43694                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43695               }
43696               break;
43697             default:
43698               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43699           }
43700           iprot.readFieldEnd();
43701         }
43702         iprot.readStructEnd();
43703 
43704         // check for required fields of primitive type, which can't be checked in the validate method
43705         struct.validate();
43706       }
43707 
43708       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_result struct) throws org.apache.thrift.TException {
43709         struct.validate();
43710 
43711         oprot.writeStructBegin(STRUCT_DESC);
43712         if (struct.isSetSuccess()) {
43713           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43714           oprot.writeI32(struct.success);
43715           oprot.writeFieldEnd();
43716         }
43717         if (struct.io != null) {
43718           oprot.writeFieldBegin(IO_FIELD_DESC);
43719           struct.io.write(oprot);
43720           oprot.writeFieldEnd();
43721         }
43722         oprot.writeFieldStop();
43723         oprot.writeStructEnd();
43724       }
43725 
43726     }
43727 
43728     private static class scannerOpen_resultTupleSchemeFactory implements SchemeFactory {
43729       public scannerOpen_resultTupleScheme getScheme() {
43730         return new scannerOpen_resultTupleScheme();
43731       }
43732     }
43733 
43734     private static class scannerOpen_resultTupleScheme extends TupleScheme<scannerOpen_result> {
43735 
43736       @Override
43737       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException {
43738         TTupleProtocol oprot = (TTupleProtocol) prot;
43739         BitSet optionals = new BitSet();
43740         if (struct.isSetSuccess()) {
43741           optionals.set(0);
43742         }
43743         if (struct.isSetIo()) {
43744           optionals.set(1);
43745         }
43746         oprot.writeBitSet(optionals, 2);
43747         if (struct.isSetSuccess()) {
43748           oprot.writeI32(struct.success);
43749         }
43750         if (struct.isSetIo()) {
43751           struct.io.write(oprot);
43752         }
43753       }
43754 
43755       @Override
43756       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException {
43757         TTupleProtocol iprot = (TTupleProtocol) prot;
43758         BitSet incoming = iprot.readBitSet(2);
43759         if (incoming.get(0)) {
43760           struct.success = iprot.readI32();
43761           struct.setSuccessIsSet(true);
43762         }
43763         if (incoming.get(1)) {
43764           struct.io = new IOError();
43765           struct.io.read(iprot);
43766           struct.setIoIsSet(true);
43767         }
43768       }
43769     }
43770 
43771   }
43772 
43773   public static class scannerOpenWithStop_args implements org.apache.thrift.TBase<scannerOpenWithStop_args, scannerOpenWithStop_args._Fields>, java.io.Serializable, Cloneable   {
43774     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_args");
43775 
43776     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
43777     private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
43778     private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3);
43779     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4);
43780     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
43781 
43782     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
43783     static {
43784       schemes.put(StandardScheme.class, new scannerOpenWithStop_argsStandardSchemeFactory());
43785       schemes.put(TupleScheme.class, new scannerOpenWithStop_argsTupleSchemeFactory());
43786     }
43787 
43788     /**
43789      * name of table
43790      */
43791     public ByteBuffer tableName; // required
43792     /**
43793      * Starting row in table to scan.
43794      * Send "" (empty string) to start at the first row.
43795      */
43796     public ByteBuffer startRow; // required
43797     /**
43798      * row to stop scanning on. This row is *not* included in the
43799      * scanner's results
43800      */
43801     public ByteBuffer stopRow; // required
43802     /**
43803      * columns to scan. If column name is a column family, all
43804      * columns of the specified column family are returned. It's also possible
43805      * to pass a regex in the column qualifier.
43806      */
43807     public List<ByteBuffer> columns; // required
43808     /**
43809      * Scan attributes
43810      */
43811     public Map<ByteBuffer,ByteBuffer> attributes; // required
43812 
43813     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43814     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43815       /**
43816        * name of table
43817        */
43818       TABLE_NAME((short)1, "tableName"),
43819       /**
43820        * Starting row in table to scan.
43821        * Send "" (empty string) to start at the first row.
43822        */
43823       START_ROW((short)2, "startRow"),
43824       /**
43825        * row to stop scanning on. This row is *not* included in the
43826        * scanner's results
43827        */
43828       STOP_ROW((short)3, "stopRow"),
43829       /**
43830        * columns to scan. If column name is a column family, all
43831        * columns of the specified column family are returned. It's also possible
43832        * to pass a regex in the column qualifier.
43833        */
43834       COLUMNS((short)4, "columns"),
43835       /**
43836        * Scan attributes
43837        */
43838       ATTRIBUTES((short)5, "attributes");
43839 
43840       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43841 
43842       static {
43843         for (_Fields field : EnumSet.allOf(_Fields.class)) {
43844           byName.put(field.getFieldName(), field);
43845         }
43846       }
43847 
43848       /**
43849        * Find the _Fields constant that matches fieldId, or null if its not found.
43850        */
43851       public static _Fields findByThriftId(int fieldId) {
43852         switch(fieldId) {
43853           case 1: // TABLE_NAME
43854             return TABLE_NAME;
43855           case 2: // START_ROW
43856             return START_ROW;
43857           case 3: // STOP_ROW
43858             return STOP_ROW;
43859           case 4: // COLUMNS
43860             return COLUMNS;
43861           case 5: // ATTRIBUTES
43862             return ATTRIBUTES;
43863           default:
43864             return null;
43865         }
43866       }
43867 
43868       /**
43869        * Find the _Fields constant that matches fieldId, throwing an exception
43870        * if it is not found.
43871        */
43872       public static _Fields findByThriftIdOrThrow(int fieldId) {
43873         _Fields fields = findByThriftId(fieldId);
43874         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43875         return fields;
43876       }
43877 
43878       /**
43879        * Find the _Fields constant that matches name, or null if its not found.
43880        */
43881       public static _Fields findByName(String name) {
43882         return byName.get(name);
43883       }
43884 
43885       private final short _thriftId;
43886       private final String _fieldName;
43887 
43888       _Fields(short thriftId, String fieldName) {
43889         _thriftId = thriftId;
43890         _fieldName = fieldName;
43891       }
43892 
43893       public short getThriftFieldId() {
43894         return _thriftId;
43895       }
43896 
43897       public String getFieldName() {
43898         return _fieldName;
43899       }
43900     }
43901 
43902     // isset id assignments
43903     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43904     static {
43905       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43906       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43907           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
43908       tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43909           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
43910       tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43911           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
43912       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43913           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
43914               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
43915       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43916           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
43917               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
43918               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
43919       metaDataMap = Collections.unmodifiableMap(tmpMap);
43920       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_args.class, metaDataMap);
43921     }
43922 
43923     public scannerOpenWithStop_args() {
43924     }
43925 
43926     public scannerOpenWithStop_args(
43927       ByteBuffer tableName,
43928       ByteBuffer startRow,
43929       ByteBuffer stopRow,
43930       List<ByteBuffer> columns,
43931       Map<ByteBuffer,ByteBuffer> attributes)
43932     {
43933       this();
43934       this.tableName = tableName;
43935       this.startRow = startRow;
43936       this.stopRow = stopRow;
43937       this.columns = columns;
43938       this.attributes = attributes;
43939     }
43940 
43941     /**
43942      * Performs a deep copy on <i>other</i>.
43943      */
43944     public scannerOpenWithStop_args(scannerOpenWithStop_args other) {
43945       if (other.isSetTableName()) {
43946         this.tableName = other.tableName;
43947       }
43948       if (other.isSetStartRow()) {
43949         this.startRow = other.startRow;
43950       }
43951       if (other.isSetStopRow()) {
43952         this.stopRow = other.stopRow;
43953       }
43954       if (other.isSetColumns()) {
43955         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
43956         for (ByteBuffer other_element : other.columns) {
43957           __this__columns.add(other_element);
43958         }
43959         this.columns = __this__columns;
43960       }
43961       if (other.isSetAttributes()) {
43962         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
43963         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
43964 
43965           ByteBuffer other_element_key = other_element.getKey();
43966           ByteBuffer other_element_value = other_element.getValue();
43967 
43968           ByteBuffer __this__attributes_copy_key = other_element_key;
43969 
43970           ByteBuffer __this__attributes_copy_value = other_element_value;
43971 
43972           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
43973         }
43974         this.attributes = __this__attributes;
43975       }
43976     }
43977 
43978     public scannerOpenWithStop_args deepCopy() {
43979       return new scannerOpenWithStop_args(this);
43980     }
43981 
43982     @Override
43983     public void clear() {
43984       this.tableName = null;
43985       this.startRow = null;
43986       this.stopRow = null;
43987       this.columns = null;
43988       this.attributes = null;
43989     }
43990 
43991     /**
43992      * name of table
43993      */
43994     public byte[] getTableName() {
43995       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
43996       return tableName == null ? null : tableName.array();
43997     }
43998 
43999     public ByteBuffer bufferForTableName() {
44000       return tableName;
44001     }
44002 
44003     /**
44004      * name of table
44005      */
44006     public scannerOpenWithStop_args setTableName(byte[] tableName) {
44007       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
44008       return this;
44009     }
44010 
44011     public scannerOpenWithStop_args setTableName(ByteBuffer tableName) {
44012       this.tableName = tableName;
44013       return this;
44014     }
44015 
44016     public void unsetTableName() {
44017       this.tableName = null;
44018     }
44019 
44020     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
44021     public boolean isSetTableName() {
44022       return this.tableName != null;
44023     }
44024 
44025     public void setTableNameIsSet(boolean value) {
44026       if (!value) {
44027         this.tableName = null;
44028       }
44029     }
44030 
44031     /**
44032      * Starting row in table to scan.
44033      * Send "" (empty string) to start at the first row.
44034      */
44035     public byte[] getStartRow() {
44036       setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
44037       return startRow == null ? null : startRow.array();
44038     }
44039 
44040     public ByteBuffer bufferForStartRow() {
44041       return startRow;
44042     }
44043 
44044     /**
44045      * Starting row in table to scan.
44046      * Send "" (empty string) to start at the first row.
44047      */
44048     public scannerOpenWithStop_args setStartRow(byte[] startRow) {
44049       setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
44050       return this;
44051     }
44052 
44053     public scannerOpenWithStop_args setStartRow(ByteBuffer startRow) {
44054       this.startRow = startRow;
44055       return this;
44056     }
44057 
44058     public void unsetStartRow() {
44059       this.startRow = null;
44060     }
44061 
44062     /** Returns true if field startRow is set (has been assigned a value) and false otherwise */
44063     public boolean isSetStartRow() {
44064       return this.startRow != null;
44065     }
44066 
44067     public void setStartRowIsSet(boolean value) {
44068       if (!value) {
44069         this.startRow = null;
44070       }
44071     }
44072 
44073     /**
44074      * row to stop scanning on. This row is *not* included in the
44075      * scanner's results
44076      */
44077     public byte[] getStopRow() {
44078       setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow));
44079       return stopRow == null ? null : stopRow.array();
44080     }
44081 
44082     public ByteBuffer bufferForStopRow() {
44083       return stopRow;
44084     }
44085 
44086     /**
44087      * row to stop scanning on. This row is *not* included in the
44088      * scanner's results
44089      */
44090     public scannerOpenWithStop_args setStopRow(byte[] stopRow) {
44091       setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow));
44092       return this;
44093     }
44094 
44095     public scannerOpenWithStop_args setStopRow(ByteBuffer stopRow) {
44096       this.stopRow = stopRow;
44097       return this;
44098     }
44099 
44100     public void unsetStopRow() {
44101       this.stopRow = null;
44102     }
44103 
44104     /** Returns true if field stopRow is set (has been assigned a value) and false otherwise */
44105     public boolean isSetStopRow() {
44106       return this.stopRow != null;
44107     }
44108 
44109     public void setStopRowIsSet(boolean value) {
44110       if (!value) {
44111         this.stopRow = null;
44112       }
44113     }
44114 
44115     public int getColumnsSize() {
44116       return (this.columns == null) ? 0 : this.columns.size();
44117     }
44118 
44119     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
44120       return (this.columns == null) ? null : this.columns.iterator();
44121     }
44122 
44123     public void addToColumns(ByteBuffer elem) {
44124       if (this.columns == null) {
44125         this.columns = new ArrayList<ByteBuffer>();
44126       }
44127       this.columns.add(elem);
44128     }
44129 
44130     /**
44131      * columns to scan. If column name is a column family, all
44132      * columns of the specified column family are returned. It's also possible
44133      * to pass a regex in the column qualifier.
44134      */
44135     public List<ByteBuffer> getColumns() {
44136       return this.columns;
44137     }
44138 
44139     /**
44140      * columns to scan. If column name is a column family, all
44141      * columns of the specified column family are returned. It's also possible
44142      * to pass a regex in the column qualifier.
44143      */
44144     public scannerOpenWithStop_args setColumns(List<ByteBuffer> columns) {
44145       this.columns = columns;
44146       return this;
44147     }
44148 
44149     public void unsetColumns() {
44150       this.columns = null;
44151     }
44152 
44153     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
44154     public boolean isSetColumns() {
44155       return this.columns != null;
44156     }
44157 
44158     public void setColumnsIsSet(boolean value) {
44159       if (!value) {
44160         this.columns = null;
44161       }
44162     }
44163 
44164     public int getAttributesSize() {
44165       return (this.attributes == null) ? 0 : this.attributes.size();
44166     }
44167 
44168     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
44169       if (this.attributes == null) {
44170         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
44171       }
44172       this.attributes.put(key, val);
44173     }
44174 
44175     /**
44176      * Scan attributes
44177      */
44178     public Map<ByteBuffer,ByteBuffer> getAttributes() {
44179       return this.attributes;
44180     }
44181 
44182     /**
44183      * Scan attributes
44184      */
44185     public scannerOpenWithStop_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
44186       this.attributes = attributes;
44187       return this;
44188     }
44189 
44190     public void unsetAttributes() {
44191       this.attributes = null;
44192     }
44193 
44194     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
44195     public boolean isSetAttributes() {
44196       return this.attributes != null;
44197     }
44198 
44199     public void setAttributesIsSet(boolean value) {
44200       if (!value) {
44201         this.attributes = null;
44202       }
44203     }
44204 
44205     public void setFieldValue(_Fields field, Object value) {
44206       switch (field) {
44207       case TABLE_NAME:
44208         if (value == null) {
44209           unsetTableName();
44210         } else {
44211           setTableName((ByteBuffer)value);
44212         }
44213         break;
44214 
44215       case START_ROW:
44216         if (value == null) {
44217           unsetStartRow();
44218         } else {
44219           setStartRow((ByteBuffer)value);
44220         }
44221         break;
44222 
44223       case STOP_ROW:
44224         if (value == null) {
44225           unsetStopRow();
44226         } else {
44227           setStopRow((ByteBuffer)value);
44228         }
44229         break;
44230 
44231       case COLUMNS:
44232         if (value == null) {
44233           unsetColumns();
44234         } else {
44235           setColumns((List<ByteBuffer>)value);
44236         }
44237         break;
44238 
44239       case ATTRIBUTES:
44240         if (value == null) {
44241           unsetAttributes();
44242         } else {
44243           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
44244         }
44245         break;
44246 
44247       }
44248     }
44249 
44250     public Object getFieldValue(_Fields field) {
44251       switch (field) {
44252       case TABLE_NAME:
44253         return getTableName();
44254 
44255       case START_ROW:
44256         return getStartRow();
44257 
44258       case STOP_ROW:
44259         return getStopRow();
44260 
44261       case COLUMNS:
44262         return getColumns();
44263 
44264       case ATTRIBUTES:
44265         return getAttributes();
44266 
44267       }
44268       throw new IllegalStateException();
44269     }
44270 
44271     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44272     public boolean isSet(_Fields field) {
44273       if (field == null) {
44274         throw new IllegalArgumentException();
44275       }
44276 
44277       switch (field) {
44278       case TABLE_NAME:
44279         return isSetTableName();
44280       case START_ROW:
44281         return isSetStartRow();
44282       case STOP_ROW:
44283         return isSetStopRow();
44284       case COLUMNS:
44285         return isSetColumns();
44286       case ATTRIBUTES:
44287         return isSetAttributes();
44288       }
44289       throw new IllegalStateException();
44290     }
44291 
44292     @Override
44293     public boolean equals(Object that) {
44294       if (that == null)
44295         return false;
44296       if (that instanceof scannerOpenWithStop_args)
44297         return this.equals((scannerOpenWithStop_args)that);
44298       return false;
44299     }
44300 
44301     public boolean equals(scannerOpenWithStop_args that) {
44302       if (that == null)
44303         return false;
44304 
44305       boolean this_present_tableName = true && this.isSetTableName();
44306       boolean that_present_tableName = true && that.isSetTableName();
44307       if (this_present_tableName || that_present_tableName) {
44308         if (!(this_present_tableName && that_present_tableName))
44309           return false;
44310         if (!this.tableName.equals(that.tableName))
44311           return false;
44312       }
44313 
44314       boolean this_present_startRow = true && this.isSetStartRow();
44315       boolean that_present_startRow = true && that.isSetStartRow();
44316       if (this_present_startRow || that_present_startRow) {
44317         if (!(this_present_startRow && that_present_startRow))
44318           return false;
44319         if (!this.startRow.equals(that.startRow))
44320           return false;
44321       }
44322 
44323       boolean this_present_stopRow = true && this.isSetStopRow();
44324       boolean that_present_stopRow = true && that.isSetStopRow();
44325       if (this_present_stopRow || that_present_stopRow) {
44326         if (!(this_present_stopRow && that_present_stopRow))
44327           return false;
44328         if (!this.stopRow.equals(that.stopRow))
44329           return false;
44330       }
44331 
44332       boolean this_present_columns = true && this.isSetColumns();
44333       boolean that_present_columns = true && that.isSetColumns();
44334       if (this_present_columns || that_present_columns) {
44335         if (!(this_present_columns && that_present_columns))
44336           return false;
44337         if (!this.columns.equals(that.columns))
44338           return false;
44339       }
44340 
44341       boolean this_present_attributes = true && this.isSetAttributes();
44342       boolean that_present_attributes = true && that.isSetAttributes();
44343       if (this_present_attributes || that_present_attributes) {
44344         if (!(this_present_attributes && that_present_attributes))
44345           return false;
44346         if (!this.attributes.equals(that.attributes))
44347           return false;
44348       }
44349 
44350       return true;
44351     }
44352 
44353     @Override
44354     public int hashCode() {
44355       HashCodeBuilder builder = new HashCodeBuilder();
44356 
44357       boolean present_tableName = true && (isSetTableName());
44358       builder.append(present_tableName);
44359       if (present_tableName)
44360         builder.append(tableName);
44361 
44362       boolean present_startRow = true && (isSetStartRow());
44363       builder.append(present_startRow);
44364       if (present_startRow)
44365         builder.append(startRow);
44366 
44367       boolean present_stopRow = true && (isSetStopRow());
44368       builder.append(present_stopRow);
44369       if (present_stopRow)
44370         builder.append(stopRow);
44371 
44372       boolean present_columns = true && (isSetColumns());
44373       builder.append(present_columns);
44374       if (present_columns)
44375         builder.append(columns);
44376 
44377       boolean present_attributes = true && (isSetAttributes());
44378       builder.append(present_attributes);
44379       if (present_attributes)
44380         builder.append(attributes);
44381 
44382       return builder.toHashCode();
44383     }
44384 
44385     public int compareTo(scannerOpenWithStop_args other) {
44386       if (!getClass().equals(other.getClass())) {
44387         return getClass().getName().compareTo(other.getClass().getName());
44388       }
44389 
44390       int lastComparison = 0;
44391       scannerOpenWithStop_args typedOther = (scannerOpenWithStop_args)other;
44392 
44393       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
44394       if (lastComparison != 0) {
44395         return lastComparison;
44396       }
44397       if (isSetTableName()) {
44398         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
44399         if (lastComparison != 0) {
44400           return lastComparison;
44401         }
44402       }
44403       lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
44404       if (lastComparison != 0) {
44405         return lastComparison;
44406       }
44407       if (isSetStartRow()) {
44408         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
44409         if (lastComparison != 0) {
44410           return lastComparison;
44411         }
44412       }
44413       lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow());
44414       if (lastComparison != 0) {
44415         return lastComparison;
44416       }
44417       if (isSetStopRow()) {
44418         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
44419         if (lastComparison != 0) {
44420           return lastComparison;
44421         }
44422       }
44423       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
44424       if (lastComparison != 0) {
44425         return lastComparison;
44426       }
44427       if (isSetColumns()) {
44428         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
44429         if (lastComparison != 0) {
44430           return lastComparison;
44431         }
44432       }
44433       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
44434       if (lastComparison != 0) {
44435         return lastComparison;
44436       }
44437       if (isSetAttributes()) {
44438         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
44439         if (lastComparison != 0) {
44440           return lastComparison;
44441         }
44442       }
44443       return 0;
44444     }
44445 
44446     public _Fields fieldForId(int fieldId) {
44447       return _Fields.findByThriftId(fieldId);
44448     }
44449 
44450     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44451       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
44452     }
44453 
44454     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44455       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
44456     }
44457 
44458     @Override
44459     public String toString() {
44460       StringBuilder sb = new StringBuilder("scannerOpenWithStop_args(");
44461       boolean first = true;
44462 
44463       sb.append("tableName:");
44464       if (this.tableName == null) {
44465         sb.append("null");
44466       } else {
44467         sb.append(this.tableName);
44468       }
44469       first = false;
44470       if (!first) sb.append(", ");
44471       sb.append("startRow:");
44472       if (this.startRow == null) {
44473         sb.append("null");
44474       } else {
44475         sb.append(this.startRow);
44476       }
44477       first = false;
44478       if (!first) sb.append(", ");
44479       sb.append("stopRow:");
44480       if (this.stopRow == null) {
44481         sb.append("null");
44482       } else {
44483         sb.append(this.stopRow);
44484       }
44485       first = false;
44486       if (!first) sb.append(", ");
44487       sb.append("columns:");
44488       if (this.columns == null) {
44489         sb.append("null");
44490       } else {
44491         sb.append(this.columns);
44492       }
44493       first = false;
44494       if (!first) sb.append(", ");
44495       sb.append("attributes:");
44496       if (this.attributes == null) {
44497         sb.append("null");
44498       } else {
44499         sb.append(this.attributes);
44500       }
44501       first = false;
44502       sb.append(")");
44503       return sb.toString();
44504     }
44505 
44506     public void validate() throws org.apache.thrift.TException {
44507       // check for required fields
44508       // check for sub-struct validity
44509     }
44510 
44511     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44512       try {
44513         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44514       } catch (org.apache.thrift.TException te) {
44515         throw new java.io.IOException(te);
44516       }
44517     }
44518 
44519     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44520       try {
44521         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44522       } catch (org.apache.thrift.TException te) {
44523         throw new java.io.IOException(te);
44524       }
44525     }
44526 
44527     private static class scannerOpenWithStop_argsStandardSchemeFactory implements SchemeFactory {
44528       public scannerOpenWithStop_argsStandardScheme getScheme() {
44529         return new scannerOpenWithStop_argsStandardScheme();
44530       }
44531     }
44532 
44533     private static class scannerOpenWithStop_argsStandardScheme extends StandardScheme<scannerOpenWithStop_args> {
44534 
44535       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44536         org.apache.thrift.protocol.TField schemeField;
44537         iprot.readStructBegin();
44538         while (true)
44539         {
44540           schemeField = iprot.readFieldBegin();
44541           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
44542             break;
44543           }
44544           switch (schemeField.id) {
44545             case 1: // TABLE_NAME
44546               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44547                 struct.tableName = iprot.readBinary();
44548                 struct.setTableNameIsSet(true);
44549               } else { 
44550                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44551               }
44552               break;
44553             case 2: // START_ROW
44554               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44555                 struct.startRow = iprot.readBinary();
44556                 struct.setStartRowIsSet(true);
44557               } else { 
44558                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44559               }
44560               break;
44561             case 3: // STOP_ROW
44562               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44563                 struct.stopRow = iprot.readBinary();
44564                 struct.setStopRowIsSet(true);
44565               } else { 
44566                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44567               }
44568               break;
44569             case 4: // COLUMNS
44570               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
44571                 {
44572                   org.apache.thrift.protocol.TList _list494 = iprot.readListBegin();
44573                   struct.columns = new ArrayList<ByteBuffer>(_list494.size);
44574                   for (int _i495 = 0; _i495 < _list494.size; ++_i495)
44575                   {
44576                     ByteBuffer _elem496; // required
44577                     _elem496 = iprot.readBinary();
44578                     struct.columns.add(_elem496);
44579                   }
44580                   iprot.readListEnd();
44581                 }
44582                 struct.setColumnsIsSet(true);
44583               } else { 
44584                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44585               }
44586               break;
44587             case 5: // ATTRIBUTES
44588               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
44589                 {
44590                   org.apache.thrift.protocol.TMap _map497 = iprot.readMapBegin();
44591                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map497.size);
44592                   for (int _i498 = 0; _i498 < _map497.size; ++_i498)
44593                   {
44594                     ByteBuffer _key499; // required
44595                     ByteBuffer _val500; // required
44596                     _key499 = iprot.readBinary();
44597                     _val500 = iprot.readBinary();
44598                     struct.attributes.put(_key499, _val500);
44599                   }
44600                   iprot.readMapEnd();
44601                 }
44602                 struct.setAttributesIsSet(true);
44603               } else { 
44604                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44605               }
44606               break;
44607             default:
44608               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44609           }
44610           iprot.readFieldEnd();
44611         }
44612         iprot.readStructEnd();
44613 
44614         // check for required fields of primitive type, which can't be checked in the validate method
44615         struct.validate();
44616       }
44617 
44618       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44619         struct.validate();
44620 
44621         oprot.writeStructBegin(STRUCT_DESC);
44622         if (struct.tableName != null) {
44623           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
44624           oprot.writeBinary(struct.tableName);
44625           oprot.writeFieldEnd();
44626         }
44627         if (struct.startRow != null) {
44628           oprot.writeFieldBegin(START_ROW_FIELD_DESC);
44629           oprot.writeBinary(struct.startRow);
44630           oprot.writeFieldEnd();
44631         }
44632         if (struct.stopRow != null) {
44633           oprot.writeFieldBegin(STOP_ROW_FIELD_DESC);
44634           oprot.writeBinary(struct.stopRow);
44635           oprot.writeFieldEnd();
44636         }
44637         if (struct.columns != null) {
44638           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
44639           {
44640             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
44641             for (ByteBuffer _iter501 : struct.columns)
44642             {
44643               oprot.writeBinary(_iter501);
44644             }
44645             oprot.writeListEnd();
44646           }
44647           oprot.writeFieldEnd();
44648         }
44649         if (struct.attributes != null) {
44650           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
44651           {
44652             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
44653             for (Map.Entry<ByteBuffer, ByteBuffer> _iter502 : struct.attributes.entrySet())
44654             {
44655               oprot.writeBinary(_iter502.getKey());
44656               oprot.writeBinary(_iter502.getValue());
44657             }
44658             oprot.writeMapEnd();
44659           }
44660           oprot.writeFieldEnd();
44661         }
44662         oprot.writeFieldStop();
44663         oprot.writeStructEnd();
44664       }
44665 
44666     }
44667 
44668     private static class scannerOpenWithStop_argsTupleSchemeFactory implements SchemeFactory {
44669       public scannerOpenWithStop_argsTupleScheme getScheme() {
44670         return new scannerOpenWithStop_argsTupleScheme();
44671       }
44672     }
44673 
44674     private static class scannerOpenWithStop_argsTupleScheme extends TupleScheme<scannerOpenWithStop_args> {
44675 
44676       @Override
44677       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44678         TTupleProtocol oprot = (TTupleProtocol) prot;
44679         BitSet optionals = new BitSet();
44680         if (struct.isSetTableName()) {
44681           optionals.set(0);
44682         }
44683         if (struct.isSetStartRow()) {
44684           optionals.set(1);
44685         }
44686         if (struct.isSetStopRow()) {
44687           optionals.set(2);
44688         }
44689         if (struct.isSetColumns()) {
44690           optionals.set(3);
44691         }
44692         if (struct.isSetAttributes()) {
44693           optionals.set(4);
44694         }
44695         oprot.writeBitSet(optionals, 5);
44696         if (struct.isSetTableName()) {
44697           oprot.writeBinary(struct.tableName);
44698         }
44699         if (struct.isSetStartRow()) {
44700           oprot.writeBinary(struct.startRow);
44701         }
44702         if (struct.isSetStopRow()) {
44703           oprot.writeBinary(struct.stopRow);
44704         }
44705         if (struct.isSetColumns()) {
44706           {
44707             oprot.writeI32(struct.columns.size());
44708             for (ByteBuffer _iter503 : struct.columns)
44709             {
44710               oprot.writeBinary(_iter503);
44711             }
44712           }
44713         }
44714         if (struct.isSetAttributes()) {
44715           {
44716             oprot.writeI32(struct.attributes.size());
44717             for (Map.Entry<ByteBuffer, ByteBuffer> _iter504 : struct.attributes.entrySet())
44718             {
44719               oprot.writeBinary(_iter504.getKey());
44720               oprot.writeBinary(_iter504.getValue());
44721             }
44722           }
44723         }
44724       }
44725 
44726       @Override
44727       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44728         TTupleProtocol iprot = (TTupleProtocol) prot;
44729         BitSet incoming = iprot.readBitSet(5);
44730         if (incoming.get(0)) {
44731           struct.tableName = iprot.readBinary();
44732           struct.setTableNameIsSet(true);
44733         }
44734         if (incoming.get(1)) {
44735           struct.startRow = iprot.readBinary();
44736           struct.setStartRowIsSet(true);
44737         }
44738         if (incoming.get(2)) {
44739           struct.stopRow = iprot.readBinary();
44740           struct.setStopRowIsSet(true);
44741         }
44742         if (incoming.get(3)) {
44743           {
44744             org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
44745             struct.columns = new ArrayList<ByteBuffer>(_list505.size);
44746             for (int _i506 = 0; _i506 < _list505.size; ++_i506)
44747             {
44748               ByteBuffer _elem507; // required
44749               _elem507 = iprot.readBinary();
44750               struct.columns.add(_elem507);
44751             }
44752           }
44753           struct.setColumnsIsSet(true);
44754         }
44755         if (incoming.get(4)) {
44756           {
44757             org.apache.thrift.protocol.TMap _map508 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
44758             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map508.size);
44759             for (int _i509 = 0; _i509 < _map508.size; ++_i509)
44760             {
44761               ByteBuffer _key510; // required
44762               ByteBuffer _val511; // required
44763               _key510 = iprot.readBinary();
44764               _val511 = iprot.readBinary();
44765               struct.attributes.put(_key510, _val511);
44766             }
44767           }
44768           struct.setAttributesIsSet(true);
44769         }
44770       }
44771     }
44772 
44773   }
44774 
44775   public static class scannerOpenWithStop_result implements org.apache.thrift.TBase<scannerOpenWithStop_result, scannerOpenWithStop_result._Fields>, java.io.Serializable, Cloneable   {
44776     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_result");
44777 
44778     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
44779     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
44780 
44781     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
44782     static {
44783       schemes.put(StandardScheme.class, new scannerOpenWithStop_resultStandardSchemeFactory());
44784       schemes.put(TupleScheme.class, new scannerOpenWithStop_resultTupleSchemeFactory());
44785     }
44786 
44787     public int success; // required
44788     public IOError io; // required
44789 
44790     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44791     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44792       SUCCESS((short)0, "success"),
44793       IO((short)1, "io");
44794 
44795       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44796 
44797       static {
44798         for (_Fields field : EnumSet.allOf(_Fields.class)) {
44799           byName.put(field.getFieldName(), field);
44800         }
44801       }
44802 
44803       /**
44804        * Find the _Fields constant that matches fieldId, or null if its not found.
44805        */
44806       public static _Fields findByThriftId(int fieldId) {
44807         switch(fieldId) {
44808           case 0: // SUCCESS
44809             return SUCCESS;
44810           case 1: // IO
44811             return IO;
44812           default:
44813             return null;
44814         }
44815       }
44816 
44817       /**
44818        * Find the _Fields constant that matches fieldId, throwing an exception
44819        * if it is not found.
44820        */
44821       public static _Fields findByThriftIdOrThrow(int fieldId) {
44822         _Fields fields = findByThriftId(fieldId);
44823         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44824         return fields;
44825       }
44826 
44827       /**
44828        * Find the _Fields constant that matches name, or null if its not found.
44829        */
44830       public static _Fields findByName(String name) {
44831         return byName.get(name);
44832       }
44833 
44834       private final short _thriftId;
44835       private final String _fieldName;
44836 
44837       _Fields(short thriftId, String fieldName) {
44838         _thriftId = thriftId;
44839         _fieldName = fieldName;
44840       }
44841 
44842       public short getThriftFieldId() {
44843         return _thriftId;
44844       }
44845 
44846       public String getFieldName() {
44847         return _fieldName;
44848       }
44849     }
44850 
44851     // isset id assignments
44852     private static final int __SUCCESS_ISSET_ID = 0;
44853     private byte __isset_bitfield = 0;
44854     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44855     static {
44856       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44857       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44858           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
44859       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44860           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44861       metaDataMap = Collections.unmodifiableMap(tmpMap);
44862       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_result.class, metaDataMap);
44863     }
44864 
44865     public scannerOpenWithStop_result() {
44866     }
44867 
44868     public scannerOpenWithStop_result(
44869       int success,
44870       IOError io)
44871     {
44872       this();
44873       this.success = success;
44874       setSuccessIsSet(true);
44875       this.io = io;
44876     }
44877 
44878     /**
44879      * Performs a deep copy on <i>other</i>.
44880      */
44881     public scannerOpenWithStop_result(scannerOpenWithStop_result other) {
44882       __isset_bitfield = other.__isset_bitfield;
44883       this.success = other.success;
44884       if (other.isSetIo()) {
44885         this.io = new IOError(other.io);
44886       }
44887     }
44888 
44889     public scannerOpenWithStop_result deepCopy() {
44890       return new scannerOpenWithStop_result(this);
44891     }
44892 
44893     @Override
44894     public void clear() {
44895       setSuccessIsSet(false);
44896       this.success = 0;
44897       this.io = null;
44898     }
44899 
44900     public int getSuccess() {
44901       return this.success;
44902     }
44903 
44904     public scannerOpenWithStop_result setSuccess(int success) {
44905       this.success = success;
44906       setSuccessIsSet(true);
44907       return this;
44908     }
44909 
44910     public void unsetSuccess() {
44911       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
44912     }
44913 
44914     /** Returns true if field success is set (has been assigned a value) and false otherwise */
44915     public boolean isSetSuccess() {
44916       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
44917     }
44918 
44919     public void setSuccessIsSet(boolean value) {
44920       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
44921     }
44922 
44923     public IOError getIo() {
44924       return this.io;
44925     }
44926 
44927     public scannerOpenWithStop_result setIo(IOError io) {
44928       this.io = io;
44929       return this;
44930     }
44931 
44932     public void unsetIo() {
44933       this.io = null;
44934     }
44935 
44936     /** Returns true if field io is set (has been assigned a value) and false otherwise */
44937     public boolean isSetIo() {
44938       return this.io != null;
44939     }
44940 
44941     public void setIoIsSet(boolean value) {
44942       if (!value) {
44943         this.io = null;
44944       }
44945     }
44946 
44947     public void setFieldValue(_Fields field, Object value) {
44948       switch (field) {
44949       case SUCCESS:
44950         if (value == null) {
44951           unsetSuccess();
44952         } else {
44953           setSuccess((Integer)value);
44954         }
44955         break;
44956 
44957       case IO:
44958         if (value == null) {
44959           unsetIo();
44960         } else {
44961           setIo((IOError)value);
44962         }
44963         break;
44964 
44965       }
44966     }
44967 
44968     public Object getFieldValue(_Fields field) {
44969       switch (field) {
44970       case SUCCESS:
44971         return Integer.valueOf(getSuccess());
44972 
44973       case IO:
44974         return getIo();
44975 
44976       }
44977       throw new IllegalStateException();
44978     }
44979 
44980     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44981     public boolean isSet(_Fields field) {
44982       if (field == null) {
44983         throw new IllegalArgumentException();
44984       }
44985 
44986       switch (field) {
44987       case SUCCESS:
44988         return isSetSuccess();
44989       case IO:
44990         return isSetIo();
44991       }
44992       throw new IllegalStateException();
44993     }
44994 
44995     @Override
44996     public boolean equals(Object that) {
44997       if (that == null)
44998         return false;
44999       if (that instanceof scannerOpenWithStop_result)
45000         return this.equals((scannerOpenWithStop_result)that);
45001       return false;
45002     }
45003 
45004     public boolean equals(scannerOpenWithStop_result that) {
45005       if (that == null)
45006         return false;
45007 
45008       boolean this_present_success = true;
45009       boolean that_present_success = true;
45010       if (this_present_success || that_present_success) {
45011         if (!(this_present_success && that_present_success))
45012           return false;
45013         if (this.success != that.success)
45014           return false;
45015       }
45016 
45017       boolean this_present_io = true && this.isSetIo();
45018       boolean that_present_io = true && that.isSetIo();
45019       if (this_present_io || that_present_io) {
45020         if (!(this_present_io && that_present_io))
45021           return false;
45022         if (!this.io.equals(that.io))
45023           return false;
45024       }
45025 
45026       return true;
45027     }
45028 
45029     @Override
45030     public int hashCode() {
45031       HashCodeBuilder builder = new HashCodeBuilder();
45032 
45033       boolean present_success = true;
45034       builder.append(present_success);
45035       if (present_success)
45036         builder.append(success);
45037 
45038       boolean present_io = true && (isSetIo());
45039       builder.append(present_io);
45040       if (present_io)
45041         builder.append(io);
45042 
45043       return builder.toHashCode();
45044     }
45045 
45046     public int compareTo(scannerOpenWithStop_result other) {
45047       if (!getClass().equals(other.getClass())) {
45048         return getClass().getName().compareTo(other.getClass().getName());
45049       }
45050 
45051       int lastComparison = 0;
45052       scannerOpenWithStop_result typedOther = (scannerOpenWithStop_result)other;
45053 
45054       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45055       if (lastComparison != 0) {
45056         return lastComparison;
45057       }
45058       if (isSetSuccess()) {
45059         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45060         if (lastComparison != 0) {
45061           return lastComparison;
45062         }
45063       }
45064       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
45065       if (lastComparison != 0) {
45066         return lastComparison;
45067       }
45068       if (isSetIo()) {
45069         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
45070         if (lastComparison != 0) {
45071           return lastComparison;
45072         }
45073       }
45074       return 0;
45075     }
45076 
45077     public _Fields fieldForId(int fieldId) {
45078       return _Fields.findByThriftId(fieldId);
45079     }
45080 
45081     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45082       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
45083     }
45084 
45085     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45086       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
45087       }
45088 
45089     @Override
45090     public String toString() {
45091       StringBuilder sb = new StringBuilder("scannerOpenWithStop_result(");
45092       boolean first = true;
45093 
45094       sb.append("success:");
45095       sb.append(this.success);
45096       first = false;
45097       if (!first) sb.append(", ");
45098       sb.append("io:");
45099       if (this.io == null) {
45100         sb.append("null");
45101       } else {
45102         sb.append(this.io);
45103       }
45104       first = false;
45105       sb.append(")");
45106       return sb.toString();
45107     }
45108 
45109     public void validate() throws org.apache.thrift.TException {
45110       // check for required fields
45111       // check for sub-struct validity
45112     }
45113 
45114     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45115       try {
45116         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45117       } catch (org.apache.thrift.TException te) {
45118         throw new java.io.IOException(te);
45119       }
45120     }
45121 
45122     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45123       try {
45124         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45125         __isset_bitfield = 0;
45126         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45127       } catch (org.apache.thrift.TException te) {
45128         throw new java.io.IOException(te);
45129       }
45130     }
45131 
45132     private static class scannerOpenWithStop_resultStandardSchemeFactory implements SchemeFactory {
45133       public scannerOpenWithStop_resultStandardScheme getScheme() {
45134         return new scannerOpenWithStop_resultStandardScheme();
45135       }
45136     }
45137 
45138     private static class scannerOpenWithStop_resultStandardScheme extends StandardScheme<scannerOpenWithStop_result> {
45139 
45140       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45141         org.apache.thrift.protocol.TField schemeField;
45142         iprot.readStructBegin();
45143         while (true)
45144         {
45145           schemeField = iprot.readFieldBegin();
45146           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
45147             break;
45148           }
45149           switch (schemeField.id) {
45150             case 0: // SUCCESS
45151               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
45152                 struct.success = iprot.readI32();
45153                 struct.setSuccessIsSet(true);
45154               } else { 
45155                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45156               }
45157               break;
45158             case 1: // IO
45159               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
45160                 struct.io = new IOError();
45161                 struct.io.read(iprot);
45162                 struct.setIoIsSet(true);
45163               } else { 
45164                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45165               }
45166               break;
45167             default:
45168               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45169           }
45170           iprot.readFieldEnd();
45171         }
45172         iprot.readStructEnd();
45173 
45174         // check for required fields of primitive type, which can't be checked in the validate method
45175         struct.validate();
45176       }
45177 
45178       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45179         struct.validate();
45180 
45181         oprot.writeStructBegin(STRUCT_DESC);
45182         if (struct.isSetSuccess()) {
45183           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45184           oprot.writeI32(struct.success);
45185           oprot.writeFieldEnd();
45186         }
45187         if (struct.io != null) {
45188           oprot.writeFieldBegin(IO_FIELD_DESC);
45189           struct.io.write(oprot);
45190           oprot.writeFieldEnd();
45191         }
45192         oprot.writeFieldStop();
45193         oprot.writeStructEnd();
45194       }
45195 
45196     }
45197 
45198     private static class scannerOpenWithStop_resultTupleSchemeFactory implements SchemeFactory {
45199       public scannerOpenWithStop_resultTupleScheme getScheme() {
45200         return new scannerOpenWithStop_resultTupleScheme();
45201       }
45202     }
45203 
45204     private static class scannerOpenWithStop_resultTupleScheme extends TupleScheme<scannerOpenWithStop_result> {
45205 
45206       @Override
45207       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45208         TTupleProtocol oprot = (TTupleProtocol) prot;
45209         BitSet optionals = new BitSet();
45210         if (struct.isSetSuccess()) {
45211           optionals.set(0);
45212         }
45213         if (struct.isSetIo()) {
45214           optionals.set(1);
45215         }
45216         oprot.writeBitSet(optionals, 2);
45217         if (struct.isSetSuccess()) {
45218           oprot.writeI32(struct.success);
45219         }
45220         if (struct.isSetIo()) {
45221           struct.io.write(oprot);
45222         }
45223       }
45224 
45225       @Override
45226       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45227         TTupleProtocol iprot = (TTupleProtocol) prot;
45228         BitSet incoming = iprot.readBitSet(2);
45229         if (incoming.get(0)) {
45230           struct.success = iprot.readI32();
45231           struct.setSuccessIsSet(true);
45232         }
45233         if (incoming.get(1)) {
45234           struct.io = new IOError();
45235           struct.io.read(iprot);
45236           struct.setIoIsSet(true);
45237         }
45238       }
45239     }
45240 
45241   }
45242 
45243   public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase<scannerOpenWithPrefix_args, scannerOpenWithPrefix_args._Fields>, java.io.Serializable, Cloneable   {
45244     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_args");
45245 
45246     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
45247     private static final org.apache.thrift.protocol.TField START_AND_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("startAndPrefix", org.apache.thrift.protocol.TType.STRING, (short)2);
45248     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
45249     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
45250 
45251     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
45252     static {
45253       schemes.put(StandardScheme.class, new scannerOpenWithPrefix_argsStandardSchemeFactory());
45254       schemes.put(TupleScheme.class, new scannerOpenWithPrefix_argsTupleSchemeFactory());
45255     }
45256 
45257     /**
45258      * name of table
45259      */
45260     public ByteBuffer tableName; // required
45261     /**
45262      * the prefix (and thus start row) of the keys you want
45263      */
45264     public ByteBuffer startAndPrefix; // required
45265     /**
45266      * the columns you want returned
45267      */
45268     public List<ByteBuffer> columns; // required
45269     /**
45270      * Scan attributes
45271      */
45272     public Map<ByteBuffer,ByteBuffer> attributes; // required
45273 
45274     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45275     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45276       /**
45277        * name of table
45278        */
45279       TABLE_NAME((short)1, "tableName"),
45280       /**
45281        * the prefix (and thus start row) of the keys you want
45282        */
45283       START_AND_PREFIX((short)2, "startAndPrefix"),
45284       /**
45285        * the columns you want returned
45286        */
45287       COLUMNS((short)3, "columns"),
45288       /**
45289        * Scan attributes
45290        */
45291       ATTRIBUTES((short)4, "attributes");
45292 
45293       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45294 
45295       static {
45296         for (_Fields field : EnumSet.allOf(_Fields.class)) {
45297           byName.put(field.getFieldName(), field);
45298         }
45299       }
45300 
45301       /**
45302        * Find the _Fields constant that matches fieldId, or null if its not found.
45303        */
45304       public static _Fields findByThriftId(int fieldId) {
45305         switch(fieldId) {
45306           case 1: // TABLE_NAME
45307             return TABLE_NAME;
45308           case 2: // START_AND_PREFIX
45309             return START_AND_PREFIX;
45310           case 3: // COLUMNS
45311             return COLUMNS;
45312           case 4: // ATTRIBUTES
45313             return ATTRIBUTES;
45314           default:
45315             return null;
45316         }
45317       }
45318 
45319       /**
45320        * Find the _Fields constant that matches fieldId, throwing an exception
45321        * if it is not found.
45322        */
45323       public static _Fields findByThriftIdOrThrow(int fieldId) {
45324         _Fields fields = findByThriftId(fieldId);
45325         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45326         return fields;
45327       }
45328 
45329       /**
45330        * Find the _Fields constant that matches name, or null if its not found.
45331        */
45332       public static _Fields findByName(String name) {
45333         return byName.get(name);
45334       }
45335 
45336       private final short _thriftId;
45337       private final String _fieldName;
45338 
45339       _Fields(short thriftId, String fieldName) {
45340         _thriftId = thriftId;
45341         _fieldName = fieldName;
45342       }
45343 
45344       public short getThriftFieldId() {
45345         return _thriftId;
45346       }
45347 
45348       public String getFieldName() {
45349         return _fieldName;
45350       }
45351     }
45352 
45353     // isset id assignments
45354     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45355     static {
45356       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45357       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45358           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
45359       tmpMap.put(_Fields.START_AND_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("startAndPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45360           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
45361       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45362           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
45363               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
45364       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45365           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
45366               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
45367               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
45368       metaDataMap = Collections.unmodifiableMap(tmpMap);
45369       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_args.class, metaDataMap);
45370     }
45371 
45372     public scannerOpenWithPrefix_args() {
45373     }
45374 
45375     public scannerOpenWithPrefix_args(
45376       ByteBuffer tableName,
45377       ByteBuffer startAndPrefix,
45378       List<ByteBuffer> columns,
45379       Map<ByteBuffer,ByteBuffer> attributes)
45380     {
45381       this();
45382       this.tableName = tableName;
45383       this.startAndPrefix = startAndPrefix;
45384       this.columns = columns;
45385       this.attributes = attributes;
45386     }
45387 
45388     /**
45389      * Performs a deep copy on <i>other</i>.
45390      */
45391     public scannerOpenWithPrefix_args(scannerOpenWithPrefix_args other) {
45392       if (other.isSetTableName()) {
45393         this.tableName = other.tableName;
45394       }
45395       if (other.isSetStartAndPrefix()) {
45396         this.startAndPrefix = other.startAndPrefix;
45397       }
45398       if (other.isSetColumns()) {
45399         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
45400         for (ByteBuffer other_element : other.columns) {
45401           __this__columns.add(other_element);
45402         }
45403         this.columns = __this__columns;
45404       }
45405       if (other.isSetAttributes()) {
45406         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
45407         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
45408 
45409           ByteBuffer other_element_key = other_element.getKey();
45410           ByteBuffer other_element_value = other_element.getValue();
45411 
45412           ByteBuffer __this__attributes_copy_key = other_element_key;
45413 
45414           ByteBuffer __this__attributes_copy_value = other_element_value;
45415 
45416           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
45417         }
45418         this.attributes = __this__attributes;
45419       }
45420     }
45421 
45422     public scannerOpenWithPrefix_args deepCopy() {
45423       return new scannerOpenWithPrefix_args(this);
45424     }
45425 
45426     @Override
45427     public void clear() {
45428       this.tableName = null;
45429       this.startAndPrefix = null;
45430       this.columns = null;
45431       this.attributes = null;
45432     }
45433 
45434     /**
45435      * name of table
45436      */
45437     public byte[] getTableName() {
45438       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
45439       return tableName == null ? null : tableName.array();
45440     }
45441 
45442     public ByteBuffer bufferForTableName() {
45443       return tableName;
45444     }
45445 
45446     /**
45447      * name of table
45448      */
45449     public scannerOpenWithPrefix_args setTableName(byte[] tableName) {
45450       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
45451       return this;
45452     }
45453 
45454     public scannerOpenWithPrefix_args setTableName(ByteBuffer tableName) {
45455       this.tableName = tableName;
45456       return this;
45457     }
45458 
45459     public void unsetTableName() {
45460       this.tableName = null;
45461     }
45462 
45463     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
45464     public boolean isSetTableName() {
45465       return this.tableName != null;
45466     }
45467 
45468     public void setTableNameIsSet(boolean value) {
45469       if (!value) {
45470         this.tableName = null;
45471       }
45472     }
45473 
45474     /**
45475      * the prefix (and thus start row) of the keys you want
45476      */
45477     public byte[] getStartAndPrefix() {
45478       setStartAndPrefix(org.apache.thrift.TBaseHelper.rightSize(startAndPrefix));
45479       return startAndPrefix == null ? null : startAndPrefix.array();
45480     }
45481 
45482     public ByteBuffer bufferForStartAndPrefix() {
45483       return startAndPrefix;
45484     }
45485 
45486     /**
45487      * the prefix (and thus start row) of the keys you want
45488      */
45489     public scannerOpenWithPrefix_args setStartAndPrefix(byte[] startAndPrefix) {
45490       setStartAndPrefix(startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(startAndPrefix));
45491       return this;
45492     }
45493 
45494     public scannerOpenWithPrefix_args setStartAndPrefix(ByteBuffer startAndPrefix) {
45495       this.startAndPrefix = startAndPrefix;
45496       return this;
45497     }
45498 
45499     public void unsetStartAndPrefix() {
45500       this.startAndPrefix = null;
45501     }
45502 
45503     /** Returns true if field startAndPrefix is set (has been assigned a value) and false otherwise */
45504     public boolean isSetStartAndPrefix() {
45505       return this.startAndPrefix != null;
45506     }
45507 
45508     public void setStartAndPrefixIsSet(boolean value) {
45509       if (!value) {
45510         this.startAndPrefix = null;
45511       }
45512     }
45513 
45514     public int getColumnsSize() {
45515       return (this.columns == null) ? 0 : this.columns.size();
45516     }
45517 
45518     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
45519       return (this.columns == null) ? null : this.columns.iterator();
45520     }
45521 
45522     public void addToColumns(ByteBuffer elem) {
45523       if (this.columns == null) {
45524         this.columns = new ArrayList<ByteBuffer>();
45525       }
45526       this.columns.add(elem);
45527     }
45528 
45529     /**
45530      * the columns you want returned
45531      */
45532     public List<ByteBuffer> getColumns() {
45533       return this.columns;
45534     }
45535 
45536     /**
45537      * the columns you want returned
45538      */
45539     public scannerOpenWithPrefix_args setColumns(List<ByteBuffer> columns) {
45540       this.columns = columns;
45541       return this;
45542     }
45543 
45544     public void unsetColumns() {
45545       this.columns = null;
45546     }
45547 
45548     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
45549     public boolean isSetColumns() {
45550       return this.columns != null;
45551     }
45552 
45553     public void setColumnsIsSet(boolean value) {
45554       if (!value) {
45555         this.columns = null;
45556       }
45557     }
45558 
45559     public int getAttributesSize() {
45560       return (this.attributes == null) ? 0 : this.attributes.size();
45561     }
45562 
45563     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
45564       if (this.attributes == null) {
45565         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
45566       }
45567       this.attributes.put(key, val);
45568     }
45569 
45570     /**
45571      * Scan attributes
45572      */
45573     public Map<ByteBuffer,ByteBuffer> getAttributes() {
45574       return this.attributes;
45575     }
45576 
45577     /**
45578      * Scan attributes
45579      */
45580     public scannerOpenWithPrefix_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
45581       this.attributes = attributes;
45582       return this;
45583     }
45584 
45585     public void unsetAttributes() {
45586       this.attributes = null;
45587     }
45588 
45589     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
45590     public boolean isSetAttributes() {
45591       return this.attributes != null;
45592     }
45593 
45594     public void setAttributesIsSet(boolean value) {
45595       if (!value) {
45596         this.attributes = null;
45597       }
45598     }
45599 
45600     public void setFieldValue(_Fields field, Object value) {
45601       switch (field) {
45602       case TABLE_NAME:
45603         if (value == null) {
45604           unsetTableName();
45605         } else {
45606           setTableName((ByteBuffer)value);
45607         }
45608         break;
45609 
45610       case START_AND_PREFIX:
45611         if (value == null) {
45612           unsetStartAndPrefix();
45613         } else {
45614           setStartAndPrefix((ByteBuffer)value);
45615         }
45616         break;
45617 
45618       case COLUMNS:
45619         if (value == null) {
45620           unsetColumns();
45621         } else {
45622           setColumns((List<ByteBuffer>)value);
45623         }
45624         break;
45625 
45626       case ATTRIBUTES:
45627         if (value == null) {
45628           unsetAttributes();
45629         } else {
45630           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
45631         }
45632         break;
45633 
45634       }
45635     }
45636 
45637     public Object getFieldValue(_Fields field) {
45638       switch (field) {
45639       case TABLE_NAME:
45640         return getTableName();
45641 
45642       case START_AND_PREFIX:
45643         return getStartAndPrefix();
45644 
45645       case COLUMNS:
45646         return getColumns();
45647 
45648       case ATTRIBUTES:
45649         return getAttributes();
45650 
45651       }
45652       throw new IllegalStateException();
45653     }
45654 
45655     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45656     public boolean isSet(_Fields field) {
45657       if (field == null) {
45658         throw new IllegalArgumentException();
45659       }
45660 
45661       switch (field) {
45662       case TABLE_NAME:
45663         return isSetTableName();
45664       case START_AND_PREFIX:
45665         return isSetStartAndPrefix();
45666       case COLUMNS:
45667         return isSetColumns();
45668       case ATTRIBUTES:
45669         return isSetAttributes();
45670       }
45671       throw new IllegalStateException();
45672     }
45673 
45674     @Override
45675     public boolean equals(Object that) {
45676       if (that == null)
45677         return false;
45678       if (that instanceof scannerOpenWithPrefix_args)
45679         return this.equals((scannerOpenWithPrefix_args)that);
45680       return false;
45681     }
45682 
45683     public boolean equals(scannerOpenWithPrefix_args that) {
45684       if (that == null)
45685         return false;
45686 
45687       boolean this_present_tableName = true && this.isSetTableName();
45688       boolean that_present_tableName = true && that.isSetTableName();
45689       if (this_present_tableName || that_present_tableName) {
45690         if (!(this_present_tableName && that_present_tableName))
45691           return false;
45692         if (!this.tableName.equals(that.tableName))
45693           return false;
45694       }
45695 
45696       boolean this_present_startAndPrefix = true && this.isSetStartAndPrefix();
45697       boolean that_present_startAndPrefix = true && that.isSetStartAndPrefix();
45698       if (this_present_startAndPrefix || that_present_startAndPrefix) {
45699         if (!(this_present_startAndPrefix && that_present_startAndPrefix))
45700           return false;
45701         if (!this.startAndPrefix.equals(that.startAndPrefix))
45702           return false;
45703       }
45704 
45705       boolean this_present_columns = true && this.isSetColumns();
45706       boolean that_present_columns = true && that.isSetColumns();
45707       if (this_present_columns || that_present_columns) {
45708         if (!(this_present_columns && that_present_columns))
45709           return false;
45710         if (!this.columns.equals(that.columns))
45711           return false;
45712       }
45713 
45714       boolean this_present_attributes = true && this.isSetAttributes();
45715       boolean that_present_attributes = true && that.isSetAttributes();
45716       if (this_present_attributes || that_present_attributes) {
45717         if (!(this_present_attributes && that_present_attributes))
45718           return false;
45719         if (!this.attributes.equals(that.attributes))
45720           return false;
45721       }
45722 
45723       return true;
45724     }
45725 
45726     @Override
45727     public int hashCode() {
45728       HashCodeBuilder builder = new HashCodeBuilder();
45729 
45730       boolean present_tableName = true && (isSetTableName());
45731       builder.append(present_tableName);
45732       if (present_tableName)
45733         builder.append(tableName);
45734 
45735       boolean present_startAndPrefix = true && (isSetStartAndPrefix());
45736       builder.append(present_startAndPrefix);
45737       if (present_startAndPrefix)
45738         builder.append(startAndPrefix);
45739 
45740       boolean present_columns = true && (isSetColumns());
45741       builder.append(present_columns);
45742       if (present_columns)
45743         builder.append(columns);
45744 
45745       boolean present_attributes = true && (isSetAttributes());
45746       builder.append(present_attributes);
45747       if (present_attributes)
45748         builder.append(attributes);
45749 
45750       return builder.toHashCode();
45751     }
45752 
45753     public int compareTo(scannerOpenWithPrefix_args other) {
45754       if (!getClass().equals(other.getClass())) {
45755         return getClass().getName().compareTo(other.getClass().getName());
45756       }
45757 
45758       int lastComparison = 0;
45759       scannerOpenWithPrefix_args typedOther = (scannerOpenWithPrefix_args)other;
45760 
45761       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
45762       if (lastComparison != 0) {
45763         return lastComparison;
45764       }
45765       if (isSetTableName()) {
45766         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
45767         if (lastComparison != 0) {
45768           return lastComparison;
45769         }
45770       }
45771       lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(typedOther.isSetStartAndPrefix());
45772       if (lastComparison != 0) {
45773         return lastComparison;
45774       }
45775       if (isSetStartAndPrefix()) {
45776         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startAndPrefix, typedOther.startAndPrefix);
45777         if (lastComparison != 0) {
45778           return lastComparison;
45779         }
45780       }
45781       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
45782       if (lastComparison != 0) {
45783         return lastComparison;
45784       }
45785       if (isSetColumns()) {
45786         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
45787         if (lastComparison != 0) {
45788           return lastComparison;
45789         }
45790       }
45791       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
45792       if (lastComparison != 0) {
45793         return lastComparison;
45794       }
45795       if (isSetAttributes()) {
45796         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
45797         if (lastComparison != 0) {
45798           return lastComparison;
45799         }
45800       }
45801       return 0;
45802     }
45803 
45804     public _Fields fieldForId(int fieldId) {
45805       return _Fields.findByThriftId(fieldId);
45806     }
45807 
45808     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45809       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
45810     }
45811 
45812     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45813       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
45814     }
45815 
45816     @Override
45817     public String toString() {
45818       StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_args(");
45819       boolean first = true;
45820 
45821       sb.append("tableName:");
45822       if (this.tableName == null) {
45823         sb.append("null");
45824       } else {
45825         sb.append(this.tableName);
45826       }
45827       first = false;
45828       if (!first) sb.append(", ");
45829       sb.append("startAndPrefix:");
45830       if (this.startAndPrefix == null) {
45831         sb.append("null");
45832       } else {
45833         sb.append(this.startAndPrefix);
45834       }
45835       first = false;
45836       if (!first) sb.append(", ");
45837       sb.append("columns:");
45838       if (this.columns == null) {
45839         sb.append("null");
45840       } else {
45841         sb.append(this.columns);
45842       }
45843       first = false;
45844       if (!first) sb.append(", ");
45845       sb.append("attributes:");
45846       if (this.attributes == null) {
45847         sb.append("null");
45848       } else {
45849         sb.append(this.attributes);
45850       }
45851       first = false;
45852       sb.append(")");
45853       return sb.toString();
45854     }
45855 
45856     public void validate() throws org.apache.thrift.TException {
45857       // check for required fields
45858       // check for sub-struct validity
45859     }
45860 
45861     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45862       try {
45863         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45864       } catch (org.apache.thrift.TException te) {
45865         throw new java.io.IOException(te);
45866       }
45867     }
45868 
45869     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45870       try {
45871         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45872       } catch (org.apache.thrift.TException te) {
45873         throw new java.io.IOException(te);
45874       }
45875     }
45876 
45877     private static class scannerOpenWithPrefix_argsStandardSchemeFactory implements SchemeFactory {
45878       public scannerOpenWithPrefix_argsStandardScheme getScheme() {
45879         return new scannerOpenWithPrefix_argsStandardScheme();
45880       }
45881     }
45882 
45883     private static class scannerOpenWithPrefix_argsStandardScheme extends StandardScheme<scannerOpenWithPrefix_args> {
45884 
45885       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
45886         org.apache.thrift.protocol.TField schemeField;
45887         iprot.readStructBegin();
45888         while (true)
45889         {
45890           schemeField = iprot.readFieldBegin();
45891           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
45892             break;
45893           }
45894           switch (schemeField.id) {
45895             case 1: // TABLE_NAME
45896               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
45897                 struct.tableName = iprot.readBinary();
45898                 struct.setTableNameIsSet(true);
45899               } else { 
45900                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45901               }
45902               break;
45903             case 2: // START_AND_PREFIX
45904               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
45905                 struct.startAndPrefix = iprot.readBinary();
45906                 struct.setStartAndPrefixIsSet(true);
45907               } else { 
45908                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45909               }
45910               break;
45911             case 3: // COLUMNS
45912               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
45913                 {
45914                   org.apache.thrift.protocol.TList _list512 = iprot.readListBegin();
45915                   struct.columns = new ArrayList<ByteBuffer>(_list512.size);
45916                   for (int _i513 = 0; _i513 < _list512.size; ++_i513)
45917                   {
45918                     ByteBuffer _elem514; // required
45919                     _elem514 = iprot.readBinary();
45920                     struct.columns.add(_elem514);
45921                   }
45922                   iprot.readListEnd();
45923                 }
45924                 struct.setColumnsIsSet(true);
45925               } else { 
45926                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45927               }
45928               break;
45929             case 4: // ATTRIBUTES
45930               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
45931                 {
45932                   org.apache.thrift.protocol.TMap _map515 = iprot.readMapBegin();
45933                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map515.size);
45934                   for (int _i516 = 0; _i516 < _map515.size; ++_i516)
45935                   {
45936                     ByteBuffer _key517; // required
45937                     ByteBuffer _val518; // required
45938                     _key517 = iprot.readBinary();
45939                     _val518 = iprot.readBinary();
45940                     struct.attributes.put(_key517, _val518);
45941                   }
45942                   iprot.readMapEnd();
45943                 }
45944                 struct.setAttributesIsSet(true);
45945               } else { 
45946                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45947               }
45948               break;
45949             default:
45950               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45951           }
45952           iprot.readFieldEnd();
45953         }
45954         iprot.readStructEnd();
45955 
45956         // check for required fields of primitive type, which can't be checked in the validate method
45957         struct.validate();
45958       }
45959 
45960       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
45961         struct.validate();
45962 
45963         oprot.writeStructBegin(STRUCT_DESC);
45964         if (struct.tableName != null) {
45965           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
45966           oprot.writeBinary(struct.tableName);
45967           oprot.writeFieldEnd();
45968         }
45969         if (struct.startAndPrefix != null) {
45970           oprot.writeFieldBegin(START_AND_PREFIX_FIELD_DESC);
45971           oprot.writeBinary(struct.startAndPrefix);
45972           oprot.writeFieldEnd();
45973         }
45974         if (struct.columns != null) {
45975           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
45976           {
45977             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
45978             for (ByteBuffer _iter519 : struct.columns)
45979             {
45980               oprot.writeBinary(_iter519);
45981             }
45982             oprot.writeListEnd();
45983           }
45984           oprot.writeFieldEnd();
45985         }
45986         if (struct.attributes != null) {
45987           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
45988           {
45989             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
45990             for (Map.Entry<ByteBuffer, ByteBuffer> _iter520 : struct.attributes.entrySet())
45991             {
45992               oprot.writeBinary(_iter520.getKey());
45993               oprot.writeBinary(_iter520.getValue());
45994             }
45995             oprot.writeMapEnd();
45996           }
45997           oprot.writeFieldEnd();
45998         }
45999         oprot.writeFieldStop();
46000         oprot.writeStructEnd();
46001       }
46002 
46003     }
46004 
46005     private static class scannerOpenWithPrefix_argsTupleSchemeFactory implements SchemeFactory {
46006       public scannerOpenWithPrefix_argsTupleScheme getScheme() {
46007         return new scannerOpenWithPrefix_argsTupleScheme();
46008       }
46009     }
46010 
46011     private static class scannerOpenWithPrefix_argsTupleScheme extends TupleScheme<scannerOpenWithPrefix_args> {
46012 
46013       @Override
46014       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
46015         TTupleProtocol oprot = (TTupleProtocol) prot;
46016         BitSet optionals = new BitSet();
46017         if (struct.isSetTableName()) {
46018           optionals.set(0);
46019         }
46020         if (struct.isSetStartAndPrefix()) {
46021           optionals.set(1);
46022         }
46023         if (struct.isSetColumns()) {
46024           optionals.set(2);
46025         }
46026         if (struct.isSetAttributes()) {
46027           optionals.set(3);
46028         }
46029         oprot.writeBitSet(optionals, 4);
46030         if (struct.isSetTableName()) {
46031           oprot.writeBinary(struct.tableName);
46032         }
46033         if (struct.isSetStartAndPrefix()) {
46034           oprot.writeBinary(struct.startAndPrefix);
46035         }
46036         if (struct.isSetColumns()) {
46037           {
46038             oprot.writeI32(struct.columns.size());
46039             for (ByteBuffer _iter521 : struct.columns)
46040             {
46041               oprot.writeBinary(_iter521);
46042             }
46043           }
46044         }
46045         if (struct.isSetAttributes()) {
46046           {
46047             oprot.writeI32(struct.attributes.size());
46048             for (Map.Entry<ByteBuffer, ByteBuffer> _iter522 : struct.attributes.entrySet())
46049             {
46050               oprot.writeBinary(_iter522.getKey());
46051               oprot.writeBinary(_iter522.getValue());
46052             }
46053           }
46054         }
46055       }
46056 
46057       @Override
46058       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
46059         TTupleProtocol iprot = (TTupleProtocol) prot;
46060         BitSet incoming = iprot.readBitSet(4);
46061         if (incoming.get(0)) {
46062           struct.tableName = iprot.readBinary();
46063           struct.setTableNameIsSet(true);
46064         }
46065         if (incoming.get(1)) {
46066           struct.startAndPrefix = iprot.readBinary();
46067           struct.setStartAndPrefixIsSet(true);
46068         }
46069         if (incoming.get(2)) {
46070           {
46071             org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
46072             struct.columns = new ArrayList<ByteBuffer>(_list523.size);
46073             for (int _i524 = 0; _i524 < _list523.size; ++_i524)
46074             {
46075               ByteBuffer _elem525; // required
46076               _elem525 = iprot.readBinary();
46077               struct.columns.add(_elem525);
46078             }
46079           }
46080           struct.setColumnsIsSet(true);
46081         }
46082         if (incoming.get(3)) {
46083           {
46084             org.apache.thrift.protocol.TMap _map526 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
46085             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map526.size);
46086             for (int _i527 = 0; _i527 < _map526.size; ++_i527)
46087             {
46088               ByteBuffer _key528; // required
46089               ByteBuffer _val529; // required
46090               _key528 = iprot.readBinary();
46091               _val529 = iprot.readBinary();
46092               struct.attributes.put(_key528, _val529);
46093             }
46094           }
46095           struct.setAttributesIsSet(true);
46096         }
46097       }
46098     }
46099 
46100   }
46101 
46102   public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase<scannerOpenWithPrefix_result, scannerOpenWithPrefix_result._Fields>, java.io.Serializable, Cloneable   {
46103     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_result");
46104 
46105     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
46106     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
46107 
46108     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
46109     static {
46110       schemes.put(StandardScheme.class, new scannerOpenWithPrefix_resultStandardSchemeFactory());
46111       schemes.put(TupleScheme.class, new scannerOpenWithPrefix_resultTupleSchemeFactory());
46112     }
46113 
46114     public int success; // required
46115     public IOError io; // required
46116 
46117     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46118     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46119       SUCCESS((short)0, "success"),
46120       IO((short)1, "io");
46121 
46122       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46123 
46124       static {
46125         for (_Fields field : EnumSet.allOf(_Fields.class)) {
46126           byName.put(field.getFieldName(), field);
46127         }
46128       }
46129 
46130       /**
46131        * Find the _Fields constant that matches fieldId, or null if its not found.
46132        */
46133       public static _Fields findByThriftId(int fieldId) {
46134         switch(fieldId) {
46135           case 0: // SUCCESS
46136             return SUCCESS;
46137           case 1: // IO
46138             return IO;
46139           default:
46140             return null;
46141         }
46142       }
46143 
46144       /**
46145        * Find the _Fields constant that matches fieldId, throwing an exception
46146        * if it is not found.
46147        */
46148       public static _Fields findByThriftIdOrThrow(int fieldId) {
46149         _Fields fields = findByThriftId(fieldId);
46150         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46151         return fields;
46152       }
46153 
46154       /**
46155        * Find the _Fields constant that matches name, or null if its not found.
46156        */
46157       public static _Fields findByName(String name) {
46158         return byName.get(name);
46159       }
46160 
46161       private final short _thriftId;
46162       private final String _fieldName;
46163 
46164       _Fields(short thriftId, String fieldName) {
46165         _thriftId = thriftId;
46166         _fieldName = fieldName;
46167       }
46168 
46169       public short getThriftFieldId() {
46170         return _thriftId;
46171       }
46172 
46173       public String getFieldName() {
46174         return _fieldName;
46175       }
46176     }
46177 
46178     // isset id assignments
46179     private static final int __SUCCESS_ISSET_ID = 0;
46180     private byte __isset_bitfield = 0;
46181     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46182     static {
46183       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46184       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46185           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
46186       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46187           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46188       metaDataMap = Collections.unmodifiableMap(tmpMap);
46189       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_result.class, metaDataMap);
46190     }
46191 
46192     public scannerOpenWithPrefix_result() {
46193     }
46194 
46195     public scannerOpenWithPrefix_result(
46196       int success,
46197       IOError io)
46198     {
46199       this();
46200       this.success = success;
46201       setSuccessIsSet(true);
46202       this.io = io;
46203     }
46204 
46205     /**
46206      * Performs a deep copy on <i>other</i>.
46207      */
46208     public scannerOpenWithPrefix_result(scannerOpenWithPrefix_result other) {
46209       __isset_bitfield = other.__isset_bitfield;
46210       this.success = other.success;
46211       if (other.isSetIo()) {
46212         this.io = new IOError(other.io);
46213       }
46214     }
46215 
46216     public scannerOpenWithPrefix_result deepCopy() {
46217       return new scannerOpenWithPrefix_result(this);
46218     }
46219 
46220     @Override
46221     public void clear() {
46222       setSuccessIsSet(false);
46223       this.success = 0;
46224       this.io = null;
46225     }
46226 
46227     public int getSuccess() {
46228       return this.success;
46229     }
46230 
46231     public scannerOpenWithPrefix_result setSuccess(int success) {
46232       this.success = success;
46233       setSuccessIsSet(true);
46234       return this;
46235     }
46236 
46237     public void unsetSuccess() {
46238       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
46239     }
46240 
46241     /** Returns true if field success is set (has been assigned a value) and false otherwise */
46242     public boolean isSetSuccess() {
46243       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
46244     }
46245 
46246     public void setSuccessIsSet(boolean value) {
46247       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
46248     }
46249 
46250     public IOError getIo() {
46251       return this.io;
46252     }
46253 
46254     public scannerOpenWithPrefix_result setIo(IOError io) {
46255       this.io = io;
46256       return this;
46257     }
46258 
46259     public void unsetIo() {
46260       this.io = null;
46261     }
46262 
46263     /** Returns true if field io is set (has been assigned a value) and false otherwise */
46264     public boolean isSetIo() {
46265       return this.io != null;
46266     }
46267 
46268     public void setIoIsSet(boolean value) {
46269       if (!value) {
46270         this.io = null;
46271       }
46272     }
46273 
46274     public void setFieldValue(_Fields field, Object value) {
46275       switch (field) {
46276       case SUCCESS:
46277         if (value == null) {
46278           unsetSuccess();
46279         } else {
46280           setSuccess((Integer)value);
46281         }
46282         break;
46283 
46284       case IO:
46285         if (value == null) {
46286           unsetIo();
46287         } else {
46288           setIo((IOError)value);
46289         }
46290         break;
46291 
46292       }
46293     }
46294 
46295     public Object getFieldValue(_Fields field) {
46296       switch (field) {
46297       case SUCCESS:
46298         return Integer.valueOf(getSuccess());
46299 
46300       case IO:
46301         return getIo();
46302 
46303       }
46304       throw new IllegalStateException();
46305     }
46306 
46307     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46308     public boolean isSet(_Fields field) {
46309       if (field == null) {
46310         throw new IllegalArgumentException();
46311       }
46312 
46313       switch (field) {
46314       case SUCCESS:
46315         return isSetSuccess();
46316       case IO:
46317         return isSetIo();
46318       }
46319       throw new IllegalStateException();
46320     }
46321 
46322     @Override
46323     public boolean equals(Object that) {
46324       if (that == null)
46325         return false;
46326       if (that instanceof scannerOpenWithPrefix_result)
46327         return this.equals((scannerOpenWithPrefix_result)that);
46328       return false;
46329     }
46330 
46331     public boolean equals(scannerOpenWithPrefix_result that) {
46332       if (that == null)
46333         return false;
46334 
46335       boolean this_present_success = true;
46336       boolean that_present_success = true;
46337       if (this_present_success || that_present_success) {
46338         if (!(this_present_success && that_present_success))
46339           return false;
46340         if (this.success != that.success)
46341           return false;
46342       }
46343 
46344       boolean this_present_io = true && this.isSetIo();
46345       boolean that_present_io = true && that.isSetIo();
46346       if (this_present_io || that_present_io) {
46347         if (!(this_present_io && that_present_io))
46348           return false;
46349         if (!this.io.equals(that.io))
46350           return false;
46351       }
46352 
46353       return true;
46354     }
46355 
46356     @Override
46357     public int hashCode() {
46358       HashCodeBuilder builder = new HashCodeBuilder();
46359 
46360       boolean present_success = true;
46361       builder.append(present_success);
46362       if (present_success)
46363         builder.append(success);
46364 
46365       boolean present_io = true && (isSetIo());
46366       builder.append(present_io);
46367       if (present_io)
46368         builder.append(io);
46369 
46370       return builder.toHashCode();
46371     }
46372 
46373     public int compareTo(scannerOpenWithPrefix_result other) {
46374       if (!getClass().equals(other.getClass())) {
46375         return getClass().getName().compareTo(other.getClass().getName());
46376       }
46377 
46378       int lastComparison = 0;
46379       scannerOpenWithPrefix_result typedOther = (scannerOpenWithPrefix_result)other;
46380 
46381       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46382       if (lastComparison != 0) {
46383         return lastComparison;
46384       }
46385       if (isSetSuccess()) {
46386         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46387         if (lastComparison != 0) {
46388           return lastComparison;
46389         }
46390       }
46391       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
46392       if (lastComparison != 0) {
46393         return lastComparison;
46394       }
46395       if (isSetIo()) {
46396         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
46397         if (lastComparison != 0) {
46398           return lastComparison;
46399         }
46400       }
46401       return 0;
46402     }
46403 
46404     public _Fields fieldForId(int fieldId) {
46405       return _Fields.findByThriftId(fieldId);
46406     }
46407 
46408     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46409       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
46410     }
46411 
46412     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46413       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
46414       }
46415 
46416     @Override
46417     public String toString() {
46418       StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_result(");
46419       boolean first = true;
46420 
46421       sb.append("success:");
46422       sb.append(this.success);
46423       first = false;
46424       if (!first) sb.append(", ");
46425       sb.append("io:");
46426       if (this.io == null) {
46427         sb.append("null");
46428       } else {
46429         sb.append(this.io);
46430       }
46431       first = false;
46432       sb.append(")");
46433       return sb.toString();
46434     }
46435 
46436     public void validate() throws org.apache.thrift.TException {
46437       // check for required fields
46438       // check for sub-struct validity
46439     }
46440 
46441     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46442       try {
46443         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46444       } catch (org.apache.thrift.TException te) {
46445         throw new java.io.IOException(te);
46446       }
46447     }
46448 
46449     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46450       try {
46451         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
46452         __isset_bitfield = 0;
46453         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46454       } catch (org.apache.thrift.TException te) {
46455         throw new java.io.IOException(te);
46456       }
46457     }
46458 
46459     private static class scannerOpenWithPrefix_resultStandardSchemeFactory implements SchemeFactory {
46460       public scannerOpenWithPrefix_resultStandardScheme getScheme() {
46461         return new scannerOpenWithPrefix_resultStandardScheme();
46462       }
46463     }
46464 
46465     private static class scannerOpenWithPrefix_resultStandardScheme extends StandardScheme<scannerOpenWithPrefix_result> {
46466 
46467       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46468         org.apache.thrift.protocol.TField schemeField;
46469         iprot.readStructBegin();
46470         while (true)
46471         {
46472           schemeField = iprot.readFieldBegin();
46473           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
46474             break;
46475           }
46476           switch (schemeField.id) {
46477             case 0: // SUCCESS
46478               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
46479                 struct.success = iprot.readI32();
46480                 struct.setSuccessIsSet(true);
46481               } else { 
46482                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46483               }
46484               break;
46485             case 1: // IO
46486               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
46487                 struct.io = new IOError();
46488                 struct.io.read(iprot);
46489                 struct.setIoIsSet(true);
46490               } else { 
46491                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46492               }
46493               break;
46494             default:
46495               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46496           }
46497           iprot.readFieldEnd();
46498         }
46499         iprot.readStructEnd();
46500 
46501         // check for required fields of primitive type, which can't be checked in the validate method
46502         struct.validate();
46503       }
46504 
46505       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46506         struct.validate();
46507 
46508         oprot.writeStructBegin(STRUCT_DESC);
46509         if (struct.isSetSuccess()) {
46510           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46511           oprot.writeI32(struct.success);
46512           oprot.writeFieldEnd();
46513         }
46514         if (struct.io != null) {
46515           oprot.writeFieldBegin(IO_FIELD_DESC);
46516           struct.io.write(oprot);
46517           oprot.writeFieldEnd();
46518         }
46519         oprot.writeFieldStop();
46520         oprot.writeStructEnd();
46521       }
46522 
46523     }
46524 
46525     private static class scannerOpenWithPrefix_resultTupleSchemeFactory implements SchemeFactory {
46526       public scannerOpenWithPrefix_resultTupleScheme getScheme() {
46527         return new scannerOpenWithPrefix_resultTupleScheme();
46528       }
46529     }
46530 
46531     private static class scannerOpenWithPrefix_resultTupleScheme extends TupleScheme<scannerOpenWithPrefix_result> {
46532 
46533       @Override
46534       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46535         TTupleProtocol oprot = (TTupleProtocol) prot;
46536         BitSet optionals = new BitSet();
46537         if (struct.isSetSuccess()) {
46538           optionals.set(0);
46539         }
46540         if (struct.isSetIo()) {
46541           optionals.set(1);
46542         }
46543         oprot.writeBitSet(optionals, 2);
46544         if (struct.isSetSuccess()) {
46545           oprot.writeI32(struct.success);
46546         }
46547         if (struct.isSetIo()) {
46548           struct.io.write(oprot);
46549         }
46550       }
46551 
46552       @Override
46553       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46554         TTupleProtocol iprot = (TTupleProtocol) prot;
46555         BitSet incoming = iprot.readBitSet(2);
46556         if (incoming.get(0)) {
46557           struct.success = iprot.readI32();
46558           struct.setSuccessIsSet(true);
46559         }
46560         if (incoming.get(1)) {
46561           struct.io = new IOError();
46562           struct.io.read(iprot);
46563           struct.setIoIsSet(true);
46564         }
46565       }
46566     }
46567 
46568   }
46569 
46570   public static class scannerOpenTs_args implements org.apache.thrift.TBase<scannerOpenTs_args, scannerOpenTs_args._Fields>, java.io.Serializable, Cloneable   {
46571     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_args");
46572 
46573     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
46574     private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
46575     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
46576     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
46577     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
46578 
46579     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
46580     static {
46581       schemes.put(StandardScheme.class, new scannerOpenTs_argsStandardSchemeFactory());
46582       schemes.put(TupleScheme.class, new scannerOpenTs_argsTupleSchemeFactory());
46583     }
46584 
46585     /**
46586      * name of table
46587      */
46588     public ByteBuffer tableName; // required
46589     /**
46590      * Starting row in table to scan.
46591      * Send "" (empty string) to start at the first row.
46592      */
46593     public ByteBuffer startRow; // required
46594     /**
46595      * columns to scan. If column name is a column family, all
46596      * columns of the specified column family are returned. It's also possible
46597      * to pass a regex in the column qualifier.
46598      */
46599     public List<ByteBuffer> columns; // required
46600     /**
46601      * timestamp
46602      */
46603     public long timestamp; // required
46604     /**
46605      * Scan attributes
46606      */
46607     public Map<ByteBuffer,ByteBuffer> attributes; // required
46608 
46609     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46610     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46611       /**
46612        * name of table
46613        */
46614       TABLE_NAME((short)1, "tableName"),
46615       /**
46616        * Starting row in table to scan.
46617        * Send "" (empty string) to start at the first row.
46618        */
46619       START_ROW((short)2, "startRow"),
46620       /**
46621        * columns to scan. If column name is a column family, all
46622        * columns of the specified column family are returned. It's also possible
46623        * to pass a regex in the column qualifier.
46624        */
46625       COLUMNS((short)3, "columns"),
46626       /**
46627        * timestamp
46628        */
46629       TIMESTAMP((short)4, "timestamp"),
46630       /**
46631        * Scan attributes
46632        */
46633       ATTRIBUTES((short)5, "attributes");
46634 
46635       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46636 
46637       static {
46638         for (_Fields field : EnumSet.allOf(_Fields.class)) {
46639           byName.put(field.getFieldName(), field);
46640         }
46641       }
46642 
46643       /**
46644        * Find the _Fields constant that matches fieldId, or null if its not found.
46645        */
46646       public static _Fields findByThriftId(int fieldId) {
46647         switch(fieldId) {
46648           case 1: // TABLE_NAME
46649             return TABLE_NAME;
46650           case 2: // START_ROW
46651             return START_ROW;
46652           case 3: // COLUMNS
46653             return COLUMNS;
46654           case 4: // TIMESTAMP
46655             return TIMESTAMP;
46656           case 5: // ATTRIBUTES
46657             return ATTRIBUTES;
46658           default:
46659             return null;
46660         }
46661       }
46662 
46663       /**
46664        * Find the _Fields constant that matches fieldId, throwing an exception
46665        * if it is not found.
46666        */
46667       public static _Fields findByThriftIdOrThrow(int fieldId) {
46668         _Fields fields = findByThriftId(fieldId);
46669         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46670         return fields;
46671       }
46672 
46673       /**
46674        * Find the _Fields constant that matches name, or null if its not found.
46675        */
46676       public static _Fields findByName(String name) {
46677         return byName.get(name);
46678       }
46679 
46680       private final short _thriftId;
46681       private final String _fieldName;
46682 
46683       _Fields(short thriftId, String fieldName) {
46684         _thriftId = thriftId;
46685         _fieldName = fieldName;
46686       }
46687 
46688       public short getThriftFieldId() {
46689         return _thriftId;
46690       }
46691 
46692       public String getFieldName() {
46693         return _fieldName;
46694       }
46695     }
46696 
46697     // isset id assignments
46698     private static final int __TIMESTAMP_ISSET_ID = 0;
46699     private byte __isset_bitfield = 0;
46700     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46701     static {
46702       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46703       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46704           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
46705       tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46706           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
46707       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46708           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
46709               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
46710       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46711           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46712       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46713           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
46714               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
46715               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
46716       metaDataMap = Collections.unmodifiableMap(tmpMap);
46717       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_args.class, metaDataMap);
46718     }
46719 
46720     public scannerOpenTs_args() {
46721     }
46722 
46723     public scannerOpenTs_args(
46724       ByteBuffer tableName,
46725       ByteBuffer startRow,
46726       List<ByteBuffer> columns,
46727       long timestamp,
46728       Map<ByteBuffer,ByteBuffer> attributes)
46729     {
46730       this();
46731       this.tableName = tableName;
46732       this.startRow = startRow;
46733       this.columns = columns;
46734       this.timestamp = timestamp;
46735       setTimestampIsSet(true);
46736       this.attributes = attributes;
46737     }
46738 
46739     /**
46740      * Performs a deep copy on <i>other</i>.
46741      */
46742     public scannerOpenTs_args(scannerOpenTs_args other) {
46743       __isset_bitfield = other.__isset_bitfield;
46744       if (other.isSetTableName()) {
46745         this.tableName = other.tableName;
46746       }
46747       if (other.isSetStartRow()) {
46748         this.startRow = other.startRow;
46749       }
46750       if (other.isSetColumns()) {
46751         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
46752         for (ByteBuffer other_element : other.columns) {
46753           __this__columns.add(other_element);
46754         }
46755         this.columns = __this__columns;
46756       }
46757       this.timestamp = other.timestamp;
46758       if (other.isSetAttributes()) {
46759         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
46760         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
46761 
46762           ByteBuffer other_element_key = other_element.getKey();
46763           ByteBuffer other_element_value = other_element.getValue();
46764 
46765           ByteBuffer __this__attributes_copy_key = other_element_key;
46766 
46767           ByteBuffer __this__attributes_copy_value = other_element_value;
46768 
46769           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
46770         }
46771         this.attributes = __this__attributes;
46772       }
46773     }
46774 
46775     public scannerOpenTs_args deepCopy() {
46776       return new scannerOpenTs_args(this);
46777     }
46778 
46779     @Override
46780     public void clear() {
46781       this.tableName = null;
46782       this.startRow = null;
46783       this.columns = null;
46784       setTimestampIsSet(false);
46785       this.timestamp = 0;
46786       this.attributes = null;
46787     }
46788 
46789     /**
46790      * name of table
46791      */
46792     public byte[] getTableName() {
46793       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
46794       return tableName == null ? null : tableName.array();
46795     }
46796 
46797     public ByteBuffer bufferForTableName() {
46798       return tableName;
46799     }
46800 
46801     /**
46802      * name of table
46803      */
46804     public scannerOpenTs_args setTableName(byte[] tableName) {
46805       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
46806       return this;
46807     }
46808 
46809     public scannerOpenTs_args setTableName(ByteBuffer tableName) {
46810       this.tableName = tableName;
46811       return this;
46812     }
46813 
46814     public void unsetTableName() {
46815       this.tableName = null;
46816     }
46817 
46818     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
46819     public boolean isSetTableName() {
46820       return this.tableName != null;
46821     }
46822 
46823     public void setTableNameIsSet(boolean value) {
46824       if (!value) {
46825         this.tableName = null;
46826       }
46827     }
46828 
46829     /**
46830      * Starting row in table to scan.
46831      * Send "" (empty string) to start at the first row.
46832      */
46833     public byte[] getStartRow() {
46834       setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
46835       return startRow == null ? null : startRow.array();
46836     }
46837 
46838     public ByteBuffer bufferForStartRow() {
46839       return startRow;
46840     }
46841 
46842     /**
46843      * Starting row in table to scan.
46844      * Send "" (empty string) to start at the first row.
46845      */
46846     public scannerOpenTs_args setStartRow(byte[] startRow) {
46847       setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
46848       return this;
46849     }
46850 
46851     public scannerOpenTs_args setStartRow(ByteBuffer startRow) {
46852       this.startRow = startRow;
46853       return this;
46854     }
46855 
46856     public void unsetStartRow() {
46857       this.startRow = null;
46858     }
46859 
46860     /** Returns true if field startRow is set (has been assigned a value) and false otherwise */
46861     public boolean isSetStartRow() {
46862       return this.startRow != null;
46863     }
46864 
46865     public void setStartRowIsSet(boolean value) {
46866       if (!value) {
46867         this.startRow = null;
46868       }
46869     }
46870 
46871     public int getColumnsSize() {
46872       return (this.columns == null) ? 0 : this.columns.size();
46873     }
46874 
46875     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
46876       return (this.columns == null) ? null : this.columns.iterator();
46877     }
46878 
46879     public void addToColumns(ByteBuffer elem) {
46880       if (this.columns == null) {
46881         this.columns = new ArrayList<ByteBuffer>();
46882       }
46883       this.columns.add(elem);
46884     }
46885 
46886     /**
46887      * columns to scan. If column name is a column family, all
46888      * columns of the specified column family are returned. It's also possible
46889      * to pass a regex in the column qualifier.
46890      */
46891     public List<ByteBuffer> getColumns() {
46892       return this.columns;
46893     }
46894 
46895     /**
46896      * columns to scan. If column name is a column family, all
46897      * columns of the specified column family are returned. It's also possible
46898      * to pass a regex in the column qualifier.
46899      */
46900     public scannerOpenTs_args setColumns(List<ByteBuffer> columns) {
46901       this.columns = columns;
46902       return this;
46903     }
46904 
46905     public void unsetColumns() {
46906       this.columns = null;
46907     }
46908 
46909     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
46910     public boolean isSetColumns() {
46911       return this.columns != null;
46912     }
46913 
46914     public void setColumnsIsSet(boolean value) {
46915       if (!value) {
46916         this.columns = null;
46917       }
46918     }
46919 
46920     /**
46921      * timestamp
46922      */
46923     public long getTimestamp() {
46924       return this.timestamp;
46925     }
46926 
46927     /**
46928      * timestamp
46929      */
46930     public scannerOpenTs_args setTimestamp(long timestamp) {
46931       this.timestamp = timestamp;
46932       setTimestampIsSet(true);
46933       return this;
46934     }
46935 
46936     public void unsetTimestamp() {
46937       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
46938     }
46939 
46940     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
46941     public boolean isSetTimestamp() {
46942       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
46943     }
46944 
46945     public void setTimestampIsSet(boolean value) {
46946       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
46947     }
46948 
46949     public int getAttributesSize() {
46950       return (this.attributes == null) ? 0 : this.attributes.size();
46951     }
46952 
46953     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
46954       if (this.attributes == null) {
46955         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
46956       }
46957       this.attributes.put(key, val);
46958     }
46959 
46960     /**
46961      * Scan attributes
46962      */
46963     public Map<ByteBuffer,ByteBuffer> getAttributes() {
46964       return this.attributes;
46965     }
46966 
46967     /**
46968      * Scan attributes
46969      */
46970     public scannerOpenTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
46971       this.attributes = attributes;
46972       return this;
46973     }
46974 
46975     public void unsetAttributes() {
46976       this.attributes = null;
46977     }
46978 
46979     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
46980     public boolean isSetAttributes() {
46981       return this.attributes != null;
46982     }
46983 
46984     public void setAttributesIsSet(boolean value) {
46985       if (!value) {
46986         this.attributes = null;
46987       }
46988     }
46989 
46990     public void setFieldValue(_Fields field, Object value) {
46991       switch (field) {
46992       case TABLE_NAME:
46993         if (value == null) {
46994           unsetTableName();
46995         } else {
46996           setTableName((ByteBuffer)value);
46997         }
46998         break;
46999 
47000       case START_ROW:
47001         if (value == null) {
47002           unsetStartRow();
47003         } else {
47004           setStartRow((ByteBuffer)value);
47005         }
47006         break;
47007 
47008       case COLUMNS:
47009         if (value == null) {
47010           unsetColumns();
47011         } else {
47012           setColumns((List<ByteBuffer>)value);
47013         }
47014         break;
47015 
47016       case TIMESTAMP:
47017         if (value == null) {
47018           unsetTimestamp();
47019         } else {
47020           setTimestamp((Long)value);
47021         }
47022         break;
47023 
47024       case ATTRIBUTES:
47025         if (value == null) {
47026           unsetAttributes();
47027         } else {
47028           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
47029         }
47030         break;
47031 
47032       }
47033     }
47034 
47035     public Object getFieldValue(_Fields field) {
47036       switch (field) {
47037       case TABLE_NAME:
47038         return getTableName();
47039 
47040       case START_ROW:
47041         return getStartRow();
47042 
47043       case COLUMNS:
47044         return getColumns();
47045 
47046       case TIMESTAMP:
47047         return Long.valueOf(getTimestamp());
47048 
47049       case ATTRIBUTES:
47050         return getAttributes();
47051 
47052       }
47053       throw new IllegalStateException();
47054     }
47055 
47056     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47057     public boolean isSet(_Fields field) {
47058       if (field == null) {
47059         throw new IllegalArgumentException();
47060       }
47061 
47062       switch (field) {
47063       case TABLE_NAME:
47064         return isSetTableName();
47065       case START_ROW:
47066         return isSetStartRow();
47067       case COLUMNS:
47068         return isSetColumns();
47069       case TIMESTAMP:
47070         return isSetTimestamp();
47071       case ATTRIBUTES:
47072         return isSetAttributes();
47073       }
47074       throw new IllegalStateException();
47075     }
47076 
47077     @Override
47078     public boolean equals(Object that) {
47079       if (that == null)
47080         return false;
47081       if (that instanceof scannerOpenTs_args)
47082         return this.equals((scannerOpenTs_args)that);
47083       return false;
47084     }
47085 
47086     public boolean equals(scannerOpenTs_args that) {
47087       if (that == null)
47088         return false;
47089 
47090       boolean this_present_tableName = true && this.isSetTableName();
47091       boolean that_present_tableName = true && that.isSetTableName();
47092       if (this_present_tableName || that_present_tableName) {
47093         if (!(this_present_tableName && that_present_tableName))
47094           return false;
47095         if (!this.tableName.equals(that.tableName))
47096           return false;
47097       }
47098 
47099       boolean this_present_startRow = true && this.isSetStartRow();
47100       boolean that_present_startRow = true && that.isSetStartRow();
47101       if (this_present_startRow || that_present_startRow) {
47102         if (!(this_present_startRow && that_present_startRow))
47103           return false;
47104         if (!this.startRow.equals(that.startRow))
47105           return false;
47106       }
47107 
47108       boolean this_present_columns = true && this.isSetColumns();
47109       boolean that_present_columns = true && that.isSetColumns();
47110       if (this_present_columns || that_present_columns) {
47111         if (!(this_present_columns && that_present_columns))
47112           return false;
47113         if (!this.columns.equals(that.columns))
47114           return false;
47115       }
47116 
47117       boolean this_present_timestamp = true;
47118       boolean that_present_timestamp = true;
47119       if (this_present_timestamp || that_present_timestamp) {
47120         if (!(this_present_timestamp && that_present_timestamp))
47121           return false;
47122         if (this.timestamp != that.timestamp)
47123           return false;
47124       }
47125 
47126       boolean this_present_attributes = true && this.isSetAttributes();
47127       boolean that_present_attributes = true && that.isSetAttributes();
47128       if (this_present_attributes || that_present_attributes) {
47129         if (!(this_present_attributes && that_present_attributes))
47130           return false;
47131         if (!this.attributes.equals(that.attributes))
47132           return false;
47133       }
47134 
47135       return true;
47136     }
47137 
47138     @Override
47139     public int hashCode() {
47140       HashCodeBuilder builder = new HashCodeBuilder();
47141 
47142       boolean present_tableName = true && (isSetTableName());
47143       builder.append(present_tableName);
47144       if (present_tableName)
47145         builder.append(tableName);
47146 
47147       boolean present_startRow = true && (isSetStartRow());
47148       builder.append(present_startRow);
47149       if (present_startRow)
47150         builder.append(startRow);
47151 
47152       boolean present_columns = true && (isSetColumns());
47153       builder.append(present_columns);
47154       if (present_columns)
47155         builder.append(columns);
47156 
47157       boolean present_timestamp = true;
47158       builder.append(present_timestamp);
47159       if (present_timestamp)
47160         builder.append(timestamp);
47161 
47162       boolean present_attributes = true && (isSetAttributes());
47163       builder.append(present_attributes);
47164       if (present_attributes)
47165         builder.append(attributes);
47166 
47167       return builder.toHashCode();
47168     }
47169 
47170     public int compareTo(scannerOpenTs_args other) {
47171       if (!getClass().equals(other.getClass())) {
47172         return getClass().getName().compareTo(other.getClass().getName());
47173       }
47174 
47175       int lastComparison = 0;
47176       scannerOpenTs_args typedOther = (scannerOpenTs_args)other;
47177 
47178       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
47179       if (lastComparison != 0) {
47180         return lastComparison;
47181       }
47182       if (isSetTableName()) {
47183         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
47184         if (lastComparison != 0) {
47185           return lastComparison;
47186         }
47187       }
47188       lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
47189       if (lastComparison != 0) {
47190         return lastComparison;
47191       }
47192       if (isSetStartRow()) {
47193         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
47194         if (lastComparison != 0) {
47195           return lastComparison;
47196         }
47197       }
47198       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
47199       if (lastComparison != 0) {
47200         return lastComparison;
47201       }
47202       if (isSetColumns()) {
47203         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
47204         if (lastComparison != 0) {
47205           return lastComparison;
47206         }
47207       }
47208       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
47209       if (lastComparison != 0) {
47210         return lastComparison;
47211       }
47212       if (isSetTimestamp()) {
47213         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
47214         if (lastComparison != 0) {
47215           return lastComparison;
47216         }
47217       }
47218       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
47219       if (lastComparison != 0) {
47220         return lastComparison;
47221       }
47222       if (isSetAttributes()) {
47223         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
47224         if (lastComparison != 0) {
47225           return lastComparison;
47226         }
47227       }
47228       return 0;
47229     }
47230 
47231     public _Fields fieldForId(int fieldId) {
47232       return _Fields.findByThriftId(fieldId);
47233     }
47234 
47235     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47236       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
47237     }
47238 
47239     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47240       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
47241     }
47242 
47243     @Override
47244     public String toString() {
47245       StringBuilder sb = new StringBuilder("scannerOpenTs_args(");
47246       boolean first = true;
47247 
47248       sb.append("tableName:");
47249       if (this.tableName == null) {
47250         sb.append("null");
47251       } else {
47252         sb.append(this.tableName);
47253       }
47254       first = false;
47255       if (!first) sb.append(", ");
47256       sb.append("startRow:");
47257       if (this.startRow == null) {
47258         sb.append("null");
47259       } else {
47260         sb.append(this.startRow);
47261       }
47262       first = false;
47263       if (!first) sb.append(", ");
47264       sb.append("columns:");
47265       if (this.columns == null) {
47266         sb.append("null");
47267       } else {
47268         sb.append(this.columns);
47269       }
47270       first = false;
47271       if (!first) sb.append(", ");
47272       sb.append("timestamp:");
47273       sb.append(this.timestamp);
47274       first = false;
47275       if (!first) sb.append(", ");
47276       sb.append("attributes:");
47277       if (this.attributes == null) {
47278         sb.append("null");
47279       } else {
47280         sb.append(this.attributes);
47281       }
47282       first = false;
47283       sb.append(")");
47284       return sb.toString();
47285     }
47286 
47287     public void validate() throws org.apache.thrift.TException {
47288       // check for required fields
47289       // check for sub-struct validity
47290     }
47291 
47292     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47293       try {
47294         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47295       } catch (org.apache.thrift.TException te) {
47296         throw new java.io.IOException(te);
47297       }
47298     }
47299 
47300     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47301       try {
47302         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47303         __isset_bitfield = 0;
47304         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47305       } catch (org.apache.thrift.TException te) {
47306         throw new java.io.IOException(te);
47307       }
47308     }
47309 
47310     private static class scannerOpenTs_argsStandardSchemeFactory implements SchemeFactory {
47311       public scannerOpenTs_argsStandardScheme getScheme() {
47312         return new scannerOpenTs_argsStandardScheme();
47313       }
47314     }
47315 
47316     private static class scannerOpenTs_argsStandardScheme extends StandardScheme<scannerOpenTs_args> {
47317 
47318       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47319         org.apache.thrift.protocol.TField schemeField;
47320         iprot.readStructBegin();
47321         while (true)
47322         {
47323           schemeField = iprot.readFieldBegin();
47324           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
47325             break;
47326           }
47327           switch (schemeField.id) {
47328             case 1: // TABLE_NAME
47329               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
47330                 struct.tableName = iprot.readBinary();
47331                 struct.setTableNameIsSet(true);
47332               } else { 
47333                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47334               }
47335               break;
47336             case 2: // START_ROW
47337               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
47338                 struct.startRow = iprot.readBinary();
47339                 struct.setStartRowIsSet(true);
47340               } else { 
47341                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47342               }
47343               break;
47344             case 3: // COLUMNS
47345               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
47346                 {
47347                   org.apache.thrift.protocol.TList _list530 = iprot.readListBegin();
47348                   struct.columns = new ArrayList<ByteBuffer>(_list530.size);
47349                   for (int _i531 = 0; _i531 < _list530.size; ++_i531)
47350                   {
47351                     ByteBuffer _elem532; // required
47352                     _elem532 = iprot.readBinary();
47353                     struct.columns.add(_elem532);
47354                   }
47355                   iprot.readListEnd();
47356                 }
47357                 struct.setColumnsIsSet(true);
47358               } else { 
47359                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47360               }
47361               break;
47362             case 4: // TIMESTAMP
47363               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
47364                 struct.timestamp = iprot.readI64();
47365                 struct.setTimestampIsSet(true);
47366               } else { 
47367                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47368               }
47369               break;
47370             case 5: // ATTRIBUTES
47371               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
47372                 {
47373                   org.apache.thrift.protocol.TMap _map533 = iprot.readMapBegin();
47374                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map533.size);
47375                   for (int _i534 = 0; _i534 < _map533.size; ++_i534)
47376                   {
47377                     ByteBuffer _key535; // required
47378                     ByteBuffer _val536; // required
47379                     _key535 = iprot.readBinary();
47380                     _val536 = iprot.readBinary();
47381                     struct.attributes.put(_key535, _val536);
47382                   }
47383                   iprot.readMapEnd();
47384                 }
47385                 struct.setAttributesIsSet(true);
47386               } else { 
47387                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47388               }
47389               break;
47390             default:
47391               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47392           }
47393           iprot.readFieldEnd();
47394         }
47395         iprot.readStructEnd();
47396 
47397         // check for required fields of primitive type, which can't be checked in the validate method
47398         struct.validate();
47399       }
47400 
47401       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47402         struct.validate();
47403 
47404         oprot.writeStructBegin(STRUCT_DESC);
47405         if (struct.tableName != null) {
47406           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
47407           oprot.writeBinary(struct.tableName);
47408           oprot.writeFieldEnd();
47409         }
47410         if (struct.startRow != null) {
47411           oprot.writeFieldBegin(START_ROW_FIELD_DESC);
47412           oprot.writeBinary(struct.startRow);
47413           oprot.writeFieldEnd();
47414         }
47415         if (struct.columns != null) {
47416           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
47417           {
47418             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
47419             for (ByteBuffer _iter537 : struct.columns)
47420             {
47421               oprot.writeBinary(_iter537);
47422             }
47423             oprot.writeListEnd();
47424           }
47425           oprot.writeFieldEnd();
47426         }
47427         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
47428         oprot.writeI64(struct.timestamp);
47429         oprot.writeFieldEnd();
47430         if (struct.attributes != null) {
47431           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
47432           {
47433             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
47434             for (Map.Entry<ByteBuffer, ByteBuffer> _iter538 : struct.attributes.entrySet())
47435             {
47436               oprot.writeBinary(_iter538.getKey());
47437               oprot.writeBinary(_iter538.getValue());
47438             }
47439             oprot.writeMapEnd();
47440           }
47441           oprot.writeFieldEnd();
47442         }
47443         oprot.writeFieldStop();
47444         oprot.writeStructEnd();
47445       }
47446 
47447     }
47448 
47449     private static class scannerOpenTs_argsTupleSchemeFactory implements SchemeFactory {
47450       public scannerOpenTs_argsTupleScheme getScheme() {
47451         return new scannerOpenTs_argsTupleScheme();
47452       }
47453     }
47454 
47455     private static class scannerOpenTs_argsTupleScheme extends TupleScheme<scannerOpenTs_args> {
47456 
47457       @Override
47458       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47459         TTupleProtocol oprot = (TTupleProtocol) prot;
47460         BitSet optionals = new BitSet();
47461         if (struct.isSetTableName()) {
47462           optionals.set(0);
47463         }
47464         if (struct.isSetStartRow()) {
47465           optionals.set(1);
47466         }
47467         if (struct.isSetColumns()) {
47468           optionals.set(2);
47469         }
47470         if (struct.isSetTimestamp()) {
47471           optionals.set(3);
47472         }
47473         if (struct.isSetAttributes()) {
47474           optionals.set(4);
47475         }
47476         oprot.writeBitSet(optionals, 5);
47477         if (struct.isSetTableName()) {
47478           oprot.writeBinary(struct.tableName);
47479         }
47480         if (struct.isSetStartRow()) {
47481           oprot.writeBinary(struct.startRow);
47482         }
47483         if (struct.isSetColumns()) {
47484           {
47485             oprot.writeI32(struct.columns.size());
47486             for (ByteBuffer _iter539 : struct.columns)
47487             {
47488               oprot.writeBinary(_iter539);
47489             }
47490           }
47491         }
47492         if (struct.isSetTimestamp()) {
47493           oprot.writeI64(struct.timestamp);
47494         }
47495         if (struct.isSetAttributes()) {
47496           {
47497             oprot.writeI32(struct.attributes.size());
47498             for (Map.Entry<ByteBuffer, ByteBuffer> _iter540 : struct.attributes.entrySet())
47499             {
47500               oprot.writeBinary(_iter540.getKey());
47501               oprot.writeBinary(_iter540.getValue());
47502             }
47503           }
47504         }
47505       }
47506 
47507       @Override
47508       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47509         TTupleProtocol iprot = (TTupleProtocol) prot;
47510         BitSet incoming = iprot.readBitSet(5);
47511         if (incoming.get(0)) {
47512           struct.tableName = iprot.readBinary();
47513           struct.setTableNameIsSet(true);
47514         }
47515         if (incoming.get(1)) {
47516           struct.startRow = iprot.readBinary();
47517           struct.setStartRowIsSet(true);
47518         }
47519         if (incoming.get(2)) {
47520           {
47521             org.apache.thrift.protocol.TList _list541 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
47522             struct.columns = new ArrayList<ByteBuffer>(_list541.size);
47523             for (int _i542 = 0; _i542 < _list541.size; ++_i542)
47524             {
47525               ByteBuffer _elem543; // required
47526               _elem543 = iprot.readBinary();
47527               struct.columns.add(_elem543);
47528             }
47529           }
47530           struct.setColumnsIsSet(true);
47531         }
47532         if (incoming.get(3)) {
47533           struct.timestamp = iprot.readI64();
47534           struct.setTimestampIsSet(true);
47535         }
47536         if (incoming.get(4)) {
47537           {
47538             org.apache.thrift.protocol.TMap _map544 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
47539             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map544.size);
47540             for (int _i545 = 0; _i545 < _map544.size; ++_i545)
47541             {
47542               ByteBuffer _key546; // required
47543               ByteBuffer _val547; // required
47544               _key546 = iprot.readBinary();
47545               _val547 = iprot.readBinary();
47546               struct.attributes.put(_key546, _val547);
47547             }
47548           }
47549           struct.setAttributesIsSet(true);
47550         }
47551       }
47552     }
47553 
47554   }
47555 
47556   public static class scannerOpenTs_result implements org.apache.thrift.TBase<scannerOpenTs_result, scannerOpenTs_result._Fields>, java.io.Serializable, Cloneable   {
47557     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_result");
47558 
47559     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
47560     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
47561 
47562     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
47563     static {
47564       schemes.put(StandardScheme.class, new scannerOpenTs_resultStandardSchemeFactory());
47565       schemes.put(TupleScheme.class, new scannerOpenTs_resultTupleSchemeFactory());
47566     }
47567 
47568     public int success; // required
47569     public IOError io; // required
47570 
47571     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47572     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47573       SUCCESS((short)0, "success"),
47574       IO((short)1, "io");
47575 
47576       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47577 
47578       static {
47579         for (_Fields field : EnumSet.allOf(_Fields.class)) {
47580           byName.put(field.getFieldName(), field);
47581         }
47582       }
47583 
47584       /**
47585        * Find the _Fields constant that matches fieldId, or null if its not found.
47586        */
47587       public static _Fields findByThriftId(int fieldId) {
47588         switch(fieldId) {
47589           case 0: // SUCCESS
47590             return SUCCESS;
47591           case 1: // IO
47592             return IO;
47593           default:
47594             return null;
47595         }
47596       }
47597 
47598       /**
47599        * Find the _Fields constant that matches fieldId, throwing an exception
47600        * if it is not found.
47601        */
47602       public static _Fields findByThriftIdOrThrow(int fieldId) {
47603         _Fields fields = findByThriftId(fieldId);
47604         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47605         return fields;
47606       }
47607 
47608       /**
47609        * Find the _Fields constant that matches name, or null if its not found.
47610        */
47611       public static _Fields findByName(String name) {
47612         return byName.get(name);
47613       }
47614 
47615       private final short _thriftId;
47616       private final String _fieldName;
47617 
47618       _Fields(short thriftId, String fieldName) {
47619         _thriftId = thriftId;
47620         _fieldName = fieldName;
47621       }
47622 
47623       public short getThriftFieldId() {
47624         return _thriftId;
47625       }
47626 
47627       public String getFieldName() {
47628         return _fieldName;
47629       }
47630     }
47631 
47632     // isset id assignments
47633     private static final int __SUCCESS_ISSET_ID = 0;
47634     private byte __isset_bitfield = 0;
47635     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47636     static {
47637       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47638       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47639           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
47640       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47641           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47642       metaDataMap = Collections.unmodifiableMap(tmpMap);
47643       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_result.class, metaDataMap);
47644     }
47645 
47646     public scannerOpenTs_result() {
47647     }
47648 
47649     public scannerOpenTs_result(
47650       int success,
47651       IOError io)
47652     {
47653       this();
47654       this.success = success;
47655       setSuccessIsSet(true);
47656       this.io = io;
47657     }
47658 
47659     /**
47660      * Performs a deep copy on <i>other</i>.
47661      */
47662     public scannerOpenTs_result(scannerOpenTs_result other) {
47663       __isset_bitfield = other.__isset_bitfield;
47664       this.success = other.success;
47665       if (other.isSetIo()) {
47666         this.io = new IOError(other.io);
47667       }
47668     }
47669 
47670     public scannerOpenTs_result deepCopy() {
47671       return new scannerOpenTs_result(this);
47672     }
47673 
47674     @Override
47675     public void clear() {
47676       setSuccessIsSet(false);
47677       this.success = 0;
47678       this.io = null;
47679     }
47680 
47681     public int getSuccess() {
47682       return this.success;
47683     }
47684 
47685     public scannerOpenTs_result setSuccess(int success) {
47686       this.success = success;
47687       setSuccessIsSet(true);
47688       return this;
47689     }
47690 
47691     public void unsetSuccess() {
47692       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
47693     }
47694 
47695     /** Returns true if field success is set (has been assigned a value) and false otherwise */
47696     public boolean isSetSuccess() {
47697       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
47698     }
47699 
47700     public void setSuccessIsSet(boolean value) {
47701       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
47702     }
47703 
47704     public IOError getIo() {
47705       return this.io;
47706     }
47707 
47708     public scannerOpenTs_result setIo(IOError io) {
47709       this.io = io;
47710       return this;
47711     }
47712 
47713     public void unsetIo() {
47714       this.io = null;
47715     }
47716 
47717     /** Returns true if field io is set (has been assigned a value) and false otherwise */
47718     public boolean isSetIo() {
47719       return this.io != null;
47720     }
47721 
47722     public void setIoIsSet(boolean value) {
47723       if (!value) {
47724         this.io = null;
47725       }
47726     }
47727 
47728     public void setFieldValue(_Fields field, Object value) {
47729       switch (field) {
47730       case SUCCESS:
47731         if (value == null) {
47732           unsetSuccess();
47733         } else {
47734           setSuccess((Integer)value);
47735         }
47736         break;
47737 
47738       case IO:
47739         if (value == null) {
47740           unsetIo();
47741         } else {
47742           setIo((IOError)value);
47743         }
47744         break;
47745 
47746       }
47747     }
47748 
47749     public Object getFieldValue(_Fields field) {
47750       switch (field) {
47751       case SUCCESS:
47752         return Integer.valueOf(getSuccess());
47753 
47754       case IO:
47755         return getIo();
47756 
47757       }
47758       throw new IllegalStateException();
47759     }
47760 
47761     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47762     public boolean isSet(_Fields field) {
47763       if (field == null) {
47764         throw new IllegalArgumentException();
47765       }
47766 
47767       switch (field) {
47768       case SUCCESS:
47769         return isSetSuccess();
47770       case IO:
47771         return isSetIo();
47772       }
47773       throw new IllegalStateException();
47774     }
47775 
47776     @Override
47777     public boolean equals(Object that) {
47778       if (that == null)
47779         return false;
47780       if (that instanceof scannerOpenTs_result)
47781         return this.equals((scannerOpenTs_result)that);
47782       return false;
47783     }
47784 
47785     public boolean equals(scannerOpenTs_result that) {
47786       if (that == null)
47787         return false;
47788 
47789       boolean this_present_success = true;
47790       boolean that_present_success = true;
47791       if (this_present_success || that_present_success) {
47792         if (!(this_present_success && that_present_success))
47793           return false;
47794         if (this.success != that.success)
47795           return false;
47796       }
47797 
47798       boolean this_present_io = true && this.isSetIo();
47799       boolean that_present_io = true && that.isSetIo();
47800       if (this_present_io || that_present_io) {
47801         if (!(this_present_io && that_present_io))
47802           return false;
47803         if (!this.io.equals(that.io))
47804           return false;
47805       }
47806 
47807       return true;
47808     }
47809 
47810     @Override
47811     public int hashCode() {
47812       HashCodeBuilder builder = new HashCodeBuilder();
47813 
47814       boolean present_success = true;
47815       builder.append(present_success);
47816       if (present_success)
47817         builder.append(success);
47818 
47819       boolean present_io = true && (isSetIo());
47820       builder.append(present_io);
47821       if (present_io)
47822         builder.append(io);
47823 
47824       return builder.toHashCode();
47825     }
47826 
47827     public int compareTo(scannerOpenTs_result other) {
47828       if (!getClass().equals(other.getClass())) {
47829         return getClass().getName().compareTo(other.getClass().getName());
47830       }
47831 
47832       int lastComparison = 0;
47833       scannerOpenTs_result typedOther = (scannerOpenTs_result)other;
47834 
47835       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47836       if (lastComparison != 0) {
47837         return lastComparison;
47838       }
47839       if (isSetSuccess()) {
47840         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47841         if (lastComparison != 0) {
47842           return lastComparison;
47843         }
47844       }
47845       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
47846       if (lastComparison != 0) {
47847         return lastComparison;
47848       }
47849       if (isSetIo()) {
47850         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
47851         if (lastComparison != 0) {
47852           return lastComparison;
47853         }
47854       }
47855       return 0;
47856     }
47857 
47858     public _Fields fieldForId(int fieldId) {
47859       return _Fields.findByThriftId(fieldId);
47860     }
47861 
47862     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47863       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
47864     }
47865 
47866     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47867       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
47868       }
47869 
47870     @Override
47871     public String toString() {
47872       StringBuilder sb = new StringBuilder("scannerOpenTs_result(");
47873       boolean first = true;
47874 
47875       sb.append("success:");
47876       sb.append(this.success);
47877       first = false;
47878       if (!first) sb.append(", ");
47879       sb.append("io:");
47880       if (this.io == null) {
47881         sb.append("null");
47882       } else {
47883         sb.append(this.io);
47884       }
47885       first = false;
47886       sb.append(")");
47887       return sb.toString();
47888     }
47889 
47890     public void validate() throws org.apache.thrift.TException {
47891       // check for required fields
47892       // check for sub-struct validity
47893     }
47894 
47895     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47896       try {
47897         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47898       } catch (org.apache.thrift.TException te) {
47899         throw new java.io.IOException(te);
47900       }
47901     }
47902 
47903     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47904       try {
47905         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47906         __isset_bitfield = 0;
47907         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47908       } catch (org.apache.thrift.TException te) {
47909         throw new java.io.IOException(te);
47910       }
47911     }
47912 
47913     private static class scannerOpenTs_resultStandardSchemeFactory implements SchemeFactory {
47914       public scannerOpenTs_resultStandardScheme getScheme() {
47915         return new scannerOpenTs_resultStandardScheme();
47916       }
47917     }
47918 
47919     private static class scannerOpenTs_resultStandardScheme extends StandardScheme<scannerOpenTs_result> {
47920 
47921       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
47922         org.apache.thrift.protocol.TField schemeField;
47923         iprot.readStructBegin();
47924         while (true)
47925         {
47926           schemeField = iprot.readFieldBegin();
47927           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
47928             break;
47929           }
47930           switch (schemeField.id) {
47931             case 0: // SUCCESS
47932               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
47933                 struct.success = iprot.readI32();
47934                 struct.setSuccessIsSet(true);
47935               } else { 
47936                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47937               }
47938               break;
47939             case 1: // IO
47940               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
47941                 struct.io = new IOError();
47942                 struct.io.read(iprot);
47943                 struct.setIoIsSet(true);
47944               } else { 
47945                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47946               }
47947               break;
47948             default:
47949               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47950           }
47951           iprot.readFieldEnd();
47952         }
47953         iprot.readStructEnd();
47954 
47955         // check for required fields of primitive type, which can't be checked in the validate method
47956         struct.validate();
47957       }
47958 
47959       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
47960         struct.validate();
47961 
47962         oprot.writeStructBegin(STRUCT_DESC);
47963         if (struct.isSetSuccess()) {
47964           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47965           oprot.writeI32(struct.success);
47966           oprot.writeFieldEnd();
47967         }
47968         if (struct.io != null) {
47969           oprot.writeFieldBegin(IO_FIELD_DESC);
47970           struct.io.write(oprot);
47971           oprot.writeFieldEnd();
47972         }
47973         oprot.writeFieldStop();
47974         oprot.writeStructEnd();
47975       }
47976 
47977     }
47978 
47979     private static class scannerOpenTs_resultTupleSchemeFactory implements SchemeFactory {
47980       public scannerOpenTs_resultTupleScheme getScheme() {
47981         return new scannerOpenTs_resultTupleScheme();
47982       }
47983     }
47984 
47985     private static class scannerOpenTs_resultTupleScheme extends TupleScheme<scannerOpenTs_result> {
47986 
47987       @Override
47988       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
47989         TTupleProtocol oprot = (TTupleProtocol) prot;
47990         BitSet optionals = new BitSet();
47991         if (struct.isSetSuccess()) {
47992           optionals.set(0);
47993         }
47994         if (struct.isSetIo()) {
47995           optionals.set(1);
47996         }
47997         oprot.writeBitSet(optionals, 2);
47998         if (struct.isSetSuccess()) {
47999           oprot.writeI32(struct.success);
48000         }
48001         if (struct.isSetIo()) {
48002           struct.io.write(oprot);
48003         }
48004       }
48005 
48006       @Override
48007       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
48008         TTupleProtocol iprot = (TTupleProtocol) prot;
48009         BitSet incoming = iprot.readBitSet(2);
48010         if (incoming.get(0)) {
48011           struct.success = iprot.readI32();
48012           struct.setSuccessIsSet(true);
48013         }
48014         if (incoming.get(1)) {
48015           struct.io = new IOError();
48016           struct.io.read(iprot);
48017           struct.setIoIsSet(true);
48018         }
48019       }
48020     }
48021 
48022   }
48023 
48024   public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase<scannerOpenWithStopTs_args, scannerOpenWithStopTs_args._Fields>, java.io.Serializable, Cloneable   {
48025     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_args");
48026 
48027     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
48028     private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
48029     private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3);
48030     private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4);
48031     private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
48032     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6);
48033 
48034     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
48035     static {
48036       schemes.put(StandardScheme.class, new scannerOpenWithStopTs_argsStandardSchemeFactory());
48037       schemes.put(TupleScheme.class, new scannerOpenWithStopTs_argsTupleSchemeFactory());
48038     }
48039 
48040     /**
48041      * name of table
48042      */
48043     public ByteBuffer tableName; // required
48044     /**
48045      * Starting row in table to scan.
48046      * Send "" (empty string) to start at the first row.
48047      */
48048     public ByteBuffer startRow; // required
48049     /**
48050      * row to stop scanning on. This row is *not* included in the
48051      * scanner's results
48052      */
48053     public ByteBuffer stopRow; // required
48054     /**
48055      * columns to scan. If column name is a column family, all
48056      * columns of the specified column family are returned. It's also possible
48057      * to pass a regex in the column qualifier.
48058      */
48059     public List<ByteBuffer> columns; // required
48060     /**
48061      * timestamp
48062      */
48063     public long timestamp; // required
48064     /**
48065      * Scan attributes
48066      */
48067     public Map<ByteBuffer,ByteBuffer> attributes; // required
48068 
48069     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48070     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48071       /**
48072        * name of table
48073        */
48074       TABLE_NAME((short)1, "tableName"),
48075       /**
48076        * Starting row in table to scan.
48077        * Send "" (empty string) to start at the first row.
48078        */
48079       START_ROW((short)2, "startRow"),
48080       /**
48081        * row to stop scanning on. This row is *not* included in the
48082        * scanner's results
48083        */
48084       STOP_ROW((short)3, "stopRow"),
48085       /**
48086        * columns to scan. If column name is a column family, all
48087        * columns of the specified column family are returned. It's also possible
48088        * to pass a regex in the column qualifier.
48089        */
48090       COLUMNS((short)4, "columns"),
48091       /**
48092        * timestamp
48093        */
48094       TIMESTAMP((short)5, "timestamp"),
48095       /**
48096        * Scan attributes
48097        */
48098       ATTRIBUTES((short)6, "attributes");
48099 
48100       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48101 
48102       static {
48103         for (_Fields field : EnumSet.allOf(_Fields.class)) {
48104           byName.put(field.getFieldName(), field);
48105         }
48106       }
48107 
48108       /**
48109        * Find the _Fields constant that matches fieldId, or null if its not found.
48110        */
48111       public static _Fields findByThriftId(int fieldId) {
48112         switch(fieldId) {
48113           case 1: // TABLE_NAME
48114             return TABLE_NAME;
48115           case 2: // START_ROW
48116             return START_ROW;
48117           case 3: // STOP_ROW
48118             return STOP_ROW;
48119           case 4: // COLUMNS
48120             return COLUMNS;
48121           case 5: // TIMESTAMP
48122             return TIMESTAMP;
48123           case 6: // ATTRIBUTES
48124             return ATTRIBUTES;
48125           default:
48126             return null;
48127         }
48128       }
48129 
48130       /**
48131        * Find the _Fields constant that matches fieldId, throwing an exception
48132        * if it is not found.
48133        */
48134       public static _Fields findByThriftIdOrThrow(int fieldId) {
48135         _Fields fields = findByThriftId(fieldId);
48136         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48137         return fields;
48138       }
48139 
48140       /**
48141        * Find the _Fields constant that matches name, or null if its not found.
48142        */
48143       public static _Fields findByName(String name) {
48144         return byName.get(name);
48145       }
48146 
48147       private final short _thriftId;
48148       private final String _fieldName;
48149 
48150       _Fields(short thriftId, String fieldName) {
48151         _thriftId = thriftId;
48152         _fieldName = fieldName;
48153       }
48154 
48155       public short getThriftFieldId() {
48156         return _thriftId;
48157       }
48158 
48159       public String getFieldName() {
48160         return _fieldName;
48161       }
48162     }
48163 
48164     // isset id assignments
48165     private static final int __TIMESTAMP_ISSET_ID = 0;
48166     private byte __isset_bitfield = 0;
48167     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48168     static {
48169       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48170       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48171           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
48172       tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48173           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
48174       tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48175           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
48176       tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48177           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48178               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
48179       tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48180           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48181       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48182           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
48183               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
48184               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
48185       metaDataMap = Collections.unmodifiableMap(tmpMap);
48186       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_args.class, metaDataMap);
48187     }
48188 
48189     public scannerOpenWithStopTs_args() {
48190     }
48191 
48192     public scannerOpenWithStopTs_args(
48193       ByteBuffer tableName,
48194       ByteBuffer startRow,
48195       ByteBuffer stopRow,
48196       List<ByteBuffer> columns,
48197       long timestamp,
48198       Map<ByteBuffer,ByteBuffer> attributes)
48199     {
48200       this();
48201       this.tableName = tableName;
48202       this.startRow = startRow;
48203       this.stopRow = stopRow;
48204       this.columns = columns;
48205       this.timestamp = timestamp;
48206       setTimestampIsSet(true);
48207       this.attributes = attributes;
48208     }
48209 
48210     /**
48211      * Performs a deep copy on <i>other</i>.
48212      */
48213     public scannerOpenWithStopTs_args(scannerOpenWithStopTs_args other) {
48214       __isset_bitfield = other.__isset_bitfield;
48215       if (other.isSetTableName()) {
48216         this.tableName = other.tableName;
48217       }
48218       if (other.isSetStartRow()) {
48219         this.startRow = other.startRow;
48220       }
48221       if (other.isSetStopRow()) {
48222         this.stopRow = other.stopRow;
48223       }
48224       if (other.isSetColumns()) {
48225         List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
48226         for (ByteBuffer other_element : other.columns) {
48227           __this__columns.add(other_element);
48228         }
48229         this.columns = __this__columns;
48230       }
48231       this.timestamp = other.timestamp;
48232       if (other.isSetAttributes()) {
48233         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
48234         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
48235 
48236           ByteBuffer other_element_key = other_element.getKey();
48237           ByteBuffer other_element_value = other_element.getValue();
48238 
48239           ByteBuffer __this__attributes_copy_key = other_element_key;
48240 
48241           ByteBuffer __this__attributes_copy_value = other_element_value;
48242 
48243           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
48244         }
48245         this.attributes = __this__attributes;
48246       }
48247     }
48248 
48249     public scannerOpenWithStopTs_args deepCopy() {
48250       return new scannerOpenWithStopTs_args(this);
48251     }
48252 
48253     @Override
48254     public void clear() {
48255       this.tableName = null;
48256       this.startRow = null;
48257       this.stopRow = null;
48258       this.columns = null;
48259       setTimestampIsSet(false);
48260       this.timestamp = 0;
48261       this.attributes = null;
48262     }
48263 
48264     /**
48265      * name of table
48266      */
48267     public byte[] getTableName() {
48268       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
48269       return tableName == null ? null : tableName.array();
48270     }
48271 
48272     public ByteBuffer bufferForTableName() {
48273       return tableName;
48274     }
48275 
48276     /**
48277      * name of table
48278      */
48279     public scannerOpenWithStopTs_args setTableName(byte[] tableName) {
48280       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
48281       return this;
48282     }
48283 
48284     public scannerOpenWithStopTs_args setTableName(ByteBuffer tableName) {
48285       this.tableName = tableName;
48286       return this;
48287     }
48288 
48289     public void unsetTableName() {
48290       this.tableName = null;
48291     }
48292 
48293     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
48294     public boolean isSetTableName() {
48295       return this.tableName != null;
48296     }
48297 
48298     public void setTableNameIsSet(boolean value) {
48299       if (!value) {
48300         this.tableName = null;
48301       }
48302     }
48303 
48304     /**
48305      * Starting row in table to scan.
48306      * Send "" (empty string) to start at the first row.
48307      */
48308     public byte[] getStartRow() {
48309       setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
48310       return startRow == null ? null : startRow.array();
48311     }
48312 
48313     public ByteBuffer bufferForStartRow() {
48314       return startRow;
48315     }
48316 
48317     /**
48318      * Starting row in table to scan.
48319      * Send "" (empty string) to start at the first row.
48320      */
48321     public scannerOpenWithStopTs_args setStartRow(byte[] startRow) {
48322       setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
48323       return this;
48324     }
48325 
48326     public scannerOpenWithStopTs_args setStartRow(ByteBuffer startRow) {
48327       this.startRow = startRow;
48328       return this;
48329     }
48330 
48331     public void unsetStartRow() {
48332       this.startRow = null;
48333     }
48334 
48335     /** Returns true if field startRow is set (has been assigned a value) and false otherwise */
48336     public boolean isSetStartRow() {
48337       return this.startRow != null;
48338     }
48339 
48340     public void setStartRowIsSet(boolean value) {
48341       if (!value) {
48342         this.startRow = null;
48343       }
48344     }
48345 
48346     /**
48347      * row to stop scanning on. This row is *not* included in the
48348      * scanner's results
48349      */
48350     public byte[] getStopRow() {
48351       setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow));
48352       return stopRow == null ? null : stopRow.array();
48353     }
48354 
48355     public ByteBuffer bufferForStopRow() {
48356       return stopRow;
48357     }
48358 
48359     /**
48360      * row to stop scanning on. This row is *not* included in the
48361      * scanner's results
48362      */
48363     public scannerOpenWithStopTs_args setStopRow(byte[] stopRow) {
48364       setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow));
48365       return this;
48366     }
48367 
48368     public scannerOpenWithStopTs_args setStopRow(ByteBuffer stopRow) {
48369       this.stopRow = stopRow;
48370       return this;
48371     }
48372 
48373     public void unsetStopRow() {
48374       this.stopRow = null;
48375     }
48376 
48377     /** Returns true if field stopRow is set (has been assigned a value) and false otherwise */
48378     public boolean isSetStopRow() {
48379       return this.stopRow != null;
48380     }
48381 
48382     public void setStopRowIsSet(boolean value) {
48383       if (!value) {
48384         this.stopRow = null;
48385       }
48386     }
48387 
48388     public int getColumnsSize() {
48389       return (this.columns == null) ? 0 : this.columns.size();
48390     }
48391 
48392     public java.util.Iterator<ByteBuffer> getColumnsIterator() {
48393       return (this.columns == null) ? null : this.columns.iterator();
48394     }
48395 
48396     public void addToColumns(ByteBuffer elem) {
48397       if (this.columns == null) {
48398         this.columns = new ArrayList<ByteBuffer>();
48399       }
48400       this.columns.add(elem);
48401     }
48402 
48403     /**
48404      * columns to scan. If column name is a column family, all
48405      * columns of the specified column family are returned. It's also possible
48406      * to pass a regex in the column qualifier.
48407      */
48408     public List<ByteBuffer> getColumns() {
48409       return this.columns;
48410     }
48411 
48412     /**
48413      * columns to scan. If column name is a column family, all
48414      * columns of the specified column family are returned. It's also possible
48415      * to pass a regex in the column qualifier.
48416      */
48417     public scannerOpenWithStopTs_args setColumns(List<ByteBuffer> columns) {
48418       this.columns = columns;
48419       return this;
48420     }
48421 
48422     public void unsetColumns() {
48423       this.columns = null;
48424     }
48425 
48426     /** Returns true if field columns is set (has been assigned a value) and false otherwise */
48427     public boolean isSetColumns() {
48428       return this.columns != null;
48429     }
48430 
48431     public void setColumnsIsSet(boolean value) {
48432       if (!value) {
48433         this.columns = null;
48434       }
48435     }
48436 
48437     /**
48438      * timestamp
48439      */
48440     public long getTimestamp() {
48441       return this.timestamp;
48442     }
48443 
48444     /**
48445      * timestamp
48446      */
48447     public scannerOpenWithStopTs_args setTimestamp(long timestamp) {
48448       this.timestamp = timestamp;
48449       setTimestampIsSet(true);
48450       return this;
48451     }
48452 
48453     public void unsetTimestamp() {
48454       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
48455     }
48456 
48457     /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48458     public boolean isSetTimestamp() {
48459       return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
48460     }
48461 
48462     public void setTimestampIsSet(boolean value) {
48463       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
48464     }
48465 
48466     public int getAttributesSize() {
48467       return (this.attributes == null) ? 0 : this.attributes.size();
48468     }
48469 
48470     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
48471       if (this.attributes == null) {
48472         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
48473       }
48474       this.attributes.put(key, val);
48475     }
48476 
48477     /**
48478      * Scan attributes
48479      */
48480     public Map<ByteBuffer,ByteBuffer> getAttributes() {
48481       return this.attributes;
48482     }
48483 
48484     /**
48485      * Scan attributes
48486      */
48487     public scannerOpenWithStopTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
48488       this.attributes = attributes;
48489       return this;
48490     }
48491 
48492     public void unsetAttributes() {
48493       this.attributes = null;
48494     }
48495 
48496     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
48497     public boolean isSetAttributes() {
48498       return this.attributes != null;
48499     }
48500 
48501     public void setAttributesIsSet(boolean value) {
48502       if (!value) {
48503         this.attributes = null;
48504       }
48505     }
48506 
48507     public void setFieldValue(_Fields field, Object value) {
48508       switch (field) {
48509       case TABLE_NAME:
48510         if (value == null) {
48511           unsetTableName();
48512         } else {
48513           setTableName((ByteBuffer)value);
48514         }
48515         break;
48516 
48517       case START_ROW:
48518         if (value == null) {
48519           unsetStartRow();
48520         } else {
48521           setStartRow((ByteBuffer)value);
48522         }
48523         break;
48524 
48525       case STOP_ROW:
48526         if (value == null) {
48527           unsetStopRow();
48528         } else {
48529           setStopRow((ByteBuffer)value);
48530         }
48531         break;
48532 
48533       case COLUMNS:
48534         if (value == null) {
48535           unsetColumns();
48536         } else {
48537           setColumns((List<ByteBuffer>)value);
48538         }
48539         break;
48540 
48541       case TIMESTAMP:
48542         if (value == null) {
48543           unsetTimestamp();
48544         } else {
48545           setTimestamp((Long)value);
48546         }
48547         break;
48548 
48549       case ATTRIBUTES:
48550         if (value == null) {
48551           unsetAttributes();
48552         } else {
48553           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
48554         }
48555         break;
48556 
48557       }
48558     }
48559 
48560     public Object getFieldValue(_Fields field) {
48561       switch (field) {
48562       case TABLE_NAME:
48563         return getTableName();
48564 
48565       case START_ROW:
48566         return getStartRow();
48567 
48568       case STOP_ROW:
48569         return getStopRow();
48570 
48571       case COLUMNS:
48572         return getColumns();
48573 
48574       case TIMESTAMP:
48575         return Long.valueOf(getTimestamp());
48576 
48577       case ATTRIBUTES:
48578         return getAttributes();
48579 
48580       }
48581       throw new IllegalStateException();
48582     }
48583 
48584     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48585     public boolean isSet(_Fields field) {
48586       if (field == null) {
48587         throw new IllegalArgumentException();
48588       }
48589 
48590       switch (field) {
48591       case TABLE_NAME:
48592         return isSetTableName();
48593       case START_ROW:
48594         return isSetStartRow();
48595       case STOP_ROW:
48596         return isSetStopRow();
48597       case COLUMNS:
48598         return isSetColumns();
48599       case TIMESTAMP:
48600         return isSetTimestamp();
48601       case ATTRIBUTES:
48602         return isSetAttributes();
48603       }
48604       throw new IllegalStateException();
48605     }
48606 
48607     @Override
48608     public boolean equals(Object that) {
48609       if (that == null)
48610         return false;
48611       if (that instanceof scannerOpenWithStopTs_args)
48612         return this.equals((scannerOpenWithStopTs_args)that);
48613       return false;
48614     }
48615 
48616     public boolean equals(scannerOpenWithStopTs_args that) {
48617       if (that == null)
48618         return false;
48619 
48620       boolean this_present_tableName = true && this.isSetTableName();
48621       boolean that_present_tableName = true && that.isSetTableName();
48622       if (this_present_tableName || that_present_tableName) {
48623         if (!(this_present_tableName && that_present_tableName))
48624           return false;
48625         if (!this.tableName.equals(that.tableName))
48626           return false;
48627       }
48628 
48629       boolean this_present_startRow = true && this.isSetStartRow();
48630       boolean that_present_startRow = true && that.isSetStartRow();
48631       if (this_present_startRow || that_present_startRow) {
48632         if (!(this_present_startRow && that_present_startRow))
48633           return false;
48634         if (!this.startRow.equals(that.startRow))
48635           return false;
48636       }
48637 
48638       boolean this_present_stopRow = true && this.isSetStopRow();
48639       boolean that_present_stopRow = true && that.isSetStopRow();
48640       if (this_present_stopRow || that_present_stopRow) {
48641         if (!(this_present_stopRow && that_present_stopRow))
48642           return false;
48643         if (!this.stopRow.equals(that.stopRow))
48644           return false;
48645       }
48646 
48647       boolean this_present_columns = true && this.isSetColumns();
48648       boolean that_present_columns = true && that.isSetColumns();
48649       if (this_present_columns || that_present_columns) {
48650         if (!(this_present_columns && that_present_columns))
48651           return false;
48652         if (!this.columns.equals(that.columns))
48653           return false;
48654       }
48655 
48656       boolean this_present_timestamp = true;
48657       boolean that_present_timestamp = true;
48658       if (this_present_timestamp || that_present_timestamp) {
48659         if (!(this_present_timestamp && that_present_timestamp))
48660           return false;
48661         if (this.timestamp != that.timestamp)
48662           return false;
48663       }
48664 
48665       boolean this_present_attributes = true && this.isSetAttributes();
48666       boolean that_present_attributes = true && that.isSetAttributes();
48667       if (this_present_attributes || that_present_attributes) {
48668         if (!(this_present_attributes && that_present_attributes))
48669           return false;
48670         if (!this.attributes.equals(that.attributes))
48671           return false;
48672       }
48673 
48674       return true;
48675     }
48676 
48677     @Override
48678     public int hashCode() {
48679       HashCodeBuilder builder = new HashCodeBuilder();
48680 
48681       boolean present_tableName = true && (isSetTableName());
48682       builder.append(present_tableName);
48683       if (present_tableName)
48684         builder.append(tableName);
48685 
48686       boolean present_startRow = true && (isSetStartRow());
48687       builder.append(present_startRow);
48688       if (present_startRow)
48689         builder.append(startRow);
48690 
48691       boolean present_stopRow = true && (isSetStopRow());
48692       builder.append(present_stopRow);
48693       if (present_stopRow)
48694         builder.append(stopRow);
48695 
48696       boolean present_columns = true && (isSetColumns());
48697       builder.append(present_columns);
48698       if (present_columns)
48699         builder.append(columns);
48700 
48701       boolean present_timestamp = true;
48702       builder.append(present_timestamp);
48703       if (present_timestamp)
48704         builder.append(timestamp);
48705 
48706       boolean present_attributes = true && (isSetAttributes());
48707       builder.append(present_attributes);
48708       if (present_attributes)
48709         builder.append(attributes);
48710 
48711       return builder.toHashCode();
48712     }
48713 
48714     public int compareTo(scannerOpenWithStopTs_args other) {
48715       if (!getClass().equals(other.getClass())) {
48716         return getClass().getName().compareTo(other.getClass().getName());
48717       }
48718 
48719       int lastComparison = 0;
48720       scannerOpenWithStopTs_args typedOther = (scannerOpenWithStopTs_args)other;
48721 
48722       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
48723       if (lastComparison != 0) {
48724         return lastComparison;
48725       }
48726       if (isSetTableName()) {
48727         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
48728         if (lastComparison != 0) {
48729           return lastComparison;
48730         }
48731       }
48732       lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
48733       if (lastComparison != 0) {
48734         return lastComparison;
48735       }
48736       if (isSetStartRow()) {
48737         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
48738         if (lastComparison != 0) {
48739           return lastComparison;
48740         }
48741       }
48742       lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow());
48743       if (lastComparison != 0) {
48744         return lastComparison;
48745       }
48746       if (isSetStopRow()) {
48747         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
48748         if (lastComparison != 0) {
48749           return lastComparison;
48750         }
48751       }
48752       lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
48753       if (lastComparison != 0) {
48754         return lastComparison;
48755       }
48756       if (isSetColumns()) {
48757         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
48758         if (lastComparison != 0) {
48759           return lastComparison;
48760         }
48761       }
48762       lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48763       if (lastComparison != 0) {
48764         return lastComparison;
48765       }
48766       if (isSetTimestamp()) {
48767         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
48768         if (lastComparison != 0) {
48769           return lastComparison;
48770         }
48771       }
48772       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
48773       if (lastComparison != 0) {
48774         return lastComparison;
48775       }
48776       if (isSetAttributes()) {
48777         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
48778         if (lastComparison != 0) {
48779           return lastComparison;
48780         }
48781       }
48782       return 0;
48783     }
48784 
48785     public _Fields fieldForId(int fieldId) {
48786       return _Fields.findByThriftId(fieldId);
48787     }
48788 
48789     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48790       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
48791     }
48792 
48793     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48794       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
48795     }
48796 
48797     @Override
48798     public String toString() {
48799       StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_args(");
48800       boolean first = true;
48801 
48802       sb.append("tableName:");
48803       if (this.tableName == null) {
48804         sb.append("null");
48805       } else {
48806         sb.append(this.tableName);
48807       }
48808       first = false;
48809       if (!first) sb.append(", ");
48810       sb.append("startRow:");
48811       if (this.startRow == null) {
48812         sb.append("null");
48813       } else {
48814         sb.append(this.startRow);
48815       }
48816       first = false;
48817       if (!first) sb.append(", ");
48818       sb.append("stopRow:");
48819       if (this.stopRow == null) {
48820         sb.append("null");
48821       } else {
48822         sb.append(this.stopRow);
48823       }
48824       first = false;
48825       if (!first) sb.append(", ");
48826       sb.append("columns:");
48827       if (this.columns == null) {
48828         sb.append("null");
48829       } else {
48830         sb.append(this.columns);
48831       }
48832       first = false;
48833       if (!first) sb.append(", ");
48834       sb.append("timestamp:");
48835       sb.append(this.timestamp);
48836       first = false;
48837       if (!first) sb.append(", ");
48838       sb.append("attributes:");
48839       if (this.attributes == null) {
48840         sb.append("null");
48841       } else {
48842         sb.append(this.attributes);
48843       }
48844       first = false;
48845       sb.append(")");
48846       return sb.toString();
48847     }
48848 
48849     public void validate() throws org.apache.thrift.TException {
48850       // check for required fields
48851       // check for sub-struct validity
48852     }
48853 
48854     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48855       try {
48856         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48857       } catch (org.apache.thrift.TException te) {
48858         throw new java.io.IOException(te);
48859       }
48860     }
48861 
48862     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48863       try {
48864         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
48865         __isset_bitfield = 0;
48866         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48867       } catch (org.apache.thrift.TException te) {
48868         throw new java.io.IOException(te);
48869       }
48870     }
48871 
48872     private static class scannerOpenWithStopTs_argsStandardSchemeFactory implements SchemeFactory {
48873       public scannerOpenWithStopTs_argsStandardScheme getScheme() {
48874         return new scannerOpenWithStopTs_argsStandardScheme();
48875       }
48876     }
48877 
48878     private static class scannerOpenWithStopTs_argsStandardScheme extends StandardScheme<scannerOpenWithStopTs_args> {
48879 
48880       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
48881         org.apache.thrift.protocol.TField schemeField;
48882         iprot.readStructBegin();
48883         while (true)
48884         {
48885           schemeField = iprot.readFieldBegin();
48886           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
48887             break;
48888           }
48889           switch (schemeField.id) {
48890             case 1: // TABLE_NAME
48891               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
48892                 struct.tableName = iprot.readBinary();
48893                 struct.setTableNameIsSet(true);
48894               } else { 
48895                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48896               }
48897               break;
48898             case 2: // START_ROW
48899               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
48900                 struct.startRow = iprot.readBinary();
48901                 struct.setStartRowIsSet(true);
48902               } else { 
48903                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48904               }
48905               break;
48906             case 3: // STOP_ROW
48907               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
48908                 struct.stopRow = iprot.readBinary();
48909                 struct.setStopRowIsSet(true);
48910               } else { 
48911                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48912               }
48913               break;
48914             case 4: // COLUMNS
48915               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
48916                 {
48917                   org.apache.thrift.protocol.TList _list548 = iprot.readListBegin();
48918                   struct.columns = new ArrayList<ByteBuffer>(_list548.size);
48919                   for (int _i549 = 0; _i549 < _list548.size; ++_i549)
48920                   {
48921                     ByteBuffer _elem550; // required
48922                     _elem550 = iprot.readBinary();
48923                     struct.columns.add(_elem550);
48924                   }
48925                   iprot.readListEnd();
48926                 }
48927                 struct.setColumnsIsSet(true);
48928               } else { 
48929                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48930               }
48931               break;
48932             case 5: // TIMESTAMP
48933               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
48934                 struct.timestamp = iprot.readI64();
48935                 struct.setTimestampIsSet(true);
48936               } else { 
48937                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48938               }
48939               break;
48940             case 6: // ATTRIBUTES
48941               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
48942                 {
48943                   org.apache.thrift.protocol.TMap _map551 = iprot.readMapBegin();
48944                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map551.size);
48945                   for (int _i552 = 0; _i552 < _map551.size; ++_i552)
48946                   {
48947                     ByteBuffer _key553; // required
48948                     ByteBuffer _val554; // required
48949                     _key553 = iprot.readBinary();
48950                     _val554 = iprot.readBinary();
48951                     struct.attributes.put(_key553, _val554);
48952                   }
48953                   iprot.readMapEnd();
48954                 }
48955                 struct.setAttributesIsSet(true);
48956               } else { 
48957                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48958               }
48959               break;
48960             default:
48961               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48962           }
48963           iprot.readFieldEnd();
48964         }
48965         iprot.readStructEnd();
48966 
48967         // check for required fields of primitive type, which can't be checked in the validate method
48968         struct.validate();
48969       }
48970 
48971       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
48972         struct.validate();
48973 
48974         oprot.writeStructBegin(STRUCT_DESC);
48975         if (struct.tableName != null) {
48976           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
48977           oprot.writeBinary(struct.tableName);
48978           oprot.writeFieldEnd();
48979         }
48980         if (struct.startRow != null) {
48981           oprot.writeFieldBegin(START_ROW_FIELD_DESC);
48982           oprot.writeBinary(struct.startRow);
48983           oprot.writeFieldEnd();
48984         }
48985         if (struct.stopRow != null) {
48986           oprot.writeFieldBegin(STOP_ROW_FIELD_DESC);
48987           oprot.writeBinary(struct.stopRow);
48988           oprot.writeFieldEnd();
48989         }
48990         if (struct.columns != null) {
48991           oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
48992           {
48993             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
48994             for (ByteBuffer _iter555 : struct.columns)
48995             {
48996               oprot.writeBinary(_iter555);
48997             }
48998             oprot.writeListEnd();
48999           }
49000           oprot.writeFieldEnd();
49001         }
49002         oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
49003         oprot.writeI64(struct.timestamp);
49004         oprot.writeFieldEnd();
49005         if (struct.attributes != null) {
49006           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
49007           {
49008             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
49009             for (Map.Entry<ByteBuffer, ByteBuffer> _iter556 : struct.attributes.entrySet())
49010             {
49011               oprot.writeBinary(_iter556.getKey());
49012               oprot.writeBinary(_iter556.getValue());
49013             }
49014             oprot.writeMapEnd();
49015           }
49016           oprot.writeFieldEnd();
49017         }
49018         oprot.writeFieldStop();
49019         oprot.writeStructEnd();
49020       }
49021 
49022     }
49023 
49024     private static class scannerOpenWithStopTs_argsTupleSchemeFactory implements SchemeFactory {
49025       public scannerOpenWithStopTs_argsTupleScheme getScheme() {
49026         return new scannerOpenWithStopTs_argsTupleScheme();
49027       }
49028     }
49029 
49030     private static class scannerOpenWithStopTs_argsTupleScheme extends TupleScheme<scannerOpenWithStopTs_args> {
49031 
49032       @Override
49033       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
49034         TTupleProtocol oprot = (TTupleProtocol) prot;
49035         BitSet optionals = new BitSet();
49036         if (struct.isSetTableName()) {
49037           optionals.set(0);
49038         }
49039         if (struct.isSetStartRow()) {
49040           optionals.set(1);
49041         }
49042         if (struct.isSetStopRow()) {
49043           optionals.set(2);
49044         }
49045         if (struct.isSetColumns()) {
49046           optionals.set(3);
49047         }
49048         if (struct.isSetTimestamp()) {
49049           optionals.set(4);
49050         }
49051         if (struct.isSetAttributes()) {
49052           optionals.set(5);
49053         }
49054         oprot.writeBitSet(optionals, 6);
49055         if (struct.isSetTableName()) {
49056           oprot.writeBinary(struct.tableName);
49057         }
49058         if (struct.isSetStartRow()) {
49059           oprot.writeBinary(struct.startRow);
49060         }
49061         if (struct.isSetStopRow()) {
49062           oprot.writeBinary(struct.stopRow);
49063         }
49064         if (struct.isSetColumns()) {
49065           {
49066             oprot.writeI32(struct.columns.size());
49067             for (ByteBuffer _iter557 : struct.columns)
49068             {
49069               oprot.writeBinary(_iter557);
49070             }
49071           }
49072         }
49073         if (struct.isSetTimestamp()) {
49074           oprot.writeI64(struct.timestamp);
49075         }
49076         if (struct.isSetAttributes()) {
49077           {
49078             oprot.writeI32(struct.attributes.size());
49079             for (Map.Entry<ByteBuffer, ByteBuffer> _iter558 : struct.attributes.entrySet())
49080             {
49081               oprot.writeBinary(_iter558.getKey());
49082               oprot.writeBinary(_iter558.getValue());
49083             }
49084           }
49085         }
49086       }
49087 
49088       @Override
49089       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
49090         TTupleProtocol iprot = (TTupleProtocol) prot;
49091         BitSet incoming = iprot.readBitSet(6);
49092         if (incoming.get(0)) {
49093           struct.tableName = iprot.readBinary();
49094           struct.setTableNameIsSet(true);
49095         }
49096         if (incoming.get(1)) {
49097           struct.startRow = iprot.readBinary();
49098           struct.setStartRowIsSet(true);
49099         }
49100         if (incoming.get(2)) {
49101           struct.stopRow = iprot.readBinary();
49102           struct.setStopRowIsSet(true);
49103         }
49104         if (incoming.get(3)) {
49105           {
49106             org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
49107             struct.columns = new ArrayList<ByteBuffer>(_list559.size);
49108             for (int _i560 = 0; _i560 < _list559.size; ++_i560)
49109             {
49110               ByteBuffer _elem561; // required
49111               _elem561 = iprot.readBinary();
49112               struct.columns.add(_elem561);
49113             }
49114           }
49115           struct.setColumnsIsSet(true);
49116         }
49117         if (incoming.get(4)) {
49118           struct.timestamp = iprot.readI64();
49119           struct.setTimestampIsSet(true);
49120         }
49121         if (incoming.get(5)) {
49122           {
49123             org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
49124             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map562.size);
49125             for (int _i563 = 0; _i563 < _map562.size; ++_i563)
49126             {
49127               ByteBuffer _key564; // required
49128               ByteBuffer _val565; // required
49129               _key564 = iprot.readBinary();
49130               _val565 = iprot.readBinary();
49131               struct.attributes.put(_key564, _val565);
49132             }
49133           }
49134           struct.setAttributesIsSet(true);
49135         }
49136       }
49137     }
49138 
49139   }
49140 
49141   public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase<scannerOpenWithStopTs_result, scannerOpenWithStopTs_result._Fields>, java.io.Serializable, Cloneable   {
49142     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_result");
49143 
49144     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
49145     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
49146 
49147     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
49148     static {
49149       schemes.put(StandardScheme.class, new scannerOpenWithStopTs_resultStandardSchemeFactory());
49150       schemes.put(TupleScheme.class, new scannerOpenWithStopTs_resultTupleSchemeFactory());
49151     }
49152 
49153     public int success; // required
49154     public IOError io; // required
49155 
49156     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49157     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49158       SUCCESS((short)0, "success"),
49159       IO((short)1, "io");
49160 
49161       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49162 
49163       static {
49164         for (_Fields field : EnumSet.allOf(_Fields.class)) {
49165           byName.put(field.getFieldName(), field);
49166         }
49167       }
49168 
49169       /**
49170        * Find the _Fields constant that matches fieldId, or null if its not found.
49171        */
49172       public static _Fields findByThriftId(int fieldId) {
49173         switch(fieldId) {
49174           case 0: // SUCCESS
49175             return SUCCESS;
49176           case 1: // IO
49177             return IO;
49178           default:
49179             return null;
49180         }
49181       }
49182 
49183       /**
49184        * Find the _Fields constant that matches fieldId, throwing an exception
49185        * if it is not found.
49186        */
49187       public static _Fields findByThriftIdOrThrow(int fieldId) {
49188         _Fields fields = findByThriftId(fieldId);
49189         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49190         return fields;
49191       }
49192 
49193       /**
49194        * Find the _Fields constant that matches name, or null if its not found.
49195        */
49196       public static _Fields findByName(String name) {
49197         return byName.get(name);
49198       }
49199 
49200       private final short _thriftId;
49201       private final String _fieldName;
49202 
49203       _Fields(short thriftId, String fieldName) {
49204         _thriftId = thriftId;
49205         _fieldName = fieldName;
49206       }
49207 
49208       public short getThriftFieldId() {
49209         return _thriftId;
49210       }
49211 
49212       public String getFieldName() {
49213         return _fieldName;
49214       }
49215     }
49216 
49217     // isset id assignments
49218     private static final int __SUCCESS_ISSET_ID = 0;
49219     private byte __isset_bitfield = 0;
49220     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49221     static {
49222       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49223       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49224           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
49225       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49226           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
49227       metaDataMap = Collections.unmodifiableMap(tmpMap);
49228       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_result.class, metaDataMap);
49229     }
49230 
49231     public scannerOpenWithStopTs_result() {
49232     }
49233 
49234     public scannerOpenWithStopTs_result(
49235       int success,
49236       IOError io)
49237     {
49238       this();
49239       this.success = success;
49240       setSuccessIsSet(true);
49241       this.io = io;
49242     }
49243 
49244     /**
49245      * Performs a deep copy on <i>other</i>.
49246      */
49247     public scannerOpenWithStopTs_result(scannerOpenWithStopTs_result other) {
49248       __isset_bitfield = other.__isset_bitfield;
49249       this.success = other.success;
49250       if (other.isSetIo()) {
49251         this.io = new IOError(other.io);
49252       }
49253     }
49254 
49255     public scannerOpenWithStopTs_result deepCopy() {
49256       return new scannerOpenWithStopTs_result(this);
49257     }
49258 
49259     @Override
49260     public void clear() {
49261       setSuccessIsSet(false);
49262       this.success = 0;
49263       this.io = null;
49264     }
49265 
49266     public int getSuccess() {
49267       return this.success;
49268     }
49269 
49270     public scannerOpenWithStopTs_result setSuccess(int success) {
49271       this.success = success;
49272       setSuccessIsSet(true);
49273       return this;
49274     }
49275 
49276     public void unsetSuccess() {
49277       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
49278     }
49279 
49280     /** Returns true if field success is set (has been assigned a value) and false otherwise */
49281     public boolean isSetSuccess() {
49282       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
49283     }
49284 
49285     public void setSuccessIsSet(boolean value) {
49286       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
49287     }
49288 
49289     public IOError getIo() {
49290       return this.io;
49291     }
49292 
49293     public scannerOpenWithStopTs_result setIo(IOError io) {
49294       this.io = io;
49295       return this;
49296     }
49297 
49298     public void unsetIo() {
49299       this.io = null;
49300     }
49301 
49302     /** Returns true if field io is set (has been assigned a value) and false otherwise */
49303     public boolean isSetIo() {
49304       return this.io != null;
49305     }
49306 
49307     public void setIoIsSet(boolean value) {
49308       if (!value) {
49309         this.io = null;
49310       }
49311     }
49312 
49313     public void setFieldValue(_Fields field, Object value) {
49314       switch (field) {
49315       case SUCCESS:
49316         if (value == null) {
49317           unsetSuccess();
49318         } else {
49319           setSuccess((Integer)value);
49320         }
49321         break;
49322 
49323       case IO:
49324         if (value == null) {
49325           unsetIo();
49326         } else {
49327           setIo((IOError)value);
49328         }
49329         break;
49330 
49331       }
49332     }
49333 
49334     public Object getFieldValue(_Fields field) {
49335       switch (field) {
49336       case SUCCESS:
49337         return Integer.valueOf(getSuccess());
49338 
49339       case IO:
49340         return getIo();
49341 
49342       }
49343       throw new IllegalStateException();
49344     }
49345 
49346     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49347     public boolean isSet(_Fields field) {
49348       if (field == null) {
49349         throw new IllegalArgumentException();
49350       }
49351 
49352       switch (field) {
49353       case SUCCESS:
49354         return isSetSuccess();
49355       case IO:
49356         return isSetIo();
49357       }
49358       throw new IllegalStateException();
49359     }
49360 
49361     @Override
49362     public boolean equals(Object that) {
49363       if (that == null)
49364         return false;
49365       if (that instanceof scannerOpenWithStopTs_result)
49366         return this.equals((scannerOpenWithStopTs_result)that);
49367       return false;
49368     }
49369 
49370     public boolean equals(scannerOpenWithStopTs_result that) {
49371       if (that == null)
49372         return false;
49373 
49374       boolean this_present_success = true;
49375       boolean that_present_success = true;
49376       if (this_present_success || that_present_success) {
49377         if (!(this_present_success && that_present_success))
49378           return false;
49379         if (this.success != that.success)
49380           return false;
49381       }
49382 
49383       boolean this_present_io = true && this.isSetIo();
49384       boolean that_present_io = true && that.isSetIo();
49385       if (this_present_io || that_present_io) {
49386         if (!(this_present_io && that_present_io))
49387           return false;
49388         if (!this.io.equals(that.io))
49389           return false;
49390       }
49391 
49392       return true;
49393     }
49394 
49395     @Override
49396     public int hashCode() {
49397       HashCodeBuilder builder = new HashCodeBuilder();
49398 
49399       boolean present_success = true;
49400       builder.append(present_success);
49401       if (present_success)
49402         builder.append(success);
49403 
49404       boolean present_io = true && (isSetIo());
49405       builder.append(present_io);
49406       if (present_io)
49407         builder.append(io);
49408 
49409       return builder.toHashCode();
49410     }
49411 
49412     public int compareTo(scannerOpenWithStopTs_result other) {
49413       if (!getClass().equals(other.getClass())) {
49414         return getClass().getName().compareTo(other.getClass().getName());
49415       }
49416 
49417       int lastComparison = 0;
49418       scannerOpenWithStopTs_result typedOther = (scannerOpenWithStopTs_result)other;
49419 
49420       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49421       if (lastComparison != 0) {
49422         return lastComparison;
49423       }
49424       if (isSetSuccess()) {
49425         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49426         if (lastComparison != 0) {
49427           return lastComparison;
49428         }
49429       }
49430       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
49431       if (lastComparison != 0) {
49432         return lastComparison;
49433       }
49434       if (isSetIo()) {
49435         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
49436         if (lastComparison != 0) {
49437           return lastComparison;
49438         }
49439       }
49440       return 0;
49441     }
49442 
49443     public _Fields fieldForId(int fieldId) {
49444       return _Fields.findByThriftId(fieldId);
49445     }
49446 
49447     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49448       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
49449     }
49450 
49451     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49452       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
49453       }
49454 
49455     @Override
49456     public String toString() {
49457       StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_result(");
49458       boolean first = true;
49459 
49460       sb.append("success:");
49461       sb.append(this.success);
49462       first = false;
49463       if (!first) sb.append(", ");
49464       sb.append("io:");
49465       if (this.io == null) {
49466         sb.append("null");
49467       } else {
49468         sb.append(this.io);
49469       }
49470       first = false;
49471       sb.append(")");
49472       return sb.toString();
49473     }
49474 
49475     public void validate() throws org.apache.thrift.TException {
49476       // check for required fields
49477       // check for sub-struct validity
49478     }
49479 
49480     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49481       try {
49482         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49483       } catch (org.apache.thrift.TException te) {
49484         throw new java.io.IOException(te);
49485       }
49486     }
49487 
49488     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49489       try {
49490         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
49491         __isset_bitfield = 0;
49492         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49493       } catch (org.apache.thrift.TException te) {
49494         throw new java.io.IOException(te);
49495       }
49496     }
49497 
49498     private static class scannerOpenWithStopTs_resultStandardSchemeFactory implements SchemeFactory {
49499       public scannerOpenWithStopTs_resultStandardScheme getScheme() {
49500         return new scannerOpenWithStopTs_resultStandardScheme();
49501       }
49502     }
49503 
49504     private static class scannerOpenWithStopTs_resultStandardScheme extends StandardScheme<scannerOpenWithStopTs_result> {
49505 
49506       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49507         org.apache.thrift.protocol.TField schemeField;
49508         iprot.readStructBegin();
49509         while (true)
49510         {
49511           schemeField = iprot.readFieldBegin();
49512           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
49513             break;
49514           }
49515           switch (schemeField.id) {
49516             case 0: // SUCCESS
49517               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
49518                 struct.success = iprot.readI32();
49519                 struct.setSuccessIsSet(true);
49520               } else { 
49521                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49522               }
49523               break;
49524             case 1: // IO
49525               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
49526                 struct.io = new IOError();
49527                 struct.io.read(iprot);
49528                 struct.setIoIsSet(true);
49529               } else { 
49530                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49531               }
49532               break;
49533             default:
49534               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49535           }
49536           iprot.readFieldEnd();
49537         }
49538         iprot.readStructEnd();
49539 
49540         // check for required fields of primitive type, which can't be checked in the validate method
49541         struct.validate();
49542       }
49543 
49544       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49545         struct.validate();
49546 
49547         oprot.writeStructBegin(STRUCT_DESC);
49548         if (struct.isSetSuccess()) {
49549           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49550           oprot.writeI32(struct.success);
49551           oprot.writeFieldEnd();
49552         }
49553         if (struct.io != null) {
49554           oprot.writeFieldBegin(IO_FIELD_DESC);
49555           struct.io.write(oprot);
49556           oprot.writeFieldEnd();
49557         }
49558         oprot.writeFieldStop();
49559         oprot.writeStructEnd();
49560       }
49561 
49562     }
49563 
49564     private static class scannerOpenWithStopTs_resultTupleSchemeFactory implements SchemeFactory {
49565       public scannerOpenWithStopTs_resultTupleScheme getScheme() {
49566         return new scannerOpenWithStopTs_resultTupleScheme();
49567       }
49568     }
49569 
49570     private static class scannerOpenWithStopTs_resultTupleScheme extends TupleScheme<scannerOpenWithStopTs_result> {
49571 
49572       @Override
49573       public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49574         TTupleProtocol oprot = (TTupleProtocol) prot;
49575         BitSet optionals = new BitSet();
49576         if (struct.isSetSuccess()) {
49577           optionals.set(0);
49578         }
49579         if (struct.isSetIo()) {
49580           optionals.set(1);
49581         }
49582         oprot.writeBitSet(optionals, 2);
49583         if (struct.isSetSuccess()) {
49584           oprot.writeI32(struct.success);
49585         }
49586         if (struct.isSetIo()) {
49587           struct.io.write(oprot);
49588         }
49589       }
49590 
49591       @Override
49592       public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49593         TTupleProtocol iprot = (TTupleProtocol) prot;
49594         BitSet incoming = iprot.readBitSet(2);
49595         if (incoming.get(0)) {
49596           struct.success = iprot.readI32();
49597           struct.setSuccessIsSet(true);
49598         }
49599         if (incoming.get(1)) {
49600           struct.io = new IOError();
49601           struct.io.read(iprot);
49602           struct.setIoIsSet(true);
49603         }
49604       }
49605     }
49606 
49607   }
49608 
49609   public static class scannerGet_args implements org.apache.thrift.TBase<scannerGet_args, scannerGet_args._Fields>, java.io.Serializable, Cloneable   {
49610     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_args");
49611 
49612     private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
49613 
49614     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
49615     static {
49616       schemes.put(StandardScheme.class, new scannerGet_argsStandardSchemeFactory());
49617       schemes.put(TupleScheme.class, new scannerGet_argsTupleSchemeFactory());
49618     }
49619 
49620     /**
49621      * id of a scanner returned by scannerOpen
49622      */
49623     public int id; // required
49624 
49625     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49626     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49627       /**
49628        * id of a scanner returned by scannerOpen
49629        */
49630       ID((short)1, "id");
49631 
49632       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49633 
49634       static {
49635         for (_Fields field : EnumSet.allOf(_Fields.class)) {
49636           byName.put(field.getFieldName(), field);
49637         }
49638       }
49639 
49640       /**
49641        * Find the _Fields constant that matches fieldId, or null if its not found.
49642        */
49643       public static _Fields findByThriftId(int fieldId) {
49644         switch(fieldId) {
49645           case 1: // ID
49646             return ID;
49647           default:
49648             return null;
49649         }
49650       }
49651 
49652       /**
49653        * Find the _Fields constant that matches fieldId, throwing an exception
49654        * if it is not found.
49655        */
49656       public static _Fields findByThriftIdOrThrow(int fieldId) {
49657         _Fields fields = findByThriftId(fieldId);
49658         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49659         return fields;
49660       }
49661 
49662       /**
49663        * Find the _Fields constant that matches name, or null if its not found.
49664        */
49665       public static _Fields findByName(String name) {
49666         return byName.get(name);
49667       }
49668 
49669       private final short _thriftId;
49670       private final String _fieldName;
49671 
49672       _Fields(short thriftId, String fieldName) {
49673         _thriftId = thriftId;
49674         _fieldName = fieldName;
49675       }
49676 
49677       public short getThriftFieldId() {
49678         return _thriftId;
49679       }
49680 
49681       public String getFieldName() {
49682         return _fieldName;
49683       }
49684     }
49685 
49686     // isset id assignments
49687     private static final int __ID_ISSET_ID = 0;
49688     private byte __isset_bitfield = 0;
49689     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49690     static {
49691       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49692       tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49693           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
49694       metaDataMap = Collections.unmodifiableMap(tmpMap);
49695       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_args.class, metaDataMap);
49696     }
49697 
49698     public scannerGet_args() {
49699     }
49700 
49701     public scannerGet_args(
49702       int id)
49703     {
49704       this();
49705       this.id = id;
49706       setIdIsSet(true);
49707     }
49708 
49709     /**
49710      * Performs a deep copy on <i>other</i>.
49711      */
49712     public scannerGet_args(scannerGet_args other) {
49713       __isset_bitfield = other.__isset_bitfield;
49714       this.id = other.id;
49715     }
49716 
49717     public scannerGet_args deepCopy() {
49718       return new scannerGet_args(this);
49719     }
49720 
49721     @Override
49722     public void clear() {
49723       setIdIsSet(false);
49724       this.id = 0;
49725     }
49726 
49727     /**
49728      * id of a scanner returned by scannerOpen
49729      */
49730     public int getId() {
49731       return this.id;
49732     }
49733 
49734     /**
49735      * id of a scanner returned by scannerOpen
49736      */
49737     public scannerGet_args setId(int id) {
49738       this.id = id;
49739       setIdIsSet(true);
49740       return this;
49741     }
49742 
49743     public void unsetId() {
49744       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
49745     }
49746 
49747     /** Returns true if field id is set (has been assigned a value) and false otherwise */
49748     public boolean isSetId() {
49749       return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
49750     }
49751 
49752     public void setIdIsSet(boolean value) {
49753       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
49754     }
49755 
49756     public void setFieldValue(_Fields field, Object value) {
49757       switch (field) {
49758       case ID:
49759         if (value == null) {
49760           unsetId();
49761         } else {
49762           setId((Integer)value);
49763         }
49764         break;
49765 
49766       }
49767     }
49768 
49769     public Object getFieldValue(_Fields field) {
49770       switch (field) {
49771       case ID:
49772         return Integer.valueOf(getId());
49773 
49774       }
49775       throw new IllegalStateException();
49776     }
49777 
49778     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49779     public boolean isSet(_Fields field) {
49780       if (field == null) {
49781         throw new IllegalArgumentException();
49782       }
49783 
49784       switch (field) {
49785       case ID:
49786         return isSetId();
49787       }
49788       throw new IllegalStateException();
49789     }
49790 
49791     @Override
49792     public boolean equals(Object that) {
49793       if (that == null)
49794         return false;
49795       if (that instanceof scannerGet_args)
49796         return this.equals((scannerGet_args)that);
49797       return false;
49798     }
49799 
49800     public boolean equals(scannerGet_args that) {
49801       if (that == null)
49802         return false;
49803 
49804       boolean this_present_id = true;
49805       boolean that_present_id = true;
49806       if (this_present_id || that_present_id) {
49807         if (!(this_present_id && that_present_id))
49808           return false;
49809         if (this.id != that.id)
49810           return false;
49811       }
49812 
49813       return true;
49814     }
49815 
49816     @Override
49817     public int hashCode() {
49818       HashCodeBuilder builder = new HashCodeBuilder();
49819 
49820       boolean present_id = true;
49821       builder.append(present_id);
49822       if (present_id)
49823         builder.append(id);
49824 
49825       return builder.toHashCode();
49826     }
49827 
49828     public int compareTo(scannerGet_args other) {
49829       if (!getClass().equals(other.getClass())) {
49830         return getClass().getName().compareTo(other.getClass().getName());
49831       }
49832 
49833       int lastComparison = 0;
49834       scannerGet_args typedOther = (scannerGet_args)other;
49835 
49836       lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
49837       if (lastComparison != 0) {
49838         return lastComparison;
49839       }
49840       if (isSetId()) {
49841         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
49842         if (lastComparison != 0) {
49843           return lastComparison;
49844         }
49845       }
49846       return 0;
49847     }
49848 
49849     public _Fields fieldForId(int fieldId) {
49850       return _Fields.findByThriftId(fieldId);
49851     }
49852 
49853     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49854       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
49855     }
49856 
49857     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49858       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
49859     }
49860 
49861     @Override
49862     public String toString() {
49863       StringBuilder sb = new StringBuilder("scannerGet_args(");
49864       boolean first = true;
49865 
49866       sb.append("id:");
49867       sb.append(this.id);
49868       first = false;
49869       sb.append(")");
49870       return sb.toString();
49871     }
49872 
49873     public void validate() throws org.apache.thrift.TException {
49874       // check for required fields
49875       // check for sub-struct validity
49876     }
49877 
49878     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49879       try {
49880         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49881       } catch (org.apache.thrift.TException te) {
49882         throw new java.io.IOException(te);
49883       }
49884     }
49885 
49886     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49887       try {
49888         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
49889         __isset_bitfield = 0;
49890         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49891       } catch (org.apache.thrift.TException te) {
49892         throw new java.io.IOException(te);
49893       }
49894     }
49895 
49896     private static class scannerGet_argsStandardSchemeFactory implements SchemeFactory {
49897       public scannerGet_argsStandardScheme getScheme() {
49898         return new scannerGet_argsStandardScheme();
49899       }
49900     }
49901 
49902     private static class scannerGet_argsStandardScheme extends StandardScheme<scannerGet_args> {
49903 
49904       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_args struct) throws org.apache.thrift.TException {
49905         org.apache.thrift.protocol.TField schemeField;
49906         iprot.readStructBegin();
49907         while (true)
49908         {
49909           schemeField = iprot.readFieldBegin();
49910           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
49911             break;
49912           }
49913           switch (schemeField.id) {
49914             case 1: // ID
49915               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
49916                 struct.id = iprot.readI32();
49917                 struct.setIdIsSet(true);
49918               } else { 
49919                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49920               }
49921               break;
49922             default:
49923               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49924           }
49925           iprot.readFieldEnd();
49926         }
49927         iprot.readStructEnd();
49928 
49929         // check for required fields of primitive type, which can't be checked in the validate method
49930         struct.validate();
49931       }
49932 
49933       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_args struct) throws org.apache.thrift.TException {
49934         struct.validate();
49935 
49936         oprot.writeStructBegin(STRUCT_DESC);
49937         oprot.writeFieldBegin(ID_FIELD_DESC);
49938         oprot.writeI32(struct.id);
49939         oprot.writeFieldEnd();
49940         oprot.writeFieldStop();
49941         oprot.writeStructEnd();
49942       }
49943 
49944     }
49945 
49946     private static class scannerGet_argsTupleSchemeFactory implements SchemeFactory {
49947       public scannerGet_argsTupleScheme getScheme() {
49948         return new scannerGet_argsTupleScheme();
49949       }
49950     }
49951 
49952     private static class scannerGet_argsTupleScheme extends TupleScheme<scannerGet_args> {
49953 
49954       @Override
49955       public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException {
49956         TTupleProtocol oprot = (TTupleProtocol) prot;
49957         BitSet optionals = new BitSet();
49958         if (struct.isSetId()) {
49959           optionals.set(0);
49960         }
49961         oprot.writeBitSet(optionals, 1);
49962         if (struct.isSetId()) {
49963           oprot.writeI32(struct.id);
49964         }
49965       }
49966 
49967       @Override
49968       public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException {
49969         TTupleProtocol iprot = (TTupleProtocol) prot;
49970         BitSet incoming = iprot.readBitSet(1);
49971         if (incoming.get(0)) {
49972           struct.id = iprot.readI32();
49973           struct.setIdIsSet(true);
49974         }
49975       }
49976     }
49977 
49978   }
49979 
49980   public static class scannerGet_result implements org.apache.thrift.TBase<scannerGet_result, scannerGet_result._Fields>, java.io.Serializable, Cloneable   {
49981     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_result");
49982 
49983     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
49984     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
49985     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
49986 
49987     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
49988     static {
49989       schemes.put(StandardScheme.class, new scannerGet_resultStandardSchemeFactory());
49990       schemes.put(TupleScheme.class, new scannerGet_resultTupleSchemeFactory());
49991     }
49992 
49993     public List<TRowResult> success; // required
49994     public IOError io; // required
49995     public IllegalArgument ia; // required
49996 
49997     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49998     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49999       SUCCESS((short)0, "success"),
50000       IO((short)1, "io"),
50001       IA((short)2, "ia");
50002 
50003       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50004 
50005       static {
50006         for (_Fields field : EnumSet.allOf(_Fields.class)) {
50007           byName.put(field.getFieldName(), field);
50008         }
50009       }
50010 
50011       /**
50012        * Find the _Fields constant that matches fieldId, or null if its not found.
50013        */
50014       public static _Fields findByThriftId(int fieldId) {
50015         switch(fieldId) {
50016           case 0: // SUCCESS
50017             return SUCCESS;
50018           case 1: // IO
50019             return IO;
50020           case 2: // IA
50021             return IA;
50022           default:
50023             return null;
50024         }
50025       }
50026 
50027       /**
50028        * Find the _Fields constant that matches fieldId, throwing an exception
50029        * if it is not found.
50030        */
50031       public static _Fields findByThriftIdOrThrow(int fieldId) {
50032         _Fields fields = findByThriftId(fieldId);
50033         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50034         return fields;
50035       }
50036 
50037       /**
50038        * Find the _Fields constant that matches name, or null if its not found.
50039        */
50040       public static _Fields findByName(String name) {
50041         return byName.get(name);
50042       }
50043 
50044       private final short _thriftId;
50045       private final String _fieldName;
50046 
50047       _Fields(short thriftId, String fieldName) {
50048         _thriftId = thriftId;
50049         _fieldName = fieldName;
50050       }
50051 
50052       public short getThriftFieldId() {
50053         return _thriftId;
50054       }
50055 
50056       public String getFieldName() {
50057         return _fieldName;
50058       }
50059     }
50060 
50061     // isset id assignments
50062     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50063     static {
50064       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50065       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50066           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50067               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
50068       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50069           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50070       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50071           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50072       metaDataMap = Collections.unmodifiableMap(tmpMap);
50073       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_result.class, metaDataMap);
50074     }
50075 
50076     public scannerGet_result() {
50077     }
50078 
50079     public scannerGet_result(
50080       List<TRowResult> success,
50081       IOError io,
50082       IllegalArgument ia)
50083     {
50084       this();
50085       this.success = success;
50086       this.io = io;
50087       this.ia = ia;
50088     }
50089 
50090     /**
50091      * Performs a deep copy on <i>other</i>.
50092      */
50093     public scannerGet_result(scannerGet_result other) {
50094       if (other.isSetSuccess()) {
50095         List<TRowResult> __this__success = new ArrayList<TRowResult>();
50096         for (TRowResult other_element : other.success) {
50097           __this__success.add(new TRowResult(other_element));
50098         }
50099         this.success = __this__success;
50100       }
50101       if (other.isSetIo()) {
50102         this.io = new IOError(other.io);
50103       }
50104       if (other.isSetIa()) {
50105         this.ia = new IllegalArgument(other.ia);
50106       }
50107     }
50108 
50109     public scannerGet_result deepCopy() {
50110       return new scannerGet_result(this);
50111     }
50112 
50113     @Override
50114     public void clear() {
50115       this.success = null;
50116       this.io = null;
50117       this.ia = null;
50118     }
50119 
50120     public int getSuccessSize() {
50121       return (this.success == null) ? 0 : this.success.size();
50122     }
50123 
50124     public java.util.Iterator<TRowResult> getSuccessIterator() {
50125       return (this.success == null) ? null : this.success.iterator();
50126     }
50127 
50128     public void addToSuccess(TRowResult elem) {
50129       if (this.success == null) {
50130         this.success = new ArrayList<TRowResult>();
50131       }
50132       this.success.add(elem);
50133     }
50134 
50135     public List<TRowResult> getSuccess() {
50136       return this.success;
50137     }
50138 
50139     public scannerGet_result setSuccess(List<TRowResult> success) {
50140       this.success = success;
50141       return this;
50142     }
50143 
50144     public void unsetSuccess() {
50145       this.success = null;
50146     }
50147 
50148     /** Returns true if field success is set (has been assigned a value) and false otherwise */
50149     public boolean isSetSuccess() {
50150       return this.success != null;
50151     }
50152 
50153     public void setSuccessIsSet(boolean value) {
50154       if (!value) {
50155         this.success = null;
50156       }
50157     }
50158 
50159     public IOError getIo() {
50160       return this.io;
50161     }
50162 
50163     public scannerGet_result setIo(IOError io) {
50164       this.io = io;
50165       return this;
50166     }
50167 
50168     public void unsetIo() {
50169       this.io = null;
50170     }
50171 
50172     /** Returns true if field io is set (has been assigned a value) and false otherwise */
50173     public boolean isSetIo() {
50174       return this.io != null;
50175     }
50176 
50177     public void setIoIsSet(boolean value) {
50178       if (!value) {
50179         this.io = null;
50180       }
50181     }
50182 
50183     public IllegalArgument getIa() {
50184       return this.ia;
50185     }
50186 
50187     public scannerGet_result setIa(IllegalArgument ia) {
50188       this.ia = ia;
50189       return this;
50190     }
50191 
50192     public void unsetIa() {
50193       this.ia = null;
50194     }
50195 
50196     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
50197     public boolean isSetIa() {
50198       return this.ia != null;
50199     }
50200 
50201     public void setIaIsSet(boolean value) {
50202       if (!value) {
50203         this.ia = null;
50204       }
50205     }
50206 
50207     public void setFieldValue(_Fields field, Object value) {
50208       switch (field) {
50209       case SUCCESS:
50210         if (value == null) {
50211           unsetSuccess();
50212         } else {
50213           setSuccess((List<TRowResult>)value);
50214         }
50215         break;
50216 
50217       case IO:
50218         if (value == null) {
50219           unsetIo();
50220         } else {
50221           setIo((IOError)value);
50222         }
50223         break;
50224 
50225       case IA:
50226         if (value == null) {
50227           unsetIa();
50228         } else {
50229           setIa((IllegalArgument)value);
50230         }
50231         break;
50232 
50233       }
50234     }
50235 
50236     public Object getFieldValue(_Fields field) {
50237       switch (field) {
50238       case SUCCESS:
50239         return getSuccess();
50240 
50241       case IO:
50242         return getIo();
50243 
50244       case IA:
50245         return getIa();
50246 
50247       }
50248       throw new IllegalStateException();
50249     }
50250 
50251     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50252     public boolean isSet(_Fields field) {
50253       if (field == null) {
50254         throw new IllegalArgumentException();
50255       }
50256 
50257       switch (field) {
50258       case SUCCESS:
50259         return isSetSuccess();
50260       case IO:
50261         return isSetIo();
50262       case IA:
50263         return isSetIa();
50264       }
50265       throw new IllegalStateException();
50266     }
50267 
50268     @Override
50269     public boolean equals(Object that) {
50270       if (that == null)
50271         return false;
50272       if (that instanceof scannerGet_result)
50273         return this.equals((scannerGet_result)that);
50274       return false;
50275     }
50276 
50277     public boolean equals(scannerGet_result that) {
50278       if (that == null)
50279         return false;
50280 
50281       boolean this_present_success = true && this.isSetSuccess();
50282       boolean that_present_success = true && that.isSetSuccess();
50283       if (this_present_success || that_present_success) {
50284         if (!(this_present_success && that_present_success))
50285           return false;
50286         if (!this.success.equals(that.success))
50287           return false;
50288       }
50289 
50290       boolean this_present_io = true && this.isSetIo();
50291       boolean that_present_io = true && that.isSetIo();
50292       if (this_present_io || that_present_io) {
50293         if (!(this_present_io && that_present_io))
50294           return false;
50295         if (!this.io.equals(that.io))
50296           return false;
50297       }
50298 
50299       boolean this_present_ia = true && this.isSetIa();
50300       boolean that_present_ia = true && that.isSetIa();
50301       if (this_present_ia || that_present_ia) {
50302         if (!(this_present_ia && that_present_ia))
50303           return false;
50304         if (!this.ia.equals(that.ia))
50305           return false;
50306       }
50307 
50308       return true;
50309     }
50310 
50311     @Override
50312     public int hashCode() {
50313       HashCodeBuilder builder = new HashCodeBuilder();
50314 
50315       boolean present_success = true && (isSetSuccess());
50316       builder.append(present_success);
50317       if (present_success)
50318         builder.append(success);
50319 
50320       boolean present_io = true && (isSetIo());
50321       builder.append(present_io);
50322       if (present_io)
50323         builder.append(io);
50324 
50325       boolean present_ia = true && (isSetIa());
50326       builder.append(present_ia);
50327       if (present_ia)
50328         builder.append(ia);
50329 
50330       return builder.toHashCode();
50331     }
50332 
50333     public int compareTo(scannerGet_result other) {
50334       if (!getClass().equals(other.getClass())) {
50335         return getClass().getName().compareTo(other.getClass().getName());
50336       }
50337 
50338       int lastComparison = 0;
50339       scannerGet_result typedOther = (scannerGet_result)other;
50340 
50341       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50342       if (lastComparison != 0) {
50343         return lastComparison;
50344       }
50345       if (isSetSuccess()) {
50346         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50347         if (lastComparison != 0) {
50348           return lastComparison;
50349         }
50350       }
50351       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
50352       if (lastComparison != 0) {
50353         return lastComparison;
50354       }
50355       if (isSetIo()) {
50356         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
50357         if (lastComparison != 0) {
50358           return lastComparison;
50359         }
50360       }
50361       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
50362       if (lastComparison != 0) {
50363         return lastComparison;
50364       }
50365       if (isSetIa()) {
50366         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
50367         if (lastComparison != 0) {
50368           return lastComparison;
50369         }
50370       }
50371       return 0;
50372     }
50373 
50374     public _Fields fieldForId(int fieldId) {
50375       return _Fields.findByThriftId(fieldId);
50376     }
50377 
50378     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50379       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
50380     }
50381 
50382     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50383       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
50384       }
50385 
50386     @Override
50387     public String toString() {
50388       StringBuilder sb = new StringBuilder("scannerGet_result(");
50389       boolean first = true;
50390 
50391       sb.append("success:");
50392       if (this.success == null) {
50393         sb.append("null");
50394       } else {
50395         sb.append(this.success);
50396       }
50397       first = false;
50398       if (!first) sb.append(", ");
50399       sb.append("io:");
50400       if (this.io == null) {
50401         sb.append("null");
50402       } else {
50403         sb.append(this.io);
50404       }
50405       first = false;
50406       if (!first) sb.append(", ");
50407       sb.append("ia:");
50408       if (this.ia == null) {
50409         sb.append("null");
50410       } else {
50411         sb.append(this.ia);
50412       }
50413       first = false;
50414       sb.append(")");
50415       return sb.toString();
50416     }
50417 
50418     public void validate() throws org.apache.thrift.TException {
50419       // check for required fields
50420       // check for sub-struct validity
50421     }
50422 
50423     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50424       try {
50425         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50426       } catch (org.apache.thrift.TException te) {
50427         throw new java.io.IOException(te);
50428       }
50429     }
50430 
50431     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50432       try {
50433         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50434       } catch (org.apache.thrift.TException te) {
50435         throw new java.io.IOException(te);
50436       }
50437     }
50438 
50439     private static class scannerGet_resultStandardSchemeFactory implements SchemeFactory {
50440       public scannerGet_resultStandardScheme getScheme() {
50441         return new scannerGet_resultStandardScheme();
50442       }
50443     }
50444 
50445     private static class scannerGet_resultStandardScheme extends StandardScheme<scannerGet_result> {
50446 
50447       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_result struct) throws org.apache.thrift.TException {
50448         org.apache.thrift.protocol.TField schemeField;
50449         iprot.readStructBegin();
50450         while (true)
50451         {
50452           schemeField = iprot.readFieldBegin();
50453           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
50454             break;
50455           }
50456           switch (schemeField.id) {
50457             case 0: // SUCCESS
50458               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
50459                 {
50460                   org.apache.thrift.protocol.TList _list566 = iprot.readListBegin();
50461                   struct.success = new ArrayList<TRowResult>(_list566.size);
50462                   for (int _i567 = 0; _i567 < _list566.size; ++_i567)
50463                   {
50464                     TRowResult _elem568; // required
50465                     _elem568 = new TRowResult();
50466                     _elem568.read(iprot);
50467                     struct.success.add(_elem568);
50468                   }
50469                   iprot.readListEnd();
50470                 }
50471                 struct.setSuccessIsSet(true);
50472               } else { 
50473                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50474               }
50475               break;
50476             case 1: // IO
50477               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
50478                 struct.io = new IOError();
50479                 struct.io.read(iprot);
50480                 struct.setIoIsSet(true);
50481               } else { 
50482                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50483               }
50484               break;
50485             case 2: // IA
50486               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
50487                 struct.ia = new IllegalArgument();
50488                 struct.ia.read(iprot);
50489                 struct.setIaIsSet(true);
50490               } else { 
50491                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50492               }
50493               break;
50494             default:
50495               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50496           }
50497           iprot.readFieldEnd();
50498         }
50499         iprot.readStructEnd();
50500 
50501         // check for required fields of primitive type, which can't be checked in the validate method
50502         struct.validate();
50503       }
50504 
50505       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_result struct) throws org.apache.thrift.TException {
50506         struct.validate();
50507 
50508         oprot.writeStructBegin(STRUCT_DESC);
50509         if (struct.success != null) {
50510           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50511           {
50512             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
50513             for (TRowResult _iter569 : struct.success)
50514             {
50515               _iter569.write(oprot);
50516             }
50517             oprot.writeListEnd();
50518           }
50519           oprot.writeFieldEnd();
50520         }
50521         if (struct.io != null) {
50522           oprot.writeFieldBegin(IO_FIELD_DESC);
50523           struct.io.write(oprot);
50524           oprot.writeFieldEnd();
50525         }
50526         if (struct.ia != null) {
50527           oprot.writeFieldBegin(IA_FIELD_DESC);
50528           struct.ia.write(oprot);
50529           oprot.writeFieldEnd();
50530         }
50531         oprot.writeFieldStop();
50532         oprot.writeStructEnd();
50533       }
50534 
50535     }
50536 
50537     private static class scannerGet_resultTupleSchemeFactory implements SchemeFactory {
50538       public scannerGet_resultTupleScheme getScheme() {
50539         return new scannerGet_resultTupleScheme();
50540       }
50541     }
50542 
50543     private static class scannerGet_resultTupleScheme extends TupleScheme<scannerGet_result> {
50544 
50545       @Override
50546       public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException {
50547         TTupleProtocol oprot = (TTupleProtocol) prot;
50548         BitSet optionals = new BitSet();
50549         if (struct.isSetSuccess()) {
50550           optionals.set(0);
50551         }
50552         if (struct.isSetIo()) {
50553           optionals.set(1);
50554         }
50555         if (struct.isSetIa()) {
50556           optionals.set(2);
50557         }
50558         oprot.writeBitSet(optionals, 3);
50559         if (struct.isSetSuccess()) {
50560           {
50561             oprot.writeI32(struct.success.size());
50562             for (TRowResult _iter570 : struct.success)
50563             {
50564               _iter570.write(oprot);
50565             }
50566           }
50567         }
50568         if (struct.isSetIo()) {
50569           struct.io.write(oprot);
50570         }
50571         if (struct.isSetIa()) {
50572           struct.ia.write(oprot);
50573         }
50574       }
50575 
50576       @Override
50577       public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException {
50578         TTupleProtocol iprot = (TTupleProtocol) prot;
50579         BitSet incoming = iprot.readBitSet(3);
50580         if (incoming.get(0)) {
50581           {
50582             org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
50583             struct.success = new ArrayList<TRowResult>(_list571.size);
50584             for (int _i572 = 0; _i572 < _list571.size; ++_i572)
50585             {
50586               TRowResult _elem573; // required
50587               _elem573 = new TRowResult();
50588               _elem573.read(iprot);
50589               struct.success.add(_elem573);
50590             }
50591           }
50592           struct.setSuccessIsSet(true);
50593         }
50594         if (incoming.get(1)) {
50595           struct.io = new IOError();
50596           struct.io.read(iprot);
50597           struct.setIoIsSet(true);
50598         }
50599         if (incoming.get(2)) {
50600           struct.ia = new IllegalArgument();
50601           struct.ia.read(iprot);
50602           struct.setIaIsSet(true);
50603         }
50604       }
50605     }
50606 
50607   }
50608 
50609   public static class scannerGetList_args implements org.apache.thrift.TBase<scannerGetList_args, scannerGetList_args._Fields>, java.io.Serializable, Cloneable   {
50610     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_args");
50611 
50612     private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
50613     private static final org.apache.thrift.protocol.TField NB_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("nbRows", org.apache.thrift.protocol.TType.I32, (short)2);
50614 
50615     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
50616     static {
50617       schemes.put(StandardScheme.class, new scannerGetList_argsStandardSchemeFactory());
50618       schemes.put(TupleScheme.class, new scannerGetList_argsTupleSchemeFactory());
50619     }
50620 
50621     /**
50622      * id of a scanner returned by scannerOpen
50623      */
50624     public int id; // required
50625     /**
50626      * number of results to return
50627      */
50628     public int nbRows; // required
50629 
50630     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50631     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50632       /**
50633        * id of a scanner returned by scannerOpen
50634        */
50635       ID((short)1, "id"),
50636       /**
50637        * number of results to return
50638        */
50639       NB_ROWS((short)2, "nbRows");
50640 
50641       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50642 
50643       static {
50644         for (_Fields field : EnumSet.allOf(_Fields.class)) {
50645           byName.put(field.getFieldName(), field);
50646         }
50647       }
50648 
50649       /**
50650        * Find the _Fields constant that matches fieldId, or null if its not found.
50651        */
50652       public static _Fields findByThriftId(int fieldId) {
50653         switch(fieldId) {
50654           case 1: // ID
50655             return ID;
50656           case 2: // NB_ROWS
50657             return NB_ROWS;
50658           default:
50659             return null;
50660         }
50661       }
50662 
50663       /**
50664        * Find the _Fields constant that matches fieldId, throwing an exception
50665        * if it is not found.
50666        */
50667       public static _Fields findByThriftIdOrThrow(int fieldId) {
50668         _Fields fields = findByThriftId(fieldId);
50669         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50670         return fields;
50671       }
50672 
50673       /**
50674        * Find the _Fields constant that matches name, or null if its not found.
50675        */
50676       public static _Fields findByName(String name) {
50677         return byName.get(name);
50678       }
50679 
50680       private final short _thriftId;
50681       private final String _fieldName;
50682 
50683       _Fields(short thriftId, String fieldName) {
50684         _thriftId = thriftId;
50685         _fieldName = fieldName;
50686       }
50687 
50688       public short getThriftFieldId() {
50689         return _thriftId;
50690       }
50691 
50692       public String getFieldName() {
50693         return _fieldName;
50694       }
50695     }
50696 
50697     // isset id assignments
50698     private static final int __ID_ISSET_ID = 0;
50699     private static final int __NBROWS_ISSET_ID = 1;
50700     private byte __isset_bitfield = 0;
50701     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50702     static {
50703       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50704       tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50705           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
50706       tmpMap.put(_Fields.NB_ROWS, new org.apache.thrift.meta_data.FieldMetaData("nbRows", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50707           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
50708       metaDataMap = Collections.unmodifiableMap(tmpMap);
50709       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_args.class, metaDataMap);
50710     }
50711 
50712     public scannerGetList_args() {
50713     }
50714 
50715     public scannerGetList_args(
50716       int id,
50717       int nbRows)
50718     {
50719       this();
50720       this.id = id;
50721       setIdIsSet(true);
50722       this.nbRows = nbRows;
50723       setNbRowsIsSet(true);
50724     }
50725 
50726     /**
50727      * Performs a deep copy on <i>other</i>.
50728      */
50729     public scannerGetList_args(scannerGetList_args other) {
50730       __isset_bitfield = other.__isset_bitfield;
50731       this.id = other.id;
50732       this.nbRows = other.nbRows;
50733     }
50734 
50735     public scannerGetList_args deepCopy() {
50736       return new scannerGetList_args(this);
50737     }
50738 
50739     @Override
50740     public void clear() {
50741       setIdIsSet(false);
50742       this.id = 0;
50743       setNbRowsIsSet(false);
50744       this.nbRows = 0;
50745     }
50746 
50747     /**
50748      * id of a scanner returned by scannerOpen
50749      */
50750     public int getId() {
50751       return this.id;
50752     }
50753 
50754     /**
50755      * id of a scanner returned by scannerOpen
50756      */
50757     public scannerGetList_args setId(int id) {
50758       this.id = id;
50759       setIdIsSet(true);
50760       return this;
50761     }
50762 
50763     public void unsetId() {
50764       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
50765     }
50766 
50767     /** Returns true if field id is set (has been assigned a value) and false otherwise */
50768     public boolean isSetId() {
50769       return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
50770     }
50771 
50772     public void setIdIsSet(boolean value) {
50773       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
50774     }
50775 
50776     /**
50777      * number of results to return
50778      */
50779     public int getNbRows() {
50780       return this.nbRows;
50781     }
50782 
50783     /**
50784      * number of results to return
50785      */
50786     public scannerGetList_args setNbRows(int nbRows) {
50787       this.nbRows = nbRows;
50788       setNbRowsIsSet(true);
50789       return this;
50790     }
50791 
50792     public void unsetNbRows() {
50793       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NBROWS_ISSET_ID);
50794     }
50795 
50796     /** Returns true if field nbRows is set (has been assigned a value) and false otherwise */
50797     public boolean isSetNbRows() {
50798       return EncodingUtils.testBit(__isset_bitfield, __NBROWS_ISSET_ID);
50799     }
50800 
50801     public void setNbRowsIsSet(boolean value) {
50802       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NBROWS_ISSET_ID, value);
50803     }
50804 
50805     public void setFieldValue(_Fields field, Object value) {
50806       switch (field) {
50807       case ID:
50808         if (value == null) {
50809           unsetId();
50810         } else {
50811           setId((Integer)value);
50812         }
50813         break;
50814 
50815       case NB_ROWS:
50816         if (value == null) {
50817           unsetNbRows();
50818         } else {
50819           setNbRows((Integer)value);
50820         }
50821         break;
50822 
50823       }
50824     }
50825 
50826     public Object getFieldValue(_Fields field) {
50827       switch (field) {
50828       case ID:
50829         return Integer.valueOf(getId());
50830 
50831       case NB_ROWS:
50832         return Integer.valueOf(getNbRows());
50833 
50834       }
50835       throw new IllegalStateException();
50836     }
50837 
50838     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50839     public boolean isSet(_Fields field) {
50840       if (field == null) {
50841         throw new IllegalArgumentException();
50842       }
50843 
50844       switch (field) {
50845       case ID:
50846         return isSetId();
50847       case NB_ROWS:
50848         return isSetNbRows();
50849       }
50850       throw new IllegalStateException();
50851     }
50852 
50853     @Override
50854     public boolean equals(Object that) {
50855       if (that == null)
50856         return false;
50857       if (that instanceof scannerGetList_args)
50858         return this.equals((scannerGetList_args)that);
50859       return false;
50860     }
50861 
50862     public boolean equals(scannerGetList_args that) {
50863       if (that == null)
50864         return false;
50865 
50866       boolean this_present_id = true;
50867       boolean that_present_id = true;
50868       if (this_present_id || that_present_id) {
50869         if (!(this_present_id && that_present_id))
50870           return false;
50871         if (this.id != that.id)
50872           return false;
50873       }
50874 
50875       boolean this_present_nbRows = true;
50876       boolean that_present_nbRows = true;
50877       if (this_present_nbRows || that_present_nbRows) {
50878         if (!(this_present_nbRows && that_present_nbRows))
50879           return false;
50880         if (this.nbRows != that.nbRows)
50881           return false;
50882       }
50883 
50884       return true;
50885     }
50886 
50887     @Override
50888     public int hashCode() {
50889       HashCodeBuilder builder = new HashCodeBuilder();
50890 
50891       boolean present_id = true;
50892       builder.append(present_id);
50893       if (present_id)
50894         builder.append(id);
50895 
50896       boolean present_nbRows = true;
50897       builder.append(present_nbRows);
50898       if (present_nbRows)
50899         builder.append(nbRows);
50900 
50901       return builder.toHashCode();
50902     }
50903 
50904     public int compareTo(scannerGetList_args other) {
50905       if (!getClass().equals(other.getClass())) {
50906         return getClass().getName().compareTo(other.getClass().getName());
50907       }
50908 
50909       int lastComparison = 0;
50910       scannerGetList_args typedOther = (scannerGetList_args)other;
50911 
50912       lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
50913       if (lastComparison != 0) {
50914         return lastComparison;
50915       }
50916       if (isSetId()) {
50917         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
50918         if (lastComparison != 0) {
50919           return lastComparison;
50920         }
50921       }
50922       lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(typedOther.isSetNbRows());
50923       if (lastComparison != 0) {
50924         return lastComparison;
50925       }
50926       if (isSetNbRows()) {
50927         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nbRows, typedOther.nbRows);
50928         if (lastComparison != 0) {
50929           return lastComparison;
50930         }
50931       }
50932       return 0;
50933     }
50934 
50935     public _Fields fieldForId(int fieldId) {
50936       return _Fields.findByThriftId(fieldId);
50937     }
50938 
50939     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50940       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
50941     }
50942 
50943     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50944       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
50945     }
50946 
50947     @Override
50948     public String toString() {
50949       StringBuilder sb = new StringBuilder("scannerGetList_args(");
50950       boolean first = true;
50951 
50952       sb.append("id:");
50953       sb.append(this.id);
50954       first = false;
50955       if (!first) sb.append(", ");
50956       sb.append("nbRows:");
50957       sb.append(this.nbRows);
50958       first = false;
50959       sb.append(")");
50960       return sb.toString();
50961     }
50962 
50963     public void validate() throws org.apache.thrift.TException {
50964       // check for required fields
50965       // check for sub-struct validity
50966     }
50967 
50968     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50969       try {
50970         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50971       } catch (org.apache.thrift.TException te) {
50972         throw new java.io.IOException(te);
50973       }
50974     }
50975 
50976     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50977       try {
50978         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
50979         __isset_bitfield = 0;
50980         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50981       } catch (org.apache.thrift.TException te) {
50982         throw new java.io.IOException(te);
50983       }
50984     }
50985 
50986     private static class scannerGetList_argsStandardSchemeFactory implements SchemeFactory {
50987       public scannerGetList_argsStandardScheme getScheme() {
50988         return new scannerGetList_argsStandardScheme();
50989       }
50990     }
50991 
50992     private static class scannerGetList_argsStandardScheme extends StandardScheme<scannerGetList_args> {
50993 
50994       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_args struct) throws org.apache.thrift.TException {
50995         org.apache.thrift.protocol.TField schemeField;
50996         iprot.readStructBegin();
50997         while (true)
50998         {
50999           schemeField = iprot.readFieldBegin();
51000           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
51001             break;
51002           }
51003           switch (schemeField.id) {
51004             case 1: // ID
51005               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
51006                 struct.id = iprot.readI32();
51007                 struct.setIdIsSet(true);
51008               } else { 
51009                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51010               }
51011               break;
51012             case 2: // NB_ROWS
51013               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
51014                 struct.nbRows = iprot.readI32();
51015                 struct.setNbRowsIsSet(true);
51016               } else { 
51017                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51018               }
51019               break;
51020             default:
51021               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51022           }
51023           iprot.readFieldEnd();
51024         }
51025         iprot.readStructEnd();
51026 
51027         // check for required fields of primitive type, which can't be checked in the validate method
51028         struct.validate();
51029       }
51030 
51031       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_args struct) throws org.apache.thrift.TException {
51032         struct.validate();
51033 
51034         oprot.writeStructBegin(STRUCT_DESC);
51035         oprot.writeFieldBegin(ID_FIELD_DESC);
51036         oprot.writeI32(struct.id);
51037         oprot.writeFieldEnd();
51038         oprot.writeFieldBegin(NB_ROWS_FIELD_DESC);
51039         oprot.writeI32(struct.nbRows);
51040         oprot.writeFieldEnd();
51041         oprot.writeFieldStop();
51042         oprot.writeStructEnd();
51043       }
51044 
51045     }
51046 
51047     private static class scannerGetList_argsTupleSchemeFactory implements SchemeFactory {
51048       public scannerGetList_argsTupleScheme getScheme() {
51049         return new scannerGetList_argsTupleScheme();
51050       }
51051     }
51052 
51053     private static class scannerGetList_argsTupleScheme extends TupleScheme<scannerGetList_args> {
51054 
51055       @Override
51056       public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException {
51057         TTupleProtocol oprot = (TTupleProtocol) prot;
51058         BitSet optionals = new BitSet();
51059         if (struct.isSetId()) {
51060           optionals.set(0);
51061         }
51062         if (struct.isSetNbRows()) {
51063           optionals.set(1);
51064         }
51065         oprot.writeBitSet(optionals, 2);
51066         if (struct.isSetId()) {
51067           oprot.writeI32(struct.id);
51068         }
51069         if (struct.isSetNbRows()) {
51070           oprot.writeI32(struct.nbRows);
51071         }
51072       }
51073 
51074       @Override
51075       public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException {
51076         TTupleProtocol iprot = (TTupleProtocol) prot;
51077         BitSet incoming = iprot.readBitSet(2);
51078         if (incoming.get(0)) {
51079           struct.id = iprot.readI32();
51080           struct.setIdIsSet(true);
51081         }
51082         if (incoming.get(1)) {
51083           struct.nbRows = iprot.readI32();
51084           struct.setNbRowsIsSet(true);
51085         }
51086       }
51087     }
51088 
51089   }
51090 
51091   public static class scannerGetList_result implements org.apache.thrift.TBase<scannerGetList_result, scannerGetList_result._Fields>, java.io.Serializable, Cloneable   {
51092     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_result");
51093 
51094     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
51095     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
51096     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
51097 
51098     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
51099     static {
51100       schemes.put(StandardScheme.class, new scannerGetList_resultStandardSchemeFactory());
51101       schemes.put(TupleScheme.class, new scannerGetList_resultTupleSchemeFactory());
51102     }
51103 
51104     public List<TRowResult> success; // required
51105     public IOError io; // required
51106     public IllegalArgument ia; // required
51107 
51108     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51109     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51110       SUCCESS((short)0, "success"),
51111       IO((short)1, "io"),
51112       IA((short)2, "ia");
51113 
51114       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51115 
51116       static {
51117         for (_Fields field : EnumSet.allOf(_Fields.class)) {
51118           byName.put(field.getFieldName(), field);
51119         }
51120       }
51121 
51122       /**
51123        * Find the _Fields constant that matches fieldId, or null if its not found.
51124        */
51125       public static _Fields findByThriftId(int fieldId) {
51126         switch(fieldId) {
51127           case 0: // SUCCESS
51128             return SUCCESS;
51129           case 1: // IO
51130             return IO;
51131           case 2: // IA
51132             return IA;
51133           default:
51134             return null;
51135         }
51136       }
51137 
51138       /**
51139        * Find the _Fields constant that matches fieldId, throwing an exception
51140        * if it is not found.
51141        */
51142       public static _Fields findByThriftIdOrThrow(int fieldId) {
51143         _Fields fields = findByThriftId(fieldId);
51144         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51145         return fields;
51146       }
51147 
51148       /**
51149        * Find the _Fields constant that matches name, or null if its not found.
51150        */
51151       public static _Fields findByName(String name) {
51152         return byName.get(name);
51153       }
51154 
51155       private final short _thriftId;
51156       private final String _fieldName;
51157 
51158       _Fields(short thriftId, String fieldName) {
51159         _thriftId = thriftId;
51160         _fieldName = fieldName;
51161       }
51162 
51163       public short getThriftFieldId() {
51164         return _thriftId;
51165       }
51166 
51167       public String getFieldName() {
51168         return _fieldName;
51169       }
51170     }
51171 
51172     // isset id assignments
51173     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51174     static {
51175       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51176       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51177           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
51178               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
51179       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51180           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51181       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51182           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51183       metaDataMap = Collections.unmodifiableMap(tmpMap);
51184       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_result.class, metaDataMap);
51185     }
51186 
51187     public scannerGetList_result() {
51188     }
51189 
51190     public scannerGetList_result(
51191       List<TRowResult> success,
51192       IOError io,
51193       IllegalArgument ia)
51194     {
51195       this();
51196       this.success = success;
51197       this.io = io;
51198       this.ia = ia;
51199     }
51200 
51201     /**
51202      * Performs a deep copy on <i>other</i>.
51203      */
51204     public scannerGetList_result(scannerGetList_result other) {
51205       if (other.isSetSuccess()) {
51206         List<TRowResult> __this__success = new ArrayList<TRowResult>();
51207         for (TRowResult other_element : other.success) {
51208           __this__success.add(new TRowResult(other_element));
51209         }
51210         this.success = __this__success;
51211       }
51212       if (other.isSetIo()) {
51213         this.io = new IOError(other.io);
51214       }
51215       if (other.isSetIa()) {
51216         this.ia = new IllegalArgument(other.ia);
51217       }
51218     }
51219 
51220     public scannerGetList_result deepCopy() {
51221       return new scannerGetList_result(this);
51222     }
51223 
51224     @Override
51225     public void clear() {
51226       this.success = null;
51227       this.io = null;
51228       this.ia = null;
51229     }
51230 
51231     public int getSuccessSize() {
51232       return (this.success == null) ? 0 : this.success.size();
51233     }
51234 
51235     public java.util.Iterator<TRowResult> getSuccessIterator() {
51236       return (this.success == null) ? null : this.success.iterator();
51237     }
51238 
51239     public void addToSuccess(TRowResult elem) {
51240       if (this.success == null) {
51241         this.success = new ArrayList<TRowResult>();
51242       }
51243       this.success.add(elem);
51244     }
51245 
51246     public List<TRowResult> getSuccess() {
51247       return this.success;
51248     }
51249 
51250     public scannerGetList_result setSuccess(List<TRowResult> success) {
51251       this.success = success;
51252       return this;
51253     }
51254 
51255     public void unsetSuccess() {
51256       this.success = null;
51257     }
51258 
51259     /** Returns true if field success is set (has been assigned a value) and false otherwise */
51260     public boolean isSetSuccess() {
51261       return this.success != null;
51262     }
51263 
51264     public void setSuccessIsSet(boolean value) {
51265       if (!value) {
51266         this.success = null;
51267       }
51268     }
51269 
51270     public IOError getIo() {
51271       return this.io;
51272     }
51273 
51274     public scannerGetList_result setIo(IOError io) {
51275       this.io = io;
51276       return this;
51277     }
51278 
51279     public void unsetIo() {
51280       this.io = null;
51281     }
51282 
51283     /** Returns true if field io is set (has been assigned a value) and false otherwise */
51284     public boolean isSetIo() {
51285       return this.io != null;
51286     }
51287 
51288     public void setIoIsSet(boolean value) {
51289       if (!value) {
51290         this.io = null;
51291       }
51292     }
51293 
51294     public IllegalArgument getIa() {
51295       return this.ia;
51296     }
51297 
51298     public scannerGetList_result setIa(IllegalArgument ia) {
51299       this.ia = ia;
51300       return this;
51301     }
51302 
51303     public void unsetIa() {
51304       this.ia = null;
51305     }
51306 
51307     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
51308     public boolean isSetIa() {
51309       return this.ia != null;
51310     }
51311 
51312     public void setIaIsSet(boolean value) {
51313       if (!value) {
51314         this.ia = null;
51315       }
51316     }
51317 
51318     public void setFieldValue(_Fields field, Object value) {
51319       switch (field) {
51320       case SUCCESS:
51321         if (value == null) {
51322           unsetSuccess();
51323         } else {
51324           setSuccess((List<TRowResult>)value);
51325         }
51326         break;
51327 
51328       case IO:
51329         if (value == null) {
51330           unsetIo();
51331         } else {
51332           setIo((IOError)value);
51333         }
51334         break;
51335 
51336       case IA:
51337         if (value == null) {
51338           unsetIa();
51339         } else {
51340           setIa((IllegalArgument)value);
51341         }
51342         break;
51343 
51344       }
51345     }
51346 
51347     public Object getFieldValue(_Fields field) {
51348       switch (field) {
51349       case SUCCESS:
51350         return getSuccess();
51351 
51352       case IO:
51353         return getIo();
51354 
51355       case IA:
51356         return getIa();
51357 
51358       }
51359       throw new IllegalStateException();
51360     }
51361 
51362     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51363     public boolean isSet(_Fields field) {
51364       if (field == null) {
51365         throw new IllegalArgumentException();
51366       }
51367 
51368       switch (field) {
51369       case SUCCESS:
51370         return isSetSuccess();
51371       case IO:
51372         return isSetIo();
51373       case IA:
51374         return isSetIa();
51375       }
51376       throw new IllegalStateException();
51377     }
51378 
51379     @Override
51380     public boolean equals(Object that) {
51381       if (that == null)
51382         return false;
51383       if (that instanceof scannerGetList_result)
51384         return this.equals((scannerGetList_result)that);
51385       return false;
51386     }
51387 
51388     public boolean equals(scannerGetList_result that) {
51389       if (that == null)
51390         return false;
51391 
51392       boolean this_present_success = true && this.isSetSuccess();
51393       boolean that_present_success = true && that.isSetSuccess();
51394       if (this_present_success || that_present_success) {
51395         if (!(this_present_success && that_present_success))
51396           return false;
51397         if (!this.success.equals(that.success))
51398           return false;
51399       }
51400 
51401       boolean this_present_io = true && this.isSetIo();
51402       boolean that_present_io = true && that.isSetIo();
51403       if (this_present_io || that_present_io) {
51404         if (!(this_present_io && that_present_io))
51405           return false;
51406         if (!this.io.equals(that.io))
51407           return false;
51408       }
51409 
51410       boolean this_present_ia = true && this.isSetIa();
51411       boolean that_present_ia = true && that.isSetIa();
51412       if (this_present_ia || that_present_ia) {
51413         if (!(this_present_ia && that_present_ia))
51414           return false;
51415         if (!this.ia.equals(that.ia))
51416           return false;
51417       }
51418 
51419       return true;
51420     }
51421 
51422     @Override
51423     public int hashCode() {
51424       HashCodeBuilder builder = new HashCodeBuilder();
51425 
51426       boolean present_success = true && (isSetSuccess());
51427       builder.append(present_success);
51428       if (present_success)
51429         builder.append(success);
51430 
51431       boolean present_io = true && (isSetIo());
51432       builder.append(present_io);
51433       if (present_io)
51434         builder.append(io);
51435 
51436       boolean present_ia = true && (isSetIa());
51437       builder.append(present_ia);
51438       if (present_ia)
51439         builder.append(ia);
51440 
51441       return builder.toHashCode();
51442     }
51443 
51444     public int compareTo(scannerGetList_result other) {
51445       if (!getClass().equals(other.getClass())) {
51446         return getClass().getName().compareTo(other.getClass().getName());
51447       }
51448 
51449       int lastComparison = 0;
51450       scannerGetList_result typedOther = (scannerGetList_result)other;
51451 
51452       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
51453       if (lastComparison != 0) {
51454         return lastComparison;
51455       }
51456       if (isSetSuccess()) {
51457         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51458         if (lastComparison != 0) {
51459           return lastComparison;
51460         }
51461       }
51462       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
51463       if (lastComparison != 0) {
51464         return lastComparison;
51465       }
51466       if (isSetIo()) {
51467         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
51468         if (lastComparison != 0) {
51469           return lastComparison;
51470         }
51471       }
51472       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
51473       if (lastComparison != 0) {
51474         return lastComparison;
51475       }
51476       if (isSetIa()) {
51477         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
51478         if (lastComparison != 0) {
51479           return lastComparison;
51480         }
51481       }
51482       return 0;
51483     }
51484 
51485     public _Fields fieldForId(int fieldId) {
51486       return _Fields.findByThriftId(fieldId);
51487     }
51488 
51489     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51490       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
51491     }
51492 
51493     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51494       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
51495       }
51496 
51497     @Override
51498     public String toString() {
51499       StringBuilder sb = new StringBuilder("scannerGetList_result(");
51500       boolean first = true;
51501 
51502       sb.append("success:");
51503       if (this.success == null) {
51504         sb.append("null");
51505       } else {
51506         sb.append(this.success);
51507       }
51508       first = false;
51509       if (!first) sb.append(", ");
51510       sb.append("io:");
51511       if (this.io == null) {
51512         sb.append("null");
51513       } else {
51514         sb.append(this.io);
51515       }
51516       first = false;
51517       if (!first) sb.append(", ");
51518       sb.append("ia:");
51519       if (this.ia == null) {
51520         sb.append("null");
51521       } else {
51522         sb.append(this.ia);
51523       }
51524       first = false;
51525       sb.append(")");
51526       return sb.toString();
51527     }
51528 
51529     public void validate() throws org.apache.thrift.TException {
51530       // check for required fields
51531       // check for sub-struct validity
51532     }
51533 
51534     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51535       try {
51536         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51537       } catch (org.apache.thrift.TException te) {
51538         throw new java.io.IOException(te);
51539       }
51540     }
51541 
51542     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51543       try {
51544         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51545       } catch (org.apache.thrift.TException te) {
51546         throw new java.io.IOException(te);
51547       }
51548     }
51549 
51550     private static class scannerGetList_resultStandardSchemeFactory implements SchemeFactory {
51551       public scannerGetList_resultStandardScheme getScheme() {
51552         return new scannerGetList_resultStandardScheme();
51553       }
51554     }
51555 
51556     private static class scannerGetList_resultStandardScheme extends StandardScheme<scannerGetList_result> {
51557 
51558       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_result struct) throws org.apache.thrift.TException {
51559         org.apache.thrift.protocol.TField schemeField;
51560         iprot.readStructBegin();
51561         while (true)
51562         {
51563           schemeField = iprot.readFieldBegin();
51564           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
51565             break;
51566           }
51567           switch (schemeField.id) {
51568             case 0: // SUCCESS
51569               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
51570                 {
51571                   org.apache.thrift.protocol.TList _list574 = iprot.readListBegin();
51572                   struct.success = new ArrayList<TRowResult>(_list574.size);
51573                   for (int _i575 = 0; _i575 < _list574.size; ++_i575)
51574                   {
51575                     TRowResult _elem576; // required
51576                     _elem576 = new TRowResult();
51577                     _elem576.read(iprot);
51578                     struct.success.add(_elem576);
51579                   }
51580                   iprot.readListEnd();
51581                 }
51582                 struct.setSuccessIsSet(true);
51583               } else { 
51584                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51585               }
51586               break;
51587             case 1: // IO
51588               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
51589                 struct.io = new IOError();
51590                 struct.io.read(iprot);
51591                 struct.setIoIsSet(true);
51592               } else { 
51593                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51594               }
51595               break;
51596             case 2: // IA
51597               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
51598                 struct.ia = new IllegalArgument();
51599                 struct.ia.read(iprot);
51600                 struct.setIaIsSet(true);
51601               } else { 
51602                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51603               }
51604               break;
51605             default:
51606               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51607           }
51608           iprot.readFieldEnd();
51609         }
51610         iprot.readStructEnd();
51611 
51612         // check for required fields of primitive type, which can't be checked in the validate method
51613         struct.validate();
51614       }
51615 
51616       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_result struct) throws org.apache.thrift.TException {
51617         struct.validate();
51618 
51619         oprot.writeStructBegin(STRUCT_DESC);
51620         if (struct.success != null) {
51621           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51622           {
51623             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
51624             for (TRowResult _iter577 : struct.success)
51625             {
51626               _iter577.write(oprot);
51627             }
51628             oprot.writeListEnd();
51629           }
51630           oprot.writeFieldEnd();
51631         }
51632         if (struct.io != null) {
51633           oprot.writeFieldBegin(IO_FIELD_DESC);
51634           struct.io.write(oprot);
51635           oprot.writeFieldEnd();
51636         }
51637         if (struct.ia != null) {
51638           oprot.writeFieldBegin(IA_FIELD_DESC);
51639           struct.ia.write(oprot);
51640           oprot.writeFieldEnd();
51641         }
51642         oprot.writeFieldStop();
51643         oprot.writeStructEnd();
51644       }
51645 
51646     }
51647 
51648     private static class scannerGetList_resultTupleSchemeFactory implements SchemeFactory {
51649       public scannerGetList_resultTupleScheme getScheme() {
51650         return new scannerGetList_resultTupleScheme();
51651       }
51652     }
51653 
51654     private static class scannerGetList_resultTupleScheme extends TupleScheme<scannerGetList_result> {
51655 
51656       @Override
51657       public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException {
51658         TTupleProtocol oprot = (TTupleProtocol) prot;
51659         BitSet optionals = new BitSet();
51660         if (struct.isSetSuccess()) {
51661           optionals.set(0);
51662         }
51663         if (struct.isSetIo()) {
51664           optionals.set(1);
51665         }
51666         if (struct.isSetIa()) {
51667           optionals.set(2);
51668         }
51669         oprot.writeBitSet(optionals, 3);
51670         if (struct.isSetSuccess()) {
51671           {
51672             oprot.writeI32(struct.success.size());
51673             for (TRowResult _iter578 : struct.success)
51674             {
51675               _iter578.write(oprot);
51676             }
51677           }
51678         }
51679         if (struct.isSetIo()) {
51680           struct.io.write(oprot);
51681         }
51682         if (struct.isSetIa()) {
51683           struct.ia.write(oprot);
51684         }
51685       }
51686 
51687       @Override
51688       public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException {
51689         TTupleProtocol iprot = (TTupleProtocol) prot;
51690         BitSet incoming = iprot.readBitSet(3);
51691         if (incoming.get(0)) {
51692           {
51693             org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
51694             struct.success = new ArrayList<TRowResult>(_list579.size);
51695             for (int _i580 = 0; _i580 < _list579.size; ++_i580)
51696             {
51697               TRowResult _elem581; // required
51698               _elem581 = new TRowResult();
51699               _elem581.read(iprot);
51700               struct.success.add(_elem581);
51701             }
51702           }
51703           struct.setSuccessIsSet(true);
51704         }
51705         if (incoming.get(1)) {
51706           struct.io = new IOError();
51707           struct.io.read(iprot);
51708           struct.setIoIsSet(true);
51709         }
51710         if (incoming.get(2)) {
51711           struct.ia = new IllegalArgument();
51712           struct.ia.read(iprot);
51713           struct.setIaIsSet(true);
51714         }
51715       }
51716     }
51717 
51718   }
51719 
51720   public static class scannerClose_args implements org.apache.thrift.TBase<scannerClose_args, scannerClose_args._Fields>, java.io.Serializable, Cloneable   {
51721     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_args");
51722 
51723     private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
51724 
51725     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
51726     static {
51727       schemes.put(StandardScheme.class, new scannerClose_argsStandardSchemeFactory());
51728       schemes.put(TupleScheme.class, new scannerClose_argsTupleSchemeFactory());
51729     }
51730 
51731     /**
51732      * id of a scanner returned by scannerOpen
51733      */
51734     public int id; // required
51735 
51736     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51737     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51738       /**
51739        * id of a scanner returned by scannerOpen
51740        */
51741       ID((short)1, "id");
51742 
51743       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51744 
51745       static {
51746         for (_Fields field : EnumSet.allOf(_Fields.class)) {
51747           byName.put(field.getFieldName(), field);
51748         }
51749       }
51750 
51751       /**
51752        * Find the _Fields constant that matches fieldId, or null if its not found.
51753        */
51754       public static _Fields findByThriftId(int fieldId) {
51755         switch(fieldId) {
51756           case 1: // ID
51757             return ID;
51758           default:
51759             return null;
51760         }
51761       }
51762 
51763       /**
51764        * Find the _Fields constant that matches fieldId, throwing an exception
51765        * if it is not found.
51766        */
51767       public static _Fields findByThriftIdOrThrow(int fieldId) {
51768         _Fields fields = findByThriftId(fieldId);
51769         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51770         return fields;
51771       }
51772 
51773       /**
51774        * Find the _Fields constant that matches name, or null if its not found.
51775        */
51776       public static _Fields findByName(String name) {
51777         return byName.get(name);
51778       }
51779 
51780       private final short _thriftId;
51781       private final String _fieldName;
51782 
51783       _Fields(short thriftId, String fieldName) {
51784         _thriftId = thriftId;
51785         _fieldName = fieldName;
51786       }
51787 
51788       public short getThriftFieldId() {
51789         return _thriftId;
51790       }
51791 
51792       public String getFieldName() {
51793         return _fieldName;
51794       }
51795     }
51796 
51797     // isset id assignments
51798     private static final int __ID_ISSET_ID = 0;
51799     private byte __isset_bitfield = 0;
51800     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51801     static {
51802       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51803       tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51804           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32          , "ScannerID")));
51805       metaDataMap = Collections.unmodifiableMap(tmpMap);
51806       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_args.class, metaDataMap);
51807     }
51808 
51809     public scannerClose_args() {
51810     }
51811 
51812     public scannerClose_args(
51813       int id)
51814     {
51815       this();
51816       this.id = id;
51817       setIdIsSet(true);
51818     }
51819 
51820     /**
51821      * Performs a deep copy on <i>other</i>.
51822      */
51823     public scannerClose_args(scannerClose_args other) {
51824       __isset_bitfield = other.__isset_bitfield;
51825       this.id = other.id;
51826     }
51827 
51828     public scannerClose_args deepCopy() {
51829       return new scannerClose_args(this);
51830     }
51831 
51832     @Override
51833     public void clear() {
51834       setIdIsSet(false);
51835       this.id = 0;
51836     }
51837 
51838     /**
51839      * id of a scanner returned by scannerOpen
51840      */
51841     public int getId() {
51842       return this.id;
51843     }
51844 
51845     /**
51846      * id of a scanner returned by scannerOpen
51847      */
51848     public scannerClose_args setId(int id) {
51849       this.id = id;
51850       setIdIsSet(true);
51851       return this;
51852     }
51853 
51854     public void unsetId() {
51855       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
51856     }
51857 
51858     /** Returns true if field id is set (has been assigned a value) and false otherwise */
51859     public boolean isSetId() {
51860       return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
51861     }
51862 
51863     public void setIdIsSet(boolean value) {
51864       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
51865     }
51866 
51867     public void setFieldValue(_Fields field, Object value) {
51868       switch (field) {
51869       case ID:
51870         if (value == null) {
51871           unsetId();
51872         } else {
51873           setId((Integer)value);
51874         }
51875         break;
51876 
51877       }
51878     }
51879 
51880     public Object getFieldValue(_Fields field) {
51881       switch (field) {
51882       case ID:
51883         return Integer.valueOf(getId());
51884 
51885       }
51886       throw new IllegalStateException();
51887     }
51888 
51889     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51890     public boolean isSet(_Fields field) {
51891       if (field == null) {
51892         throw new IllegalArgumentException();
51893       }
51894 
51895       switch (field) {
51896       case ID:
51897         return isSetId();
51898       }
51899       throw new IllegalStateException();
51900     }
51901 
51902     @Override
51903     public boolean equals(Object that) {
51904       if (that == null)
51905         return false;
51906       if (that instanceof scannerClose_args)
51907         return this.equals((scannerClose_args)that);
51908       return false;
51909     }
51910 
51911     public boolean equals(scannerClose_args that) {
51912       if (that == null)
51913         return false;
51914 
51915       boolean this_present_id = true;
51916       boolean that_present_id = true;
51917       if (this_present_id || that_present_id) {
51918         if (!(this_present_id && that_present_id))
51919           return false;
51920         if (this.id != that.id)
51921           return false;
51922       }
51923 
51924       return true;
51925     }
51926 
51927     @Override
51928     public int hashCode() {
51929       HashCodeBuilder builder = new HashCodeBuilder();
51930 
51931       boolean present_id = true;
51932       builder.append(present_id);
51933       if (present_id)
51934         builder.append(id);
51935 
51936       return builder.toHashCode();
51937     }
51938 
51939     public int compareTo(scannerClose_args other) {
51940       if (!getClass().equals(other.getClass())) {
51941         return getClass().getName().compareTo(other.getClass().getName());
51942       }
51943 
51944       int lastComparison = 0;
51945       scannerClose_args typedOther = (scannerClose_args)other;
51946 
51947       lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
51948       if (lastComparison != 0) {
51949         return lastComparison;
51950       }
51951       if (isSetId()) {
51952         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
51953         if (lastComparison != 0) {
51954           return lastComparison;
51955         }
51956       }
51957       return 0;
51958     }
51959 
51960     public _Fields fieldForId(int fieldId) {
51961       return _Fields.findByThriftId(fieldId);
51962     }
51963 
51964     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51965       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
51966     }
51967 
51968     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51969       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
51970     }
51971 
51972     @Override
51973     public String toString() {
51974       StringBuilder sb = new StringBuilder("scannerClose_args(");
51975       boolean first = true;
51976 
51977       sb.append("id:");
51978       sb.append(this.id);
51979       first = false;
51980       sb.append(")");
51981       return sb.toString();
51982     }
51983 
51984     public void validate() throws org.apache.thrift.TException {
51985       // check for required fields
51986       // check for sub-struct validity
51987     }
51988 
51989     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51990       try {
51991         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51992       } catch (org.apache.thrift.TException te) {
51993         throw new java.io.IOException(te);
51994       }
51995     }
51996 
51997     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51998       try {
51999         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52000         __isset_bitfield = 0;
52001         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52002       } catch (org.apache.thrift.TException te) {
52003         throw new java.io.IOException(te);
52004       }
52005     }
52006 
52007     private static class scannerClose_argsStandardSchemeFactory implements SchemeFactory {
52008       public scannerClose_argsStandardScheme getScheme() {
52009         return new scannerClose_argsStandardScheme();
52010       }
52011     }
52012 
52013     private static class scannerClose_argsStandardScheme extends StandardScheme<scannerClose_args> {
52014 
52015       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_args struct) throws org.apache.thrift.TException {
52016         org.apache.thrift.protocol.TField schemeField;
52017         iprot.readStructBegin();
52018         while (true)
52019         {
52020           schemeField = iprot.readFieldBegin();
52021           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
52022             break;
52023           }
52024           switch (schemeField.id) {
52025             case 1: // ID
52026               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
52027                 struct.id = iprot.readI32();
52028                 struct.setIdIsSet(true);
52029               } else { 
52030                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52031               }
52032               break;
52033             default:
52034               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52035           }
52036           iprot.readFieldEnd();
52037         }
52038         iprot.readStructEnd();
52039 
52040         // check for required fields of primitive type, which can't be checked in the validate method
52041         struct.validate();
52042       }
52043 
52044       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_args struct) throws org.apache.thrift.TException {
52045         struct.validate();
52046 
52047         oprot.writeStructBegin(STRUCT_DESC);
52048         oprot.writeFieldBegin(ID_FIELD_DESC);
52049         oprot.writeI32(struct.id);
52050         oprot.writeFieldEnd();
52051         oprot.writeFieldStop();
52052         oprot.writeStructEnd();
52053       }
52054 
52055     }
52056 
52057     private static class scannerClose_argsTupleSchemeFactory implements SchemeFactory {
52058       public scannerClose_argsTupleScheme getScheme() {
52059         return new scannerClose_argsTupleScheme();
52060       }
52061     }
52062 
52063     private static class scannerClose_argsTupleScheme extends TupleScheme<scannerClose_args> {
52064 
52065       @Override
52066       public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException {
52067         TTupleProtocol oprot = (TTupleProtocol) prot;
52068         BitSet optionals = new BitSet();
52069         if (struct.isSetId()) {
52070           optionals.set(0);
52071         }
52072         oprot.writeBitSet(optionals, 1);
52073         if (struct.isSetId()) {
52074           oprot.writeI32(struct.id);
52075         }
52076       }
52077 
52078       @Override
52079       public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException {
52080         TTupleProtocol iprot = (TTupleProtocol) prot;
52081         BitSet incoming = iprot.readBitSet(1);
52082         if (incoming.get(0)) {
52083           struct.id = iprot.readI32();
52084           struct.setIdIsSet(true);
52085         }
52086       }
52087     }
52088 
52089   }
52090 
52091   public static class scannerClose_result implements org.apache.thrift.TBase<scannerClose_result, scannerClose_result._Fields>, java.io.Serializable, Cloneable   {
52092     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_result");
52093 
52094     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
52095     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
52096 
52097     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
52098     static {
52099       schemes.put(StandardScheme.class, new scannerClose_resultStandardSchemeFactory());
52100       schemes.put(TupleScheme.class, new scannerClose_resultTupleSchemeFactory());
52101     }
52102 
52103     public IOError io; // required
52104     public IllegalArgument ia; // required
52105 
52106     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52107     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52108       IO((short)1, "io"),
52109       IA((short)2, "ia");
52110 
52111       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52112 
52113       static {
52114         for (_Fields field : EnumSet.allOf(_Fields.class)) {
52115           byName.put(field.getFieldName(), field);
52116         }
52117       }
52118 
52119       /**
52120        * Find the _Fields constant that matches fieldId, or null if its not found.
52121        */
52122       public static _Fields findByThriftId(int fieldId) {
52123         switch(fieldId) {
52124           case 1: // IO
52125             return IO;
52126           case 2: // IA
52127             return IA;
52128           default:
52129             return null;
52130         }
52131       }
52132 
52133       /**
52134        * Find the _Fields constant that matches fieldId, throwing an exception
52135        * if it is not found.
52136        */
52137       public static _Fields findByThriftIdOrThrow(int fieldId) {
52138         _Fields fields = findByThriftId(fieldId);
52139         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52140         return fields;
52141       }
52142 
52143       /**
52144        * Find the _Fields constant that matches name, or null if its not found.
52145        */
52146       public static _Fields findByName(String name) {
52147         return byName.get(name);
52148       }
52149 
52150       private final short _thriftId;
52151       private final String _fieldName;
52152 
52153       _Fields(short thriftId, String fieldName) {
52154         _thriftId = thriftId;
52155         _fieldName = fieldName;
52156       }
52157 
52158       public short getThriftFieldId() {
52159         return _thriftId;
52160       }
52161 
52162       public String getFieldName() {
52163         return _fieldName;
52164       }
52165     }
52166 
52167     // isset id assignments
52168     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52169     static {
52170       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52171       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52172           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52173       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52174           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52175       metaDataMap = Collections.unmodifiableMap(tmpMap);
52176       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_result.class, metaDataMap);
52177     }
52178 
52179     public scannerClose_result() {
52180     }
52181 
52182     public scannerClose_result(
52183       IOError io,
52184       IllegalArgument ia)
52185     {
52186       this();
52187       this.io = io;
52188       this.ia = ia;
52189     }
52190 
52191     /**
52192      * Performs a deep copy on <i>other</i>.
52193      */
52194     public scannerClose_result(scannerClose_result other) {
52195       if (other.isSetIo()) {
52196         this.io = new IOError(other.io);
52197       }
52198       if (other.isSetIa()) {
52199         this.ia = new IllegalArgument(other.ia);
52200       }
52201     }
52202 
52203     public scannerClose_result deepCopy() {
52204       return new scannerClose_result(this);
52205     }
52206 
52207     @Override
52208     public void clear() {
52209       this.io = null;
52210       this.ia = null;
52211     }
52212 
52213     public IOError getIo() {
52214       return this.io;
52215     }
52216 
52217     public scannerClose_result setIo(IOError io) {
52218       this.io = io;
52219       return this;
52220     }
52221 
52222     public void unsetIo() {
52223       this.io = null;
52224     }
52225 
52226     /** Returns true if field io is set (has been assigned a value) and false otherwise */
52227     public boolean isSetIo() {
52228       return this.io != null;
52229     }
52230 
52231     public void setIoIsSet(boolean value) {
52232       if (!value) {
52233         this.io = null;
52234       }
52235     }
52236 
52237     public IllegalArgument getIa() {
52238       return this.ia;
52239     }
52240 
52241     public scannerClose_result setIa(IllegalArgument ia) {
52242       this.ia = ia;
52243       return this;
52244     }
52245 
52246     public void unsetIa() {
52247       this.ia = null;
52248     }
52249 
52250     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
52251     public boolean isSetIa() {
52252       return this.ia != null;
52253     }
52254 
52255     public void setIaIsSet(boolean value) {
52256       if (!value) {
52257         this.ia = null;
52258       }
52259     }
52260 
52261     public void setFieldValue(_Fields field, Object value) {
52262       switch (field) {
52263       case IO:
52264         if (value == null) {
52265           unsetIo();
52266         } else {
52267           setIo((IOError)value);
52268         }
52269         break;
52270 
52271       case IA:
52272         if (value == null) {
52273           unsetIa();
52274         } else {
52275           setIa((IllegalArgument)value);
52276         }
52277         break;
52278 
52279       }
52280     }
52281 
52282     public Object getFieldValue(_Fields field) {
52283       switch (field) {
52284       case IO:
52285         return getIo();
52286 
52287       case IA:
52288         return getIa();
52289 
52290       }
52291       throw new IllegalStateException();
52292     }
52293 
52294     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52295     public boolean isSet(_Fields field) {
52296       if (field == null) {
52297         throw new IllegalArgumentException();
52298       }
52299 
52300       switch (field) {
52301       case IO:
52302         return isSetIo();
52303       case IA:
52304         return isSetIa();
52305       }
52306       throw new IllegalStateException();
52307     }
52308 
52309     @Override
52310     public boolean equals(Object that) {
52311       if (that == null)
52312         return false;
52313       if (that instanceof scannerClose_result)
52314         return this.equals((scannerClose_result)that);
52315       return false;
52316     }
52317 
52318     public boolean equals(scannerClose_result that) {
52319       if (that == null)
52320         return false;
52321 
52322       boolean this_present_io = true && this.isSetIo();
52323       boolean that_present_io = true && that.isSetIo();
52324       if (this_present_io || that_present_io) {
52325         if (!(this_present_io && that_present_io))
52326           return false;
52327         if (!this.io.equals(that.io))
52328           return false;
52329       }
52330 
52331       boolean this_present_ia = true && this.isSetIa();
52332       boolean that_present_ia = true && that.isSetIa();
52333       if (this_present_ia || that_present_ia) {
52334         if (!(this_present_ia && that_present_ia))
52335           return false;
52336         if (!this.ia.equals(that.ia))
52337           return false;
52338       }
52339 
52340       return true;
52341     }
52342 
52343     @Override
52344     public int hashCode() {
52345       HashCodeBuilder builder = new HashCodeBuilder();
52346 
52347       boolean present_io = true && (isSetIo());
52348       builder.append(present_io);
52349       if (present_io)
52350         builder.append(io);
52351 
52352       boolean present_ia = true && (isSetIa());
52353       builder.append(present_ia);
52354       if (present_ia)
52355         builder.append(ia);
52356 
52357       return builder.toHashCode();
52358     }
52359 
52360     public int compareTo(scannerClose_result other) {
52361       if (!getClass().equals(other.getClass())) {
52362         return getClass().getName().compareTo(other.getClass().getName());
52363       }
52364 
52365       int lastComparison = 0;
52366       scannerClose_result typedOther = (scannerClose_result)other;
52367 
52368       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
52369       if (lastComparison != 0) {
52370         return lastComparison;
52371       }
52372       if (isSetIo()) {
52373         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
52374         if (lastComparison != 0) {
52375           return lastComparison;
52376         }
52377       }
52378       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
52379       if (lastComparison != 0) {
52380         return lastComparison;
52381       }
52382       if (isSetIa()) {
52383         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
52384         if (lastComparison != 0) {
52385           return lastComparison;
52386         }
52387       }
52388       return 0;
52389     }
52390 
52391     public _Fields fieldForId(int fieldId) {
52392       return _Fields.findByThriftId(fieldId);
52393     }
52394 
52395     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52396       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
52397     }
52398 
52399     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52400       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
52401       }
52402 
52403     @Override
52404     public String toString() {
52405       StringBuilder sb = new StringBuilder("scannerClose_result(");
52406       boolean first = true;
52407 
52408       sb.append("io:");
52409       if (this.io == null) {
52410         sb.append("null");
52411       } else {
52412         sb.append(this.io);
52413       }
52414       first = false;
52415       if (!first) sb.append(", ");
52416       sb.append("ia:");
52417       if (this.ia == null) {
52418         sb.append("null");
52419       } else {
52420         sb.append(this.ia);
52421       }
52422       first = false;
52423       sb.append(")");
52424       return sb.toString();
52425     }
52426 
52427     public void validate() throws org.apache.thrift.TException {
52428       // check for required fields
52429       // check for sub-struct validity
52430     }
52431 
52432     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52433       try {
52434         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52435       } catch (org.apache.thrift.TException te) {
52436         throw new java.io.IOException(te);
52437       }
52438     }
52439 
52440     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52441       try {
52442         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52443       } catch (org.apache.thrift.TException te) {
52444         throw new java.io.IOException(te);
52445       }
52446     }
52447 
52448     private static class scannerClose_resultStandardSchemeFactory implements SchemeFactory {
52449       public scannerClose_resultStandardScheme getScheme() {
52450         return new scannerClose_resultStandardScheme();
52451       }
52452     }
52453 
52454     private static class scannerClose_resultStandardScheme extends StandardScheme<scannerClose_result> {
52455 
52456       public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_result struct) throws org.apache.thrift.TException {
52457         org.apache.thrift.protocol.TField schemeField;
52458         iprot.readStructBegin();
52459         while (true)
52460         {
52461           schemeField = iprot.readFieldBegin();
52462           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
52463             break;
52464           }
52465           switch (schemeField.id) {
52466             case 1: // IO
52467               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
52468                 struct.io = new IOError();
52469                 struct.io.read(iprot);
52470                 struct.setIoIsSet(true);
52471               } else { 
52472                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52473               }
52474               break;
52475             case 2: // IA
52476               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
52477                 struct.ia = new IllegalArgument();
52478                 struct.ia.read(iprot);
52479                 struct.setIaIsSet(true);
52480               } else { 
52481                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52482               }
52483               break;
52484             default:
52485               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52486           }
52487           iprot.readFieldEnd();
52488         }
52489         iprot.readStructEnd();
52490 
52491         // check for required fields of primitive type, which can't be checked in the validate method
52492         struct.validate();
52493       }
52494 
52495       public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_result struct) throws org.apache.thrift.TException {
52496         struct.validate();
52497 
52498         oprot.writeStructBegin(STRUCT_DESC);
52499         if (struct.io != null) {
52500           oprot.writeFieldBegin(IO_FIELD_DESC);
52501           struct.io.write(oprot);
52502           oprot.writeFieldEnd();
52503         }
52504         if (struct.ia != null) {
52505           oprot.writeFieldBegin(IA_FIELD_DESC);
52506           struct.ia.write(oprot);
52507           oprot.writeFieldEnd();
52508         }
52509         oprot.writeFieldStop();
52510         oprot.writeStructEnd();
52511       }
52512 
52513     }
52514 
52515     private static class scannerClose_resultTupleSchemeFactory implements SchemeFactory {
52516       public scannerClose_resultTupleScheme getScheme() {
52517         return new scannerClose_resultTupleScheme();
52518       }
52519     }
52520 
52521     private static class scannerClose_resultTupleScheme extends TupleScheme<scannerClose_result> {
52522 
52523       @Override
52524       public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException {
52525         TTupleProtocol oprot = (TTupleProtocol) prot;
52526         BitSet optionals = new BitSet();
52527         if (struct.isSetIo()) {
52528           optionals.set(0);
52529         }
52530         if (struct.isSetIa()) {
52531           optionals.set(1);
52532         }
52533         oprot.writeBitSet(optionals, 2);
52534         if (struct.isSetIo()) {
52535           struct.io.write(oprot);
52536         }
52537         if (struct.isSetIa()) {
52538           struct.ia.write(oprot);
52539         }
52540       }
52541 
52542       @Override
52543       public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException {
52544         TTupleProtocol iprot = (TTupleProtocol) prot;
52545         BitSet incoming = iprot.readBitSet(2);
52546         if (incoming.get(0)) {
52547           struct.io = new IOError();
52548           struct.io.read(iprot);
52549           struct.setIoIsSet(true);
52550         }
52551         if (incoming.get(1)) {
52552           struct.ia = new IllegalArgument();
52553           struct.ia.read(iprot);
52554           struct.setIaIsSet(true);
52555         }
52556       }
52557     }
52558 
52559   }
52560 
52561   public static class getRegionInfo_args implements org.apache.thrift.TBase<getRegionInfo_args, getRegionInfo_args._Fields>, java.io.Serializable, Cloneable   {
52562     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_args");
52563 
52564     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
52565 
52566     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
52567     static {
52568       schemes.put(StandardScheme.class, new getRegionInfo_argsStandardSchemeFactory());
52569       schemes.put(TupleScheme.class, new getRegionInfo_argsTupleSchemeFactory());
52570     }
52571 
52572     /**
52573      * row key
52574      */
52575     public ByteBuffer row; // required
52576 
52577     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52578     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52579       /**
52580        * row key
52581        */
52582       ROW((short)1, "row");
52583 
52584       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52585 
52586       static {
52587         for (_Fields field : EnumSet.allOf(_Fields.class)) {
52588           byName.put(field.getFieldName(), field);
52589         }
52590       }
52591 
52592       /**
52593        * Find the _Fields constant that matches fieldId, or null if its not found.
52594        */
52595       public static _Fields findByThriftId(int fieldId) {
52596         switch(fieldId) {
52597           case 1: // ROW
52598             return ROW;
52599           default:
52600             return null;
52601         }
52602       }
52603 
52604       /**
52605        * Find the _Fields constant that matches fieldId, throwing an exception
52606        * if it is not found.
52607        */
52608       public static _Fields findByThriftIdOrThrow(int fieldId) {
52609         _Fields fields = findByThriftId(fieldId);
52610         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52611         return fields;
52612       }
52613 
52614       /**
52615        * Find the _Fields constant that matches name, or null if its not found.
52616        */
52617       public static _Fields findByName(String name) {
52618         return byName.get(name);
52619       }
52620 
52621       private final short _thriftId;
52622       private final String _fieldName;
52623 
52624       _Fields(short thriftId, String fieldName) {
52625         _thriftId = thriftId;
52626         _fieldName = fieldName;
52627       }
52628 
52629       public short getThriftFieldId() {
52630         return _thriftId;
52631       }
52632 
52633       public String getFieldName() {
52634         return _fieldName;
52635       }
52636     }
52637 
52638     // isset id assignments
52639     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52640     static {
52641       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52642       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52643           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
52644       metaDataMap = Collections.unmodifiableMap(tmpMap);
52645       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_args.class, metaDataMap);
52646     }
52647 
52648     public getRegionInfo_args() {
52649     }
52650 
52651     public getRegionInfo_args(
52652       ByteBuffer row)
52653     {
52654       this();
52655       this.row = row;
52656     }
52657 
52658     /**
52659      * Performs a deep copy on <i>other</i>.
52660      */
52661     public getRegionInfo_args(getRegionInfo_args other) {
52662       if (other.isSetRow()) {
52663         this.row = other.row;
52664       }
52665     }
52666 
52667     public getRegionInfo_args deepCopy() {
52668       return new getRegionInfo_args(this);
52669     }
52670 
52671     @Override
52672     public void clear() {
52673       this.row = null;
52674     }
52675 
52676     /**
52677      * row key
52678      */
52679     public byte[] getRow() {
52680       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
52681       return row == null ? null : row.array();
52682     }
52683 
52684     public ByteBuffer bufferForRow() {
52685       return row;
52686     }
52687 
52688     /**
52689      * row key
52690      */
52691     public getRegionInfo_args setRow(byte[] row) {
52692       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
52693       return this;
52694     }
52695 
52696     public getRegionInfo_args setRow(ByteBuffer row) {
52697       this.row = row;
52698       return this;
52699     }
52700 
52701     public void unsetRow() {
52702       this.row = null;
52703     }
52704 
52705     /** Returns true if field row is set (has been assigned a value) and false otherwise */
52706     public boolean isSetRow() {
52707       return this.row != null;
52708     }
52709 
52710     public void setRowIsSet(boolean value) {
52711       if (!value) {
52712         this.row = null;
52713       }
52714     }
52715 
52716     public void setFieldValue(_Fields field, Object value) {
52717       switch (field) {
52718       case ROW:
52719         if (value == null) {
52720           unsetRow();
52721         } else {
52722           setRow((ByteBuffer)value);
52723         }
52724         break;
52725 
52726       }
52727     }
52728 
52729     public Object getFieldValue(_Fields field) {
52730       switch (field) {
52731       case ROW:
52732         return getRow();
52733 
52734       }
52735       throw new IllegalStateException();
52736     }
52737 
52738     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52739     public boolean isSet(_Fields field) {
52740       if (field == null) {
52741         throw new IllegalArgumentException();
52742       }
52743 
52744       switch (field) {
52745       case ROW:
52746         return isSetRow();
52747       }
52748       throw new IllegalStateException();
52749     }
52750 
52751     @Override
52752     public boolean equals(Object that) {
52753       if (that == null)
52754         return false;
52755       if (that instanceof getRegionInfo_args)
52756         return this.equals((getRegionInfo_args)that);
52757       return false;
52758     }
52759 
52760     public boolean equals(getRegionInfo_args that) {
52761       if (that == null)
52762         return false;
52763 
52764       boolean this_present_row = true && this.isSetRow();
52765       boolean that_present_row = true && that.isSetRow();
52766       if (this_present_row || that_present_row) {
52767         if (!(this_present_row && that_present_row))
52768           return false;
52769         if (!this.row.equals(that.row))
52770           return false;
52771       }
52772 
52773       return true;
52774     }
52775 
52776     @Override
52777     public int hashCode() {
52778       HashCodeBuilder builder = new HashCodeBuilder();
52779 
52780       boolean present_row = true && (isSetRow());
52781       builder.append(present_row);
52782       if (present_row)
52783         builder.append(row);
52784 
52785       return builder.toHashCode();
52786     }
52787 
52788     public int compareTo(getRegionInfo_args other) {
52789       if (!getClass().equals(other.getClass())) {
52790         return getClass().getName().compareTo(other.getClass().getName());
52791       }
52792 
52793       int lastComparison = 0;
52794       getRegionInfo_args typedOther = (getRegionInfo_args)other;
52795 
52796       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
52797       if (lastComparison != 0) {
52798         return lastComparison;
52799       }
52800       if (isSetRow()) {
52801         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
52802         if (lastComparison != 0) {
52803           return lastComparison;
52804         }
52805       }
52806       return 0;
52807     }
52808 
52809     public _Fields fieldForId(int fieldId) {
52810       return _Fields.findByThriftId(fieldId);
52811     }
52812 
52813     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52814       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
52815     }
52816 
52817     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52818       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
52819     }
52820 
52821     @Override
52822     public String toString() {
52823       StringBuilder sb = new StringBuilder("getRegionInfo_args(");
52824       boolean first = true;
52825 
52826       sb.append("row:");
52827       if (this.row == null) {
52828         sb.append("null");
52829       } else {
52830         sb.append(this.row);
52831       }
52832       first = false;
52833       sb.append(")");
52834       return sb.toString();
52835     }
52836 
52837     public void validate() throws org.apache.thrift.TException {
52838       // check for required fields
52839       // check for sub-struct validity
52840     }
52841 
52842     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52843       try {
52844         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52845       } catch (org.apache.thrift.TException te) {
52846         throw new java.io.IOException(te);
52847       }
52848     }
52849 
52850     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52851       try {
52852         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52853       } catch (org.apache.thrift.TException te) {
52854         throw new java.io.IOException(te);
52855       }
52856     }
52857 
52858     private static class getRegionInfo_argsStandardSchemeFactory implements SchemeFactory {
52859       public getRegionInfo_argsStandardScheme getScheme() {
52860         return new getRegionInfo_argsStandardScheme();
52861       }
52862     }
52863 
52864     private static class getRegionInfo_argsStandardScheme extends StandardScheme<getRegionInfo_args> {
52865 
52866       public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_args struct) throws org.apache.thrift.TException {
52867         org.apache.thrift.protocol.TField schemeField;
52868         iprot.readStructBegin();
52869         while (true)
52870         {
52871           schemeField = iprot.readFieldBegin();
52872           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
52873             break;
52874           }
52875           switch (schemeField.id) {
52876             case 1: // ROW
52877               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
52878                 struct.row = iprot.readBinary();
52879                 struct.setRowIsSet(true);
52880               } else { 
52881                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52882               }
52883               break;
52884             default:
52885               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52886           }
52887           iprot.readFieldEnd();
52888         }
52889         iprot.readStructEnd();
52890 
52891         // check for required fields of primitive type, which can't be checked in the validate method
52892         struct.validate();
52893       }
52894 
52895       public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_args struct) throws org.apache.thrift.TException {
52896         struct.validate();
52897 
52898         oprot.writeStructBegin(STRUCT_DESC);
52899         if (struct.row != null) {
52900           oprot.writeFieldBegin(ROW_FIELD_DESC);
52901           oprot.writeBinary(struct.row);
52902           oprot.writeFieldEnd();
52903         }
52904         oprot.writeFieldStop();
52905         oprot.writeStructEnd();
52906       }
52907 
52908     }
52909 
52910     private static class getRegionInfo_argsTupleSchemeFactory implements SchemeFactory {
52911       public getRegionInfo_argsTupleScheme getScheme() {
52912         return new getRegionInfo_argsTupleScheme();
52913       }
52914     }
52915 
52916     private static class getRegionInfo_argsTupleScheme extends TupleScheme<getRegionInfo_args> {
52917 
52918       @Override
52919       public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException {
52920         TTupleProtocol oprot = (TTupleProtocol) prot;
52921         BitSet optionals = new BitSet();
52922         if (struct.isSetRow()) {
52923           optionals.set(0);
52924         }
52925         oprot.writeBitSet(optionals, 1);
52926         if (struct.isSetRow()) {
52927           oprot.writeBinary(struct.row);
52928         }
52929       }
52930 
52931       @Override
52932       public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException {
52933         TTupleProtocol iprot = (TTupleProtocol) prot;
52934         BitSet incoming = iprot.readBitSet(1);
52935         if (incoming.get(0)) {
52936           struct.row = iprot.readBinary();
52937           struct.setRowIsSet(true);
52938         }
52939       }
52940     }
52941 
52942   }
52943 
52944   public static class getRegionInfo_result implements org.apache.thrift.TBase<getRegionInfo_result, getRegionInfo_result._Fields>, java.io.Serializable, Cloneable   {
52945     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_result");
52946 
52947     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
52948     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
52949 
52950     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
52951     static {
52952       schemes.put(StandardScheme.class, new getRegionInfo_resultStandardSchemeFactory());
52953       schemes.put(TupleScheme.class, new getRegionInfo_resultTupleSchemeFactory());
52954     }
52955 
52956     public TRegionInfo success; // required
52957     public IOError io; // required
52958 
52959     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52960     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52961       SUCCESS((short)0, "success"),
52962       IO((short)1, "io");
52963 
52964       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52965 
52966       static {
52967         for (_Fields field : EnumSet.allOf(_Fields.class)) {
52968           byName.put(field.getFieldName(), field);
52969         }
52970       }
52971 
52972       /**
52973        * Find the _Fields constant that matches fieldId, or null if its not found.
52974        */
52975       public static _Fields findByThriftId(int fieldId) {
52976         switch(fieldId) {
52977           case 0: // SUCCESS
52978             return SUCCESS;
52979           case 1: // IO
52980             return IO;
52981           default:
52982             return null;
52983         }
52984       }
52985 
52986       /**
52987        * Find the _Fields constant that matches fieldId, throwing an exception
52988        * if it is not found.
52989        */
52990       public static _Fields findByThriftIdOrThrow(int fieldId) {
52991         _Fields fields = findByThriftId(fieldId);
52992         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52993         return fields;
52994       }
52995 
52996       /**
52997        * Find the _Fields constant that matches name, or null if its not found.
52998        */
52999       public static _Fields findByName(String name) {
53000         return byName.get(name);
53001       }
53002 
53003       private final short _thriftId;
53004       private final String _fieldName;
53005 
53006       _Fields(short thriftId, String fieldName) {
53007         _thriftId = thriftId;
53008         _fieldName = fieldName;
53009       }
53010 
53011       public short getThriftFieldId() {
53012         return _thriftId;
53013       }
53014 
53015       public String getFieldName() {
53016         return _fieldName;
53017       }
53018     }
53019 
53020     // isset id assignments
53021     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53022     static {
53023       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53024       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53025           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class)));
53026       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53027           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53028       metaDataMap = Collections.unmodifiableMap(tmpMap);
53029       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_result.class, metaDataMap);
53030     }
53031 
53032     public getRegionInfo_result() {
53033     }
53034 
53035     public getRegionInfo_result(
53036       TRegionInfo success,
53037       IOError io)
53038     {
53039       this();
53040       this.success = success;
53041       this.io = io;
53042     }
53043 
53044     /**
53045      * Performs a deep copy on <i>other</i>.
53046      */
53047     public getRegionInfo_result(getRegionInfo_result other) {
53048       if (other.isSetSuccess()) {
53049         this.success = new TRegionInfo(other.success);
53050       }
53051       if (other.isSetIo()) {
53052         this.io = new IOError(other.io);
53053       }
53054     }
53055 
53056     public getRegionInfo_result deepCopy() {
53057       return new getRegionInfo_result(this);
53058     }
53059 
53060     @Override
53061     public void clear() {
53062       this.success = null;
53063       this.io = null;
53064     }
53065 
53066     public TRegionInfo getSuccess() {
53067       return this.success;
53068     }
53069 
53070     public getRegionInfo_result setSuccess(TRegionInfo success) {
53071       this.success = success;
53072       return this;
53073     }
53074 
53075     public void unsetSuccess() {
53076       this.success = null;
53077     }
53078 
53079     /** Returns true if field success is set (has been assigned a value) and false otherwise */
53080     public boolean isSetSuccess() {
53081       return this.success != null;
53082     }
53083 
53084     public void setSuccessIsSet(boolean value) {
53085       if (!value) {
53086         this.success = null;
53087       }
53088     }
53089 
53090     public IOError getIo() {
53091       return this.io;
53092     }
53093 
53094     public getRegionInfo_result setIo(IOError io) {
53095       this.io = io;
53096       return this;
53097     }
53098 
53099     public void unsetIo() {
53100       this.io = null;
53101     }
53102 
53103     /** Returns true if field io is set (has been assigned a value) and false otherwise */
53104     public boolean isSetIo() {
53105       return this.io != null;
53106     }
53107 
53108     public void setIoIsSet(boolean value) {
53109       if (!value) {
53110         this.io = null;
53111       }
53112     }
53113 
53114     public void setFieldValue(_Fields field, Object value) {
53115       switch (field) {
53116       case SUCCESS:
53117         if (value == null) {
53118           unsetSuccess();
53119         } else {
53120           setSuccess((TRegionInfo)value);
53121         }
53122         break;
53123 
53124       case IO:
53125         if (value == null) {
53126           unsetIo();
53127         } else {
53128           setIo((IOError)value);
53129         }
53130         break;
53131 
53132       }
53133     }
53134 
53135     public Object getFieldValue(_Fields field) {
53136       switch (field) {
53137       case SUCCESS:
53138         return getSuccess();
53139 
53140       case IO:
53141         return getIo();
53142 
53143       }
53144       throw new IllegalStateException();
53145     }
53146 
53147     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53148     public boolean isSet(_Fields field) {
53149       if (field == null) {
53150         throw new IllegalArgumentException();
53151       }
53152 
53153       switch (field) {
53154       case SUCCESS:
53155         return isSetSuccess();
53156       case IO:
53157         return isSetIo();
53158       }
53159       throw new IllegalStateException();
53160     }
53161 
53162     @Override
53163     public boolean equals(Object that) {
53164       if (that == null)
53165         return false;
53166       if (that instanceof getRegionInfo_result)
53167         return this.equals((getRegionInfo_result)that);
53168       return false;
53169     }
53170 
53171     public boolean equals(getRegionInfo_result that) {
53172       if (that == null)
53173         return false;
53174 
53175       boolean this_present_success = true && this.isSetSuccess();
53176       boolean that_present_success = true && that.isSetSuccess();
53177       if (this_present_success || that_present_success) {
53178         if (!(this_present_success && that_present_success))
53179           return false;
53180         if (!this.success.equals(that.success))
53181           return false;
53182       }
53183 
53184       boolean this_present_io = true && this.isSetIo();
53185       boolean that_present_io = true && that.isSetIo();
53186       if (this_present_io || that_present_io) {
53187         if (!(this_present_io && that_present_io))
53188           return false;
53189         if (!this.io.equals(that.io))
53190           return false;
53191       }
53192 
53193       return true;
53194     }
53195 
53196     @Override
53197     public int hashCode() {
53198       HashCodeBuilder builder = new HashCodeBuilder();
53199 
53200       boolean present_success = true && (isSetSuccess());
53201       builder.append(present_success);
53202       if (present_success)
53203         builder.append(success);
53204 
53205       boolean present_io = true && (isSetIo());
53206       builder.append(present_io);
53207       if (present_io)
53208         builder.append(io);
53209 
53210       return builder.toHashCode();
53211     }
53212 
53213     public int compareTo(getRegionInfo_result other) {
53214       if (!getClass().equals(other.getClass())) {
53215         return getClass().getName().compareTo(other.getClass().getName());
53216       }
53217 
53218       int lastComparison = 0;
53219       getRegionInfo_result typedOther = (getRegionInfo_result)other;
53220 
53221       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
53222       if (lastComparison != 0) {
53223         return lastComparison;
53224       }
53225       if (isSetSuccess()) {
53226         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53227         if (lastComparison != 0) {
53228           return lastComparison;
53229         }
53230       }
53231       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
53232       if (lastComparison != 0) {
53233         return lastComparison;
53234       }
53235       if (isSetIo()) {
53236         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
53237         if (lastComparison != 0) {
53238           return lastComparison;
53239         }
53240       }
53241       return 0;
53242     }
53243 
53244     public _Fields fieldForId(int fieldId) {
53245       return _Fields.findByThriftId(fieldId);
53246     }
53247 
53248     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53249       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
53250     }
53251 
53252     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53253       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
53254       }
53255 
53256     @Override
53257     public String toString() {
53258       StringBuilder sb = new StringBuilder("getRegionInfo_result(");
53259       boolean first = true;
53260 
53261       sb.append("success:");
53262       if (this.success == null) {
53263         sb.append("null");
53264       } else {
53265         sb.append(this.success);
53266       }
53267       first = false;
53268       if (!first) sb.append(", ");
53269       sb.append("io:");
53270       if (this.io == null) {
53271         sb.append("null");
53272       } else {
53273         sb.append(this.io);
53274       }
53275       first = false;
53276       sb.append(")");
53277       return sb.toString();
53278     }
53279 
53280     public void validate() throws org.apache.thrift.TException {
53281       // check for required fields
53282       // check for sub-struct validity
53283       if (success != null) {
53284         success.validate();
53285       }
53286     }
53287 
53288     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53289       try {
53290         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53291       } catch (org.apache.thrift.TException te) {
53292         throw new java.io.IOException(te);
53293       }
53294     }
53295 
53296     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53297       try {
53298         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53299       } catch (org.apache.thrift.TException te) {
53300         throw new java.io.IOException(te);
53301       }
53302     }
53303 
53304     private static class getRegionInfo_resultStandardSchemeFactory implements SchemeFactory {
53305       public getRegionInfo_resultStandardScheme getScheme() {
53306         return new getRegionInfo_resultStandardScheme();
53307       }
53308     }
53309 
53310     private static class getRegionInfo_resultStandardScheme extends StandardScheme<getRegionInfo_result> {
53311 
53312       public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_result struct) throws org.apache.thrift.TException {
53313         org.apache.thrift.protocol.TField schemeField;
53314         iprot.readStructBegin();
53315         while (true)
53316         {
53317           schemeField = iprot.readFieldBegin();
53318           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
53319             break;
53320           }
53321           switch (schemeField.id) {
53322             case 0: // SUCCESS
53323               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
53324                 struct.success = new TRegionInfo();
53325                 struct.success.read(iprot);
53326                 struct.setSuccessIsSet(true);
53327               } else { 
53328                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53329               }
53330               break;
53331             case 1: // IO
53332               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
53333                 struct.io = new IOError();
53334                 struct.io.read(iprot);
53335                 struct.setIoIsSet(true);
53336               } else { 
53337                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53338               }
53339               break;
53340             default:
53341               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53342           }
53343           iprot.readFieldEnd();
53344         }
53345         iprot.readStructEnd();
53346 
53347         // check for required fields of primitive type, which can't be checked in the validate method
53348         struct.validate();
53349       }
53350 
53351       public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_result struct) throws org.apache.thrift.TException {
53352         struct.validate();
53353 
53354         oprot.writeStructBegin(STRUCT_DESC);
53355         if (struct.success != null) {
53356           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53357           struct.success.write(oprot);
53358           oprot.writeFieldEnd();
53359         }
53360         if (struct.io != null) {
53361           oprot.writeFieldBegin(IO_FIELD_DESC);
53362           struct.io.write(oprot);
53363           oprot.writeFieldEnd();
53364         }
53365         oprot.writeFieldStop();
53366         oprot.writeStructEnd();
53367       }
53368 
53369     }
53370 
53371     private static class getRegionInfo_resultTupleSchemeFactory implements SchemeFactory {
53372       public getRegionInfo_resultTupleScheme getScheme() {
53373         return new getRegionInfo_resultTupleScheme();
53374       }
53375     }
53376 
53377     private static class getRegionInfo_resultTupleScheme extends TupleScheme<getRegionInfo_result> {
53378 
53379       @Override
53380       public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException {
53381         TTupleProtocol oprot = (TTupleProtocol) prot;
53382         BitSet optionals = new BitSet();
53383         if (struct.isSetSuccess()) {
53384           optionals.set(0);
53385         }
53386         if (struct.isSetIo()) {
53387           optionals.set(1);
53388         }
53389         oprot.writeBitSet(optionals, 2);
53390         if (struct.isSetSuccess()) {
53391           struct.success.write(oprot);
53392         }
53393         if (struct.isSetIo()) {
53394           struct.io.write(oprot);
53395         }
53396       }
53397 
53398       @Override
53399       public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException {
53400         TTupleProtocol iprot = (TTupleProtocol) prot;
53401         BitSet incoming = iprot.readBitSet(2);
53402         if (incoming.get(0)) {
53403           struct.success = new TRegionInfo();
53404           struct.success.read(iprot);
53405           struct.setSuccessIsSet(true);
53406         }
53407         if (incoming.get(1)) {
53408           struct.io = new IOError();
53409           struct.io.read(iprot);
53410           struct.setIoIsSet(true);
53411         }
53412       }
53413     }
53414 
53415   }
53416 
53417   public static class append_args implements org.apache.thrift.TBase<append_args, append_args._Fields>, java.io.Serializable, Cloneable   {
53418     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_args");
53419 
53420     private static final org.apache.thrift.protocol.TField APPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("append", org.apache.thrift.protocol.TType.STRUCT, (short)1);
53421 
53422     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
53423     static {
53424       schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory());
53425       schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory());
53426     }
53427 
53428     /**
53429      * The single append operation to apply
53430      */
53431     public TAppend append; // required
53432 
53433     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53434     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53435       /**
53436        * The single append operation to apply
53437        */
53438       APPEND((short)1, "append");
53439 
53440       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53441 
53442       static {
53443         for (_Fields field : EnumSet.allOf(_Fields.class)) {
53444           byName.put(field.getFieldName(), field);
53445         }
53446       }
53447 
53448       /**
53449        * Find the _Fields constant that matches fieldId, or null if its not found.
53450        */
53451       public static _Fields findByThriftId(int fieldId) {
53452         switch(fieldId) {
53453           case 1: // APPEND
53454             return APPEND;
53455           default:
53456             return null;
53457         }
53458       }
53459 
53460       /**
53461        * Find the _Fields constant that matches fieldId, throwing an exception
53462        * if it is not found.
53463        */
53464       public static _Fields findByThriftIdOrThrow(int fieldId) {
53465         _Fields fields = findByThriftId(fieldId);
53466         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53467         return fields;
53468       }
53469 
53470       /**
53471        * Find the _Fields constant that matches name, or null if its not found.
53472        */
53473       public static _Fields findByName(String name) {
53474         return byName.get(name);
53475       }
53476 
53477       private final short _thriftId;
53478       private final String _fieldName;
53479 
53480       _Fields(short thriftId, String fieldName) {
53481         _thriftId = thriftId;
53482         _fieldName = fieldName;
53483       }
53484 
53485       public short getThriftFieldId() {
53486         return _thriftId;
53487       }
53488 
53489       public String getFieldName() {
53490         return _fieldName;
53491       }
53492     }
53493 
53494     // isset id assignments
53495     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53496     static {
53497       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53498       tmpMap.put(_Fields.APPEND, new org.apache.thrift.meta_data.FieldMetaData("append", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53499           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class)));
53500       metaDataMap = Collections.unmodifiableMap(tmpMap);
53501       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap);
53502     }
53503 
53504     public append_args() {
53505     }
53506 
53507     public append_args(
53508       TAppend append)
53509     {
53510       this();
53511       this.append = append;
53512     }
53513 
53514     /**
53515      * Performs a deep copy on <i>other</i>.
53516      */
53517     public append_args(append_args other) {
53518       if (other.isSetAppend()) {
53519         this.append = new TAppend(other.append);
53520       }
53521     }
53522 
53523     public append_args deepCopy() {
53524       return new append_args(this);
53525     }
53526 
53527     @Override
53528     public void clear() {
53529       this.append = null;
53530     }
53531 
53532     /**
53533      * The single append operation to apply
53534      */
53535     public TAppend getAppend() {
53536       return this.append;
53537     }
53538 
53539     /**
53540      * The single append operation to apply
53541      */
53542     public append_args setAppend(TAppend append) {
53543       this.append = append;
53544       return this;
53545     }
53546 
53547     public void unsetAppend() {
53548       this.append = null;
53549     }
53550 
53551     /** Returns true if field append is set (has been assigned a value) and false otherwise */
53552     public boolean isSetAppend() {
53553       return this.append != null;
53554     }
53555 
53556     public void setAppendIsSet(boolean value) {
53557       if (!value) {
53558         this.append = null;
53559       }
53560     }
53561 
53562     public void setFieldValue(_Fields field, Object value) {
53563       switch (field) {
53564       case APPEND:
53565         if (value == null) {
53566           unsetAppend();
53567         } else {
53568           setAppend((TAppend)value);
53569         }
53570         break;
53571 
53572       }
53573     }
53574 
53575     public Object getFieldValue(_Fields field) {
53576       switch (field) {
53577       case APPEND:
53578         return getAppend();
53579 
53580       }
53581       throw new IllegalStateException();
53582     }
53583 
53584     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53585     public boolean isSet(_Fields field) {
53586       if (field == null) {
53587         throw new IllegalArgumentException();
53588       }
53589 
53590       switch (field) {
53591       case APPEND:
53592         return isSetAppend();
53593       }
53594       throw new IllegalStateException();
53595     }
53596 
53597     @Override
53598     public boolean equals(Object that) {
53599       if (that == null)
53600         return false;
53601       if (that instanceof append_args)
53602         return this.equals((append_args)that);
53603       return false;
53604     }
53605 
53606     public boolean equals(append_args that) {
53607       if (that == null)
53608         return false;
53609 
53610       boolean this_present_append = true && this.isSetAppend();
53611       boolean that_present_append = true && that.isSetAppend();
53612       if (this_present_append || that_present_append) {
53613         if (!(this_present_append && that_present_append))
53614           return false;
53615         if (!this.append.equals(that.append))
53616           return false;
53617       }
53618 
53619       return true;
53620     }
53621 
53622     @Override
53623     public int hashCode() {
53624       HashCodeBuilder builder = new HashCodeBuilder();
53625 
53626       boolean present_append = true && (isSetAppend());
53627       builder.append(present_append);
53628       if (present_append)
53629         builder.append(append);
53630 
53631       return builder.toHashCode();
53632     }
53633 
53634     public int compareTo(append_args other) {
53635       if (!getClass().equals(other.getClass())) {
53636         return getClass().getName().compareTo(other.getClass().getName());
53637       }
53638 
53639       int lastComparison = 0;
53640       append_args typedOther = (append_args)other;
53641 
53642       lastComparison = Boolean.valueOf(isSetAppend()).compareTo(typedOther.isSetAppend());
53643       if (lastComparison != 0) {
53644         return lastComparison;
53645       }
53646       if (isSetAppend()) {
53647         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.append, typedOther.append);
53648         if (lastComparison != 0) {
53649           return lastComparison;
53650         }
53651       }
53652       return 0;
53653     }
53654 
53655     public _Fields fieldForId(int fieldId) {
53656       return _Fields.findByThriftId(fieldId);
53657     }
53658 
53659     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53660       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
53661     }
53662 
53663     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53664       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
53665     }
53666 
53667     @Override
53668     public String toString() {
53669       StringBuilder sb = new StringBuilder("append_args(");
53670       boolean first = true;
53671 
53672       sb.append("append:");
53673       if (this.append == null) {
53674         sb.append("null");
53675       } else {
53676         sb.append(this.append);
53677       }
53678       first = false;
53679       sb.append(")");
53680       return sb.toString();
53681     }
53682 
53683     public void validate() throws org.apache.thrift.TException {
53684       // check for required fields
53685       // check for sub-struct validity
53686       if (append != null) {
53687         append.validate();
53688       }
53689     }
53690 
53691     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53692       try {
53693         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53694       } catch (org.apache.thrift.TException te) {
53695         throw new java.io.IOException(te);
53696       }
53697     }
53698 
53699     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53700       try {
53701         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53702       } catch (org.apache.thrift.TException te) {
53703         throw new java.io.IOException(te);
53704       }
53705     }
53706 
53707     private static class append_argsStandardSchemeFactory implements SchemeFactory {
53708       public append_argsStandardScheme getScheme() {
53709         return new append_argsStandardScheme();
53710       }
53711     }
53712 
53713     private static class append_argsStandardScheme extends StandardScheme<append_args> {
53714 
53715       public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException {
53716         org.apache.thrift.protocol.TField schemeField;
53717         iprot.readStructBegin();
53718         while (true)
53719         {
53720           schemeField = iprot.readFieldBegin();
53721           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
53722             break;
53723           }
53724           switch (schemeField.id) {
53725             case 1: // APPEND
53726               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
53727                 struct.append = new TAppend();
53728                 struct.append.read(iprot);
53729                 struct.setAppendIsSet(true);
53730               } else { 
53731                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53732               }
53733               break;
53734             default:
53735               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53736           }
53737           iprot.readFieldEnd();
53738         }
53739         iprot.readStructEnd();
53740 
53741         // check for required fields of primitive type, which can't be checked in the validate method
53742         struct.validate();
53743       }
53744 
53745       public void write(org.apache.thrift.protocol.TProtocol oprot, append_args struct) throws org.apache.thrift.TException {
53746         struct.validate();
53747 
53748         oprot.writeStructBegin(STRUCT_DESC);
53749         if (struct.append != null) {
53750           oprot.writeFieldBegin(APPEND_FIELD_DESC);
53751           struct.append.write(oprot);
53752           oprot.writeFieldEnd();
53753         }
53754         oprot.writeFieldStop();
53755         oprot.writeStructEnd();
53756       }
53757 
53758     }
53759 
53760     private static class append_argsTupleSchemeFactory implements SchemeFactory {
53761       public append_argsTupleScheme getScheme() {
53762         return new append_argsTupleScheme();
53763       }
53764     }
53765 
53766     private static class append_argsTupleScheme extends TupleScheme<append_args> {
53767 
53768       @Override
53769       public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException {
53770         TTupleProtocol oprot = (TTupleProtocol) prot;
53771         BitSet optionals = new BitSet();
53772         if (struct.isSetAppend()) {
53773           optionals.set(0);
53774         }
53775         oprot.writeBitSet(optionals, 1);
53776         if (struct.isSetAppend()) {
53777           struct.append.write(oprot);
53778         }
53779       }
53780 
53781       @Override
53782       public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException {
53783         TTupleProtocol iprot = (TTupleProtocol) prot;
53784         BitSet incoming = iprot.readBitSet(1);
53785         if (incoming.get(0)) {
53786           struct.append = new TAppend();
53787           struct.append.read(iprot);
53788           struct.setAppendIsSet(true);
53789         }
53790       }
53791     }
53792 
53793   }
53794 
53795   public static class append_result implements org.apache.thrift.TBase<append_result, append_result._Fields>, java.io.Serializable, Cloneable   {
53796     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_result");
53797 
53798     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
53799     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
53800 
53801     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
53802     static {
53803       schemes.put(StandardScheme.class, new append_resultStandardSchemeFactory());
53804       schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory());
53805     }
53806 
53807     public List<TCell> success; // required
53808     public IOError io; // required
53809 
53810     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53811     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53812       SUCCESS((short)0, "success"),
53813       IO((short)1, "io");
53814 
53815       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53816 
53817       static {
53818         for (_Fields field : EnumSet.allOf(_Fields.class)) {
53819           byName.put(field.getFieldName(), field);
53820         }
53821       }
53822 
53823       /**
53824        * Find the _Fields constant that matches fieldId, or null if its not found.
53825        */
53826       public static _Fields findByThriftId(int fieldId) {
53827         switch(fieldId) {
53828           case 0: // SUCCESS
53829             return SUCCESS;
53830           case 1: // IO
53831             return IO;
53832           default:
53833             return null;
53834         }
53835       }
53836 
53837       /**
53838        * Find the _Fields constant that matches fieldId, throwing an exception
53839        * if it is not found.
53840        */
53841       public static _Fields findByThriftIdOrThrow(int fieldId) {
53842         _Fields fields = findByThriftId(fieldId);
53843         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53844         return fields;
53845       }
53846 
53847       /**
53848        * Find the _Fields constant that matches name, or null if its not found.
53849        */
53850       public static _Fields findByName(String name) {
53851         return byName.get(name);
53852       }
53853 
53854       private final short _thriftId;
53855       private final String _fieldName;
53856 
53857       _Fields(short thriftId, String fieldName) {
53858         _thriftId = thriftId;
53859         _fieldName = fieldName;
53860       }
53861 
53862       public short getThriftFieldId() {
53863         return _thriftId;
53864       }
53865 
53866       public String getFieldName() {
53867         return _fieldName;
53868       }
53869     }
53870 
53871     // isset id assignments
53872     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53873     static {
53874       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53875       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53876           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
53877               new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
53878       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53879           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53880       metaDataMap = Collections.unmodifiableMap(tmpMap);
53881       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap);
53882     }
53883 
53884     public append_result() {
53885     }
53886 
53887     public append_result(
53888       List<TCell> success,
53889       IOError io)
53890     {
53891       this();
53892       this.success = success;
53893       this.io = io;
53894     }
53895 
53896     /**
53897      * Performs a deep copy on <i>other</i>.
53898      */
53899     public append_result(append_result other) {
53900       if (other.isSetSuccess()) {
53901         List<TCell> __this__success = new ArrayList<TCell>();
53902         for (TCell other_element : other.success) {
53903           __this__success.add(new TCell(other_element));
53904         }
53905         this.success = __this__success;
53906       }
53907       if (other.isSetIo()) {
53908         this.io = new IOError(other.io);
53909       }
53910     }
53911 
53912     public append_result deepCopy() {
53913       return new append_result(this);
53914     }
53915 
53916     @Override
53917     public void clear() {
53918       this.success = null;
53919       this.io = null;
53920     }
53921 
53922     public int getSuccessSize() {
53923       return (this.success == null) ? 0 : this.success.size();
53924     }
53925 
53926     public java.util.Iterator<TCell> getSuccessIterator() {
53927       return (this.success == null) ? null : this.success.iterator();
53928     }
53929 
53930     public void addToSuccess(TCell elem) {
53931       if (this.success == null) {
53932         this.success = new ArrayList<TCell>();
53933       }
53934       this.success.add(elem);
53935     }
53936 
53937     public List<TCell> getSuccess() {
53938       return this.success;
53939     }
53940 
53941     public append_result setSuccess(List<TCell> success) {
53942       this.success = success;
53943       return this;
53944     }
53945 
53946     public void unsetSuccess() {
53947       this.success = null;
53948     }
53949 
53950     /** Returns true if field success is set (has been assigned a value) and false otherwise */
53951     public boolean isSetSuccess() {
53952       return this.success != null;
53953     }
53954 
53955     public void setSuccessIsSet(boolean value) {
53956       if (!value) {
53957         this.success = null;
53958       }
53959     }
53960 
53961     public IOError getIo() {
53962       return this.io;
53963     }
53964 
53965     public append_result setIo(IOError io) {
53966       this.io = io;
53967       return this;
53968     }
53969 
53970     public void unsetIo() {
53971       this.io = null;
53972     }
53973 
53974     /** Returns true if field io is set (has been assigned a value) and false otherwise */
53975     public boolean isSetIo() {
53976       return this.io != null;
53977     }
53978 
53979     public void setIoIsSet(boolean value) {
53980       if (!value) {
53981         this.io = null;
53982       }
53983     }
53984 
53985     public void setFieldValue(_Fields field, Object value) {
53986       switch (field) {
53987       case SUCCESS:
53988         if (value == null) {
53989           unsetSuccess();
53990         } else {
53991           setSuccess((List<TCell>)value);
53992         }
53993         break;
53994 
53995       case IO:
53996         if (value == null) {
53997           unsetIo();
53998         } else {
53999           setIo((IOError)value);
54000         }
54001         break;
54002 
54003       }
54004     }
54005 
54006     public Object getFieldValue(_Fields field) {
54007       switch (field) {
54008       case SUCCESS:
54009         return getSuccess();
54010 
54011       case IO:
54012         return getIo();
54013 
54014       }
54015       throw new IllegalStateException();
54016     }
54017 
54018     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54019     public boolean isSet(_Fields field) {
54020       if (field == null) {
54021         throw new IllegalArgumentException();
54022       }
54023 
54024       switch (field) {
54025       case SUCCESS:
54026         return isSetSuccess();
54027       case IO:
54028         return isSetIo();
54029       }
54030       throw new IllegalStateException();
54031     }
54032 
54033     @Override
54034     public boolean equals(Object that) {
54035       if (that == null)
54036         return false;
54037       if (that instanceof append_result)
54038         return this.equals((append_result)that);
54039       return false;
54040     }
54041 
54042     public boolean equals(append_result that) {
54043       if (that == null)
54044         return false;
54045 
54046       boolean this_present_success = true && this.isSetSuccess();
54047       boolean that_present_success = true && that.isSetSuccess();
54048       if (this_present_success || that_present_success) {
54049         if (!(this_present_success && that_present_success))
54050           return false;
54051         if (!this.success.equals(that.success))
54052           return false;
54053       }
54054 
54055       boolean this_present_io = true && this.isSetIo();
54056       boolean that_present_io = true && that.isSetIo();
54057       if (this_present_io || that_present_io) {
54058         if (!(this_present_io && that_present_io))
54059           return false;
54060         if (!this.io.equals(that.io))
54061           return false;
54062       }
54063 
54064       return true;
54065     }
54066 
54067     @Override
54068     public int hashCode() {
54069       HashCodeBuilder builder = new HashCodeBuilder();
54070 
54071       boolean present_success = true && (isSetSuccess());
54072       builder.append(present_success);
54073       if (present_success)
54074         builder.append(success);
54075 
54076       boolean present_io = true && (isSetIo());
54077       builder.append(present_io);
54078       if (present_io)
54079         builder.append(io);
54080 
54081       return builder.toHashCode();
54082     }
54083 
54084     public int compareTo(append_result other) {
54085       if (!getClass().equals(other.getClass())) {
54086         return getClass().getName().compareTo(other.getClass().getName());
54087       }
54088 
54089       int lastComparison = 0;
54090       append_result typedOther = (append_result)other;
54091 
54092       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54093       if (lastComparison != 0) {
54094         return lastComparison;
54095       }
54096       if (isSetSuccess()) {
54097         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54098         if (lastComparison != 0) {
54099           return lastComparison;
54100         }
54101       }
54102       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
54103       if (lastComparison != 0) {
54104         return lastComparison;
54105       }
54106       if (isSetIo()) {
54107         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
54108         if (lastComparison != 0) {
54109           return lastComparison;
54110         }
54111       }
54112       return 0;
54113     }
54114 
54115     public _Fields fieldForId(int fieldId) {
54116       return _Fields.findByThriftId(fieldId);
54117     }
54118 
54119     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54120       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
54121     }
54122 
54123     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54124       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
54125       }
54126 
54127     @Override
54128     public String toString() {
54129       StringBuilder sb = new StringBuilder("append_result(");
54130       boolean first = true;
54131 
54132       sb.append("success:");
54133       if (this.success == null) {
54134         sb.append("null");
54135       } else {
54136         sb.append(this.success);
54137       }
54138       first = false;
54139       if (!first) sb.append(", ");
54140       sb.append("io:");
54141       if (this.io == null) {
54142         sb.append("null");
54143       } else {
54144         sb.append(this.io);
54145       }
54146       first = false;
54147       sb.append(")");
54148       return sb.toString();
54149     }
54150 
54151     public void validate() throws org.apache.thrift.TException {
54152       // check for required fields
54153       // check for sub-struct validity
54154     }
54155 
54156     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54157       try {
54158         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54159       } catch (org.apache.thrift.TException te) {
54160         throw new java.io.IOException(te);
54161       }
54162     }
54163 
54164     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54165       try {
54166         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54167       } catch (org.apache.thrift.TException te) {
54168         throw new java.io.IOException(te);
54169       }
54170     }
54171 
54172     private static class append_resultStandardSchemeFactory implements SchemeFactory {
54173       public append_resultStandardScheme getScheme() {
54174         return new append_resultStandardScheme();
54175       }
54176     }
54177 
54178     private static class append_resultStandardScheme extends StandardScheme<append_result> {
54179 
54180       public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException {
54181         org.apache.thrift.protocol.TField schemeField;
54182         iprot.readStructBegin();
54183         while (true)
54184         {
54185           schemeField = iprot.readFieldBegin();
54186           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
54187             break;
54188           }
54189           switch (schemeField.id) {
54190             case 0: // SUCCESS
54191               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
54192                 {
54193                   org.apache.thrift.protocol.TList _list582 = iprot.readListBegin();
54194                   struct.success = new ArrayList<TCell>(_list582.size);
54195                   for (int _i583 = 0; _i583 < _list582.size; ++_i583)
54196                   {
54197                     TCell _elem584; // required
54198                     _elem584 = new TCell();
54199                     _elem584.read(iprot);
54200                     struct.success.add(_elem584);
54201                   }
54202                   iprot.readListEnd();
54203                 }
54204                 struct.setSuccessIsSet(true);
54205               } else { 
54206                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54207               }
54208               break;
54209             case 1: // IO
54210               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
54211                 struct.io = new IOError();
54212                 struct.io.read(iprot);
54213                 struct.setIoIsSet(true);
54214               } else { 
54215                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54216               }
54217               break;
54218             default:
54219               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54220           }
54221           iprot.readFieldEnd();
54222         }
54223         iprot.readStructEnd();
54224 
54225         // check for required fields of primitive type, which can't be checked in the validate method
54226         struct.validate();
54227       }
54228 
54229       public void write(org.apache.thrift.protocol.TProtocol oprot, append_result struct) throws org.apache.thrift.TException {
54230         struct.validate();
54231 
54232         oprot.writeStructBegin(STRUCT_DESC);
54233         if (struct.success != null) {
54234           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54235           {
54236             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
54237             for (TCell _iter585 : struct.success)
54238             {
54239               _iter585.write(oprot);
54240             }
54241             oprot.writeListEnd();
54242           }
54243           oprot.writeFieldEnd();
54244         }
54245         if (struct.io != null) {
54246           oprot.writeFieldBegin(IO_FIELD_DESC);
54247           struct.io.write(oprot);
54248           oprot.writeFieldEnd();
54249         }
54250         oprot.writeFieldStop();
54251         oprot.writeStructEnd();
54252       }
54253 
54254     }
54255 
54256     private static class append_resultTupleSchemeFactory implements SchemeFactory {
54257       public append_resultTupleScheme getScheme() {
54258         return new append_resultTupleScheme();
54259       }
54260     }
54261 
54262     private static class append_resultTupleScheme extends TupleScheme<append_result> {
54263 
54264       @Override
54265       public void write(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException {
54266         TTupleProtocol oprot = (TTupleProtocol) prot;
54267         BitSet optionals = new BitSet();
54268         if (struct.isSetSuccess()) {
54269           optionals.set(0);
54270         }
54271         if (struct.isSetIo()) {
54272           optionals.set(1);
54273         }
54274         oprot.writeBitSet(optionals, 2);
54275         if (struct.isSetSuccess()) {
54276           {
54277             oprot.writeI32(struct.success.size());
54278             for (TCell _iter586 : struct.success)
54279             {
54280               _iter586.write(oprot);
54281             }
54282           }
54283         }
54284         if (struct.isSetIo()) {
54285           struct.io.write(oprot);
54286         }
54287       }
54288 
54289       @Override
54290       public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException {
54291         TTupleProtocol iprot = (TTupleProtocol) prot;
54292         BitSet incoming = iprot.readBitSet(2);
54293         if (incoming.get(0)) {
54294           {
54295             org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
54296             struct.success = new ArrayList<TCell>(_list587.size);
54297             for (int _i588 = 0; _i588 < _list587.size; ++_i588)
54298             {
54299               TCell _elem589; // required
54300               _elem589 = new TCell();
54301               _elem589.read(iprot);
54302               struct.success.add(_elem589);
54303             }
54304           }
54305           struct.setSuccessIsSet(true);
54306         }
54307         if (incoming.get(1)) {
54308           struct.io = new IOError();
54309           struct.io.read(iprot);
54310           struct.setIoIsSet(true);
54311         }
54312       }
54313     }
54314 
54315   }
54316 
54317   public static class checkAndPut_args implements org.apache.thrift.TBase<checkAndPut_args, checkAndPut_args._Fields>, java.io.Serializable, Cloneable   {
54318     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_args");
54319 
54320     private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
54321     private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
54322     private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
54323     private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5);
54324     private static final org.apache.thrift.protocol.TField MPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("mput", org.apache.thrift.protocol.TType.STRUCT, (short)6);
54325     private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)7);
54326 
54327     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
54328     static {
54329       schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory());
54330       schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory());
54331     }
54332 
54333     /**
54334      * name of table
54335      */
54336     public ByteBuffer tableName; // required
54337     /**
54338      * row key
54339      */
54340     public ByteBuffer row; // required
54341     /**
54342      * column name
54343      */
54344     public ByteBuffer column; // required
54345     /**
54346      * the expected value for the column parameter, if not
54347      * provided the check is for the non-existence of the
54348      * column in question
54349      */
54350     public ByteBuffer value; // required
54351     /**
54352      * mutation for the put
54353      */
54354     public Mutation mput; // required
54355     /**
54356      * Mutation attributes
54357      */
54358     public Map<ByteBuffer,ByteBuffer> attributes; // required
54359 
54360     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54361     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54362       /**
54363        * name of table
54364        */
54365       TABLE_NAME((short)1, "tableName"),
54366       /**
54367        * row key
54368        */
54369       ROW((short)2, "row"),
54370       /**
54371        * column name
54372        */
54373       COLUMN((short)3, "column"),
54374       /**
54375        * the expected value for the column parameter, if not
54376        * provided the check is for the non-existence of the
54377        * column in question
54378        */
54379       VALUE((short)5, "value"),
54380       /**
54381        * mutation for the put
54382        */
54383       MPUT((short)6, "mput"),
54384       /**
54385        * Mutation attributes
54386        */
54387       ATTRIBUTES((short)7, "attributes");
54388 
54389       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54390 
54391       static {
54392         for (_Fields field : EnumSet.allOf(_Fields.class)) {
54393           byName.put(field.getFieldName(), field);
54394         }
54395       }
54396 
54397       /**
54398        * Find the _Fields constant that matches fieldId, or null if its not found.
54399        */
54400       public static _Fields findByThriftId(int fieldId) {
54401         switch(fieldId) {
54402           case 1: // TABLE_NAME
54403             return TABLE_NAME;
54404           case 2: // ROW
54405             return ROW;
54406           case 3: // COLUMN
54407             return COLUMN;
54408           case 5: // VALUE
54409             return VALUE;
54410           case 6: // MPUT
54411             return MPUT;
54412           case 7: // ATTRIBUTES
54413             return ATTRIBUTES;
54414           default:
54415             return null;
54416         }
54417       }
54418 
54419       /**
54420        * Find the _Fields constant that matches fieldId, throwing an exception
54421        * if it is not found.
54422        */
54423       public static _Fields findByThriftIdOrThrow(int fieldId) {
54424         _Fields fields = findByThriftId(fieldId);
54425         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54426         return fields;
54427       }
54428 
54429       /**
54430        * Find the _Fields constant that matches name, or null if its not found.
54431        */
54432       public static _Fields findByName(String name) {
54433         return byName.get(name);
54434       }
54435 
54436       private final short _thriftId;
54437       private final String _fieldName;
54438 
54439       _Fields(short thriftId, String fieldName) {
54440         _thriftId = thriftId;
54441         _fieldName = fieldName;
54442       }
54443 
54444       public short getThriftFieldId() {
54445         return _thriftId;
54446       }
54447 
54448       public String getFieldName() {
54449         return _fieldName;
54450       }
54451     }
54452 
54453     // isset id assignments
54454     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54455     static {
54456       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54457       tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54458           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
54459       tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54460           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
54461       tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54462           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
54463       tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54464           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , "Text")));
54465       tmpMap.put(_Fields.MPUT, new org.apache.thrift.meta_data.FieldMetaData("mput", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54466           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class)));
54467       tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54468           new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
54469               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"), 
54470               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING              , "Text"))));
54471       metaDataMap = Collections.unmodifiableMap(tmpMap);
54472       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap);
54473     }
54474 
54475     public checkAndPut_args() {
54476     }
54477 
54478     public checkAndPut_args(
54479       ByteBuffer tableName,
54480       ByteBuffer row,
54481       ByteBuffer column,
54482       ByteBuffer value,
54483       Mutation mput,
54484       Map<ByteBuffer,ByteBuffer> attributes)
54485     {
54486       this();
54487       this.tableName = tableName;
54488       this.row = row;
54489       this.column = column;
54490       this.value = value;
54491       this.mput = mput;
54492       this.attributes = attributes;
54493     }
54494 
54495     /**
54496      * Performs a deep copy on <i>other</i>.
54497      */
54498     public checkAndPut_args(checkAndPut_args other) {
54499       if (other.isSetTableName()) {
54500         this.tableName = other.tableName;
54501       }
54502       if (other.isSetRow()) {
54503         this.row = other.row;
54504       }
54505       if (other.isSetColumn()) {
54506         this.column = other.column;
54507       }
54508       if (other.isSetValue()) {
54509         this.value = other.value;
54510       }
54511       if (other.isSetMput()) {
54512         this.mput = new Mutation(other.mput);
54513       }
54514       if (other.isSetAttributes()) {
54515         Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
54516         for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
54517 
54518           ByteBuffer other_element_key = other_element.getKey();
54519           ByteBuffer other_element_value = other_element.getValue();
54520 
54521           ByteBuffer __this__attributes_copy_key = other_element_key;
54522 
54523           ByteBuffer __this__attributes_copy_value = other_element_value;
54524 
54525           __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
54526         }
54527         this.attributes = __this__attributes;
54528       }
54529     }
54530 
54531     public checkAndPut_args deepCopy() {
54532       return new checkAndPut_args(this);
54533     }
54534 
54535     @Override
54536     public void clear() {
54537       this.tableName = null;
54538       this.row = null;
54539       this.column = null;
54540       this.value = null;
54541       this.mput = null;
54542       this.attributes = null;
54543     }
54544 
54545     /**
54546      * name of table
54547      */
54548     public byte[] getTableName() {
54549       setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
54550       return tableName == null ? null : tableName.array();
54551     }
54552 
54553     public ByteBuffer bufferForTableName() {
54554       return tableName;
54555     }
54556 
54557     /**
54558      * name of table
54559      */
54560     public checkAndPut_args setTableName(byte[] tableName) {
54561       setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
54562       return this;
54563     }
54564 
54565     public checkAndPut_args setTableName(ByteBuffer tableName) {
54566       this.tableName = tableName;
54567       return this;
54568     }
54569 
54570     public void unsetTableName() {
54571       this.tableName = null;
54572     }
54573 
54574     /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
54575     public boolean isSetTableName() {
54576       return this.tableName != null;
54577     }
54578 
54579     public void setTableNameIsSet(boolean value) {
54580       if (!value) {
54581         this.tableName = null;
54582       }
54583     }
54584 
54585     /**
54586      * row key
54587      */
54588     public byte[] getRow() {
54589       setRow(org.apache.thrift.TBaseHelper.rightSize(row));
54590       return row == null ? null : row.array();
54591     }
54592 
54593     public ByteBuffer bufferForRow() {
54594       return row;
54595     }
54596 
54597     /**
54598      * row key
54599      */
54600     public checkAndPut_args setRow(byte[] row) {
54601       setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
54602       return this;
54603     }
54604 
54605     public checkAndPut_args setRow(ByteBuffer row) {
54606       this.row = row;
54607       return this;
54608     }
54609 
54610     public void unsetRow() {
54611       this.row = null;
54612     }
54613 
54614     /** Returns true if field row is set (has been assigned a value) and false otherwise */
54615     public boolean isSetRow() {
54616       return this.row != null;
54617     }
54618 
54619     public void setRowIsSet(boolean value) {
54620       if (!value) {
54621         this.row = null;
54622       }
54623     }
54624 
54625     /**
54626      * column name
54627      */
54628     public byte[] getColumn() {
54629       setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
54630       return column == null ? null : column.array();
54631     }
54632 
54633     public ByteBuffer bufferForColumn() {
54634       return column;
54635     }
54636 
54637     /**
54638      * column name
54639      */
54640     public checkAndPut_args setColumn(byte[] column) {
54641       setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
54642       return this;
54643     }
54644 
54645     public checkAndPut_args setColumn(ByteBuffer column) {
54646       this.column = column;
54647       return this;
54648     }
54649 
54650     public void unsetColumn() {
54651       this.column = null;
54652     }
54653 
54654     /** Returns true if field column is set (has been assigned a value) and false otherwise */
54655     public boolean isSetColumn() {
54656       return this.column != null;
54657     }
54658 
54659     public void setColumnIsSet(boolean value) {
54660       if (!value) {
54661         this.column = null;
54662       }
54663     }
54664 
54665     /**
54666      * the expected value for the column parameter, if not
54667      * provided the check is for the non-existence of the
54668      * column in question
54669      */
54670     public byte[] getValue() {
54671       setValue(org.apache.thrift.TBaseHelper.rightSize(value));
54672       return value == null ? null : value.array();
54673     }
54674 
54675     public ByteBuffer bufferForValue() {
54676       return value;
54677     }
54678 
54679     /**
54680      * the expected value for the column parameter, if not
54681      * provided the check is for the non-existence of the
54682      * column in question
54683      */
54684     public checkAndPut_args setValue(byte[] value) {
54685       setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value));
54686       return this;
54687     }
54688 
54689     public checkAndPut_args setValue(ByteBuffer value) {
54690       this.value = value;
54691       return this;
54692     }
54693 
54694     public void unsetValue() {
54695       this.value = null;
54696     }
54697 
54698     /** Returns true if field value is set (has been assigned a value) and false otherwise */
54699     public boolean isSetValue() {
54700       return this.value != null;
54701     }
54702 
54703     public void setValueIsSet(boolean value) {
54704       if (!value) {
54705         this.value = null;
54706       }
54707     }
54708 
54709     /**
54710      * mutation for the put
54711      */
54712     public Mutation getMput() {
54713       return this.mput;
54714     }
54715 
54716     /**
54717      * mutation for the put
54718      */
54719     public checkAndPut_args setMput(Mutation mput) {
54720       this.mput = mput;
54721       return this;
54722     }
54723 
54724     public void unsetMput() {
54725       this.mput = null;
54726     }
54727 
54728     /** Returns true if field mput is set (has been assigned a value) and false otherwise */
54729     public boolean isSetMput() {
54730       return this.mput != null;
54731     }
54732 
54733     public void setMputIsSet(boolean value) {
54734       if (!value) {
54735         this.mput = null;
54736       }
54737     }
54738 
54739     public int getAttributesSize() {
54740       return (this.attributes == null) ? 0 : this.attributes.size();
54741     }
54742 
54743     public void putToAttributes(ByteBuffer key, ByteBuffer val) {
54744       if (this.attributes == null) {
54745         this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
54746       }
54747       this.attributes.put(key, val);
54748     }
54749 
54750     /**
54751      * Mutation attributes
54752      */
54753     public Map<ByteBuffer,ByteBuffer> getAttributes() {
54754       return this.attributes;
54755     }
54756 
54757     /**
54758      * Mutation attributes
54759      */
54760     public checkAndPut_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
54761       this.attributes = attributes;
54762       return this;
54763     }
54764 
54765     public void unsetAttributes() {
54766       this.attributes = null;
54767     }
54768 
54769     /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
54770     public boolean isSetAttributes() {
54771       return this.attributes != null;
54772     }
54773 
54774     public void setAttributesIsSet(boolean value) {
54775       if (!value) {
54776         this.attributes = null;
54777       }
54778     }
54779 
54780     public void setFieldValue(_Fields field, Object value) {
54781       switch (field) {
54782       case TABLE_NAME:
54783         if (value == null) {
54784           unsetTableName();
54785         } else {
54786           setTableName((ByteBuffer)value);
54787         }
54788         break;
54789 
54790       case ROW:
54791         if (value == null) {
54792           unsetRow();
54793         } else {
54794           setRow((ByteBuffer)value);
54795         }
54796         break;
54797 
54798       case COLUMN:
54799         if (value == null) {
54800           unsetColumn();
54801         } else {
54802           setColumn((ByteBuffer)value);
54803         }
54804         break;
54805 
54806       case VALUE:
54807         if (value == null) {
54808           unsetValue();
54809         } else {
54810           setValue((ByteBuffer)value);
54811         }
54812         break;
54813 
54814       case MPUT:
54815         if (value == null) {
54816           unsetMput();
54817         } else {
54818           setMput((Mutation)value);
54819         }
54820         break;
54821 
54822       case ATTRIBUTES:
54823         if (value == null) {
54824           unsetAttributes();
54825         } else {
54826           setAttributes((Map<ByteBuffer,ByteBuffer>)value);
54827         }
54828         break;
54829 
54830       }
54831     }
54832 
54833     public Object getFieldValue(_Fields field) {
54834       switch (field) {
54835       case TABLE_NAME:
54836         return getTableName();
54837 
54838       case ROW:
54839         return getRow();
54840 
54841       case COLUMN:
54842         return getColumn();
54843 
54844       case VALUE:
54845         return getValue();
54846 
54847       case MPUT:
54848         return getMput();
54849 
54850       case ATTRIBUTES:
54851         return getAttributes();
54852 
54853       }
54854       throw new IllegalStateException();
54855     }
54856 
54857     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54858     public boolean isSet(_Fields field) {
54859       if (field == null) {
54860         throw new IllegalArgumentException();
54861       }
54862 
54863       switch (field) {
54864       case TABLE_NAME:
54865         return isSetTableName();
54866       case ROW:
54867         return isSetRow();
54868       case COLUMN:
54869         return isSetColumn();
54870       case VALUE:
54871         return isSetValue();
54872       case MPUT:
54873         return isSetMput();
54874       case ATTRIBUTES:
54875         return isSetAttributes();
54876       }
54877       throw new IllegalStateException();
54878     }
54879 
54880     @Override
54881     public boolean equals(Object that) {
54882       if (that == null)
54883         return false;
54884       if (that instanceof checkAndPut_args)
54885         return this.equals((checkAndPut_args)that);
54886       return false;
54887     }
54888 
54889     public boolean equals(checkAndPut_args that) {
54890       if (that == null)
54891         return false;
54892 
54893       boolean this_present_tableName = true && this.isSetTableName();
54894       boolean that_present_tableName = true && that.isSetTableName();
54895       if (this_present_tableName || that_present_tableName) {
54896         if (!(this_present_tableName && that_present_tableName))
54897           return false;
54898         if (!this.tableName.equals(that.tableName))
54899           return false;
54900       }
54901 
54902       boolean this_present_row = true && this.isSetRow();
54903       boolean that_present_row = true && that.isSetRow();
54904       if (this_present_row || that_present_row) {
54905         if (!(this_present_row && that_present_row))
54906           return false;
54907         if (!this.row.equals(that.row))
54908           return false;
54909       }
54910 
54911       boolean this_present_column = true && this.isSetColumn();
54912       boolean that_present_column = true && that.isSetColumn();
54913       if (this_present_column || that_present_column) {
54914         if (!(this_present_column && that_present_column))
54915           return false;
54916         if (!this.column.equals(that.column))
54917           return false;
54918       }
54919 
54920       boolean this_present_value = true && this.isSetValue();
54921       boolean that_present_value = true && that.isSetValue();
54922       if (this_present_value || that_present_value) {
54923         if (!(this_present_value && that_present_value))
54924           return false;
54925         if (!this.value.equals(that.value))
54926           return false;
54927       }
54928 
54929       boolean this_present_mput = true && this.isSetMput();
54930       boolean that_present_mput = true && that.isSetMput();
54931       if (this_present_mput || that_present_mput) {
54932         if (!(this_present_mput && that_present_mput))
54933           return false;
54934         if (!this.mput.equals(that.mput))
54935           return false;
54936       }
54937 
54938       boolean this_present_attributes = true && this.isSetAttributes();
54939       boolean that_present_attributes = true && that.isSetAttributes();
54940       if (this_present_attributes || that_present_attributes) {
54941         if (!(this_present_attributes && that_present_attributes))
54942           return false;
54943         if (!this.attributes.equals(that.attributes))
54944           return false;
54945       }
54946 
54947       return true;
54948     }
54949 
54950     @Override
54951     public int hashCode() {
54952       HashCodeBuilder builder = new HashCodeBuilder();
54953 
54954       boolean present_tableName = true && (isSetTableName());
54955       builder.append(present_tableName);
54956       if (present_tableName)
54957         builder.append(tableName);
54958 
54959       boolean present_row = true && (isSetRow());
54960       builder.append(present_row);
54961       if (present_row)
54962         builder.append(row);
54963 
54964       boolean present_column = true && (isSetColumn());
54965       builder.append(present_column);
54966       if (present_column)
54967         builder.append(column);
54968 
54969       boolean present_value = true && (isSetValue());
54970       builder.append(present_value);
54971       if (present_value)
54972         builder.append(value);
54973 
54974       boolean present_mput = true && (isSetMput());
54975       builder.append(present_mput);
54976       if (present_mput)
54977         builder.append(mput);
54978 
54979       boolean present_attributes = true && (isSetAttributes());
54980       builder.append(present_attributes);
54981       if (present_attributes)
54982         builder.append(attributes);
54983 
54984       return builder.toHashCode();
54985     }
54986 
54987     public int compareTo(checkAndPut_args other) {
54988       if (!getClass().equals(other.getClass())) {
54989         return getClass().getName().compareTo(other.getClass().getName());
54990       }
54991 
54992       int lastComparison = 0;
54993       checkAndPut_args typedOther = (checkAndPut_args)other;
54994 
54995       lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
54996       if (lastComparison != 0) {
54997         return lastComparison;
54998       }
54999       if (isSetTableName()) {
55000         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
55001         if (lastComparison != 0) {
55002           return lastComparison;
55003         }
55004       }
55005       lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
55006       if (lastComparison != 0) {
55007         return lastComparison;
55008       }
55009       if (isSetRow()) {
55010         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
55011         if (lastComparison != 0) {
55012           return lastComparison;
55013         }
55014       }
55015       lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
55016       if (lastComparison != 0) {
55017         return lastComparison;
55018       }
55019       if (isSetColumn()) {
55020         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
55021         if (lastComparison != 0) {
55022           return lastComparison;
55023         }
55024       }
55025       lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
55026       if (lastComparison != 0) {
55027         return lastComparison;
55028       }
55029       if (isSetValue()) {
55030         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
55031         if (lastComparison != 0) {
55032           return lastComparison;
55033         }
55034       }
55035       lastComparison = Boolean.valueOf(isSetMput()).compareTo(typedOther.isSetMput());
55036       if (lastComparison != 0) {
55037         return lastComparison;
55038       }
55039       if (isSetMput()) {
55040         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mput, typedOther.mput);
55041         if (lastComparison != 0) {
55042           return lastComparison;
55043         }
55044       }
55045       lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
55046       if (lastComparison != 0) {
55047         return lastComparison;
55048       }
55049       if (isSetAttributes()) {
55050         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
55051         if (lastComparison != 0) {
55052           return lastComparison;
55053         }
55054       }
55055       return 0;
55056     }
55057 
55058     public _Fields fieldForId(int fieldId) {
55059       return _Fields.findByThriftId(fieldId);
55060     }
55061 
55062     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55063       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
55064     }
55065 
55066     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55067       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
55068     }
55069 
55070     @Override
55071     public String toString() {
55072       StringBuilder sb = new StringBuilder("checkAndPut_args(");
55073       boolean first = true;
55074 
55075       sb.append("tableName:");
55076       if (this.tableName == null) {
55077         sb.append("null");
55078       } else {
55079         sb.append(this.tableName);
55080       }
55081       first = false;
55082       if (!first) sb.append(", ");
55083       sb.append("row:");
55084       if (this.row == null) {
55085         sb.append("null");
55086       } else {
55087         sb.append(this.row);
55088       }
55089       first = false;
55090       if (!first) sb.append(", ");
55091       sb.append("column:");
55092       if (this.column == null) {
55093         sb.append("null");
55094       } else {
55095         sb.append(this.column);
55096       }
55097       first = false;
55098       if (!first) sb.append(", ");
55099       sb.append("value:");
55100       if (this.value == null) {
55101         sb.append("null");
55102       } else {
55103         sb.append(this.value);
55104       }
55105       first = false;
55106       if (!first) sb.append(", ");
55107       sb.append("mput:");
55108       if (this.mput == null) {
55109         sb.append("null");
55110       } else {
55111         sb.append(this.mput);
55112       }
55113       first = false;
55114       if (!first) sb.append(", ");
55115       sb.append("attributes:");
55116       if (this.attributes == null) {
55117         sb.append("null");
55118       } else {
55119         sb.append(this.attributes);
55120       }
55121       first = false;
55122       sb.append(")");
55123       return sb.toString();
55124     }
55125 
55126     public void validate() throws org.apache.thrift.TException {
55127       // check for required fields
55128       // check for sub-struct validity
55129       if (mput != null) {
55130         mput.validate();
55131       }
55132     }
55133 
55134     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55135       try {
55136         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55137       } catch (org.apache.thrift.TException te) {
55138         throw new java.io.IOException(te);
55139       }
55140     }
55141 
55142     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55143       try {
55144         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55145       } catch (org.apache.thrift.TException te) {
55146         throw new java.io.IOException(te);
55147       }
55148     }
55149 
55150     private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory {
55151       public checkAndPut_argsStandardScheme getScheme() {
55152         return new checkAndPut_argsStandardScheme();
55153       }
55154     }
55155 
55156     private static class checkAndPut_argsStandardScheme extends StandardScheme<checkAndPut_args> {
55157 
55158       public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException {
55159         org.apache.thrift.protocol.TField schemeField;
55160         iprot.readStructBegin();
55161         while (true)
55162         {
55163           schemeField = iprot.readFieldBegin();
55164           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
55165             break;
55166           }
55167           switch (schemeField.id) {
55168             case 1: // TABLE_NAME
55169               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
55170                 struct.tableName = iprot.readBinary();
55171                 struct.setTableNameIsSet(true);
55172               } else { 
55173                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55174               }
55175               break;
55176             case 2: // ROW
55177               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
55178                 struct.row = iprot.readBinary();
55179                 struct.setRowIsSet(true);
55180               } else { 
55181                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55182               }
55183               break;
55184             case 3: // COLUMN
55185               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
55186                 struct.column = iprot.readBinary();
55187                 struct.setColumnIsSet(true);
55188               } else { 
55189                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55190               }
55191               break;
55192             case 5: // VALUE
55193               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
55194                 struct.value = iprot.readBinary();
55195                 struct.setValueIsSet(true);
55196               } else { 
55197                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55198               }
55199               break;
55200             case 6: // MPUT
55201               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
55202                 struct.mput = new Mutation();
55203                 struct.mput.read(iprot);
55204                 struct.setMputIsSet(true);
55205               } else { 
55206                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55207               }
55208               break;
55209             case 7: // ATTRIBUTES
55210               if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
55211                 {
55212                   org.apache.thrift.protocol.TMap _map590 = iprot.readMapBegin();
55213                   struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map590.size);
55214                   for (int _i591 = 0; _i591 < _map590.size; ++_i591)
55215                   {
55216                     ByteBuffer _key592; // required
55217                     ByteBuffer _val593; // required
55218                     _key592 = iprot.readBinary();
55219                     _val593 = iprot.readBinary();
55220                     struct.attributes.put(_key592, _val593);
55221                   }
55222                   iprot.readMapEnd();
55223                 }
55224                 struct.setAttributesIsSet(true);
55225               } else { 
55226                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55227               }
55228               break;
55229             default:
55230               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55231           }
55232           iprot.readFieldEnd();
55233         }
55234         iprot.readStructEnd();
55235 
55236         // check for required fields of primitive type, which can't be checked in the validate method
55237         struct.validate();
55238       }
55239 
55240       public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_args struct) throws org.apache.thrift.TException {
55241         struct.validate();
55242 
55243         oprot.writeStructBegin(STRUCT_DESC);
55244         if (struct.tableName != null) {
55245           oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
55246           oprot.writeBinary(struct.tableName);
55247           oprot.writeFieldEnd();
55248         }
55249         if (struct.row != null) {
55250           oprot.writeFieldBegin(ROW_FIELD_DESC);
55251           oprot.writeBinary(struct.row);
55252           oprot.writeFieldEnd();
55253         }
55254         if (struct.column != null) {
55255           oprot.writeFieldBegin(COLUMN_FIELD_DESC);
55256           oprot.writeBinary(struct.column);
55257           oprot.writeFieldEnd();
55258         }
55259         if (struct.value != null) {
55260           oprot.writeFieldBegin(VALUE_FIELD_DESC);
55261           oprot.writeBinary(struct.value);
55262           oprot.writeFieldEnd();
55263         }
55264         if (struct.mput != null) {
55265           oprot.writeFieldBegin(MPUT_FIELD_DESC);
55266           struct.mput.write(oprot);
55267           oprot.writeFieldEnd();
55268         }
55269         if (struct.attributes != null) {
55270           oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
55271           {
55272             oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
55273             for (Map.Entry<ByteBuffer, ByteBuffer> _iter594 : struct.attributes.entrySet())
55274             {
55275               oprot.writeBinary(_iter594.getKey());
55276               oprot.writeBinary(_iter594.getValue());
55277             }
55278             oprot.writeMapEnd();
55279           }
55280           oprot.writeFieldEnd();
55281         }
55282         oprot.writeFieldStop();
55283         oprot.writeStructEnd();
55284       }
55285 
55286     }
55287 
55288     private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory {
55289       public checkAndPut_argsTupleScheme getScheme() {
55290         return new checkAndPut_argsTupleScheme();
55291       }
55292     }
55293 
55294     private static class checkAndPut_argsTupleScheme extends TupleScheme<checkAndPut_args> {
55295 
55296       @Override
55297       public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException {
55298         TTupleProtocol oprot = (TTupleProtocol) prot;
55299         BitSet optionals = new BitSet();
55300         if (struct.isSetTableName()) {
55301           optionals.set(0);
55302         }
55303         if (struct.isSetRow()) {
55304           optionals.set(1);
55305         }
55306         if (struct.isSetColumn()) {
55307           optionals.set(2);
55308         }
55309         if (struct.isSetValue()) {
55310           optionals.set(3);
55311         }
55312         if (struct.isSetMput()) {
55313           optionals.set(4);
55314         }
55315         if (struct.isSetAttributes()) {
55316           optionals.set(5);
55317         }
55318         oprot.writeBitSet(optionals, 6);
55319         if (struct.isSetTableName()) {
55320           oprot.writeBinary(struct.tableName);
55321         }
55322         if (struct.isSetRow()) {
55323           oprot.writeBinary(struct.row);
55324         }
55325         if (struct.isSetColumn()) {
55326           oprot.writeBinary(struct.column);
55327         }
55328         if (struct.isSetValue()) {
55329           oprot.writeBinary(struct.value);
55330         }
55331         if (struct.isSetMput()) {
55332           struct.mput.write(oprot);
55333         }
55334         if (struct.isSetAttributes()) {
55335           {
55336             oprot.writeI32(struct.attributes.size());
55337             for (Map.Entry<ByteBuffer, ByteBuffer> _iter595 : struct.attributes.entrySet())
55338             {
55339               oprot.writeBinary(_iter595.getKey());
55340               oprot.writeBinary(_iter595.getValue());
55341             }
55342           }
55343         }
55344       }
55345 
55346       @Override
55347       public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException {
55348         TTupleProtocol iprot = (TTupleProtocol) prot;
55349         BitSet incoming = iprot.readBitSet(6);
55350         if (incoming.get(0)) {
55351           struct.tableName = iprot.readBinary();
55352           struct.setTableNameIsSet(true);
55353         }
55354         if (incoming.get(1)) {
55355           struct.row = iprot.readBinary();
55356           struct.setRowIsSet(true);
55357         }
55358         if (incoming.get(2)) {
55359           struct.column = iprot.readBinary();
55360           struct.setColumnIsSet(true);
55361         }
55362         if (incoming.get(3)) {
55363           struct.value = iprot.readBinary();
55364           struct.setValueIsSet(true);
55365         }
55366         if (incoming.get(4)) {
55367           struct.mput = new Mutation();
55368           struct.mput.read(iprot);
55369           struct.setMputIsSet(true);
55370         }
55371         if (incoming.get(5)) {
55372           {
55373             org.apache.thrift.protocol.TMap _map596 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
55374             struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map596.size);
55375             for (int _i597 = 0; _i597 < _map596.size; ++_i597)
55376             {
55377               ByteBuffer _key598; // required
55378               ByteBuffer _val599; // required
55379               _key598 = iprot.readBinary();
55380               _val599 = iprot.readBinary();
55381               struct.attributes.put(_key598, _val599);
55382             }
55383           }
55384           struct.setAttributesIsSet(true);
55385         }
55386       }
55387     }
55388 
55389   }
55390 
55391   public static class checkAndPut_result implements org.apache.thrift.TBase<checkAndPut_result, checkAndPut_result._Fields>, java.io.Serializable, Cloneable   {
55392     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_result");
55393 
55394     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
55395     private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
55396     private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
55397 
55398     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
55399     static {
55400       schemes.put(StandardScheme.class, new checkAndPut_resultStandardSchemeFactory());
55401       schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory());
55402     }
55403 
55404     public boolean success; // required
55405     public IOError io; // required
55406     public IllegalArgument ia; // required
55407 
55408     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55409     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55410       SUCCESS((short)0, "success"),
55411       IO((short)1, "io"),
55412       IA((short)2, "ia");
55413 
55414       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55415 
55416       static {
55417         for (_Fields field : EnumSet.allOf(_Fields.class)) {
55418           byName.put(field.getFieldName(), field);
55419         }
55420       }
55421 
55422       /**
55423        * Find the _Fields constant that matches fieldId, or null if its not found.
55424        */
55425       public static _Fields findByThriftId(int fieldId) {
55426         switch(fieldId) {
55427           case 0: // SUCCESS
55428             return SUCCESS;
55429           case 1: // IO
55430             return IO;
55431           case 2: // IA
55432             return IA;
55433           default:
55434             return null;
55435         }
55436       }
55437 
55438       /**
55439        * Find the _Fields constant that matches fieldId, throwing an exception
55440        * if it is not found.
55441        */
55442       public static _Fields findByThriftIdOrThrow(int fieldId) {
55443         _Fields fields = findByThriftId(fieldId);
55444         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55445         return fields;
55446       }
55447 
55448       /**
55449        * Find the _Fields constant that matches name, or null if its not found.
55450        */
55451       public static _Fields findByName(String name) {
55452         return byName.get(name);
55453       }
55454 
55455       private final short _thriftId;
55456       private final String _fieldName;
55457 
55458       _Fields(short thriftId, String fieldName) {
55459         _thriftId = thriftId;
55460         _fieldName = fieldName;
55461       }
55462 
55463       public short getThriftFieldId() {
55464         return _thriftId;
55465       }
55466 
55467       public String getFieldName() {
55468         return _fieldName;
55469       }
55470     }
55471 
55472     // isset id assignments
55473     private static final int __SUCCESS_ISSET_ID = 0;
55474     private byte __isset_bitfield = 0;
55475     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55476     static {
55477       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55478       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55479           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
55480       tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55481           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55482       tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55483           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55484       metaDataMap = Collections.unmodifiableMap(tmpMap);
55485       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap);
55486     }
55487 
55488     public checkAndPut_result() {
55489     }
55490 
55491     public checkAndPut_result(
55492       boolean success,
55493       IOError io,
55494       IllegalArgument ia)
55495     {
55496       this();
55497       this.success = success;
55498       setSuccessIsSet(true);
55499       this.io = io;
55500       this.ia = ia;
55501     }
55502 
55503     /**
55504      * Performs a deep copy on <i>other</i>.
55505      */
55506     public checkAndPut_result(checkAndPut_result other) {
55507       __isset_bitfield = other.__isset_bitfield;
55508       this.success = other.success;
55509       if (other.isSetIo()) {
55510         this.io = new IOError(other.io);
55511       }
55512       if (other.isSetIa()) {
55513         this.ia = new IllegalArgument(other.ia);
55514       }
55515     }
55516 
55517     public checkAndPut_result deepCopy() {
55518       return new checkAndPut_result(this);
55519     }
55520 
55521     @Override
55522     public void clear() {
55523       setSuccessIsSet(false);
55524       this.success = false;
55525       this.io = null;
55526       this.ia = null;
55527     }
55528 
55529     public boolean isSuccess() {
55530       return this.success;
55531     }
55532 
55533     public checkAndPut_result setSuccess(boolean success) {
55534       this.success = success;
55535       setSuccessIsSet(true);
55536       return this;
55537     }
55538 
55539     public void unsetSuccess() {
55540       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
55541     }
55542 
55543     /** Returns true if field success is set (has been assigned a value) and false otherwise */
55544     public boolean isSetSuccess() {
55545       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
55546     }
55547 
55548     public void setSuccessIsSet(boolean value) {
55549       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
55550     }
55551 
55552     public IOError getIo() {
55553       return this.io;
55554     }
55555 
55556     public checkAndPut_result setIo(IOError io) {
55557       this.io = io;
55558       return this;
55559     }
55560 
55561     public void unsetIo() {
55562       this.io = null;
55563     }
55564 
55565     /** Returns true if field io is set (has been assigned a value) and false otherwise */
55566     public boolean isSetIo() {
55567       return this.io != null;
55568     }
55569 
55570     public void setIoIsSet(boolean value) {
55571       if (!value) {
55572         this.io = null;
55573       }
55574     }
55575 
55576     public IllegalArgument getIa() {
55577       return this.ia;
55578     }
55579 
55580     public checkAndPut_result setIa(IllegalArgument ia) {
55581       this.ia = ia;
55582       return this;
55583     }
55584 
55585     public void unsetIa() {
55586       this.ia = null;
55587     }
55588 
55589     /** Returns true if field ia is set (has been assigned a value) and false otherwise */
55590     public boolean isSetIa() {
55591       return this.ia != null;
55592     }
55593 
55594     public void setIaIsSet(boolean value) {
55595       if (!value) {
55596         this.ia = null;
55597       }
55598     }
55599 
55600     public void setFieldValue(_Fields field, Object value) {
55601       switch (field) {
55602       case SUCCESS:
55603         if (value == null) {
55604           unsetSuccess();
55605         } else {
55606           setSuccess((Boolean)value);
55607         }
55608         break;
55609 
55610       case IO:
55611         if (value == null) {
55612           unsetIo();
55613         } else {
55614           setIo((IOError)value);
55615         }
55616         break;
55617 
55618       case IA:
55619         if (value == null) {
55620           unsetIa();
55621         } else {
55622           setIa((IllegalArgument)value);
55623         }
55624         break;
55625 
55626       }
55627     }
55628 
55629     public Object getFieldValue(_Fields field) {
55630       switch (field) {
55631       case SUCCESS:
55632         return Boolean.valueOf(isSuccess());
55633 
55634       case IO:
55635         return getIo();
55636 
55637       case IA:
55638         return getIa();
55639 
55640       }
55641       throw new IllegalStateException();
55642     }
55643 
55644     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55645     public boolean isSet(_Fields field) {
55646       if (field == null) {
55647         throw new IllegalArgumentException();
55648       }
55649 
55650       switch (field) {
55651       case SUCCESS:
55652         return isSetSuccess();
55653       case IO:
55654         return isSetIo();
55655       case IA:
55656         return isSetIa();
55657       }
55658       throw new IllegalStateException();
55659     }
55660 
55661     @Override
55662     public boolean equals(Object that) {
55663       if (that == null)
55664         return false;
55665       if (that instanceof checkAndPut_result)
55666         return this.equals((checkAndPut_result)that);
55667       return false;
55668     }
55669 
55670     public boolean equals(checkAndPut_result that) {
55671       if (that == null)
55672         return false;
55673 
55674       boolean this_present_success = true;
55675       boolean that_present_success = true;
55676       if (this_present_success || that_present_success) {
55677         if (!(this_present_success && that_present_success))
55678           return false;
55679         if (this.success != that.success)
55680           return false;
55681       }
55682 
55683       boolean this_present_io = true && this.isSetIo();
55684       boolean that_present_io = true && that.isSetIo();
55685       if (this_present_io || that_present_io) {
55686         if (!(this_present_io && that_present_io))
55687           return false;
55688         if (!this.io.equals(that.io))
55689           return false;
55690       }
55691 
55692       boolean this_present_ia = true && this.isSetIa();
55693       boolean that_present_ia = true && that.isSetIa();
55694       if (this_present_ia || that_present_ia) {
55695         if (!(this_present_ia && that_present_ia))
55696           return false;
55697         if (!this.ia.equals(that.ia))
55698           return false;
55699       }
55700 
55701       return true;
55702     }
55703 
55704     @Override
55705     public int hashCode() {
55706       HashCodeBuilder builder = new HashCodeBuilder();
55707 
55708       boolean present_success = true;
55709       builder.append(present_success);
55710       if (present_success)
55711         builder.append(success);
55712 
55713       boolean present_io = true && (isSetIo());
55714       builder.append(present_io);
55715       if (present_io)
55716         builder.append(io);
55717 
55718       boolean present_ia = true && (isSetIa());
55719       builder.append(present_ia);
55720       if (present_ia)
55721         builder.append(ia);
55722 
55723       return builder.toHashCode();
55724     }
55725 
55726     public int compareTo(checkAndPut_result other) {
55727       if (!getClass().equals(other.getClass())) {
55728         return getClass().getName().compareTo(other.getClass().getName());
55729       }
55730 
55731       int lastComparison = 0;
55732       checkAndPut_result typedOther = (checkAndPut_result)other;
55733 
55734       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55735       if (lastComparison != 0) {
55736         return lastComparison;
55737       }
55738       if (isSetSuccess()) {
55739         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55740         if (lastComparison != 0) {
55741           return lastComparison;
55742         }
55743       }
55744       lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
55745       if (lastComparison != 0) {
55746         return lastComparison;
55747       }
55748       if (isSetIo()) {
55749         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
55750         if (lastComparison != 0) {
55751           return lastComparison;
55752         }
55753       }
55754       lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
55755       if (lastComparison != 0) {
55756         return lastComparison;
55757       }
55758       if (isSetIa()) {
55759         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
55760         if (lastComparison != 0) {
55761           return lastComparison;
55762         }
55763       }
55764       return 0;
55765     }
55766 
55767     public _Fields fieldForId(int fieldId) {
55768       return _Fields.findByThriftId(fieldId);
55769     }
55770 
55771     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55772       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
55773     }
55774 
55775     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55776       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
55777       }
55778 
55779     @Override
55780     public String toString() {
55781       StringBuilder sb = new StringBuilder("checkAndPut_result(");
55782       boolean first = true;
55783 
55784       sb.append("success:");
55785       sb.append(this.success);
55786       first = false;
55787       if (!first) sb.append(", ");
55788       sb.append("io:");
55789       if (this.io == null) {
55790         sb.append("null");
55791       } else {
55792         sb.append(this.io);
55793       }
55794       first = false;
55795       if (!first) sb.append(", ");
55796       sb.append("ia:");
55797       if (this.ia == null) {
55798         sb.append("null");
55799       } else {
55800         sb.append(this.ia);
55801       }
55802       first = false;
55803       sb.append(")");
55804       return sb.toString();
55805     }
55806 
55807     public void validate() throws org.apache.thrift.TException {
55808       // check for required fields
55809       // check for sub-struct validity
55810     }
55811 
55812     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55813       try {
55814         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55815       } catch (org.apache.thrift.TException te) {
55816         throw new java.io.IOException(te);
55817       }
55818     }
55819 
55820     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55821       try {
55822         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55823         __isset_bitfield = 0;
55824         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55825       } catch (org.apache.thrift.TException te) {
55826         throw new java.io.IOException(te);
55827       }
55828     }
55829 
55830     private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory {
55831       public checkAndPut_resultStandardScheme getScheme() {
55832         return new checkAndPut_resultStandardScheme();
55833       }
55834     }
55835 
55836     private static class checkAndPut_resultStandardScheme extends StandardScheme<checkAndPut_result> {
55837 
55838       public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException {
55839         org.apache.thrift.protocol.TField schemeField;
55840         iprot.readStructBegin();
55841         while (true)
55842         {
55843           schemeField = iprot.readFieldBegin();
55844           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
55845             break;
55846           }
55847           switch (schemeField.id) {
55848             case 0: // SUCCESS
55849               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
55850                 struct.success = iprot.readBool();
55851                 struct.setSuccessIsSet(true);
55852               } else { 
55853                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55854               }
55855               break;
55856             case 1: // IO
55857               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
55858                 struct.io = new IOError();
55859                 struct.io.read(iprot);
55860                 struct.setIoIsSet(true);
55861               } else { 
55862                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55863               }
55864               break;
55865             case 2: // IA
55866               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
55867                 struct.ia = new IllegalArgument();
55868                 struct.ia.read(iprot);
55869                 struct.setIaIsSet(true);
55870               } else { 
55871                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55872               }
55873               break;
55874             default:
55875               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55876           }
55877           iprot.readFieldEnd();
55878         }
55879         iprot.readStructEnd();
55880 
55881         // check for required fields of primitive type, which can't be checked in the validate method
55882         struct.validate();
55883       }
55884 
55885       public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_result struct) throws org.apache.thrift.TException {
55886         struct.validate();
55887 
55888         oprot.writeStructBegin(STRUCT_DESC);
55889         if (struct.isSetSuccess()) {
55890           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55891           oprot.writeBool(struct.success);
55892           oprot.writeFieldEnd();
55893         }
55894         if (struct.io != null) {
55895           oprot.writeFieldBegin(IO_FIELD_DESC);
55896           struct.io.write(oprot);
55897           oprot.writeFieldEnd();
55898         }
55899         if (struct.ia != null) {
55900           oprot.writeFieldBegin(IA_FIELD_DESC);
55901           struct.ia.write(oprot);
55902           oprot.writeFieldEnd();
55903         }
55904         oprot.writeFieldStop();
55905         oprot.writeStructEnd();
55906       }
55907 
55908     }
55909 
55910     private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory {
55911       public checkAndPut_resultTupleScheme getScheme() {
55912         return new checkAndPut_resultTupleScheme();
55913       }
55914     }
55915 
55916     private static class checkAndPut_resultTupleScheme extends TupleScheme<checkAndPut_result> {
55917 
55918       @Override
55919       public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
55920         TTupleProtocol oprot = (TTupleProtocol) prot;
55921         BitSet optionals = new BitSet();
55922         if (struct.isSetSuccess()) {
55923           optionals.set(0);
55924         }
55925         if (struct.isSetIo()) {
55926           optionals.set(1);
55927         }
55928         if (struct.isSetIa()) {
55929           optionals.set(2);
55930         }
55931         oprot.writeBitSet(optionals, 3);
55932         if (struct.isSetSuccess()) {
55933           oprot.writeBool(struct.success);
55934         }
55935         if (struct.isSetIo()) {
55936           struct.io.write(oprot);
55937         }
55938         if (struct.isSetIa()) {
55939           struct.ia.write(oprot);
55940         }
55941       }
55942 
55943       @Override
55944       public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
55945         TTupleProtocol iprot = (TTupleProtocol) prot;
55946         BitSet incoming = iprot.readBitSet(3);
55947         if (incoming.get(0)) {
55948           struct.success = iprot.readBool();
55949           struct.setSuccessIsSet(true);
55950         }
55951         if (incoming.get(1)) {
55952           struct.io = new IOError();
55953           struct.io.read(iprot);
55954           struct.setIoIsSet(true);
55955         }
55956         if (incoming.get(2)) {
55957           struct.ia = new IllegalArgument();
55958           struct.ia.read(iprot);
55959           struct.setIaIsSet(true);
55960         }
55961       }
55962     }
55963 
55964   }
55965 
55966 }