cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r765262 [2/3] - in /incubator/cassandra/trunk: lib/ src/org/apache/cassandra/cli/ src/org/apache/cassandra/cql/driver/ src/org/apache/cassandra/service/ src/org/apache/cassandra/test/
Date Wed, 15 Apr 2009 16:28:04 GMT
Modified: incubator/cassandra/trunk/src/org/apache/cassandra/service/Cassandra.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/service/Cassandra.java?rev=765262&r1=765261&r2=765262&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/service/Cassandra.java (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/service/Cassandra.java Wed Apr 15 16:28:03 2009
@@ -11,10 +11,12 @@
 import java.util.HashMap;
 import java.util.Set;
 import java.util.HashSet;
-import com.facebook.thrift.*;
+import java.util.Collections;
+import org.apache.thrift.*;
+import org.apache.thrift.meta_data.*;
 
-import com.facebook.thrift.protocol.*;
-import com.facebook.thrift.transport.*;
+import org.apache.thrift.protocol.*;
+import org.apache.thrift.transport.*;
 
 public class Cassandra {
 
@@ -1080,15 +1082,27 @@
 
   }
 
-  public static class get_slice_args implements TBase, java.io.Serializable   {
+  public static class get_slice_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_slice_args");
+    private static final TField TABLENAME_FIELD_DESC = new TField("tablename", TType.STRING, (short)-1);
+    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)-2);
+    private static final TField COLUMN_FAMILY_COLUMN_FIELD_DESC = new TField("columnFamily_column", TType.STRING, (short)-3);
+    private static final TField START_FIELD_DESC = new TField("start", TType.I32, (short)-4);
+    private static final TField COUNT_FIELD_DESC = new TField("count", TType.I32, (short)-5);
+
     public String tablename;
+    public static final int TABLENAME = -1;
     public String key;
+    public static final int KEY = -2;
     public String columnFamily_column;
+    public static final int COLUMNFAMILY_COLUMN = -3;
     public int start;
+    public static final int START = -4;
     public int count;
+    public static final int COUNT = -5;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean tablename = false;
       public boolean key = false;
       public boolean columnFamily_column = false;
