incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [46/51] [partial] Initial repackage to org.apache.
Date Mon, 03 Sep 2012 03:17:15 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/33df9310/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
new file mode 100644
index 0000000..93589e1
--- /dev/null
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
@@ -0,0 +1,884 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+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;
+
+/**
+ * 
+ */
+public class BlurQueryStatus implements org.apache.thrift.TBase<BlurQueryStatus, BlurQueryStatus._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BlurQueryStatus");
+
+  private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+  private static final org.apache.thrift.protocol.TField CPU_TIMES_FIELD_DESC = new org.apache.thrift.protocol.TField("cpuTimes", org.apache.thrift.protocol.TType.MAP, (short)2);
+  private static final org.apache.thrift.protocol.TField COMPLETE_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("completeShards", org.apache.thrift.protocol.TType.I32, (short)3);
+  private static final org.apache.thrift.protocol.TField TOTAL_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalShards", org.apache.thrift.protocol.TType.I32, (short)4);
+  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)5);
+  private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.I64, (short)6);
+
+  /**
+   * 
+   */
+  public BlurQuery query; // required
+  /**
+   * 
+   */
+  public Map<String,CpuTime> cpuTimes; // required
+  /**
+   * 
+   */
+  public int completeShards; // required
+  /**
+   * 
+   */
+  public int totalShards; // required
+  /**
+   * 
+   * 
+   * @see QueryState
+   */
+  public QueryState state; // required
+  /**
+   * 
+   */
+  public long uuid; // 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 {
+    /**
+     * 
+     */
+    QUERY((short)1, "query"),
+    /**
+     * 
+     */
+    CPU_TIMES((short)2, "cpuTimes"),
+    /**
+     * 
+     */
+    COMPLETE_SHARDS((short)3, "completeShards"),
+    /**
+     * 
+     */
+    TOTAL_SHARDS((short)4, "totalShards"),
+    /**
+     * 
+     * 
+     * @see QueryState
+     */
+    STATE((short)5, "state"),
+    /**
+     * 
+     */
+    UUID((short)6, "uuid");
+
+    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: // QUERY
+          return QUERY;
+        case 2: // CPU_TIMES
+          return CPU_TIMES;
+        case 3: // COMPLETE_SHARDS
+          return COMPLETE_SHARDS;
+        case 4: // TOTAL_SHARDS
+          return TOTAL_SHARDS;
+        case 5: // STATE
+          return STATE;
+        case 6: // UUID
+          return UUID;
+        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 __COMPLETESHARDS_ISSET_ID = 0;
+  private static final int __TOTALSHARDS_ISSET_ID = 1;
+  private static final int __UUID_ISSET_ID = 2;
+  private BitSet __isset_bit_vector = new BitSet(3);
+
+  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.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BlurQuery.class)));
+    tmpMap.put(_Fields.CPU_TIMES, new org.apache.thrift.meta_data.FieldMetaData("cpuTimes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CpuTime.class))));
+    tmpMap.put(_Fields.COMPLETE_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("completeShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.TOTAL_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("totalShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, QueryState.class)));
+    tmpMap.put(_Fields.UUID, new org.apache.thrift.meta_data.FieldMetaData("uuid", 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(BlurQueryStatus.class, metaDataMap);
+  }
+
+  public BlurQueryStatus() {
+  }
+
+  public BlurQueryStatus(
+    BlurQuery query,
+    Map<String,CpuTime> cpuTimes,
+    int completeShards,
+    int totalShards,
+    QueryState state,
+    long uuid)
+  {
+    this();
+    this.query = query;
+    this.cpuTimes = cpuTimes;
+    this.completeShards = completeShards;
+    setCompleteShardsIsSet(true);
+    this.totalShards = totalShards;
+    setTotalShardsIsSet(true);
+    this.state = state;
+    this.uuid = uuid;
+    setUuidIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public BlurQueryStatus(BlurQueryStatus other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    if (other.isSetQuery()) {
+      this.query = new BlurQuery(other.query);
+    }
+    if (other.isSetCpuTimes()) {
+      Map<String,CpuTime> __this__cpuTimes = new HashMap<String,CpuTime>();
+      for (Map.Entry<String, CpuTime> other_element : other.cpuTimes.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        CpuTime other_element_value = other_element.getValue();
+
+        String __this__cpuTimes_copy_key = other_element_key;
+
+        CpuTime __this__cpuTimes_copy_value = new CpuTime(other_element_value);
+
+        __this__cpuTimes.put(__this__cpuTimes_copy_key, __this__cpuTimes_copy_value);
+      }
+      this.cpuTimes = __this__cpuTimes;
+    }
+    this.completeShards = other.completeShards;
+    this.totalShards = other.totalShards;
+    if (other.isSetState()) {
+      this.state = other.state;
+    }
+    this.uuid = other.uuid;
+  }
+
+  public BlurQueryStatus deepCopy() {
+    return new BlurQueryStatus(this);
+  }
+
+  @Override
+  public void clear() {
+    this.query = null;
+    this.cpuTimes = null;
+    setCompleteShardsIsSet(false);
+    this.completeShards = 0;
+    setTotalShardsIsSet(false);
+    this.totalShards = 0;
+    this.state = null;
+    setUuidIsSet(false);
+    this.uuid = 0;
+  }
+
+  /**
+   * 
+   */
+  public BlurQuery getQuery() {
+    return this.query;
+  }
+
+  /**
+   * 
+   */
+  public BlurQueryStatus setQuery(BlurQuery query) {
+    this.query = query;
+    return this;
+  }
+
+  public void unsetQuery() {
+    this.query = null;
+  }
+
+  /** Returns true if field query is set (has been assigned a value) and false otherwise */
+  public boolean isSetQuery() {
+    return this.query != null;
+  }
+
+  public void setQueryIsSet(boolean value) {
+    if (!value) {
+      this.query = null;
+    }
+  }
+
+  public int getCpuTimesSize() {
+    return (this.cpuTimes == null) ? 0 : this.cpuTimes.size();
+  }
+
+  public void putToCpuTimes(String key, CpuTime val) {
+    if (this.cpuTimes == null) {
+      this.cpuTimes = new HashMap<String,CpuTime>();
+    }
+    this.cpuTimes.put(key, val);
+  }
+
+  /**
+   * 
+   */
+  public Map<String,CpuTime> getCpuTimes() {
+    return this.cpuTimes;
+  }
+
+  /**
+   * 
+   */
+  public BlurQueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes) {
+    this.cpuTimes = cpuTimes;
+    return this;
+  }
+
+  public void unsetCpuTimes() {
+    this.cpuTimes = null;
+  }
+
+  /** Returns true if field cpuTimes is set (has been assigned a value) and false otherwise */
+  public boolean isSetCpuTimes() {
+    return this.cpuTimes != null;
+  }
+
+  public void setCpuTimesIsSet(boolean value) {
+    if (!value) {
+      this.cpuTimes = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public int getCompleteShards() {
+    return this.completeShards;
+  }
+
+  /**
+   * 
+   */
+  public BlurQueryStatus setCompleteShards(int completeShards) {
+    this.completeShards = completeShards;
+    setCompleteShardsIsSet(true);
+    return this;
+  }
+
+  public void unsetCompleteShards() {
+    __isset_bit_vector.clear(__COMPLETESHARDS_ISSET_ID);
+  }
+
+  /** Returns true if field completeShards is set (has been assigned a value) and false otherwise */
+  public boolean isSetCompleteShards() {
+    return __isset_bit_vector.get(__COMPLETESHARDS_ISSET_ID);
+  }
+
+  public void setCompleteShardsIsSet(boolean value) {
+    __isset_bit_vector.set(__COMPLETESHARDS_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public int getTotalShards() {
+    return this.totalShards;
+  }
+
+  /**
+   * 
+   */
+  public BlurQueryStatus setTotalShards(int totalShards) {
+    this.totalShards = totalShards;
+    setTotalShardsIsSet(true);
+    return this;
+  }
+
+  public void unsetTotalShards() {
+    __isset_bit_vector.clear(__TOTALSHARDS_ISSET_ID);
+  }
+
+  /** Returns true if field totalShards is set (has been assigned a value) and false otherwise */
+  public boolean isSetTotalShards() {
+    return __isset_bit_vector.get(__TOTALSHARDS_ISSET_ID);
+  }
+
+  public void setTotalShardsIsSet(boolean value) {
+    __isset_bit_vector.set(__TOTALSHARDS_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   * 
+   * @see QueryState
+   */
+  public QueryState getState() {
+    return this.state;
+  }
+
+  /**
+   * 
+   * 
+   * @see QueryState
+   */
+  public BlurQueryStatus setState(QueryState state) {
+    this.state = state;
+    return this;
+  }
+
+  public void unsetState() {
+    this.state = null;
+  }
+
+  /** Returns true if field state is set (has been assigned a value) and false otherwise */
+  public boolean isSetState() {
+    return this.state != null;
+  }
+
+  public void setStateIsSet(boolean value) {
+    if (!value) {
+      this.state = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public long getUuid() {
+    return this.uuid;
+  }
+
+  /**
+   * 
+   */
+  public BlurQueryStatus setUuid(long uuid) {
+    this.uuid = uuid;
+    setUuidIsSet(true);
+    return this;
+  }
+
+  public void unsetUuid() {
+    __isset_bit_vector.clear(__UUID_ISSET_ID);
+  }
+
+  /** Returns true if field uuid is set (has been assigned a value) and false otherwise */
+  public boolean isSetUuid() {
+    return __isset_bit_vector.get(__UUID_ISSET_ID);
+  }
+
+  public void setUuidIsSet(boolean value) {
+    __isset_bit_vector.set(__UUID_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case QUERY:
+      if (value == null) {
+        unsetQuery();
+      } else {
+        setQuery((BlurQuery)value);
+      }
+      break;
+
+    case CPU_TIMES:
+      if (value == null) {
+        unsetCpuTimes();
+      } else {
+        setCpuTimes((Map<String,CpuTime>)value);
+      }
+      break;
+
+    case COMPLETE_SHARDS:
+      if (value == null) {
+        unsetCompleteShards();
+      } else {
+        setCompleteShards((Integer)value);
+      }
+      break;
+
+    case TOTAL_SHARDS:
+      if (value == null) {
+        unsetTotalShards();
+      } else {
+        setTotalShards((Integer)value);
+      }
+      break;
+
+    case STATE:
+      if (value == null) {
+        unsetState();
+      } else {
+        setState((QueryState)value);
+      }
+      break;
+
+    case UUID:
+      if (value == null) {
+        unsetUuid();
+      } else {
+        setUuid((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case QUERY:
+      return getQuery();
+
+    case CPU_TIMES:
+      return getCpuTimes();
+
+    case COMPLETE_SHARDS:
+      return Integer.valueOf(getCompleteShards());
+
+    case TOTAL_SHARDS:
+      return Integer.valueOf(getTotalShards());
+
+    case STATE:
+      return getState();
+
+    case UUID:
+      return Long.valueOf(getUuid());
+
+    }
+    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 QUERY:
+      return isSetQuery();
+    case CPU_TIMES:
+      return isSetCpuTimes();
+    case COMPLETE_SHARDS:
+      return isSetCompleteShards();
+    case TOTAL_SHARDS:
+      return isSetTotalShards();
+    case STATE:
+      return isSetState();
+    case UUID:
+      return isSetUuid();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof BlurQueryStatus)
+      return this.equals((BlurQueryStatus)that);
+    return false;
+  }
+
+  public boolean equals(BlurQueryStatus that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_query = true && this.isSetQuery();
+    boolean that_present_query = true && that.isSetQuery();
+    if (this_present_query || that_present_query) {
+      if (!(this_present_query && that_present_query))
+        return false;
+      if (!this.query.equals(that.query))
+        return false;
+    }
+
+    boolean this_present_cpuTimes = true && this.isSetCpuTimes();
+    boolean that_present_cpuTimes = true && that.isSetCpuTimes();
+    if (this_present_cpuTimes || that_present_cpuTimes) {
+      if (!(this_present_cpuTimes && that_present_cpuTimes))
+        return false;
+      if (!this.cpuTimes.equals(that.cpuTimes))
+        return false;
+    }
+
+    boolean this_present_completeShards = true;
+    boolean that_present_completeShards = true;
+    if (this_present_completeShards || that_present_completeShards) {
+      if (!(this_present_completeShards && that_present_completeShards))
+        return false;
+      if (this.completeShards != that.completeShards)
+        return false;
+    }
+
+    boolean this_present_totalShards = true;
+    boolean that_present_totalShards = true;
+    if (this_present_totalShards || that_present_totalShards) {
+      if (!(this_present_totalShards && that_present_totalShards))
+        return false;
+      if (this.totalShards != that.totalShards)
+        return false;
+    }
+
+    boolean this_present_state = true && this.isSetState();
+    boolean that_present_state = true && that.isSetState();
+    if (this_present_state || that_present_state) {
+      if (!(this_present_state && that_present_state))
+        return false;
+      if (!this.state.equals(that.state))
+        return false;
+    }
+
+    boolean this_present_uuid = true;
+    boolean that_present_uuid = true;
+    if (this_present_uuid || that_present_uuid) {
+      if (!(this_present_uuid && that_present_uuid))
+        return false;
+      if (this.uuid != that.uuid)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(BlurQueryStatus other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    BlurQueryStatus typedOther = (BlurQueryStatus)other;
+
+    lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQuery()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCpuTimes()).compareTo(typedOther.isSetCpuTimes());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCpuTimes()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpuTimes, typedOther.cpuTimes);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCompleteShards()).compareTo(typedOther.isSetCompleteShards());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCompleteShards()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.completeShards, typedOther.completeShards);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTotalShards()).compareTo(typedOther.isSetTotalShards());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTotalShards()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalShards, typedOther.totalShards);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetState()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetUuid()).compareTo(typedOther.isSetUuid());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetUuid()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, typedOther.uuid);
+      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 {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // QUERY
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.query = new BlurQuery();
+            this.query.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // CPU_TIMES
+          if (field.type == org.apache.thrift.protocol.TType.MAP) {
+            {
+              org.apache.thrift.protocol.TMap _map46 = iprot.readMapBegin();
+              this.cpuTimes = new HashMap<String,CpuTime>(2*_map46.size);
+              for (int _i47 = 0; _i47 < _map46.size; ++_i47)
+              {
+                String _key48; // required
+                CpuTime _val49; // required
+                _key48 = iprot.readString();
+                _val49 = new CpuTime();
+                _val49.read(iprot);
+                this.cpuTimes.put(_key48, _val49);
+              }
+              iprot.readMapEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // COMPLETE_SHARDS
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
+            this.completeShards = iprot.readI32();
+            setCompleteShardsIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 4: // TOTAL_SHARDS
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
+            this.totalShards = iprot.readI32();
+            setTotalShardsIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 5: // STATE
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
+            this.state = QueryState.findByValue(iprot.readI32());
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 6: // UUID
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.uuid = iprot.readI64();
+            setUuidIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.query != null) {
+      oprot.writeFieldBegin(QUERY_FIELD_DESC);
+      this.query.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    if (this.cpuTimes != null) {
+      oprot.writeFieldBegin(CPU_TIMES_FIELD_DESC);
+      {
+        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.cpuTimes.size()));
+        for (Map.Entry<String, CpuTime> _iter50 : this.cpuTimes.entrySet())
+        {
+          oprot.writeString(_iter50.getKey());
+          _iter50.getValue().write(oprot);
+        }
+        oprot.writeMapEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(COMPLETE_SHARDS_FIELD_DESC);
+    oprot.writeI32(this.completeShards);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(TOTAL_SHARDS_FIELD_DESC);
+    oprot.writeI32(this.totalShards);
+    oprot.writeFieldEnd();
+    if (this.state != null) {
+      oprot.writeFieldBegin(STATE_FIELD_DESC);
+      oprot.writeI32(this.state.getValue());
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(UUID_FIELD_DESC);
+    oprot.writeI64(this.uuid);
+    oprot.writeFieldEnd();
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("BlurQueryStatus(");
+    boolean first = true;
+
+    sb.append("query:");
+    if (this.query == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.query);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("cpuTimes:");
+    if (this.cpuTimes == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.cpuTimes);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("completeShards:");
+    sb.append(this.completeShards);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("totalShards:");
+    sb.append(this.totalShards);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("state:");
+    if (this.state == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.state);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("uuid:");
+    sb.append(this.uuid);
+    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);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/33df9310/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResult.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResult.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResult.java
new file mode 100644
index 0000000..11564f9
--- /dev/null
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResult.java
@@ -0,0 +1,537 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+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;
+
+/**
+ * 
+ */
+public class BlurResult implements org.apache.thrift.TBase<BlurResult, BlurResult._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BlurResult");
+
+  private static final org.apache.thrift.protocol.TField LOCATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("locationId", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField SCORE_FIELD_DESC = new org.apache.thrift.protocol.TField("score", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
+  private static final org.apache.thrift.protocol.TField FETCH_RESULT_FIELD_DESC = new org.apache.thrift.protocol.TField("fetchResult", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+
+  /**
+   * 
+   */
+  public String locationId; // required
+  /**
+   * 
+   */
+  public double score; // required
+  /**
+   * 
+   */
+  public FetchResult fetchResult; // 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 {
+    /**
+     * 
+     */
+    LOCATION_ID((short)1, "locationId"),
+    /**
+     * 
+     */
+    SCORE((short)2, "score"),
+    /**
+     * 
+     */
+    FETCH_RESULT((short)3, "fetchResult");
+
+    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: // LOCATION_ID
+          return LOCATION_ID;
+        case 2: // SCORE
+          return SCORE;
+        case 3: // FETCH_RESULT
+          return FETCH_RESULT;
+        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 __SCORE_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.LOCATION_ID, new org.apache.thrift.meta_data.FieldMetaData("locationId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.SCORE, new org.apache.thrift.meta_data.FieldMetaData("score", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
+    tmpMap.put(_Fields.FETCH_RESULT, new org.apache.thrift.meta_data.FieldMetaData("fetchResult", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FetchResult.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BlurResult.class, metaDataMap);
+  }
+
+  public BlurResult() {
+  }
+
+  public BlurResult(
+    String locationId,
+    double score,
+    FetchResult fetchResult)
+  {
+    this();
+    this.locationId = locationId;
+    this.score = score;
+    setScoreIsSet(true);
+    this.fetchResult = fetchResult;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public BlurResult(BlurResult other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    if (other.isSetLocationId()) {
+      this.locationId = other.locationId;
+    }
+    this.score = other.score;
+    if (other.isSetFetchResult()) {
+      this.fetchResult = new FetchResult(other.fetchResult);
+    }
+  }
+
+  public BlurResult deepCopy() {
+    return new BlurResult(this);
+  }
+
+  @Override
+  public void clear() {
+    this.locationId = null;
+    setScoreIsSet(false);
+    this.score = 0.0;
+    this.fetchResult = null;
+  }
+
+  /**
+   * 
+   */
+  public String getLocationId() {
+    return this.locationId;
+  }
+
+  /**
+   * 
+   */
+  public BlurResult setLocationId(String locationId) {
+    this.locationId = locationId;
+    return this;
+  }
+
+  public void unsetLocationId() {
+    this.locationId = null;
+  }
+
+  /** Returns true if field locationId is set (has been assigned a value) and false otherwise */
+  public boolean isSetLocationId() {
+    return this.locationId != null;
+  }
+
+  public void setLocationIdIsSet(boolean value) {
+    if (!value) {
+      this.locationId = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public double getScore() {
+    return this.score;
+  }
+
+  /**
+   * 
+   */
+  public BlurResult setScore(double score) {
+    this.score = score;
+    setScoreIsSet(true);
+    return this;
+  }
+
+  public void unsetScore() {
+    __isset_bit_vector.clear(__SCORE_ISSET_ID);
+  }
+
+  /** Returns true if field score is set (has been assigned a value) and false otherwise */
+  public boolean isSetScore() {
+    return __isset_bit_vector.get(__SCORE_ISSET_ID);
+  }
+
+  public void setScoreIsSet(boolean value) {
+    __isset_bit_vector.set(__SCORE_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public FetchResult getFetchResult() {
+    return this.fetchResult;
+  }
+
+  /**
+   * 
+   */
+  public BlurResult setFetchResult(FetchResult fetchResult) {
+    this.fetchResult = fetchResult;
+    return this;
+  }
+
+  public void unsetFetchResult() {
+    this.fetchResult = null;
+  }
+
+  /** Returns true if field fetchResult is set (has been assigned a value) and false otherwise */
+  public boolean isSetFetchResult() {
+    return this.fetchResult != null;
+  }
+
+  public void setFetchResultIsSet(boolean value) {
+    if (!value) {
+      this.fetchResult = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case LOCATION_ID:
+      if (value == null) {
+        unsetLocationId();
+      } else {
+        setLocationId((String)value);
+      }
+      break;
+
+    case SCORE:
+      if (value == null) {
+        unsetScore();
+      } else {
+        setScore((Double)value);
+      }
+      break;
+
+    case FETCH_RESULT:
+      if (value == null) {
+        unsetFetchResult();
+      } else {
+        setFetchResult((FetchResult)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case LOCATION_ID:
+      return getLocationId();
+
+    case SCORE:
+      return Double.valueOf(getScore());
+
+    case FETCH_RESULT:
+      return getFetchResult();
+
+    }
+    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 LOCATION_ID:
+      return isSetLocationId();
+    case SCORE:
+      return isSetScore();
+    case FETCH_RESULT:
+      return isSetFetchResult();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof BlurResult)
+      return this.equals((BlurResult)that);
+    return false;
+  }
+
+  public boolean equals(BlurResult that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_locationId = true && this.isSetLocationId();
+    boolean that_present_locationId = true && that.isSetLocationId();
+    if (this_present_locationId || that_present_locationId) {
+      if (!(this_present_locationId && that_present_locationId))
+        return false;
+      if (!this.locationId.equals(that.locationId))
+        return false;
+    }
+
+    boolean this_present_score = true;
+    boolean that_present_score = true;
+    if (this_present_score || that_present_score) {
+      if (!(this_present_score && that_present_score))
+        return false;
+      if (this.score != that.score)
+        return false;
+    }
+
+    boolean this_present_fetchResult = true && this.isSetFetchResult();
+    boolean that_present_fetchResult = true && that.isSetFetchResult();
+    if (this_present_fetchResult || that_present_fetchResult) {
+      if (!(this_present_fetchResult && that_present_fetchResult))
+        return false;
+      if (!this.fetchResult.equals(that.fetchResult))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(BlurResult other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    BlurResult typedOther = (BlurResult)other;
+
+    lastComparison = Boolean.valueOf(isSetLocationId()).compareTo(typedOther.isSetLocationId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLocationId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationId, typedOther.locationId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetScore()).compareTo(typedOther.isSetScore());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetScore()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.score, typedOther.score);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFetchResult()).compareTo(typedOther.isSetFetchResult());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFetchResult()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchResult, typedOther.fetchResult);
+      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 {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // LOCATION_ID
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.locationId = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // SCORE
+          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
+            this.score = iprot.readDouble();
+            setScoreIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // FETCH_RESULT
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.fetchResult = new FetchResult();
+            this.fetchResult.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.locationId != null) {
+      oprot.writeFieldBegin(LOCATION_ID_FIELD_DESC);
+      oprot.writeString(this.locationId);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(SCORE_FIELD_DESC);
+    oprot.writeDouble(this.score);
+    oprot.writeFieldEnd();
+    if (this.fetchResult != null) {
+      oprot.writeFieldBegin(FETCH_RESULT_FIELD_DESC);
+      this.fetchResult.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("BlurResult(");
+    boolean first = true;
+
+    sb.append("locationId:");
+    if (this.locationId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.locationId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("score:");
+    sb.append(this.score);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("fetchResult:");
+    if (this.fetchResult == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.fetchResult);
+    }
+    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);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/33df9310/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
new file mode 100644
index 0000000..043fc4d
--- /dev/null
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
@@ -0,0 +1,1000 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+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;
+
+/**
+ * 
+ */
+public class BlurResults implements org.apache.thrift.TBase<BlurResults, BlurResults._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BlurResults");
+
+  private static final org.apache.thrift.protocol.TField TOTAL_RESULTS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalResults", org.apache.thrift.protocol.TType.I64, (short)1);
+  private static final org.apache.thrift.protocol.TField SHARD_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("shardInfo", org.apache.thrift.protocol.TType.MAP, (short)2);
+  private static final org.apache.thrift.protocol.TField RESULTS_FIELD_DESC = new org.apache.thrift.protocol.TField("results", org.apache.thrift.protocol.TType.LIST, (short)3);
+  private static final org.apache.thrift.protocol.TField FACET_COUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("facetCounts", org.apache.thrift.protocol.TType.LIST, (short)4);
+  private static final org.apache.thrift.protocol.TField EXCEPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptions", org.apache.thrift.protocol.TType.LIST, (short)5);
+  private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)6);
+
+  /**
+   * 
+   */
+  public long totalResults; // required
+  /**
+   * 
+   */
+  public Map<String,Long> shardInfo; // required
+  /**
+   * 
+   */
+  public List<BlurResult> results; // required
+  /**
+   * 
+   */
+  public List<Long> facetCounts; // required
+  /**
+   * 
+   */
+  public List<BlurException> exceptions; // required
+  /**
+   * 
+   */
+  public BlurQuery query; // 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 {
+    /**
+     * 
+     */
+    TOTAL_RESULTS((short)1, "totalResults"),
+    /**
+     * 
+     */
+    SHARD_INFO((short)2, "shardInfo"),
+    /**
+     * 
+     */
+    RESULTS((short)3, "results"),
+    /**
+     * 
+     */
+    FACET_COUNTS((short)4, "facetCounts"),
+    /**
+     * 
+     */
+    EXCEPTIONS((short)5, "exceptions"),
+    /**
+     * 
+     */
+    QUERY((short)6, "query");
+
+    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: // TOTAL_RESULTS
+          return TOTAL_RESULTS;
+        case 2: // SHARD_INFO
+          return SHARD_INFO;
+        case 3: // RESULTS
+          return RESULTS;
+        case 4: // FACET_COUNTS
+          return FACET_COUNTS;
+        case 5: // EXCEPTIONS
+          return EXCEPTIONS;
+        case 6: // QUERY
+          return QUERY;
+        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 __TOTALRESULTS_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.TOTAL_RESULTS, new org.apache.thrift.meta_data.FieldMetaData("totalResults", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.SHARD_INFO, new org.apache.thrift.meta_data.FieldMetaData("shardInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
+    tmpMap.put(_Fields.RESULTS, new org.apache.thrift.meta_data.FieldMetaData("results", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BlurResult.class))));
+    tmpMap.put(_Fields.FACET_COUNTS, new org.apache.thrift.meta_data.FieldMetaData("facetCounts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
+    tmpMap.put(_Fields.EXCEPTIONS, new org.apache.thrift.meta_data.FieldMetaData("exceptions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))));
+    tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BlurQuery.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BlurResults.class, metaDataMap);
+  }
+
+  public BlurResults() {
+    this.totalResults = 0L;
+
+  }
+
+  public BlurResults(
+    long totalResults,
+    Map<String,Long> shardInfo,
+    List<BlurResult> results,
+    List<Long> facetCounts,
+    List<BlurException> exceptions,
+    BlurQuery query)
+  {
+    this();
+    this.totalResults = totalResults;
+    setTotalResultsIsSet(true);
+    this.shardInfo = shardInfo;
+    this.results = results;
+    this.facetCounts = facetCounts;
+    this.exceptions = exceptions;
+    this.query = query;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public BlurResults(BlurResults other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    this.totalResults = other.totalResults;
+    if (other.isSetShardInfo()) {
+      Map<String,Long> __this__shardInfo = new HashMap<String,Long>();
+      for (Map.Entry<String, Long> other_element : other.shardInfo.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        Long other_element_value = other_element.getValue();
+
+        String __this__shardInfo_copy_key = other_element_key;
+
+        Long __this__shardInfo_copy_value = other_element_value;
+
+        __this__shardInfo.put(__this__shardInfo_copy_key, __this__shardInfo_copy_value);
+      }
+      this.shardInfo = __this__shardInfo;
+    }
+    if (other.isSetResults()) {
+      List<BlurResult> __this__results = new ArrayList<BlurResult>();
+      for (BlurResult other_element : other.results) {
+        __this__results.add(new BlurResult(other_element));
+      }
+      this.results = __this__results;
+    }
+    if (other.isSetFacetCounts()) {
+      List<Long> __this__facetCounts = new ArrayList<Long>();
+      for (Long other_element : other.facetCounts) {
+        __this__facetCounts.add(other_element);
+      }
+      this.facetCounts = __this__facetCounts;
+    }
+    if (other.isSetExceptions()) {
+      List<BlurException> __this__exceptions = new ArrayList<BlurException>();
+      for (BlurException other_element : other.exceptions) {
+        __this__exceptions.add(new BlurException(other_element));
+      }
+      this.exceptions = __this__exceptions;
+    }
+    if (other.isSetQuery()) {
+      this.query = new BlurQuery(other.query);
+    }
+  }
+
+  public BlurResults deepCopy() {
+    return new BlurResults(this);
+  }
+
+  @Override
+  public void clear() {
+    this.totalResults = 0L;
+
+    this.shardInfo = null;
+    this.results = null;
+    this.facetCounts = null;
+    this.exceptions = null;
+    this.query = null;
+  }
+
+  /**
+   * 
+   */
+  public long getTotalResults() {
+    return this.totalResults;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setTotalResults(long totalResults) {
+    this.totalResults = totalResults;
+    setTotalResultsIsSet(true);
+    return this;
+  }
+
+  public void unsetTotalResults() {
+    __isset_bit_vector.clear(__TOTALRESULTS_ISSET_ID);
+  }
+
+  /** Returns true if field totalResults is set (has been assigned a value) and false otherwise */
+  public boolean isSetTotalResults() {
+    return __isset_bit_vector.get(__TOTALRESULTS_ISSET_ID);
+  }
+
+  public void setTotalResultsIsSet(boolean value) {
+    __isset_bit_vector.set(__TOTALRESULTS_ISSET_ID, value);
+  }
+
+  public int getShardInfoSize() {
+    return (this.shardInfo == null) ? 0 : this.shardInfo.size();
+  }
+
+  public void putToShardInfo(String key, long val) {
+    if (this.shardInfo == null) {
+      this.shardInfo = new HashMap<String,Long>();
+    }
+    this.shardInfo.put(key, val);
+  }
+
+  /**
+   * 
+   */
+  public Map<String,Long> getShardInfo() {
+    return this.shardInfo;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setShardInfo(Map<String,Long> shardInfo) {
+    this.shardInfo = shardInfo;
+    return this;
+  }
+
+  public void unsetShardInfo() {
+    this.shardInfo = null;
+  }
+
+  /** Returns true if field shardInfo is set (has been assigned a value) and false otherwise */
+  public boolean isSetShardInfo() {
+    return this.shardInfo != null;
+  }
+
+  public void setShardInfoIsSet(boolean value) {
+    if (!value) {
+      this.shardInfo = null;
+    }
+  }
+
+  public int getResultsSize() {
+    return (this.results == null) ? 0 : this.results.size();
+  }
+
+  public java.util.Iterator<BlurResult> getResultsIterator() {
+    return (this.results == null) ? null : this.results.iterator();
+  }
+
+  public void addToResults(BlurResult elem) {
+    if (this.results == null) {
+      this.results = new ArrayList<BlurResult>();
+    }
+    this.results.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<BlurResult> getResults() {
+    return this.results;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setResults(List<BlurResult> results) {
+    this.results = results;
+    return this;
+  }
+
+  public void unsetResults() {
+    this.results = null;
+  }
+
+  /** Returns true if field results is set (has been assigned a value) and false otherwise */
+  public boolean isSetResults() {
+    return this.results != null;
+  }
+
+  public void setResultsIsSet(boolean value) {
+    if (!value) {
+      this.results = null;
+    }
+  }
+
+  public int getFacetCountsSize() {
+    return (this.facetCounts == null) ? 0 : this.facetCounts.size();
+  }
+
+  public java.util.Iterator<Long> getFacetCountsIterator() {
+    return (this.facetCounts == null) ? null : this.facetCounts.iterator();
+  }
+
+  public void addToFacetCounts(long elem) {
+    if (this.facetCounts == null) {
+      this.facetCounts = new ArrayList<Long>();
+    }
+    this.facetCounts.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<Long> getFacetCounts() {
+    return this.facetCounts;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setFacetCounts(List<Long> facetCounts) {
+    this.facetCounts = facetCounts;
+    return this;
+  }
+
+  public void unsetFacetCounts() {
+    this.facetCounts = null;
+  }
+
+  /** Returns true if field facetCounts is set (has been assigned a value) and false otherwise */
+  public boolean isSetFacetCounts() {
+    return this.facetCounts != null;
+  }
+
+  public void setFacetCountsIsSet(boolean value) {
+    if (!value) {
+      this.facetCounts = null;
+    }
+  }
+
+  public int getExceptionsSize() {
+    return (this.exceptions == null) ? 0 : this.exceptions.size();
+  }
+
+  public java.util.Iterator<BlurException> getExceptionsIterator() {
+    return (this.exceptions == null) ? null : this.exceptions.iterator();
+  }
+
+  public void addToExceptions(BlurException elem) {
+    if (this.exceptions == null) {
+      this.exceptions = new ArrayList<BlurException>();
+    }
+    this.exceptions.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<BlurException> getExceptions() {
+    return this.exceptions;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setExceptions(List<BlurException> exceptions) {
+    this.exceptions = exceptions;
+    return this;
+  }
+
+  public void unsetExceptions() {
+    this.exceptions = null;
+  }
+
+  /** Returns true if field exceptions is set (has been assigned a value) and false otherwise */
+  public boolean isSetExceptions() {
+    return this.exceptions != null;
+  }
+
+  public void setExceptionsIsSet(boolean value) {
+    if (!value) {
+      this.exceptions = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public BlurQuery getQuery() {
+    return this.query;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setQuery(BlurQuery query) {
+    this.query = query;
+    return this;
+  }
+
+  public void unsetQuery() {
+    this.query = null;
+  }
+
+  /** Returns true if field query is set (has been assigned a value) and false otherwise */
+  public boolean isSetQuery() {
+    return this.query != null;
+  }
+
+  public void setQueryIsSet(boolean value) {
+    if (!value) {
+      this.query = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case TOTAL_RESULTS:
+      if (value == null) {
+        unsetTotalResults();
+      } else {
+        setTotalResults((Long)value);
+      }
+      break;
+
+    case SHARD_INFO:
+      if (value == null) {
+        unsetShardInfo();
+      } else {
+        setShardInfo((Map<String,Long>)value);
+      }
+      break;
+
+    case RESULTS:
+      if (value == null) {
+        unsetResults();
+      } else {
+        setResults((List<BlurResult>)value);
+      }
+      break;
+
+    case FACET_COUNTS:
+      if (value == null) {
+        unsetFacetCounts();
+      } else {
+        setFacetCounts((List<Long>)value);
+      }
+      break;
+
+    case EXCEPTIONS:
+      if (value == null) {
+        unsetExceptions();
+      } else {
+        setExceptions((List<BlurException>)value);
+      }
+      break;
+
+    case QUERY:
+      if (value == null) {
+        unsetQuery();
+      } else {
+        setQuery((BlurQuery)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case TOTAL_RESULTS:
+      return Long.valueOf(getTotalResults());
+
+    case SHARD_INFO:
+      return getShardInfo();
+
+    case RESULTS:
+      return getResults();
+
+    case FACET_COUNTS:
+      return getFacetCounts();
+
+    case EXCEPTIONS:
+      return getExceptions();
+
+    case QUERY:
+      return getQuery();
+
+    }
+    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 TOTAL_RESULTS:
+      return isSetTotalResults();
+    case SHARD_INFO:
+      return isSetShardInfo();
+    case RESULTS:
+      return isSetResults();
+    case FACET_COUNTS:
+      return isSetFacetCounts();
+    case EXCEPTIONS:
+      return isSetExceptions();
+    case QUERY:
+      return isSetQuery();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof BlurResults)
+      return this.equals((BlurResults)that);
+    return false;
+  }
+
+  public boolean equals(BlurResults that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_totalResults = true;
+    boolean that_present_totalResults = true;
+    if (this_present_totalResults || that_present_totalResults) {
+      if (!(this_present_totalResults && that_present_totalResults))
+        return false;
+      if (this.totalResults != that.totalResults)
+        return false;
+    }
+
+    boolean this_present_shardInfo = true && this.isSetShardInfo();
+    boolean that_present_shardInfo = true && that.isSetShardInfo();
+    if (this_present_shardInfo || that_present_shardInfo) {
+      if (!(this_present_shardInfo && that_present_shardInfo))
+        return false;
+      if (!this.shardInfo.equals(that.shardInfo))
+        return false;
+    }
+
+    boolean this_present_results = true && this.isSetResults();
+    boolean that_present_results = true && that.isSetResults();
+    if (this_present_results || that_present_results) {
+      if (!(this_present_results && that_present_results))
+        return false;
+      if (!this.results.equals(that.results))
+        return false;
+    }
+
+    boolean this_present_facetCounts = true && this.isSetFacetCounts();
+    boolean that_present_facetCounts = true && that.isSetFacetCounts();
+    if (this_present_facetCounts || that_present_facetCounts) {
+      if (!(this_present_facetCounts && that_present_facetCounts))
+        return false;
+      if (!this.facetCounts.equals(that.facetCounts))
+        return false;
+    }
+
+    boolean this_present_exceptions = true && this.isSetExceptions();
+    boolean that_present_exceptions = true && that.isSetExceptions();
+    if (this_present_exceptions || that_present_exceptions) {
+      if (!(this_present_exceptions && that_present_exceptions))
+        return false;
+      if (!this.exceptions.equals(that.exceptions))
+        return false;
+    }
+
+    boolean this_present_query = true && this.isSetQuery();
+    boolean that_present_query = true && that.isSetQuery();
+    if (this_present_query || that_present_query) {
+      if (!(this_present_query && that_present_query))
+        return false;
+      if (!this.query.equals(that.query))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(BlurResults other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    BlurResults typedOther = (BlurResults)other;
+
+    lastComparison = Boolean.valueOf(isSetTotalResults()).compareTo(typedOther.isSetTotalResults());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTotalResults()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalResults, typedOther.totalResults);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetShardInfo()).compareTo(typedOther.isSetShardInfo());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetShardInfo()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shardInfo, typedOther.shardInfo);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetResults()).compareTo(typedOther.isSetResults());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetResults()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, typedOther.results);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFacetCounts()).compareTo(typedOther.isSetFacetCounts());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFacetCounts()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.facetCounts, typedOther.facetCounts);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetExceptions()).compareTo(typedOther.isSetExceptions());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExceptions()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptions, typedOther.exceptions);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQuery()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query);
+      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 {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // TOTAL_RESULTS
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.totalResults = iprot.readI64();
+            setTotalResultsIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // SHARD_INFO
+          if (field.type == org.apache.thrift.protocol.TType.MAP) {
+            {
+              org.apache.thrift.protocol.TMap _map25 = iprot.readMapBegin();
+              this.shardInfo = new HashMap<String,Long>(2*_map25.size);
+              for (int _i26 = 0; _i26 < _map25.size; ++_i26)
+              {
+                String _key27; // required
+                long _val28; // required
+                _key27 = iprot.readString();
+                _val28 = iprot.readI64();
+                this.shardInfo.put(_key27, _val28);
+              }
+              iprot.readMapEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // RESULTS
+          if (field.type == org.apache.thrift.protocol.TType.LIST) {
+            {
+              org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
+              this.results = new ArrayList<BlurResult>(_list29.size);
+              for (int _i30 = 0; _i30 < _list29.size; ++_i30)
+              {
+                BlurResult _elem31; // required
+                _elem31 = new BlurResult();
+                _elem31.read(iprot);
+                this.results.add(_elem31);
+              }
+              iprot.readListEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 4: // FACET_COUNTS
+          if (field.type == org.apache.thrift.protocol.TType.LIST) {
+            {
+              org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
+              this.facetCounts = new ArrayList<Long>(_list32.size);
+              for (int _i33 = 0; _i33 < _list32.size; ++_i33)
+              {
+                long _elem34; // required
+                _elem34 = iprot.readI64();
+                this.facetCounts.add(_elem34);
+              }
+              iprot.readListEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 5: // EXCEPTIONS
+          if (field.type == org.apache.thrift.protocol.TType.LIST) {
+            {
+              org.apache.thrift.protocol.TList _list35 = iprot.readListBegin();
+              this.exceptions = new ArrayList<BlurException>(_list35.size);
+              for (int _i36 = 0; _i36 < _list35.size; ++_i36)
+              {
+                BlurException _elem37; // required
+                _elem37 = new BlurException();
+                _elem37.read(iprot);
+                this.exceptions.add(_elem37);
+              }
+              iprot.readListEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 6: // QUERY
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.query = new BlurQuery();
+            this.query.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    oprot.writeFieldBegin(TOTAL_RESULTS_FIELD_DESC);
+    oprot.writeI64(this.totalResults);
+    oprot.writeFieldEnd();
+    if (this.shardInfo != null) {
+      oprot.writeFieldBegin(SHARD_INFO_FIELD_DESC);
+      {
+        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.shardInfo.size()));
+        for (Map.Entry<String, Long> _iter38 : this.shardInfo.entrySet())
+        {
+          oprot.writeString(_iter38.getKey());
+          oprot.writeI64(_iter38.getValue());
+        }
+        oprot.writeMapEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    if (this.results != null) {
+      oprot.writeFieldBegin(RESULTS_FIELD_DESC);
+      {
+        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.results.size()));
+        for (BlurResult _iter39 : this.results)
+        {
+          _iter39.write(oprot);
+        }
+        oprot.writeListEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    if (this.facetCounts != null) {
+      oprot.writeFieldBegin(FACET_COUNTS_FIELD_DESC);
+      {
+        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.facetCounts.size()));
+        for (long _iter40 : this.facetCounts)
+        {
+          oprot.writeI64(_iter40);
+        }
+        oprot.writeListEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    if (this.exceptions != null) {
+      oprot.writeFieldBegin(EXCEPTIONS_FIELD_DESC);
+      {
+        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.exceptions.size()));
+        for (BlurException _iter41 : this.exceptions)
+        {
+          _iter41.write(oprot);
+        }
+        oprot.writeListEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    if (this.query != null) {
+      oprot.writeFieldBegin(QUERY_FIELD_DESC);
+      this.query.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("BlurResults(");
+    boolean first = true;
+
+    sb.append("totalResults:");
+    sb.append(this.totalResults);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("shardInfo:");
+    if (this.shardInfo == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.shardInfo);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("results:");
+    if (this.results == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.results);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("facetCounts:");
+    if (this.facetCounts == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.facetCounts);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("exceptions:");
+    if (this.exceptions == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.exceptions);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("query:");
+    if (this.query == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.query);
+    }
+    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);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/33df9310/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
new file mode 100644
index 0000000..42e20b3
--- /dev/null
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
@@ -0,0 +1,435 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+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;
+
+/**
+ * Column is the lowest storage element in Blur, it stores a single name and value pair.
+ */
+public class Column implements org.apache.thrift.TBase<Column, Column._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Column");
+
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  /**
+   * The name of the column.
+   */
+  public String name; // required
+  /**
+   * The value to be indexed and stored.
+   */
+  public String value; // 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 {
+    /**
+     * The name of the column.
+     */
+    NAME((short)1, "name"),
+    /**
+     * The value to be indexed and stored.
+     */
+    VALUE((short)2, "value");
+
+    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: // NAME
+          return NAME;
+        case 2: // VALUE
+          return VALUE;
+        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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Column.class, metaDataMap);
+  }
+
+  public Column() {
+  }
+
+  public Column(
+    String name,
+    String value)
+  {
+    this();
+    this.name = name;
+    this.value = value;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public Column(Column other) {
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetValue()) {
+      this.value = other.value;
+    }
+  }
+
+  public Column deepCopy() {
+    return new Column(this);
+  }
+
+  @Override
+  public void clear() {
+    this.name = null;
+    this.value = null;
+  }
+
+  /**
+   * The name of the column.
+   */
+  public String getName() {
+    return this.name;
+  }
+
+  /**
+   * The name of the column.
+   */
+  public Column setName(String name) {
+    this.name = name;
+    return this;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  /**
+   * The value to be indexed and stored.
+   */
+  public String getValue() {
+    return this.value;
+  }
+
+  /**
+   * The value to be indexed and stored.
+   */
+  public Column setValue(String value) {
+    this.value = value;
+    return this;
+  }
+
+  public void unsetValue() {
+    this.value = null;
+  }
+
+  /** Returns true if field value is set (has been assigned a value) and false otherwise */
+  public boolean isSetValue() {
+    return this.value != null;
+  }
+
+  public void setValueIsSet(boolean value) {
+    if (!value) {
+      this.value = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case VALUE:
+      if (value == null) {
+        unsetValue();
+      } else {
+        setValue((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case NAME:
+      return getName();
+
+    case VALUE:
+      return getValue();
+
+    }
+    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 NAME:
+      return isSetName();
+    case VALUE:
+      return isSetValue();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof Column)
+      return this.equals((Column)that);
+    return false;
+  }
+
+  public boolean equals(Column that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_value = true && this.isSetValue();
+    boolean that_present_value = true && that.isSetValue();
+    if (this_present_value || that_present_value) {
+      if (!(this_present_value && that_present_value))
+        return false;
+      if (!this.value.equals(that.value))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(Column other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    Column typedOther = (Column)other;
+
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetValue()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
+      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 {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.name = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // VALUE
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.value = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.name != null) {
+      oprot.writeFieldBegin(NAME_FIELD_DESC);
+      oprot.writeString(this.name);
+      oprot.writeFieldEnd();
+    }
+    if (this.value != null) {
+      oprot.writeFieldBegin(VALUE_FIELD_DESC);
+      oprot.writeString(this.value);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("Column(");
+    boolean first = true;
+
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("value:");
+    if (this.value == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.value);
+    }
+    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);
+    }
+  }
+
+}
+


Mime
View raw message