accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [30/61] [abbrv] [partial] accumulo git commit: ACCUMULO-722 put trunk in my sandbox
Date Thu, 03 Mar 2016 21:59:55 GMT
http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TColumn.java
----------------------------------------------------------------------
diff --git a/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TColumn.java b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TColumn.java
new file mode 100644
index 0000000..b6cd3b5
--- /dev/null
+++ b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TColumn.java
@@ -0,0 +1,615 @@
+/**
+ * Autogenerated by Thrift Compiler (0.8.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.accumulo.core.data.thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all") public class TColumn implements org.apache.thrift.TBase<TColumn, TColumn._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn");
+
+  private static final org.apache.thrift.protocol.TField COLUMN_FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamily", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField COLUMN_QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("columnQualifier", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField COLUMN_VISIBILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("columnVisibility", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new TColumnStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new TColumnTupleSchemeFactory());
+  }
+
+  public ByteBuffer columnFamily; // required
+  public ByteBuffer columnQualifier; // required
+  public ByteBuffer columnVisibility; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    COLUMN_FAMILY((short)1, "columnFamily"),
+    COLUMN_QUALIFIER((short)2, "columnQualifier"),
+    COLUMN_VISIBILITY((short)3, "columnVisibility");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // COLUMN_FAMILY
+          return COLUMN_FAMILY;
+        case 2: // COLUMN_QUALIFIER
+          return COLUMN_QUALIFIER;
+        case 3: // COLUMN_VISIBILITY
+          return COLUMN_VISIBILITY;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.COLUMN_FAMILY, new org.apache.thrift.meta_data.FieldMetaData("columnFamily", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.COLUMN_QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("columnQualifier", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.COLUMN_VISIBILITY, new org.apache.thrift.meta_data.FieldMetaData("columnVisibility", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumn.class, metaDataMap);
+  }
+
+  public TColumn() {
+  }
+
+  public TColumn(
+    ByteBuffer columnFamily,
+    ByteBuffer columnQualifier,
+    ByteBuffer columnVisibility)
+  {
+    this();
+    this.columnFamily = columnFamily;
+    this.columnQualifier = columnQualifier;
+    this.columnVisibility = columnVisibility;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public TColumn(TColumn other) {
+    if (other.isSetColumnFamily()) {
+      this.columnFamily = org.apache.thrift.TBaseHelper.copyBinary(other.columnFamily);
+;
+    }
+    if (other.isSetColumnQualifier()) {
+      this.columnQualifier = org.apache.thrift.TBaseHelper.copyBinary(other.columnQualifier);
+;
+    }
+    if (other.isSetColumnVisibility()) {
+      this.columnVisibility = org.apache.thrift.TBaseHelper.copyBinary(other.columnVisibility);
+;
+    }
+  }
+
+  public TColumn deepCopy() {
+    return new TColumn(this);
+  }
+
+  @Override
+  public void clear() {
+    this.columnFamily = null;
+    this.columnQualifier = null;
+    this.columnVisibility = null;
+  }
+
+  public byte[] getColumnFamily() {
+    setColumnFamily(org.apache.thrift.TBaseHelper.rightSize(columnFamily));
+    return columnFamily == null ? null : columnFamily.array();
+  }
+
+  public ByteBuffer bufferForColumnFamily() {
+    return columnFamily;
+  }
+
+  public TColumn setColumnFamily(byte[] columnFamily) {
+    setColumnFamily(columnFamily == null ? (ByteBuffer)null : ByteBuffer.wrap(columnFamily));
+    return this;
+  }
+
+  public TColumn setColumnFamily(ByteBuffer columnFamily) {
+    this.columnFamily = columnFamily;
+    return this;
+  }
+
+  public void unsetColumnFamily() {
+    this.columnFamily = null;
+  }
+
+  /** Returns true if field columnFamily is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnFamily() {
+    return this.columnFamily != null;
+  }
+
+  public void setColumnFamilyIsSet(boolean value) {
+    if (!value) {
+      this.columnFamily = null;
+    }
+  }
+
+  public byte[] getColumnQualifier() {
+    setColumnQualifier(org.apache.thrift.TBaseHelper.rightSize(columnQualifier));
+    return columnQualifier == null ? null : columnQualifier.array();
+  }
+
+  public ByteBuffer bufferForColumnQualifier() {
+    return columnQualifier;
+  }
+
+  public TColumn setColumnQualifier(byte[] columnQualifier) {
+    setColumnQualifier(columnQualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(columnQualifier));
+    return this;
+  }
+
+  public TColumn setColumnQualifier(ByteBuffer columnQualifier) {
+    this.columnQualifier = columnQualifier;
+    return this;
+  }
+
+  public void unsetColumnQualifier() {
+    this.columnQualifier = null;
+  }
+
+  /** Returns true if field columnQualifier is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnQualifier() {
+    return this.columnQualifier != null;
+  }
+
+  public void setColumnQualifierIsSet(boolean value) {
+    if (!value) {
+      this.columnQualifier = null;
+    }
+  }
+
+  public byte[] getColumnVisibility() {
+    setColumnVisibility(org.apache.thrift.TBaseHelper.rightSize(columnVisibility));
+    return columnVisibility == null ? null : columnVisibility.array();
+  }
+
+  public ByteBuffer bufferForColumnVisibility() {
+    return columnVisibility;
+  }
+
+  public TColumn setColumnVisibility(byte[] columnVisibility) {
+    setColumnVisibility(columnVisibility == null ? (ByteBuffer)null : ByteBuffer.wrap(columnVisibility));
+    return this;
+  }
+
+  public TColumn setColumnVisibility(ByteBuffer columnVisibility) {
+    this.columnVisibility = columnVisibility;
+    return this;
+  }
+
+  public void unsetColumnVisibility() {
+    this.columnVisibility = null;
+  }
+
+  /** Returns true if field columnVisibility is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnVisibility() {
+    return this.columnVisibility != null;
+  }
+
+  public void setColumnVisibilityIsSet(boolean value) {
+    if (!value) {
+      this.columnVisibility = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case COLUMN_FAMILY:
+      if (value == null) {
+        unsetColumnFamily();
+      } else {
+        setColumnFamily((ByteBuffer)value);
+      }
+      break;
+
+    case COLUMN_QUALIFIER:
+      if (value == null) {
+        unsetColumnQualifier();
+      } else {
+        setColumnQualifier((ByteBuffer)value);
+      }
+      break;
+
+    case COLUMN_VISIBILITY:
+      if (value == null) {
+        unsetColumnVisibility();
+      } else {
+        setColumnVisibility((ByteBuffer)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case COLUMN_FAMILY:
+      return getColumnFamily();
+
+    case COLUMN_QUALIFIER:
+      return getColumnQualifier();
+
+    case COLUMN_VISIBILITY:
+      return getColumnVisibility();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case COLUMN_FAMILY:
+      return isSetColumnFamily();
+    case COLUMN_QUALIFIER:
+      return isSetColumnQualifier();
+    case COLUMN_VISIBILITY:
+      return isSetColumnVisibility();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof TColumn)
+      return this.equals((TColumn)that);
+    return false;
+  }
+
+  public boolean equals(TColumn that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_columnFamily = true && this.isSetColumnFamily();
+    boolean that_present_columnFamily = true && that.isSetColumnFamily();
+    if (this_present_columnFamily || that_present_columnFamily) {
+      if (!(this_present_columnFamily && that_present_columnFamily))
+        return false;
+      if (!this.columnFamily.equals(that.columnFamily))
+        return false;
+    }
+
+    boolean this_present_columnQualifier = true && this.isSetColumnQualifier();
+    boolean that_present_columnQualifier = true && that.isSetColumnQualifier();
+    if (this_present_columnQualifier || that_present_columnQualifier) {
+      if (!(this_present_columnQualifier && that_present_columnQualifier))
+        return false;
+      if (!this.columnQualifier.equals(that.columnQualifier))
+        return false;
+    }
+
+    boolean this_present_columnVisibility = true && this.isSetColumnVisibility();
+    boolean that_present_columnVisibility = true && that.isSetColumnVisibility();
+    if (this_present_columnVisibility || that_present_columnVisibility) {
+      if (!(this_present_columnVisibility && that_present_columnVisibility))
+        return false;
+      if (!this.columnVisibility.equals(that.columnVisibility))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(TColumn other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    TColumn typedOther = (TColumn)other;
+
+    lastComparison = Boolean.valueOf(isSetColumnFamily()).compareTo(typedOther.isSetColumnFamily());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnFamily()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamily, typedOther.columnFamily);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnQualifier()).compareTo(typedOther.isSetColumnQualifier());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnQualifier()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnQualifier, typedOther.columnQualifier);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnVisibility()).compareTo(typedOther.isSetColumnVisibility());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnVisibility()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnVisibility, typedOther.columnVisibility);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("TColumn(");
+    boolean first = true;
+
+    sb.append("columnFamily:");
+    if (this.columnFamily == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.columnFamily, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnQualifier:");
+    if (this.columnQualifier == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.columnQualifier, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnVisibility:");
+    if (this.columnVisibility == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.columnVisibility, sb);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class TColumnStandardSchemeFactory implements SchemeFactory {
+    public TColumnStandardScheme getScheme() {
+      return new TColumnStandardScheme();
+    }
+  }
+
+  private static class TColumnStandardScheme extends StandardScheme<TColumn> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // COLUMN_FAMILY
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.columnFamily = iprot.readBinary();
+              struct.setColumnFamilyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // COLUMN_QUALIFIER
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.columnQualifier = iprot.readBinary();
+              struct.setColumnQualifierIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // COLUMN_VISIBILITY
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.columnVisibility = iprot.readBinary();
+              struct.setColumnVisibilityIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, TColumn struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.columnFamily != null) {
+        oprot.writeFieldBegin(COLUMN_FAMILY_FIELD_DESC);
+        oprot.writeBinary(struct.columnFamily);
+        oprot.writeFieldEnd();
+      }
+      if (struct.columnQualifier != null) {
+        oprot.writeFieldBegin(COLUMN_QUALIFIER_FIELD_DESC);
+        oprot.writeBinary(struct.columnQualifier);
+        oprot.writeFieldEnd();
+      }
+      if (struct.columnVisibility != null) {
+        oprot.writeFieldBegin(COLUMN_VISIBILITY_FIELD_DESC);
+        oprot.writeBinary(struct.columnVisibility);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class TColumnTupleSchemeFactory implements SchemeFactory {
+    public TColumnTupleScheme getScheme() {
+      return new TColumnTupleScheme();
+    }
+  }
+
+  private static class TColumnTupleScheme extends TupleScheme<TColumn> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetColumnFamily()) {
+        optionals.set(0);
+      }
+      if (struct.isSetColumnQualifier()) {
+        optionals.set(1);
+      }
+      if (struct.isSetColumnVisibility()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetColumnFamily()) {
+        oprot.writeBinary(struct.columnFamily);
+      }
+      if (struct.isSetColumnQualifier()) {
+        oprot.writeBinary(struct.columnQualifier);
+      }
+      if (struct.isSetColumnVisibility()) {
+        oprot.writeBinary(struct.columnVisibility);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        struct.columnFamily = iprot.readBinary();
+        struct.setColumnFamilyIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.columnQualifier = iprot.readBinary();
+        struct.setColumnQualifierIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.columnVisibility = iprot.readBinary();
+        struct.setColumnVisibilityIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TConstraintViolationSummary.java
----------------------------------------------------------------------
diff --git a/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TConstraintViolationSummary.java b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TConstraintViolationSummary.java
new file mode 100644
index 0000000..a726729
--- /dev/null
+++ b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TConstraintViolationSummary.java
@@ -0,0 +1,675 @@
+/**
+ * Autogenerated by Thrift Compiler (0.8.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.accumulo.core.data.thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all") public class TConstraintViolationSummary implements org.apache.thrift.TBase<TConstraintViolationSummary, TConstraintViolationSummary._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TConstraintViolationSummary");
+
+  private static final org.apache.thrift.protocol.TField CONSTRAIN_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("constrainClass", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField VIOLATION_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("violationCode", org.apache.thrift.protocol.TType.I16, (short)2);
+  private static final org.apache.thrift.protocol.TField VIOLATION_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("violationDescription", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField NUMBER_OF_VIOLATING_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfViolatingMutations", org.apache.thrift.protocol.TType.I64, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new TConstraintViolationSummaryStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new TConstraintViolationSummaryTupleSchemeFactory());
+  }
+
+  public String constrainClass; // required
+  public short violationCode; // required
+  public String violationDescription; // required
+  public long numberOfViolatingMutations; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    CONSTRAIN_CLASS((short)1, "constrainClass"),
+    VIOLATION_CODE((short)2, "violationCode"),
+    VIOLATION_DESCRIPTION((short)3, "violationDescription"),
+    NUMBER_OF_VIOLATING_MUTATIONS((short)4, "numberOfViolatingMutations");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // CONSTRAIN_CLASS
+          return CONSTRAIN_CLASS;
+        case 2: // VIOLATION_CODE
+          return VIOLATION_CODE;
+        case 3: // VIOLATION_DESCRIPTION
+          return VIOLATION_DESCRIPTION;
+        case 4: // NUMBER_OF_VIOLATING_MUTATIONS
+          return NUMBER_OF_VIOLATING_MUTATIONS;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __VIOLATIONCODE_ISSET_ID = 0;
+  private static final int __NUMBEROFVIOLATINGMUTATIONS_ISSET_ID = 1;
+  private BitSet __isset_bit_vector = new BitSet(2);
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.CONSTRAIN_CLASS, new org.apache.thrift.meta_data.FieldMetaData("constrainClass", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VIOLATION_CODE, new org.apache.thrift.meta_data.FieldMetaData("violationCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
+    tmpMap.put(_Fields.VIOLATION_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("violationDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.NUMBER_OF_VIOLATING_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("numberOfViolatingMutations", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TConstraintViolationSummary.class, metaDataMap);
+  }
+
+  public TConstraintViolationSummary() {
+  }
+
+  public TConstraintViolationSummary(
+    String constrainClass,
+    short violationCode,
+    String violationDescription,
+    long numberOfViolatingMutations)
+  {
+    this();
+    this.constrainClass = constrainClass;
+    this.violationCode = violationCode;
+    setViolationCodeIsSet(true);
+    this.violationDescription = violationDescription;
+    this.numberOfViolatingMutations = numberOfViolatingMutations;
+    setNumberOfViolatingMutationsIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public TConstraintViolationSummary(TConstraintViolationSummary other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    if (other.isSetConstrainClass()) {
+      this.constrainClass = other.constrainClass;
+    }
+    this.violationCode = other.violationCode;
+    if (other.isSetViolationDescription()) {
+      this.violationDescription = other.violationDescription;
+    }
+    this.numberOfViolatingMutations = other.numberOfViolatingMutations;
+  }
+
+  public TConstraintViolationSummary deepCopy() {
+    return new TConstraintViolationSummary(this);
+  }
+
+  @Override
+  public void clear() {
+    this.constrainClass = null;
+    setViolationCodeIsSet(false);
+    this.violationCode = 0;
+    this.violationDescription = null;
+    setNumberOfViolatingMutationsIsSet(false);
+    this.numberOfViolatingMutations = 0;
+  }
+
+  public String getConstrainClass() {
+    return this.constrainClass;
+  }
+
+  public TConstraintViolationSummary setConstrainClass(String constrainClass) {
+    this.constrainClass = constrainClass;
+    return this;
+  }
+
+  public void unsetConstrainClass() {
+    this.constrainClass = null;
+  }
+
+  /** Returns true if field constrainClass is set (has been assigned a value) and false otherwise */
+  public boolean isSetConstrainClass() {
+    return this.constrainClass != null;
+  }
+
+  public void setConstrainClassIsSet(boolean value) {
+    if (!value) {
+      this.constrainClass = null;
+    }
+  }
+
+  public short getViolationCode() {
+    return this.violationCode;
+  }
+
+  public TConstraintViolationSummary setViolationCode(short violationCode) {
+    this.violationCode = violationCode;
+    setViolationCodeIsSet(true);
+    return this;
+  }
+
+  public void unsetViolationCode() {
+    __isset_bit_vector.clear(__VIOLATIONCODE_ISSET_ID);
+  }
+
+  /** Returns true if field violationCode is set (has been assigned a value) and false otherwise */
+  public boolean isSetViolationCode() {
+    return __isset_bit_vector.get(__VIOLATIONCODE_ISSET_ID);
+  }
+
+  public void setViolationCodeIsSet(boolean value) {
+    __isset_bit_vector.set(__VIOLATIONCODE_ISSET_ID, value);
+  }
+
+  public String getViolationDescription() {
+    return this.violationDescription;
+  }
+
+  public TConstraintViolationSummary setViolationDescription(String violationDescription) {
+    this.violationDescription = violationDescription;
+    return this;
+  }
+
+  public void unsetViolationDescription() {
+    this.violationDescription = null;
+  }
+
+  /** Returns true if field violationDescription is set (has been assigned a value) and false otherwise */
+  public boolean isSetViolationDescription() {
+    return this.violationDescription != null;
+  }
+
+  public void setViolationDescriptionIsSet(boolean value) {
+    if (!value) {
+      this.violationDescription = null;
+    }
+  }
+
+  public long getNumberOfViolatingMutations() {
+    return this.numberOfViolatingMutations;
+  }
+
+  public TConstraintViolationSummary setNumberOfViolatingMutations(long numberOfViolatingMutations) {
+    this.numberOfViolatingMutations = numberOfViolatingMutations;
+    setNumberOfViolatingMutationsIsSet(true);
+    return this;
+  }
+
+  public void unsetNumberOfViolatingMutations() {
+    __isset_bit_vector.clear(__NUMBEROFVIOLATINGMUTATIONS_ISSET_ID);
+  }
+
+  /** Returns true if field numberOfViolatingMutations is set (has been assigned a value) and false otherwise */
+  public boolean isSetNumberOfViolatingMutations() {
+    return __isset_bit_vector.get(__NUMBEROFVIOLATINGMUTATIONS_ISSET_ID);
+  }
+
+  public void setNumberOfViolatingMutationsIsSet(boolean value) {
+    __isset_bit_vector.set(__NUMBEROFVIOLATINGMUTATIONS_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case CONSTRAIN_CLASS:
+      if (value == null) {
+        unsetConstrainClass();
+      } else {
+        setConstrainClass((String)value);
+      }
+      break;
+
+    case VIOLATION_CODE:
+      if (value == null) {
+        unsetViolationCode();
+      } else {
+        setViolationCode((Short)value);
+      }
+      break;
+
+    case VIOLATION_DESCRIPTION:
+      if (value == null) {
+        unsetViolationDescription();
+      } else {
+        setViolationDescription((String)value);
+      }
+      break;
+
+    case NUMBER_OF_VIOLATING_MUTATIONS:
+      if (value == null) {
+        unsetNumberOfViolatingMutations();
+      } else {
+        setNumberOfViolatingMutations((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case CONSTRAIN_CLASS:
+      return getConstrainClass();
+
+    case VIOLATION_CODE:
+      return Short.valueOf(getViolationCode());
+
+    case VIOLATION_DESCRIPTION:
+      return getViolationDescription();
+
+    case NUMBER_OF_VIOLATING_MUTATIONS:
+      return Long.valueOf(getNumberOfViolatingMutations());
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case CONSTRAIN_CLASS:
+      return isSetConstrainClass();
+    case VIOLATION_CODE:
+      return isSetViolationCode();
+    case VIOLATION_DESCRIPTION:
+      return isSetViolationDescription();
+    case NUMBER_OF_VIOLATING_MUTATIONS:
+      return isSetNumberOfViolatingMutations();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof TConstraintViolationSummary)
+      return this.equals((TConstraintViolationSummary)that);
+    return false;
+  }
+
+  public boolean equals(TConstraintViolationSummary that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_constrainClass = true && this.isSetConstrainClass();
+    boolean that_present_constrainClass = true && that.isSetConstrainClass();
+    if (this_present_constrainClass || that_present_constrainClass) {
+      if (!(this_present_constrainClass && that_present_constrainClass))
+        return false;
+      if (!this.constrainClass.equals(that.constrainClass))
+        return false;
+    }
+
+    boolean this_present_violationCode = true;
+    boolean that_present_violationCode = true;
+    if (this_present_violationCode || that_present_violationCode) {
+      if (!(this_present_violationCode && that_present_violationCode))
+        return false;
+      if (this.violationCode != that.violationCode)
+        return false;
+    }
+
+    boolean this_present_violationDescription = true && this.isSetViolationDescription();
+    boolean that_present_violationDescription = true && that.isSetViolationDescription();
+    if (this_present_violationDescription || that_present_violationDescription) {
+      if (!(this_present_violationDescription && that_present_violationDescription))
+        return false;
+      if (!this.violationDescription.equals(that.violationDescription))
+        return false;
+    }
+
+    boolean this_present_numberOfViolatingMutations = true;
+    boolean that_present_numberOfViolatingMutations = true;
+    if (this_present_numberOfViolatingMutations || that_present_numberOfViolatingMutations) {
+      if (!(this_present_numberOfViolatingMutations && that_present_numberOfViolatingMutations))
+        return false;
+      if (this.numberOfViolatingMutations != that.numberOfViolatingMutations)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(TConstraintViolationSummary other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    TConstraintViolationSummary typedOther = (TConstraintViolationSummary)other;
+
+    lastComparison = Boolean.valueOf(isSetConstrainClass()).compareTo(typedOther.isSetConstrainClass());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetConstrainClass()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.constrainClass, typedOther.constrainClass);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetViolationCode()).compareTo(typedOther.isSetViolationCode());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetViolationCode()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.violationCode, typedOther.violationCode);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetViolationDescription()).compareTo(typedOther.isSetViolationDescription());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetViolationDescription()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.violationDescription, typedOther.violationDescription);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetNumberOfViolatingMutations()).compareTo(typedOther.isSetNumberOfViolatingMutations());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetNumberOfViolatingMutations()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfViolatingMutations, typedOther.numberOfViolatingMutations);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("TConstraintViolationSummary(");
+    boolean first = true;
+
+    sb.append("constrainClass:");
+    if (this.constrainClass == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.constrainClass);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("violationCode:");
+    sb.append(this.violationCode);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("violationDescription:");
+    if (this.violationDescription == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.violationDescription);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("numberOfViolatingMutations:");
+    sb.append(this.numberOfViolatingMutations);
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+      __isset_bit_vector = new BitSet(1);
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class TConstraintViolationSummaryStandardSchemeFactory implements SchemeFactory {
+    public TConstraintViolationSummaryStandardScheme getScheme() {
+      return new TConstraintViolationSummaryStandardScheme();
+    }
+  }
+
+  private static class TConstraintViolationSummaryStandardScheme extends StandardScheme<TConstraintViolationSummary> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, TConstraintViolationSummary struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // CONSTRAIN_CLASS
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.constrainClass = iprot.readString();
+              struct.setConstrainClassIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // VIOLATION_CODE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
+              struct.violationCode = iprot.readI16();
+              struct.setViolationCodeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // VIOLATION_DESCRIPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.violationDescription = iprot.readString();
+              struct.setViolationDescriptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // NUMBER_OF_VIOLATING_MUTATIONS
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.numberOfViolatingMutations = iprot.readI64();
+              struct.setNumberOfViolatingMutationsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, TConstraintViolationSummary struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.constrainClass != null) {
+        oprot.writeFieldBegin(CONSTRAIN_CLASS_FIELD_DESC);
+        oprot.writeString(struct.constrainClass);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(VIOLATION_CODE_FIELD_DESC);
+      oprot.writeI16(struct.violationCode);
+      oprot.writeFieldEnd();
+      if (struct.violationDescription != null) {
+        oprot.writeFieldBegin(VIOLATION_DESCRIPTION_FIELD_DESC);
+        oprot.writeString(struct.violationDescription);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(NUMBER_OF_VIOLATING_MUTATIONS_FIELD_DESC);
+      oprot.writeI64(struct.numberOfViolatingMutations);
+      oprot.writeFieldEnd();
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class TConstraintViolationSummaryTupleSchemeFactory implements SchemeFactory {
+    public TConstraintViolationSummaryTupleScheme getScheme() {
+      return new TConstraintViolationSummaryTupleScheme();
+    }
+  }
+
+  private static class TConstraintViolationSummaryTupleScheme extends TupleScheme<TConstraintViolationSummary> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, TConstraintViolationSummary struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetConstrainClass()) {
+        optionals.set(0);
+      }
+      if (struct.isSetViolationCode()) {
+        optionals.set(1);
+      }
+      if (struct.isSetViolationDescription()) {
+        optionals.set(2);
+      }
+      if (struct.isSetNumberOfViolatingMutations()) {
+        optionals.set(3);
+      }
+      oprot.writeBitSet(optionals, 4);
+      if (struct.isSetConstrainClass()) {
+        oprot.writeString(struct.constrainClass);
+      }
+      if (struct.isSetViolationCode()) {
+        oprot.writeI16(struct.violationCode);
+      }
+      if (struct.isSetViolationDescription()) {
+        oprot.writeString(struct.violationDescription);
+      }
+      if (struct.isSetNumberOfViolatingMutations()) {
+        oprot.writeI64(struct.numberOfViolatingMutations);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, TConstraintViolationSummary struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(4);
+      if (incoming.get(0)) {
+        struct.constrainClass = iprot.readString();
+        struct.setConstrainClassIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.violationCode = iprot.readI16();
+        struct.setViolationCodeIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.violationDescription = iprot.readString();
+        struct.setViolationDescriptionIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.numberOfViolatingMutations = iprot.readI64();
+        struct.setNumberOfViolatingMutationsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TKey.java
----------------------------------------------------------------------
diff --git a/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TKey.java b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TKey.java
new file mode 100644
index 0000000..5498ffc
--- /dev/null
+++ b/1.5/core/src/main/java/org/apache/accumulo/core/data/thrift/TKey.java
@@ -0,0 +1,825 @@
+/**
+ * Autogenerated by Thrift Compiler (0.8.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.accumulo.core.data.thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all") public class TKey implements org.apache.thrift.TBase<TKey, TKey._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TKey");
+
+  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);
+  private static final org.apache.thrift.protocol.TField COL_FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("colFamily", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField COL_QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("colQualifier", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField COL_VISIBILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("colVisibility", org.apache.thrift.protocol.TType.STRING, (short)4);
+  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);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new TKeyStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new TKeyTupleSchemeFactory());
+  }
+
+  public ByteBuffer row; // required
+  public ByteBuffer colFamily; // required
+  public ByteBuffer colQualifier; // required
+  public ByteBuffer colVisibility; // required
+  public long timestamp; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    ROW((short)1, "row"),
+    COL_FAMILY((short)2, "colFamily"),
+    COL_QUALIFIER((short)3, "colQualifier"),
+    COL_VISIBILITY((short)4, "colVisibility"),
+    TIMESTAMP((short)5, "timestamp");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // ROW
+          return ROW;
+        case 2: // COL_FAMILY
+          return COL_FAMILY;
+        case 3: // COL_QUALIFIER
+          return COL_QUALIFIER;
+        case 4: // COL_VISIBILITY
+          return COL_VISIBILITY;
+        case 5: // TIMESTAMP
+          return TIMESTAMP;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __TIMESTAMP_ISSET_ID = 0;
+  private BitSet __isset_bit_vector = new BitSet(1);
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.COL_FAMILY, new org.apache.thrift.meta_data.FieldMetaData("colFamily", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.COL_QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("colQualifier", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.COL_VISIBILITY, new org.apache.thrift.meta_data.FieldMetaData("colVisibility", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TKey.class, metaDataMap);
+  }
+
+  public TKey() {
+  }
+
+  public TKey(
+    ByteBuffer row,
+    ByteBuffer colFamily,
+    ByteBuffer colQualifier,
+    ByteBuffer colVisibility,
+    long timestamp)
+  {
+    this();
+    this.row = row;
+    this.colFamily = colFamily;
+    this.colQualifier = colQualifier;
+    this.colVisibility = colVisibility;
+    this.timestamp = timestamp;
+    setTimestampIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public TKey(TKey other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    if (other.isSetRow()) {
+      this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row);
+;
+    }
+    if (other.isSetColFamily()) {
+      this.colFamily = org.apache.thrift.TBaseHelper.copyBinary(other.colFamily);
+;
+    }
+    if (other.isSetColQualifier()) {
+      this.colQualifier = org.apache.thrift.TBaseHelper.copyBinary(other.colQualifier);
+;
+    }
+    if (other.isSetColVisibility()) {
+      this.colVisibility = org.apache.thrift.TBaseHelper.copyBinary(other.colVisibility);
+;
+    }
+    this.timestamp = other.timestamp;
+  }
+
+  public TKey deepCopy() {
+    return new TKey(this);
+  }
+
+  @Override
+  public void clear() {
+    this.row = null;
+    this.colFamily = null;
+    this.colQualifier = null;
+    this.colVisibility = null;
+    setTimestampIsSet(false);
+    this.timestamp = 0;
+  }
+
+  public byte[] getRow() {
+    setRow(org.apache.thrift.TBaseHelper.rightSize(row));
+    return row == null ? null : row.array();
+  }
+
+  public ByteBuffer bufferForRow() {
+    return row;
+  }
+
+  public TKey setRow(byte[] row) {
+    setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
+    return this;
+  }
+
+  public TKey setRow(ByteBuffer row) {
+    this.row = row;
+    return this;
+  }
+
+  public void unsetRow() {
+    this.row = null;
+  }
+
+  /** Returns true if field row is set (has been assigned a value) and false otherwise */
+  public boolean isSetRow() {
+    return this.row != null;
+  }
+
+  public void setRowIsSet(boolean value) {
+    if (!value) {
+      this.row = null;
+    }
+  }
+
+  public byte[] getColFamily() {
+    setColFamily(org.apache.thrift.TBaseHelper.rightSize(colFamily));
+    return colFamily == null ? null : colFamily.array();
+  }
+
+  public ByteBuffer bufferForColFamily() {
+    return colFamily;
+  }
+
+  public TKey setColFamily(byte[] colFamily) {
+    setColFamily(colFamily == null ? (ByteBuffer)null : ByteBuffer.wrap(colFamily));
+    return this;
+  }
+
+  public TKey setColFamily(ByteBuffer colFamily) {
+    this.colFamily = colFamily;
+    return this;
+  }
+
+  public void unsetColFamily() {
+    this.colFamily = null;
+  }
+
+  /** Returns true if field colFamily is set (has been assigned a value) and false otherwise */
+  public boolean isSetColFamily() {
+    return this.colFamily != null;
+  }
+
+  public void setColFamilyIsSet(boolean value) {
+    if (!value) {
+      this.colFamily = null;
+    }
+  }
+
+  public byte[] getColQualifier() {
+    setColQualifier(org.apache.thrift.TBaseHelper.rightSize(colQualifier));
+    return colQualifier == null ? null : colQualifier.array();
+  }
+
+  public ByteBuffer bufferForColQualifier() {
+    return colQualifier;
+  }
+
+  public TKey setColQualifier(byte[] colQualifier) {
+    setColQualifier(colQualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(colQualifier));
+    return this;
+  }
+
+  public TKey setColQualifier(ByteBuffer colQualifier) {
+    this.colQualifier = colQualifier;
+    return this;
+  }
+
+  public void unsetColQualifier() {
+    this.colQualifier = null;
+  }
+
+  /** Returns true if field colQualifier is set (has been assigned a value) and false otherwise */
+  public boolean isSetColQualifier() {
+    return this.colQualifier != null;
+  }
+
+  public void setColQualifierIsSet(boolean value) {
+    if (!value) {
+      this.colQualifier = null;
+    }
+  }
+
+  public byte[] getColVisibility() {
+    setColVisibility(org.apache.thrift.TBaseHelper.rightSize(colVisibility));
+    return colVisibility == null ? null : colVisibility.array();
+  }
+
+  public ByteBuffer bufferForColVisibility() {
+    return colVisibility;
+  }
+
+  public TKey setColVisibility(byte[] colVisibility) {
+    setColVisibility(colVisibility == null ? (ByteBuffer)null : ByteBuffer.wrap(colVisibility));
+    return this;
+  }
+
+  public TKey setColVisibility(ByteBuffer colVisibility) {
+    this.colVisibility = colVisibility;
+    return this;
+  }
+
+  public void unsetColVisibility() {
+    this.colVisibility = null;
+  }
+
+  /** Returns true if field colVisibility is set (has been assigned a value) and false otherwise */
+  public boolean isSetColVisibility() {
+    return this.colVisibility != null;
+  }
+
+  public void setColVisibilityIsSet(boolean value) {
+    if (!value) {
+      this.colVisibility = null;
+    }
+  }
+
+  public long getTimestamp() {
+    return this.timestamp;
+  }
+
+  public TKey setTimestamp(long timestamp) {
+    this.timestamp = timestamp;
+    setTimestampIsSet(true);
+    return this;
+  }
+
+  public void unsetTimestamp() {
+    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
+  }
+
+  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
+  public boolean isSetTimestamp() {
+    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
+  }
+
+  public void setTimestampIsSet(boolean value) {
+    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case ROW:
+      if (value == null) {
+        unsetRow();
+      } else {
+        setRow((ByteBuffer)value);
+      }
+      break;
+
+    case COL_FAMILY:
+      if (value == null) {
+        unsetColFamily();
+      } else {
+        setColFamily((ByteBuffer)value);
+      }
+      break;
+
+    case COL_QUALIFIER:
+      if (value == null) {
+        unsetColQualifier();
+      } else {
+        setColQualifier((ByteBuffer)value);
+      }
+      break;
+
+    case COL_VISIBILITY:
+      if (value == null) {
+        unsetColVisibility();
+      } else {
+        setColVisibility((ByteBuffer)value);
+      }
+      break;
+
+    case TIMESTAMP:
+      if (value == null) {
+        unsetTimestamp();
+      } else {
+        setTimestamp((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case ROW:
+      return getRow();
+
+    case COL_FAMILY:
+      return getColFamily();
+
+    case COL_QUALIFIER:
+      return getColQualifier();
+
+    case COL_VISIBILITY:
+      return getColVisibility();
+
+    case TIMESTAMP:
+      return Long.valueOf(getTimestamp());
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case ROW:
+      return isSetRow();
+    case COL_FAMILY:
+      return isSetColFamily();
+    case COL_QUALIFIER:
+      return isSetColQualifier();
+    case COL_VISIBILITY:
+      return isSetColVisibility();
+    case TIMESTAMP:
+      return isSetTimestamp();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof TKey)
+      return this.equals((TKey)that);
+    return false;
+  }
+
+  public boolean equals(TKey that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_row = true && this.isSetRow();
+    boolean that_present_row = true && that.isSetRow();
+    if (this_present_row || that_present_row) {
+      if (!(this_present_row && that_present_row))
+        return false;
+      if (!this.row.equals(that.row))
+        return false;
+    }
+
+    boolean this_present_colFamily = true && this.isSetColFamily();
+    boolean that_present_colFamily = true && that.isSetColFamily();
+    if (this_present_colFamily || that_present_colFamily) {
+      if (!(this_present_colFamily && that_present_colFamily))
+        return false;
+      if (!this.colFamily.equals(that.colFamily))
+        return false;
+    }
+
+    boolean this_present_colQualifier = true && this.isSetColQualifier();
+    boolean that_present_colQualifier = true && that.isSetColQualifier();
+    if (this_present_colQualifier || that_present_colQualifier) {
+      if (!(this_present_colQualifier && that_present_colQualifier))
+        return false;
+      if (!this.colQualifier.equals(that.colQualifier))
+        return false;
+    }
+
+    boolean this_present_colVisibility = true && this.isSetColVisibility();
+    boolean that_present_colVisibility = true && that.isSetColVisibility();
+    if (this_present_colVisibility || that_present_colVisibility) {
+      if (!(this_present_colVisibility && that_present_colVisibility))
+        return false;
+      if (!this.colVisibility.equals(that.colVisibility))
+        return false;
+    }
+
+    boolean this_present_timestamp = true;
+    boolean that_present_timestamp = true;
+    if (this_present_timestamp || that_present_timestamp) {
+      if (!(this_present_timestamp && that_present_timestamp))
+        return false;
+      if (this.timestamp != that.timestamp)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(TKey other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    TKey typedOther = (TKey)other;
+
+    lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetRow()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColFamily()).compareTo(typedOther.isSetColFamily());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColFamily()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colFamily, typedOther.colFamily);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColQualifier()).compareTo(typedOther.isSetColQualifier());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColQualifier()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colQualifier, typedOther.colQualifier);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColVisibility()).compareTo(typedOther.isSetColVisibility());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColVisibility()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVisibility, typedOther.colVisibility);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTimestamp()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("TKey(");
+    boolean first = true;
+
+    sb.append("row:");
+    if (this.row == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.row, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("colFamily:");
+    if (this.colFamily == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.colFamily, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("colQualifier:");
+    if (this.colQualifier == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.colQualifier, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("colVisibility:");
+    if (this.colVisibility == null) {
+      sb.append("null");
+    } else {
+      org.apache.thrift.TBaseHelper.toString(this.colVisibility, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("timestamp:");
+    sb.append(this.timestamp);
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+      __isset_bit_vector = new BitSet(1);
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class TKeyStandardSchemeFactory implements SchemeFactory {
+    public TKeyStandardScheme getScheme() {
+      return new TKeyStandardScheme();
+    }
+  }
+
+  private static class TKeyStandardScheme extends StandardScheme<TKey> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, TKey struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // ROW
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.row = iprot.readBinary();
+              struct.setRowIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // COL_FAMILY
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.colFamily = iprot.readBinary();
+              struct.setColFamilyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // COL_QUALIFIER
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.colQualifier = iprot.readBinary();
+              struct.setColQualifierIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // COL_VISIBILITY
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.colVisibility = iprot.readBinary();
+              struct.setColVisibilityIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // TIMESTAMP
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.timestamp = iprot.readI64();
+              struct.setTimestampIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, TKey struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.row != null) {
+        oprot.writeFieldBegin(ROW_FIELD_DESC);
+        oprot.writeBinary(struct.row);
+        oprot.writeFieldEnd();
+      }
+      if (struct.colFamily != null) {
+        oprot.writeFieldBegin(COL_FAMILY_FIELD_DESC);
+        oprot.writeBinary(struct.colFamily);
+        oprot.writeFieldEnd();
+      }
+      if (struct.colQualifier != null) {
+        oprot.writeFieldBegin(COL_QUALIFIER_FIELD_DESC);
+        oprot.writeBinary(struct.colQualifier);
+        oprot.writeFieldEnd();
+      }
+      if (struct.colVisibility != null) {
+        oprot.writeFieldBegin(COL_VISIBILITY_FIELD_DESC);
+        oprot.writeBinary(struct.colVisibility);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
+      oprot.writeI64(struct.timestamp);
+      oprot.writeFieldEnd();
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class TKeyTupleSchemeFactory implements SchemeFactory {
+    public TKeyTupleScheme getScheme() {
+      return new TKeyTupleScheme();
+    }
+  }
+
+  private static class TKeyTupleScheme extends TupleScheme<TKey> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, TKey struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetRow()) {
+        optionals.set(0);
+      }
+      if (struct.isSetColFamily()) {
+        optionals.set(1);
+      }
+      if (struct.isSetColQualifier()) {
+        optionals.set(2);
+      }
+      if (struct.isSetColVisibility()) {
+        optionals.set(3);
+      }
+      if (struct.isSetTimestamp()) {
+        optionals.set(4);
+      }
+      oprot.writeBitSet(optionals, 5);
+      if (struct.isSetRow()) {
+        oprot.writeBinary(struct.row);
+      }
+      if (struct.isSetColFamily()) {
+        oprot.writeBinary(struct.colFamily);
+      }
+      if (struct.isSetColQualifier()) {
+        oprot.writeBinary(struct.colQualifier);
+      }
+      if (struct.isSetColVisibility()) {
+        oprot.writeBinary(struct.colVisibility);
+      }
+      if (struct.isSetTimestamp()) {
+        oprot.writeI64(struct.timestamp);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, TKey struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(5);
+      if (incoming.get(0)) {
+        struct.row = iprot.readBinary();
+        struct.setRowIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.colFamily = iprot.readBinary();
+        struct.setColFamilyIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.colQualifier = iprot.readBinary();
+        struct.setColQualifierIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.colVisibility = iprot.readBinary();
+        struct.setColVisibilityIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.timestamp = iprot.readI64();
+        struct.setTimestampIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message