@@ -1096,6 +1110,23 @@
       public boolean count = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(TABLENAME, new FieldMetaData("tablename", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNFAMILY_COLUMN, new FieldMetaData("columnFamily_column", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(START, new FieldMetaData("start", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.I32)));
+      put(COUNT, new FieldMetaData("count", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.I32)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_slice_args.class, metaDataMap);
+    }
+
     public get_slice_args() {
       this.start = -1;
 
@@ -1112,17 +1143,222 @@
     {
       this();
       this.tablename = tablename;
-      this.__isset.tablename = true;
+      this.__isset.tablename = (tablename != null);
+      this.key = key;
+      this.__isset.key = (key != null);
+      this.columnFamily_column = columnFamily_column;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+      this.start = start;
+      this.__isset.start = true;
+      this.count = count;
+      this.__isset.count = true;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_slice_args(get_slice_args other) {
+      __isset.tablename = other.__isset.tablename;
+      if (other.tablename != null) {
+        this.tablename = other.tablename;
+      }
+      __isset.key = other.__isset.key;
+      if (other.key != null) {
+        this.key = other.key;
+      }
+      __isset.columnFamily_column = other.__isset.columnFamily_column;
+      if (other.columnFamily_column != null) {
+        this.columnFamily_column = other.columnFamily_column;
+      }
+      __isset.start = other.__isset.start;
+      this.start = other.start;
+      __isset.count = other.__isset.count;
+      this.count = other.count;
+    }
+
+    @Override
+    public get_slice_args clone() {
+      return new get_slice_args(this);
+    }
+
+    public String getTablename() {
+      return this.tablename;
+    }
+
+    public void setTablename(String tablename) {
+      this.tablename = tablename;
+      this.__isset.tablename = (tablename != null);
+    }
+
+    public void unsetTablename() {
+      this.__isset.tablename = false;
+    }
+
+    // Returns true if field tablename is set (has been asigned a value) and false otherwise
+    public boolean isSetTablename() {
+      return this.__isset.tablename;
+    }
+
+    public void setTablenameIsSet(boolean value) {
+      this.__isset.tablename = value;
+    }
+
+    public String getKey() {
+      return this.key;
+    }
+
+    public void setKey(String key) {
       this.key = key;
-      this.__isset.key = true;
+      this.__isset.key = (key != null);
+    }
+
+    public void unsetKey() {
+      this.__isset.key = false;
+    }
+
+    // Returns true if field key is set (has been asigned a value) and false otherwise
+    public boolean isSetKey() {
+      return this.__isset.key;
+    }
+
+    public void setKeyIsSet(boolean value) {
+      this.__isset.key = value;
+    }
+
+    public String getColumnFamily_column() {
+      return this.columnFamily_column;
+    }
+
+    public void setColumnFamily_column(String columnFamily_column) {
       this.columnFamily_column = columnFamily_column;
-      this.__isset.columnFamily_column = true;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+    }
+
+    public void unsetColumnFamily_column() {
+      this.__isset.columnFamily_column = false;
+    }
+
+    // Returns true if field columnFamily_column is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnFamily_column() {
+      return this.__isset.columnFamily_column;
+    }
+
+    public void setColumnFamily_columnIsSet(boolean value) {
+      this.__isset.columnFamily_column = value;
+    }
+
+    public int getStart() {
+      return this.start;
+    }
+
+    public void setStart(int start) {
       this.start = start;
       this.__isset.start = true;
+    }
+
+    public void unsetStart() {
+      this.__isset.start = false;
+    }
+
+    // Returns true if field start is set (has been asigned a value) and false otherwise
+    public boolean isSetStart() {
+      return this.__isset.start;
+    }
+
+    public void setStartIsSet(boolean value) {
+      this.__isset.start = value;
+    }
+
+    public int getCount() {
+      return this.count;
+    }
+
+    public void setCount(int count) {
       this.count = count;
       this.__isset.count = true;
     }
 
+    public void unsetCount() {
+      this.__isset.count = false;
+    }
+
+    // Returns true if field count is set (has been asigned a value) and false otherwise
+    public boolean isSetCount() {
+      return this.__isset.count;
+    }
+
+    public void setCountIsSet(boolean value) {
+      this.__isset.count = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case TABLENAME:
+        setTablename((String)value);
+        break;
+
+      case KEY:
+        setKey((String)value);
+        break;
+
+      case COLUMNFAMILY_COLUMN:
+        setColumnFamily_column((String)value);
+        break;
+
+      case START:
+        setStart((Integer)value);
+        break;
+
+      case COUNT:
+        setCount((Integer)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return getTablename();
+
+      case KEY:
+        return getKey();
+
+      case COLUMNFAMILY_COLUMN:
+        return getColumnFamily_column();
+
+      case START:
+        return new Integer(getStart());
+
+      case COUNT:
+        return new Integer(getCount());
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return this.__isset.tablename;
+      case KEY:
+        return this.__isset.key;
+      case COLUMNFAMILY_COLUMN:
+        return this.__isset.columnFamily_column;
+      case START:
+        return this.__isset.start;
+      case COUNT:
+        return this.__isset.count;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -1183,6 +1419,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -1198,7 +1435,7 @@
         }
         switch (field.id)
         {
-          case -1:
+          case TABLENAME:
             if (field.type == TType.STRING) {
               this.tablename = iprot.readString();
               this.__isset.tablename = true;
@@ -1206,7 +1443,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -2:
+          case KEY:
             if (field.type == TType.STRING) {
               this.key = iprot.readString();
               this.__isset.key = true;
@@ -1214,7 +1451,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -3:
+          case COLUMNFAMILY_COLUMN:
             if (field.type == TType.STRING) {
               this.columnFamily_column = iprot.readString();
               this.__isset.columnFamily_column = true;
@@ -1222,7 +1459,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -4:
+          case START:
             if (field.type == TType.I32) {
               this.start = iprot.readI32();
               this.__isset.start = true;
@@ -1230,7 +1467,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -5:
+          case COUNT:
             if (field.type == TType.I32) {
               this.count = iprot.readI32();
               this.__isset.count = true;
@@ -1245,80 +1482,105 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_slice_args");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
       if (this.tablename != null) {
-        field.name = "tablename";
-        field.type = TType.STRING;
-        field.id = -1;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
         oprot.writeString(this.tablename);
         oprot.writeFieldEnd();
       }
       if (this.key != null) {
-        field.name = "key";
-        field.type = TType.STRING;
-        field.id = -2;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(KEY_FIELD_DESC);
         oprot.writeString(this.key);
         oprot.writeFieldEnd();
       }
       if (this.columnFamily_column != null) {
-        field.name = "columnFamily_column";
-        field.type = TType.STRING;
-        field.id = -3;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_FAMILY_COLUMN_FIELD_DESC);
         oprot.writeString(this.columnFamily_column);
         oprot.writeFieldEnd();
       }
-      field.name = "start";
-      field.type = TType.I32;
-      field.id = -4;
-      oprot.writeFieldBegin(field);
+      oprot.writeFieldBegin(START_FIELD_DESC);
       oprot.writeI32(this.start);
       oprot.writeFieldEnd();
-      field.name = "count";
-      field.type = TType.I32;
-      field.id = -5;
-      oprot.writeFieldBegin(field);
+      oprot.writeFieldBegin(COUNT_FIELD_DESC);
       oprot.writeI32(this.count);
       oprot.writeFieldEnd();
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_slice_args(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("tablename:");
       sb.append(this.tablename);
-      sb.append(",key:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("key:");
       sb.append(this.key);
-      sb.append(",columnFamily_column:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("columnFamily_column:");
       sb.append(this.columnFamily_column);
-      sb.append(",start:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("start:");
       sb.append(this.start);
-      sb.append(",count:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("count:");
       sb.append(this.count);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_slice_result implements TBase, java.io.Serializable   {
+  public static class get_slice_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_slice_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
+    private static final TField E_FIELD_DESC = new TField("e", TType.STRUCT, (short)1);
+
     public List<column_t> success;
+    public static final int SUCCESS = 0;
     public CassandraException e;
+    public static final int E = 1;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean success = false;
       public boolean e = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
+          new ListMetaData(TType.LIST, 
+              new StructMetaData(TType.STRUCT, column_t.class))));
+      put(E, new FieldMetaData("e", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_slice_result.class, metaDataMap);
+    }
+
     public get_slice_result() {
     }
 
@@ -1328,11 +1590,137 @@
     {
       this();
       this.success = success;
+      this.__isset.success = (success != null);
+      this.e = e;
+      this.__isset.e = (e != null);
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_slice_result(get_slice_result other) {
+      __isset.success = other.__isset.success;
+      if (other.success != null) {
+        List<column_t> __this__success = new ArrayList<column_t>();
+        for (column_t other_element : other.success) {
+          __this__success.add(new column_t(other_element));
+        }
+        this.success = __this__success;
+      }
+      __isset.e = other.__isset.e;
+      if (other.e != null) {
+        this.e = new CassandraException(other.e);
+      }
+    }
+
+    @Override
+    public get_slice_result clone() {
+      return new get_slice_result(this);
+    }
+
+    public int getSuccessSize() {
+      return (this.success == null) ? 0 : this.success.size();
+    }
+
+    public java.util.Iterator<column_t> getSuccessIterator() {
+      return (this.success == null) ? null : this.success.iterator();
+    }
+
+    public void addToSuccess(column_t elem) {
+      if (this.success == null) {
+        this.success = new ArrayList<column_t>();
+      }
+      this.success.add(elem);
       this.__isset.success = true;
+    }
+
+    public List<column_t> getSuccess() {
+      return this.success;
+    }
+
+    public void setSuccess(List<column_t> success) {
+      this.success = success;
+      this.__isset.success = (success != null);
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+      this.__isset.success = false;
+    }
+
+    // Returns true if field success is set (has been asigned a value) and false otherwise
+    public boolean isSetSuccess() {
+      return this.__isset.success;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      this.__isset.success = value;
+    }
+
+    public CassandraException getE() {
+      return this.e;
+    }
+
+    public void setE(CassandraException e) {
       this.e = e;
-      this.__isset.e = true;
+      this.__isset.e = (e != null);
     }
 
+    public void unsetE() {
+      this.e = null;
+      this.__isset.e = false;
+    }
+
+    // Returns true if field e is set (has been asigned a value) and false otherwise
+    public boolean isSetE() {
+      return this.__isset.e;
+    }
+
+    public void setEIsSet(boolean value) {
+      this.__isset.e = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case SUCCESS:
+        setSuccess((List<column_t>)value);
+        break;
+
+      case E:
+        setE((CassandraException)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return getSuccess();
+
+      case E:
+        return getE();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return this.__isset.success;
+      case E:
+        return this.__isset.e;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -1366,6 +1754,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -1381,14 +1770,14 @@
         }
         switch (field.id)
         {
-          case 0:
+          case SUCCESS:
             if (field.type == TType.LIST) {
               {
                 TList _list49 = iprot.readListBegin();
                 this.success = new ArrayList<column_t>(_list49.size);
                 for (int _i50 = 0; _i50 < _list49.size; ++_i50)
                 {
-                  column_t _elem51 = new column_t();
+                  column_t _elem51;
                   _elem51 = new column_t();
                   _elem51.read(iprot);
                   this.success.add(_elem51);
@@ -1400,7 +1789,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 1:
+          case E:
             if (field.type == TType.STRUCT) {
               this.e = new CassandraException();
               this.e.read(iprot);
@@ -1416,19 +1805,18 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_slice_result");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      oprot.writeStructBegin(STRUCT_DESC);
 
       if (this.__isset.success) {
         if (this.success != null) {
-          field.name = "success";
-          field.type = TType.LIST;
-          field.id = 0;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
           {
             oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
             for (column_t _iter52 : this.success)            {
@@ -1440,10 +1828,7 @@
         }
       } else if (this.__isset.e) {
         if (this.e != null) {
-          field.name = "e";
-          field.type = TType.STRUCT;
-          field.id = 1;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(E_FIELD_DESC);
           this.e.write(oprot);
           oprot.writeFieldEnd();
         }
@@ -1452,32 +1837,70 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_slice_result(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("success:");
       sb.append(this.success);
-      sb.append(",e:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("e:");
       sb.append(this.e);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_slice_by_names_args implements TBase, java.io.Serializable   {
+  public static class get_slice_by_names_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_slice_by_names_args");
+    private static final TField TABLENAME_FIELD_DESC = new TField("tablename", TType.STRING, (short)-1);
+    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)-2);
+    private static final TField COLUMN_FAMILY_FIELD_DESC = new TField("columnFamily", TType.STRING, (short)-3);
+    private static final TField COLUMN_NAMES_FIELD_DESC = new TField("columnNames", TType.LIST, (short)-4);
+
     public String tablename;
+    public static final int TABLENAME = -1;
     public String key;
+    public static final int KEY = -2;
     public String columnFamily;
+    public static final int COLUMNFAMILY = -3;
     public List<String> columnNames;
+    public static final int COLUMNNAMES = -4;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean tablename = false;
       public boolean key = false;
       public boolean columnFamily = false;
       public boolean columnNames = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(TABLENAME, new FieldMetaData("tablename", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNFAMILY, new FieldMetaData("columnFamily", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNNAMES, new FieldMetaData("columnNames", TFieldRequirementType.DEFAULT, 
+          new ListMetaData(TType.LIST, 
+              new FieldValueMetaData(TType.STRING))));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_slice_by_names_args.class, metaDataMap);
+    }
+
     public get_slice_by_names_args() {
     }
 
@@ -1489,15 +1912,210 @@
     {
       this();
       this.tablename = tablename;
-      this.__isset.tablename = true;
+      this.__isset.tablename = (tablename != null);
       this.key = key;
-      this.__isset.key = true;
+      this.__isset.key = (key != null);
       this.columnFamily = columnFamily;
-      this.__isset.columnFamily = true;
+      this.__isset.columnFamily = (columnFamily != null);
       this.columnNames = columnNames;
+      this.__isset.columnNames = (columnNames != null);
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_slice_by_names_args(get_slice_by_names_args other) {
+      __isset.tablename = other.__isset.tablename;
+      if (other.tablename != null) {
+        this.tablename = other.tablename;
+      }
+      __isset.key = other.__isset.key;
+      if (other.key != null) {
+        this.key = other.key;
+      }
+      __isset.columnFamily = other.__isset.columnFamily;
+      if (other.columnFamily != null) {
+        this.columnFamily = other.columnFamily;
+      }
+      __isset.columnNames = other.__isset.columnNames;
+      if (other.columnNames != null) {
+        List<String> __this__columnNames = new ArrayList<String>();
+        for (String other_element : other.columnNames) {
+          __this__columnNames.add(other_element);
+        }
+        this.columnNames = __this__columnNames;
+      }
+    }
+
+    @Override
+    public get_slice_by_names_args clone() {
+      return new get_slice_by_names_args(this);
+    }
+
+    public String getTablename() {
+      return this.tablename;
+    }
+
+    public void setTablename(String tablename) {
+      this.tablename = tablename;
+      this.__isset.tablename = (tablename != null);
+    }
+
+    public void unsetTablename() {
+      this.__isset.tablename = false;
+    }
+
+    // Returns true if field tablename is set (has been asigned a value) and false otherwise
+    public boolean isSetTablename() {
+      return this.__isset.tablename;
+    }
+
+    public void setTablenameIsSet(boolean value) {
+      this.__isset.tablename = value;
+    }
+
+    public String getKey() {
+      return this.key;
+    }
+
+    public void setKey(String key) {
+      this.key = key;
+      this.__isset.key = (key != null);
+    }
+
+    public void unsetKey() {
+      this.__isset.key = false;
+    }
+
+    // Returns true if field key is set (has been asigned a value) and false otherwise
+    public boolean isSetKey() {
+      return this.__isset.key;
+    }
+
+    public void setKeyIsSet(boolean value) {
+      this.__isset.key = value;
+    }
+
+    public String getColumnFamily() {
+      return this.columnFamily;
+    }
+
+    public void setColumnFamily(String columnFamily) {
+      this.columnFamily = columnFamily;
+      this.__isset.columnFamily = (columnFamily != null);
+    }
+
+    public void unsetColumnFamily() {
+      this.__isset.columnFamily = false;
+    }
+
+    // Returns true if field columnFamily is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnFamily() {
+      return this.__isset.columnFamily;
+    }
+
+    public void setColumnFamilyIsSet(boolean value) {
+      this.__isset.columnFamily = value;
+    }
+
+    public int getColumnNamesSize() {
+      return (this.columnNames == null) ? 0 : this.columnNames.size();
+    }
+
+    public java.util.Iterator<String> getColumnNamesIterator() {
+      return (this.columnNames == null) ? null : this.columnNames.iterator();
+    }
+
+    public void addToColumnNames(String elem) {
+      if (this.columnNames == null) {
+        this.columnNames = new ArrayList<String>();
+      }
+      this.columnNames.add(elem);
       this.__isset.columnNames = true;
     }
 
+    public List<String> getColumnNames() {
+      return this.columnNames;
+    }
+
+    public void setColumnNames(List<String> columnNames) {
+      this.columnNames = columnNames;
+      this.__isset.columnNames = (columnNames != null);
+    }
+
+    public void unsetColumnNames() {
+      this.columnNames = null;
+      this.__isset.columnNames = false;
+    }
+
+    // Returns true if field columnNames is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnNames() {
+      return this.__isset.columnNames;
+    }
+
+    public void setColumnNamesIsSet(boolean value) {
+      this.__isset.columnNames = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case TABLENAME:
+        setTablename((String)value);
+        break;
+
+      case KEY:
+        setKey((String)value);
+        break;
+
+      case COLUMNFAMILY:
+        setColumnFamily((String)value);
+        break;
+
+      case COLUMNNAMES:
+        setColumnNames((List<String>)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return getTablename();
+
+      case KEY:
+        return getKey();
+
+      case COLUMNFAMILY:
+        return getColumnFamily();
+
+      case COLUMNNAMES:
+        return getColumnNames();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return this.__isset.tablename;
+      case KEY:
+        return this.__isset.key;
+      case COLUMNFAMILY:
+        return this.__isset.columnFamily;
+      case COLUMNNAMES:
+        return this.__isset.columnNames;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -1549,6 +2167,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -1564,7 +2183,7 @@
         }
         switch (field.id)
         {
-          case -1:
+          case TABLENAME:
             if (field.type == TType.STRING) {
               this.tablename = iprot.readString();
               this.__isset.tablename = true;
@@ -1572,7 +2191,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -2:
+          case KEY:
             if (field.type == TType.STRING) {
               this.key = iprot.readString();
               this.__isset.key = true;
@@ -1580,7 +2199,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -3:
+          case COLUMNFAMILY:
             if (field.type == TType.STRING) {
               this.columnFamily = iprot.readString();
               this.__isset.columnFamily = true;
@@ -1588,14 +2207,14 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -4:
+          case COLUMNNAMES:
             if (field.type == TType.LIST) {
               {
                 TList _list53 = iprot.readListBegin();
                 this.columnNames = new ArrayList<String>(_list53.size);
                 for (int _i54 = 0; _i54 < _list53.size; ++_i54)
                 {
-                  String _elem55 = null;
+                  String _elem55;
                   _elem55 = iprot.readString();
                   this.columnNames.add(_elem55);
                 }
@@ -1613,41 +2232,33 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_slice_by_names_args");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
       if (this.tablename != null) {
-        field.name = "tablename";
-        field.type = TType.STRING;
-        field.id = -1;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
         oprot.writeString(this.tablename);
         oprot.writeFieldEnd();
       }
       if (this.key != null) {
-        field.name = "key";
-        field.type = TType.STRING;
-        field.id = -2;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(KEY_FIELD_DESC);
         oprot.writeString(this.key);
         oprot.writeFieldEnd();
       }
       if (this.columnFamily != null) {
-        field.name = "columnFamily";
-        field.type = TType.STRING;
-        field.id = -3;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_FAMILY_FIELD_DESC);
         oprot.writeString(this.columnFamily);
         oprot.writeFieldEnd();
       }
       if (this.columnNames != null) {
-        field.name = "columnNames";
-        field.type = TType.LIST;
-        field.id = -4;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_NAMES_FIELD_DESC);
         {
           oprot.writeListBegin(new TList(TType.STRING, this.columnNames.size()));
           for (String _iter56 : this.columnNames)          {
@@ -1661,32 +2272,66 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_slice_by_names_args(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("tablename:");
       sb.append(this.tablename);
-      sb.append(",key:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("key:");
       sb.append(this.key);
-      sb.append(",columnFamily:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("columnFamily:");
       sb.append(this.columnFamily);
-      sb.append(",columnNames:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("columnNames:");
       sb.append(this.columnNames);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_slice_by_names_result implements TBase, java.io.Serializable   {
+  public static class get_slice_by_names_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_slice_by_names_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
+    private static final TField E_FIELD_DESC = new TField("e", TType.STRUCT, (short)1);
+
     public List<column_t> success;
+    public static final int SUCCESS = 0;
     public CassandraException e;
+    public static final int E = 1;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean success = false;
       public boolean e = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
+          new ListMetaData(TType.LIST, 
+              new StructMetaData(TType.STRUCT, column_t.class))));
+      put(E, new FieldMetaData("e", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_slice_by_names_result.class, metaDataMap);
+    }
+
     public get_slice_by_names_result() {
     }
 
@@ -1696,21 +2341,147 @@
     {
       this();
       this.success = success;
-      this.__isset.success = true;
+      this.__isset.success = (success != null);
       this.e = e;
-      this.__isset.e = true;
+      this.__isset.e = (e != null);
     }
 
-    public boolean equals(Object that) {
-      if (that == null)
-        return false;
-      if (that instanceof get_slice_by_names_result)
-        return this.equals((get_slice_by_names_result)that);
-      return false;
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_slice_by_names_result(get_slice_by_names_result other) {
+      __isset.success = other.__isset.success;
+      if (other.success != null) {
+        List<column_t> __this__success = new ArrayList<column_t>();
+        for (column_t other_element : other.success) {
+          __this__success.add(new column_t(other_element));
+        }
+        this.success = __this__success;
+      }
+      __isset.e = other.__isset.e;
+      if (other.e != null) {
+        this.e = new CassandraException(other.e);
+      }
     }
 
-    public boolean equals(get_slice_by_names_result that) {
-      if (that == null)
+    @Override
+    public get_slice_by_names_result clone() {
+      return new get_slice_by_names_result(this);
+    }
+
+    public int getSuccessSize() {
+      return (this.success == null) ? 0 : this.success.size();
+    }
+
+    public java.util.Iterator<column_t> getSuccessIterator() {
+      return (this.success == null) ? null : this.success.iterator();
+    }
+
+    public void addToSuccess(column_t elem) {
+      if (this.success == null) {
+        this.success = new ArrayList<column_t>();
+      }
+      this.success.add(elem);
+      this.__isset.success = true;
+    }
+
+    public List<column_t> getSuccess() {
+      return this.success;
+    }
+
+    public void setSuccess(List<column_t> success) {
+      this.success = success;
+      this.__isset.success = (success != null);
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+      this.__isset.success = false;
+    }
+
+    // Returns true if field success is set (has been asigned a value) and false otherwise
+    public boolean isSetSuccess() {
+      return this.__isset.success;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      this.__isset.success = value;
+    }
+
+    public CassandraException getE() {
+      return this.e;
+    }
+
+    public void setE(CassandraException e) {
+      this.e = e;
+      this.__isset.e = (e != null);
+    }
+
+    public void unsetE() {
+      this.e = null;
+      this.__isset.e = false;
+    }
+
+    // Returns true if field e is set (has been asigned a value) and false otherwise
+    public boolean isSetE() {
+      return this.__isset.e;
+    }
+
+    public void setEIsSet(boolean value) {
+      this.__isset.e = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case SUCCESS:
+        setSuccess((List<column_t>)value);
+        break;
+
+      case E:
+        setE((CassandraException)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return getSuccess();
+
+      case E:
+        return getE();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return this.__isset.success;
+      case E:
+        return this.__isset.e;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof get_slice_by_names_result)
+        return this.equals((get_slice_by_names_result)that);
+      return false;
+    }
+
+    public boolean equals(get_slice_by_names_result that) {
+      if (that == null)
         return false;
 
       boolean this_present_success = true && (this.success != null);
@@ -1734,6 +2505,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -1749,14 +2521,14 @@
         }
         switch (field.id)
         {
-          case 0:
+          case SUCCESS:
             if (field.type == TType.LIST) {
               {
                 TList _list57 = iprot.readListBegin();
                 this.success = new ArrayList<column_t>(_list57.size);
                 for (int _i58 = 0; _i58 < _list57.size; ++_i58)
                 {
-                  column_t _elem59 = new column_t();
+                  column_t _elem59;
                   _elem59 = new column_t();
                   _elem59.read(iprot);
                   this.success.add(_elem59);
@@ -1768,7 +2540,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 1:
+          case E:
             if (field.type == TType.STRUCT) {
               this.e = new CassandraException();
               this.e.read(iprot);
@@ -1784,19 +2556,18 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_slice_by_names_result");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      oprot.writeStructBegin(STRUCT_DESC);
 
       if (this.__isset.success) {
         if (this.success != null) {
-          field.name = "success";
-          field.type = TType.LIST;
-          field.id = 0;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
           {
             oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
             for (column_t _iter60 : this.success)            {
@@ -1808,10 +2579,7 @@
         }
       } else if (this.__isset.e) {
         if (this.e != null) {
-          field.name = "e";
-          field.type = TType.STRUCT;
-          field.id = 1;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(E_FIELD_DESC);
           this.e.write(oprot);
           oprot.writeFieldEnd();
         }
@@ -1820,30 +2588,63 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_slice_by_names_result(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("success:");
       sb.append(this.success);
-      sb.append(",e:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("e:");
       sb.append(this.e);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_column_args implements TBase, java.io.Serializable   {
+  public static class get_column_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_column_args");
+    private static final TField TABLENAME_FIELD_DESC = new TField("tablename", TType.STRING, (short)-1);
+    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)-2);
+    private static final TField COLUMN_FAMILY_COLUMN_FIELD_DESC = new TField("columnFamily_column", TType.STRING, (short)-3);
+
     public String tablename;
+    public static final int TABLENAME = -1;
     public String key;
+    public static final int KEY = -2;
     public String columnFamily_column;
+    public static final int COLUMNFAMILY_COLUMN = -3;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean tablename = false;
       public boolean key = false;
       public boolean columnFamily_column = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(TABLENAME, new FieldMetaData("tablename", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNFAMILY_COLUMN, new FieldMetaData("columnFamily_column", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_column_args.class, metaDataMap);
+    }
+
     public get_column_args() {
     }
 
@@ -1854,13 +2655,152 @@
     {
       this();
       this.tablename = tablename;
-      this.__isset.tablename = true;
+      this.__isset.tablename = (tablename != null);
       this.key = key;
-      this.__isset.key = true;
+      this.__isset.key = (key != null);
       this.columnFamily_column = columnFamily_column;
-      this.__isset.columnFamily_column = true;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
     }
 
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_column_args(get_column_args other) {
+      __isset.tablename = other.__isset.tablename;
+      if (other.tablename != null) {
+        this.tablename = other.tablename;
+      }
+      __isset.key = other.__isset.key;
+      if (other.key != null) {
+        this.key = other.key;
+      }
+      __isset.columnFamily_column = other.__isset.columnFamily_column;
+      if (other.columnFamily_column != null) {
+        this.columnFamily_column = other.columnFamily_column;
+      }
+    }
+
+    @Override
+    public get_column_args clone() {
+      return new get_column_args(this);
+    }
+
+    public String getTablename() {
+      return this.tablename;
+    }
+
+    public void setTablename(String tablename) {
+      this.tablename = tablename;
+      this.__isset.tablename = (tablename != null);
+    }
+
+    public void unsetTablename() {
+      this.__isset.tablename = false;
+    }
+
+    // Returns true if field tablename is set (has been asigned a value) and false otherwise
+    public boolean isSetTablename() {
+      return this.__isset.tablename;
+    }
+
+    public void setTablenameIsSet(boolean value) {
+      this.__isset.tablename = value;
+    }
+
+    public String getKey() {
+      return this.key;
+    }
+
+    public void setKey(String key) {
+      this.key = key;
+      this.__isset.key = (key != null);
+    }
+
+    public void unsetKey() {
+      this.__isset.key = false;
+    }
+
+    // Returns true if field key is set (has been asigned a value) and false otherwise
+    public boolean isSetKey() {
+      return this.__isset.key;
+    }
+
+    public void setKeyIsSet(boolean value) {
+      this.__isset.key = value;
+    }
+
+    public String getColumnFamily_column() {
+      return this.columnFamily_column;
+    }
+
+    public void setColumnFamily_column(String columnFamily_column) {
+      this.columnFamily_column = columnFamily_column;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+    }
+
+    public void unsetColumnFamily_column() {
+      this.__isset.columnFamily_column = false;
+    }
+
+    // Returns true if field columnFamily_column is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnFamily_column() {
+      return this.__isset.columnFamily_column;
+    }
+
+    public void setColumnFamily_columnIsSet(boolean value) {
+      this.__isset.columnFamily_column = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case TABLENAME:
+        setTablename((String)value);
+        break;
+
+      case KEY:
+        setKey((String)value);
+        break;
+
+      case COLUMNFAMILY_COLUMN:
+        setColumnFamily_column((String)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return getTablename();
+
+      case KEY:
+        return getKey();
+
+      case COLUMNFAMILY_COLUMN:
+        return getColumnFamily_column();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return this.__isset.tablename;
+      case KEY:
+        return this.__isset.key;
+      case COLUMNFAMILY_COLUMN:
+        return this.__isset.columnFamily_column;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -1903,6 +2843,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -1918,7 +2859,7 @@
         }
         switch (field.id)
         {
-          case -1:
+          case TABLENAME:
             if (field.type == TType.STRING) {
               this.tablename = iprot.readString();
               this.__isset.tablename = true;
@@ -1926,7 +2867,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -2:
+          case KEY:
             if (field.type == TType.STRING) {
               this.key = iprot.readString();
               this.__isset.key = true;
@@ -1934,7 +2875,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -3:
+          case COLUMNFAMILY_COLUMN:
             if (field.type == TType.STRING) {
               this.columnFamily_column = iprot.readString();
               this.__isset.columnFamily_column = true;
@@ -1949,33 +2890,28 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_column_args");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
       if (this.tablename != null) {
-        field.name = "tablename";
-        field.type = TType.STRING;
-        field.id = -1;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
         oprot.writeString(this.tablename);
         oprot.writeFieldEnd();
       }
       if (this.key != null) {
-        field.name = "key";
-        field.type = TType.STRING;
-        field.id = -2;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(KEY_FIELD_DESC);
         oprot.writeString(this.key);
         oprot.writeFieldEnd();
       }
       if (this.columnFamily_column != null) {
-        field.name = "columnFamily_column";
-        field.type = TType.STRING;
-        field.id = -3;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_FAMILY_COLUMN_FIELD_DESC);
         oprot.writeString(this.columnFamily_column);
         oprot.writeFieldEnd();
       }
@@ -1983,30 +2919,61 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_column_args(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("tablename:");
       sb.append(this.tablename);
-      sb.append(",key:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("key:");
       sb.append(this.key);
-      sb.append(",columnFamily_column:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("columnFamily_column:");
       sb.append(this.columnFamily_column);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_column_result implements TBase, java.io.Serializable   {
+  public static class get_column_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_column_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
+    private static final TField E_FIELD_DESC = new TField("e", TType.STRUCT, (short)1);
+
     public column_t success;
+    public static final int SUCCESS = 0;
     public CassandraException e;
+    public static final int E = 1;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean success = false;
       public boolean e = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
+          new StructMetaData(TType.STRUCT, column_t.class)));
+      put(E, new FieldMetaData("e", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_column_result.class, metaDataMap);
+    }
+
     public get_column_result() {
     }
 
@@ -2016,11 +2983,117 @@
     {
       this();
       this.success = success;
-      this.__isset.success = true;
+      this.__isset.success = (success != null);
+      this.e = e;
+      this.__isset.e = (e != null);
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_column_result(get_column_result other) {
+      __isset.success = other.__isset.success;
+      if (other.success != null) {
+        this.success = new column_t(other.success);
+      }
+      __isset.e = other.__isset.e;
+      if (other.e != null) {
+        this.e = new CassandraException(other.e);
+      }
+    }
+
+    @Override
+    public get_column_result clone() {
+      return new get_column_result(this);
+    }
+
+    public column_t getSuccess() {
+      return this.success;
+    }
+
+    public void setSuccess(column_t success) {
+      this.success = success;
+      this.__isset.success = (success != null);
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+      this.__isset.success = false;
+    }
+
+    // Returns true if field success is set (has been asigned a value) and false otherwise
+    public boolean isSetSuccess() {
+      return this.__isset.success;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      this.__isset.success = value;
+    }
+
+    public CassandraException getE() {
+      return this.e;
+    }
+
+    public void setE(CassandraException e) {
       this.e = e;
-      this.__isset.e = true;
+      this.__isset.e = (e != null);
+    }
+
+    public void unsetE() {
+      this.e = null;
+      this.__isset.e = false;
+    }
+
+    // Returns true if field e is set (has been asigned a value) and false otherwise
+    public boolean isSetE() {
+      return this.__isset.e;
+    }
+
+    public void setEIsSet(boolean value) {
+      this.__isset.e = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case SUCCESS:
+        setSuccess((column_t)value);
+        break;
+
+      case E:
+        setE((CassandraException)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return getSuccess();
+
+      case E:
+        return getE();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return this.__isset.success;
+      case E:
+        return this.__isset.e;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
     }
 
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -2054,6 +3127,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -2069,7 +3143,7 @@
         }
         switch (field.id)
         {
-          case 0:
+          case SUCCESS:
             if (field.type == TType.STRUCT) {
               this.success = new column_t();
               this.success.read(iprot);
@@ -2078,7 +3152,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 1:
+          case E:
             if (field.type == TType.STRUCT) {
               this.e = new CassandraException();
               this.e.read(iprot);
@@ -2094,28 +3168,24 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_column_result");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      oprot.writeStructBegin(STRUCT_DESC);
 
       if (this.__isset.success) {
         if (this.success != null) {
-          field.name = "success";
-          field.type = TType.STRUCT;
-          field.id = 0;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
           this.success.write(oprot);
           oprot.writeFieldEnd();
         }
       } else if (this.__isset.e) {
         if (this.e != null) {
-          field.name = "e";
-          field.type = TType.STRUCT;
-          field.id = 1;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(E_FIELD_DESC);
           this.e.write(oprot);
           oprot.writeFieldEnd();
         }
@@ -2124,30 +3194,63 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_column_result(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("success:");
       sb.append(this.success);
-      sb.append(",e:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("e:");
       sb.append(this.e);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_column_count_args implements TBase, java.io.Serializable   {
+  public static class get_column_count_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_column_count_args");
+    private static final TField TABLENAME_FIELD_DESC = new TField("tablename", TType.STRING, (short)-1);
+    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)-2);
+    private static final TField COLUMN_FAMILY_COLUMN_FIELD_DESC = new TField("columnFamily_column", TType.STRING, (short)-3);
+
     public String tablename;
+    public static final int TABLENAME = -1;
     public String key;
+    public static final int KEY = -2;
     public String columnFamily_column;
+    public static final int COLUMNFAMILY_COLUMN = -3;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean tablename = false;
       public boolean key = false;
       public boolean columnFamily_column = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(TABLENAME, new FieldMetaData("tablename", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNFAMILY_COLUMN, new FieldMetaData("columnFamily_column", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_column_count_args.class, metaDataMap);
+    }
+
     public get_column_count_args() {
     }
 
@@ -2158,13 +3261,152 @@
     {
       this();
       this.tablename = tablename;
-      this.__isset.tablename = true;
+      this.__isset.tablename = (tablename != null);
+      this.key = key;
+      this.__isset.key = (key != null);
+      this.columnFamily_column = columnFamily_column;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_column_count_args(get_column_count_args other) {
+      __isset.tablename = other.__isset.tablename;
+      if (other.tablename != null) {
+        this.tablename = other.tablename;
+      }
+      __isset.key = other.__isset.key;
+      if (other.key != null) {
+        this.key = other.key;
+      }
+      __isset.columnFamily_column = other.__isset.columnFamily_column;
+      if (other.columnFamily_column != null) {
+        this.columnFamily_column = other.columnFamily_column;
+      }
+    }
+
+    @Override
+    public get_column_count_args clone() {
+      return new get_column_count_args(this);
+    }
+
+    public String getTablename() {
+      return this.tablename;
+    }
+
+    public void setTablename(String tablename) {
+      this.tablename = tablename;
+      this.__isset.tablename = (tablename != null);
+    }
+
+    public void unsetTablename() {
+      this.__isset.tablename = false;
+    }
+
+    // Returns true if field tablename is set (has been asigned a value) and false otherwise
+    public boolean isSetTablename() {
+      return this.__isset.tablename;
+    }
+
+    public void setTablenameIsSet(boolean value) {
+      this.__isset.tablename = value;
+    }
+
+    public String getKey() {
+      return this.key;
+    }
+
+    public void setKey(String key) {
       this.key = key;
-      this.__isset.key = true;
+      this.__isset.key = (key != null);
+    }
+
+    public void unsetKey() {
+      this.__isset.key = false;
+    }
+
+    // Returns true if field key is set (has been asigned a value) and false otherwise
+    public boolean isSetKey() {
+      return this.__isset.key;
+    }
+
+    public void setKeyIsSet(boolean value) {
+      this.__isset.key = value;
+    }
+
+    public String getColumnFamily_column() {
+      return this.columnFamily_column;
+    }
+
+    public void setColumnFamily_column(String columnFamily_column) {
       this.columnFamily_column = columnFamily_column;
-      this.__isset.columnFamily_column = true;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+    }
+
+    public void unsetColumnFamily_column() {
+      this.__isset.columnFamily_column = false;
+    }
+
+    // Returns true if field columnFamily_column is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnFamily_column() {
+      return this.__isset.columnFamily_column;
+    }
+
+    public void setColumnFamily_columnIsSet(boolean value) {
+      this.__isset.columnFamily_column = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case TABLENAME:
+        setTablename((String)value);
+        break;
+
+      case KEY:
+        setKey((String)value);
+        break;
+
+      case COLUMNFAMILY_COLUMN:
+        setColumnFamily_column((String)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return getTablename();
+
+      case KEY:
+        return getKey();
+
+      case COLUMNFAMILY_COLUMN:
+        return getColumnFamily_column();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return this.__isset.tablename;
+      case KEY:
+        return this.__isset.key;
+      case COLUMNFAMILY_COLUMN:
+        return this.__isset.columnFamily_column;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
     }
 
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -2207,6 +3449,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -2222,7 +3465,7 @@
         }
         switch (field.id)
         {
-          case -1:
+          case TABLENAME:
             if (field.type == TType.STRING) {
               this.tablename = iprot.readString();
               this.__isset.tablename = true;
@@ -2230,7 +3473,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -2:
+          case KEY:
             if (field.type == TType.STRING) {
               this.key = iprot.readString();
               this.__isset.key = true;
@@ -2238,7 +3481,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -3:
+          case COLUMNFAMILY_COLUMN:
             if (field.type == TType.STRING) {
               this.columnFamily_column = iprot.readString();
               this.__isset.columnFamily_column = true;
@@ -2253,33 +3496,28 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_column_count_args");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
       if (this.tablename != null) {
-        field.name = "tablename";
-        field.type = TType.STRING;
-        field.id = -1;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
         oprot.writeString(this.tablename);
         oprot.writeFieldEnd();
       }
       if (this.key != null) {
-        field.name = "key";
-        field.type = TType.STRING;
-        field.id = -2;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(KEY_FIELD_DESC);
         oprot.writeString(this.key);
         oprot.writeFieldEnd();
       }
       if (this.columnFamily_column != null) {
-        field.name = "columnFamily_column";
-        field.type = TType.STRING;
-        field.id = -3;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_FAMILY_COLUMN_FIELD_DESC);
         oprot.writeString(this.columnFamily_column);
         oprot.writeFieldEnd();
       }
@@ -2287,30 +3525,61 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_column_count_args(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("tablename:");
       sb.append(this.tablename);
-      sb.append(",key:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("key:");
       sb.append(this.key);
-      sb.append(",columnFamily_column:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("columnFamily_column:");
       sb.append(this.columnFamily_column);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class get_column_count_result implements TBase, java.io.Serializable   {
+  public static class get_column_count_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_column_count_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
+    private static final TField E_FIELD_DESC = new TField("e", TType.STRUCT, (short)1);
+
     public int success;
+    public static final int SUCCESS = 0;
     public CassandraException e;
+    public static final int E = 1;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean success = false;
       public boolean e = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.I32)));
+      put(E, new FieldMetaData("e", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(get_column_count_result.class, metaDataMap);
+    }
+
     public get_column_count_result() {
     }
 
@@ -2322,19 +3591,122 @@
       this.success = success;
       this.__isset.success = true;
       this.e = e;
-      this.__isset.e = true;
+      this.__isset.e = (e != null);
     }
 
-    public boolean equals(Object that) {
-      if (that == null)
-        return false;
-      if (that instanceof get_column_count_result)
-        return this.equals((get_column_count_result)that);
-      return false;
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public get_column_count_result(get_column_count_result other) {
+      __isset.success = other.__isset.success;
+      this.success = other.success;
+      __isset.e = other.__isset.e;
+      if (other.e != null) {
+        this.e = new CassandraException(other.e);
+      }
     }
 
-    public boolean equals(get_column_count_result that) {
-      if (that == null)
+    @Override
+    public get_column_count_result clone() {
+      return new get_column_count_result(this);
+    }
+
+    public int getSuccess() {
+      return this.success;
+    }
+
+    public void setSuccess(int success) {
+      this.success = success;
+      this.__isset.success = true;
+    }
+
+    public void unsetSuccess() {
+      this.__isset.success = false;
+    }
+
+    // Returns true if field success is set (has been asigned a value) and false otherwise
+    public boolean isSetSuccess() {
+      return this.__isset.success;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      this.__isset.success = value;
+    }
+
+    public CassandraException getE() {
+      return this.e;
+    }
+
+    public void setE(CassandraException e) {
+      this.e = e;
+      this.__isset.e = (e != null);
+    }
+
+    public void unsetE() {
+      this.e = null;
+      this.__isset.e = false;
+    }
+
+    // Returns true if field e is set (has been asigned a value) and false otherwise
+    public boolean isSetE() {
+      return this.__isset.e;
+    }
+
+    public void setEIsSet(boolean value) {
+      this.__isset.e = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case SUCCESS:
+        setSuccess((Integer)value);
+        break;
+
+      case E:
+        setE((CassandraException)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return new Integer(getSuccess());
+
+      case E:
+        return getE();
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case SUCCESS:
+        return this.__isset.success;
+      case E:
+        return this.__isset.e;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof get_column_count_result)
+        return this.equals((get_column_count_result)that);
+      return false;
+    }
+
+    public boolean equals(get_column_count_result that) {
+      if (that == null)
         return false;
 
       boolean this_present_success = true;
@@ -2358,6 +3730,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -2373,7 +3746,7 @@
         }
         switch (field.id)
         {
-          case 0:
+          case SUCCESS:
             if (field.type == TType.I32) {
               this.success = iprot.readI32();
               this.__isset.success = true;
@@ -2381,7 +3754,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case 1:
+          case E:
             if (field.type == TType.STRUCT) {
               this.e = new CassandraException();
               this.e.read(iprot);
@@ -2397,26 +3770,22 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("get_column_count_result");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      oprot.writeStructBegin(STRUCT_DESC);
 
       if (this.__isset.success) {
-        field.name = "success";
-        field.type = TType.I32;
-        field.id = 0;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
         oprot.writeI32(this.success);
         oprot.writeFieldEnd();
       } else if (this.__isset.e) {
         if (this.e != null) {
-          field.name = "e";
-          field.type = TType.STRUCT;
-          field.id = 1;
-          oprot.writeFieldBegin(field);
+          oprot.writeFieldBegin(E_FIELD_DESC);
           this.e.write(oprot);
           oprot.writeFieldEnd();
         }
@@ -2425,27 +3794,51 @@
       oprot.writeStructEnd();
     }
 
+    @Override
     public String toString() {
       StringBuilder sb = new StringBuilder("get_column_count_result(");
+      boolean first = true;
+
+      if (!first) sb.append(", ");
       sb.append("success:");
       sb.append(this.success);
-      sb.append(",e:");
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("e:");
       sb.append(this.e);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
 
+    public void validate() throws TException {
+      // check for required fields
+      // check that fields of type enum have valid values
+    }
+
   }
 
-  public static class insert_args implements TBase, java.io.Serializable   {
+  public static class insert_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("insert_args");
+    private static final TField TABLENAME_FIELD_DESC = new TField("tablename", TType.STRING, (short)-1);
+    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)-2);
+    private static final TField COLUMN_FAMILY_COLUMN_FIELD_DESC = new TField("columnFamily_column", TType.STRING, (short)-3);
+    private static final TField CELL_DATA_FIELD_DESC = new TField("cellData", TType.STRING, (short)-4);
+    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)-5);
+
     public String tablename;
+    public static final int TABLENAME = -1;
     public String key;
+    public static final int KEY = -2;
     public String columnFamily_column;
+    public static final int COLUMNFAMILY_COLUMN = -3;
     public String cellData;
+    public static final int CELLDATA = -4;
     public long timestamp;
+    public static final int TIMESTAMP = -5;
 
-    public final Isset __isset = new Isset();
-    public static final class Isset implements java.io.Serializable {
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
       public boolean tablename = false;
       public boolean key = false;
       public boolean columnFamily_column = false;
@@ -2453,6 +3846,23 @@
       public boolean timestamp = false;
     }
 
+    public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(TABLENAME, new FieldMetaData("tablename", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(COLUMNFAMILY_COLUMN, new FieldMetaData("columnFamily_column", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(CELLDATA, new FieldMetaData("cellData", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
+      put(TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.I64)));
+    }});
+
+    static {
+      FieldMetaData.addStructMetaDataMap(insert_args.class, metaDataMap);
+    }
+
     public insert_args() {
     }
 
@@ -2465,17 +3875,224 @@
     {
       this();
       this.tablename = tablename;
-      this.__isset.tablename = true;
+      this.__isset.tablename = (tablename != null);
       this.key = key;
-      this.__isset.key = true;
+      this.__isset.key = (key != null);
       this.columnFamily_column = columnFamily_column;
-      this.__isset.columnFamily_column = true;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
       this.cellData = cellData;
-      this.__isset.cellData = true;
+      this.__isset.cellData = (cellData != null);
       this.timestamp = timestamp;
       this.__isset.timestamp = true;
     }
 
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public insert_args(insert_args other) {
+      __isset.tablename = other.__isset.tablename;
+      if (other.tablename != null) {
+        this.tablename = other.tablename;
+      }
+      __isset.key = other.__isset.key;
+      if (other.key != null) {
+        this.key = other.key;
+      }
+      __isset.columnFamily_column = other.__isset.columnFamily_column;
+      if (other.columnFamily_column != null) {
+        this.columnFamily_column = other.columnFamily_column;
+      }
+      __isset.cellData = other.__isset.cellData;
+      if (other.cellData != null) {
+        this.cellData = other.cellData;
+      }
+      __isset.timestamp = other.__isset.timestamp;
+      this.timestamp = other.timestamp;
+    }
+
+    @Override
+    public insert_args clone() {
+      return new insert_args(this);
+    }
+
+    public String getTablename() {
+      return this.tablename;
+    }
+
+    public void setTablename(String tablename) {
+      this.tablename = tablename;
+      this.__isset.tablename = (tablename != null);
+    }
+
+    public void unsetTablename() {
+      this.__isset.tablename = false;
+    }
+
+    // Returns true if field tablename is set (has been asigned a value) and false otherwise
+    public boolean isSetTablename() {
+      return this.__isset.tablename;
+    }
+
+    public void setTablenameIsSet(boolean value) {
+      this.__isset.tablename = value;
+    }
+
+    public String getKey() {
+      return this.key;
+    }
+
+    public void setKey(String key) {
+      this.key = key;
+      this.__isset.key = (key != null);
+    }
+
+    public void unsetKey() {
+      this.__isset.key = false;
+    }
+
+    // Returns true if field key is set (has been asigned a value) and false otherwise
+    public boolean isSetKey() {
+      return this.__isset.key;
+    }
+
+    public void setKeyIsSet(boolean value) {
+      this.__isset.key = value;
+    }
+
+    public String getColumnFamily_column() {
+      return this.columnFamily_column;
+    }
+
+    public void setColumnFamily_column(String columnFamily_column) {
+      this.columnFamily_column = columnFamily_column;
+      this.__isset.columnFamily_column = (columnFamily_column != null);
+    }
+
+    public void unsetColumnFamily_column() {
+      this.__isset.columnFamily_column = false;
+    }
+
+    // Returns true if field columnFamily_column is set (has been asigned a value) and false otherwise
+    public boolean isSetColumnFamily_column() {
+      return this.__isset.columnFamily_column;
+    }
+
+    public void setColumnFamily_columnIsSet(boolean value) {
+      this.__isset.columnFamily_column = value;
+    }
+
+    public String getCellData() {
+      return this.cellData;
+    }
+
+    public void setCellData(String cellData) {
+      this.cellData = cellData;
+      this.__isset.cellData = (cellData != null);
+    }
+
+    public void unsetCellData() {
+      this.__isset.cellData = false;
+    }
+
+    // Returns true if field cellData is set (has been asigned a value) and false otherwise
+    public boolean isSetCellData() {
+      return this.__isset.cellData;
+    }
+
+    public void setCellDataIsSet(boolean value) {
+      this.__isset.cellData = value;
+    }
+
+    public long getTimestamp() {
+      return this.timestamp;
+    }
+
+    public void setTimestamp(long timestamp) {
+      this.timestamp = timestamp;
+      this.__isset.timestamp = true;
+    }
+
+    public void unsetTimestamp() {
+      this.__isset.timestamp = false;
+    }
+
+    // Returns true if field timestamp is set (has been asigned a value) and false otherwise
+    public boolean isSetTimestamp() {
+      return this.__isset.timestamp;
+    }
+
+    public void setTimestampIsSet(boolean value) {
+      this.__isset.timestamp = value;
+    }
+
+    public void setFieldValue(int fieldID, Object value) {
+      switch (fieldID) {
+      case TABLENAME:
+        setTablename((String)value);
+        break;
+
+      case KEY:
+        setKey((String)value);
+        break;
+
+      case COLUMNFAMILY_COLUMN:
+        setColumnFamily_column((String)value);
+        break;
+
+      case CELLDATA:
+        setCellData((String)value);
+        break;
+
+      case TIMESTAMP:
+        setTimestamp((Long)value);
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    public Object getFieldValue(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return getTablename();
+
+      case KEY:
+        return getKey();
+
+      case COLUMNFAMILY_COLUMN:
+        return getColumnFamily_column();
+
+      case CELLDATA:
+        return getCellData();
+
+      case TIMESTAMP:
+        return new Long(getTimestamp());
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
+    public boolean isSet(int fieldID) {
+      switch (fieldID) {
+      case TABLENAME:
+        return this.__isset.tablename;
+      case KEY:
+        return this.__isset.key;
+      case COLUMNFAMILY_COLUMN:
+        return this.__isset.columnFamily_column;
+      case CELLDATA:
+        return this.__isset.cellData;
+      case TIMESTAMP:
+        return this.__isset.timestamp;
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
+
+    @Override
     public boolean equals(Object that) {
       if (that == null)
         return false;
@@ -2536,6 +4153,7 @@
       return true;
     }
 
+    @Override
     public int hashCode() {
       return 0;
     }
@@ -2551,7 +4169,7 @@
         }
         switch (field.id)
         {
-          case -1:
+          case TABLENAME:
             if (field.type == TType.STRING) {
               this.tablename = iprot.readString();
               this.__isset.tablename = true;
@@ -2559,7 +4177,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -2:
+          case KEY:
             if (field.type == TType.STRING) {
               this.key = iprot.readString();
               this.__isset.key = true;
@@ -2567,7 +4185,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -3:
+          case COLUMNFAMILY_COLUMN:
             if (field.type == TType.STRING) {
               this.columnFamily_column = iprot.readString();
               this.__isset.columnFamily_column = true;
@@ -2575,7 +4193,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -4:
+          case CELLDATA:
             if (field.type == TType.STRING) {
               this.cellData = iprot.readString();
               this.__isset.cellData = true;
@@ -2583,7 +4201,7 @@
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case -5:
+          case TIMESTAMP:
             if (field.type == TType.I64) {
               this.timestamp = iprot.readI64();
               this.__isset.timestamp = true;
@@ -2598,80 +4216,100 @@
         iprot.readFieldEnd();
       }
       iprot.readStructEnd();
+
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
     }
 
     public void write(TProtocol oprot) throws TException {
-      TStruct struct = new TStruct("insert_args");
-      oprot.writeStructBegin(struct);
-      TField field = new TField();
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
       if (this.tablename != null) {
-        field.name = "tablename";
-        field.type = TType.STRING;
-        field.id = -1;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
         oprot.writeString(this.tablename);
         oprot.writeFieldEnd();
       }
       if (this.key != null) {
-        field.name = "key";
-        field.type = TType.STRING;
-        field.id = -2;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(KEY_FIELD_DESC);
         oprot.writeString(this.key);
         oprot.writeFieldEnd();
       }
       if (this.columnFamily_column != null) {
-        field.name = "columnFamily_column";
-        field.type = TType.STRING;
-        field.id = -3;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(COLUMN_FAMILY_COLUMN_FIELD_DESC);
         oprot.writeString(this.columnFamily_column);
         oprot.writeFieldEnd();
       }
       if (this.cellData != null) {
-        field.name = "cellData";
-        field.type = TType.STRING;
-        field.id = -4;
-        oprot.writeFieldBegin(field);
+        oprot.writeFieldBegin(CELL_DATA_FIELD_DESC);
         oprot.writeString(this.cellData);
         oprot.writeFieldEnd();
       }
-      field.name = "timestamp";
-      field.type = TType.I64;
-      field.id = -5;
-      oprot.writeFieldBegin(field);
+      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
       oprot.writeI64(this.timestamp);
       oprot.writeFieldEnd();
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
 
+    @Override

[... 5813 lines stripped ...]


Mime
View raw message