incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [06/13] More updates for the sorting feature.
Date Tue, 28 Jan 2014 18:57:38 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResult.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResult.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResult.java
index 3afec34..635ac7f 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResult.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResult.java
@@ -58,6 +58,7 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
   private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField LOCATION_ID_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("locationId", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1);
   private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SCORE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("score", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE, (short)2);
   private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FETCH_RESULT_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("fetchResult", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)3);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SORT_FIELDS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("sortFields", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, (short)4);
 
   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
   static {
@@ -77,6 +78,10 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
    * The fetched result if any.
    */
   public FetchResult fetchResult; // required
+  /**
+   * The fields used for sorting.
+   */
+  public List<SortField> sortFields; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
   public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
@@ -91,7 +96,11 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
     /**
      * The fetched result if any.
      */
-    FETCH_RESULT((short)3, "fetchResult");
+    FETCH_RESULT((short)3, "fetchResult"),
+    /**
+     * The fields used for sorting.
+     */
+    SORT_FIELDS((short)4, "sortFields");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -112,6 +121,8 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
           return SCORE;
         case 3: // FETCH_RESULT
           return FETCH_RESULT;
+        case 4: // SORT_FIELDS
+          return SORT_FIELDS;
         default:
           return null;
       }
@@ -163,6 +174,9 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
         new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE)));
     tmpMap.put(_Fields.FETCH_RESULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("fetchResult", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
         new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, FetchResult.class)));
+    tmpMap.put(_Fields.SORT_FIELDS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("sortFields", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.ListMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, SortField.class))));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
     org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(BlurResult.class, metaDataMap);
   }
@@ -173,13 +187,15 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
   public BlurResult(
     String locationId,
     double score,
-    FetchResult fetchResult)
+    FetchResult fetchResult,
+    List<SortField> sortFields)
   {
     this();
     this.locationId = locationId;
     this.score = score;
     setScoreIsSet(true);
     this.fetchResult = fetchResult;
+    this.sortFields = sortFields;
   }
 
   /**
@@ -194,6 +210,13 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
     if (other.isSetFetchResult()) {
       this.fetchResult = new FetchResult(other.fetchResult);
     }
+    if (other.isSetSortFields()) {
+      List<SortField> __this__sortFields = new ArrayList<SortField>();
+      for (SortField other_element : other.sortFields) {
+        __this__sortFields.add(new SortField(other_element));
+      }
+      this.sortFields = __this__sortFields;
+    }
   }
 
   public BlurResult deepCopy() {
@@ -206,6 +229,7 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
     setScoreIsSet(false);
     this.score = 0.0;
     this.fetchResult = null;
+    this.sortFields = null;
   }
 
   /**
@@ -297,6 +321,51 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
     }
   }
 
+  public int getSortFieldsSize() {
+    return (this.sortFields == null) ? 0 : this.sortFields.size();
+  }
+
+  public java.util.Iterator<SortField> getSortFieldsIterator() {
+    return (this.sortFields == null) ? null : this.sortFields.iterator();
+  }
+
+  public void addToSortFields(SortField elem) {
+    if (this.sortFields == null) {
+      this.sortFields = new ArrayList<SortField>();
+    }
+    this.sortFields.add(elem);
+  }
+
+  /**
+   * The fields used for sorting.
+   */
+  public List<SortField> getSortFields() {
+    return this.sortFields;
+  }
+
+  /**
+   * The fields used for sorting.
+   */
+  public BlurResult setSortFields(List<SortField> sortFields) {
+    this.sortFields = sortFields;
+    return this;
+  }
+
+  public void unsetSortFields() {
+    this.sortFields = null;
+  }
+
+  /** Returns true if field sortFields is set (has been assigned a value) and false otherwise */
+  public boolean isSetSortFields() {
+    return this.sortFields != null;
+  }
+
+  public void setSortFieldsIsSet(boolean value) {
+    if (!value) {
+      this.sortFields = null;
+    }
+  }
+
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
     case LOCATION_ID:
@@ -323,6 +392,14 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
       }
       break;
 
+    case SORT_FIELDS:
+      if (value == null) {
+        unsetSortFields();
+      } else {
+        setSortFields((List<SortField>)value);
+      }
+      break;
+
     }
   }
 
@@ -337,6 +414,9 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
     case FETCH_RESULT:
       return getFetchResult();
 
+    case SORT_FIELDS:
+      return getSortFields();
+
     }
     throw new IllegalStateException();
   }
@@ -354,6 +434,8 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
       return isSetScore();
     case FETCH_RESULT:
       return isSetFetchResult();
+    case SORT_FIELDS:
+      return isSetSortFields();
     }
     throw new IllegalStateException();
   }
@@ -398,6 +480,15 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
         return false;
     }
 
+    boolean this_present_sortFields = true && this.isSetSortFields();
+    boolean that_present_sortFields = true && that.isSetSortFields();
+    if (this_present_sortFields || that_present_sortFields) {
+      if (!(this_present_sortFields && that_present_sortFields))
+        return false;
+      if (!this.sortFields.equals(that.sortFields))
+        return false;
+    }
+
     return true;
   }
 
@@ -444,6 +535,16 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
         return lastComparison;
       }
     }
+    lastComparison = Boolean.valueOf(isSetSortFields()).compareTo(typedOther.isSetSortFields());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSortFields()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.sortFields, typedOther.sortFields);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
     return 0;
   }
 
@@ -483,6 +584,14 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
       sb.append(this.fetchResult);
     }
     first = false;
+    if (!first) sb.append(", ");
+    sb.append("sortFields:");
+    if (this.sortFields == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.sortFields);
+    }
+    first = false;
     sb.append(")");
     return sb.toString();
   }
@@ -556,6 +665,25 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
               org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
+          case 4: // SORT_FIELDS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list58 = iprot.readListBegin();
+                struct.sortFields = new ArrayList<SortField>(_list58.size);
+                for (int _i59 = 0; _i59 < _list58.size; ++_i59)
+                {
+                  SortField _elem60; // required
+                  _elem60 = new SortField();
+                  _elem60.read(iprot);
+                  struct.sortFields.add(_elem60);
+                }
+                iprot.readListEnd();
+              }
+              struct.setSortFieldsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
           default:
             org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
@@ -584,6 +712,18 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
         struct.fetchResult.write(oprot);
         oprot.writeFieldEnd();
       }
+      if (struct.sortFields != null) {
+        oprot.writeFieldBegin(SORT_FIELDS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.sortFields.size()));
+          for (SortField _iter61 : struct.sortFields)
+          {
+            _iter61.write(oprot);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
@@ -611,7 +751,10 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
       if (struct.isSetFetchResult()) {
         optionals.set(2);
       }
-      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetSortFields()) {
+        optionals.set(3);
+      }
+      oprot.writeBitSet(optionals, 4);
       if (struct.isSetLocationId()) {
         oprot.writeString(struct.locationId);
       }
@@ -621,12 +764,21 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
       if (struct.isSetFetchResult()) {
         struct.fetchResult.write(oprot);
       }
+      if (struct.isSetSortFields()) {
+        {
+          oprot.writeI32(struct.sortFields.size());
+          for (SortField _iter62 : struct.sortFields)
+          {
+            _iter62.write(oprot);
+          }
+        }
+      }
     }
 
     @Override
     public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurResult struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
       TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(3);
+      BitSet incoming = iprot.readBitSet(4);
       if (incoming.get(0)) {
         struct.locationId = iprot.readString();
         struct.setLocationIdIsSet(true);
@@ -640,6 +792,20 @@ public class BlurResult implements org.apache.blur.thirdparty.thrift_0_9_0.TBase
         struct.fetchResult.read(iprot);
         struct.setFetchResultIsSet(true);
       }
+      if (incoming.get(3)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list63 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.sortFields = new ArrayList<SortField>(_list63.size);
+          for (int _i64 = 0; _i64 < _list63.size; ++_i64)
+          {
+            SortField _elem65; // required
+            _elem65 = new SortField();
+            _elem65.read(iprot);
+            struct.sortFields.add(_elem65);
+          }
+        }
+        struct.setSortFieldsIsSet(true);
+      }
     }
   }
 

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResults.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResults.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResults.java
index e516cf1..15f85e4 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResults.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/BlurResults.java
@@ -896,15 +896,15 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
           case 2: // SHARD_INFO
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map58 = iprot.readMapBegin();
-                struct.shardInfo = new HashMap<String,Long>(2*_map58.size);
-                for (int _i59 = 0; _i59 < _map58.size; ++_i59)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map66 = iprot.readMapBegin();
+                struct.shardInfo = new HashMap<String,Long>(2*_map66.size);
+                for (int _i67 = 0; _i67 < _map66.size; ++_i67)
                 {
-                  String _key60; // optional
-                  long _val61; // required
-                  _key60 = iprot.readString();
-                  _val61 = iprot.readI64();
-                  struct.shardInfo.put(_key60, _val61);
+                  String _key68; // optional
+                  long _val69; // required
+                  _key68 = iprot.readString();
+                  _val69 = iprot.readI64();
+                  struct.shardInfo.put(_key68, _val69);
                 }
                 iprot.readMapEnd();
               }
@@ -916,14 +916,14 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
           case 3: // RESULTS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list62 = iprot.readListBegin();
-                struct.results = new ArrayList<BlurResult>(_list62.size);
-                for (int _i63 = 0; _i63 < _list62.size; ++_i63)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list70 = iprot.readListBegin();
+                struct.results = new ArrayList<BlurResult>(_list70.size);
+                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
                 {
-                  BlurResult _elem64; // required
-                  _elem64 = new BlurResult();
-                  _elem64.read(iprot);
-                  struct.results.add(_elem64);
+                  BlurResult _elem72; // required
+                  _elem72 = new BlurResult();
+                  _elem72.read(iprot);
+                  struct.results.add(_elem72);
                 }
                 iprot.readListEnd();
               }
@@ -935,13 +935,13 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
           case 4: // FACET_COUNTS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list65 = iprot.readListBegin();
-                struct.facetCounts = new ArrayList<Long>(_list65.size);
-                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list73 = iprot.readListBegin();
+                struct.facetCounts = new ArrayList<Long>(_list73.size);
+                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
                 {
-                  long _elem67; // required
-                  _elem67 = iprot.readI64();
-                  struct.facetCounts.add(_elem67);
+                  long _elem75; // required
+                  _elem75 = iprot.readI64();
+                  struct.facetCounts.add(_elem75);
                 }
                 iprot.readListEnd();
               }
@@ -953,14 +953,14 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
           case 5: // EXCEPTIONS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list68 = iprot.readListBegin();
-                struct.exceptions = new ArrayList<BlurException>(_list68.size);
-                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list76 = iprot.readListBegin();
+                struct.exceptions = new ArrayList<BlurException>(_list76.size);
+                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
                 {
-                  BlurException _elem70; // required
-                  _elem70 = new BlurException();
-                  _elem70.read(iprot);
-                  struct.exceptions.add(_elem70);
+                  BlurException _elem78; // required
+                  _elem78 = new BlurException();
+                  _elem78.read(iprot);
+                  struct.exceptions.add(_elem78);
                 }
                 iprot.readListEnd();
               }
@@ -1000,10 +1000,10 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
         oprot.writeFieldBegin(SHARD_INFO_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, struct.shardInfo.size()));
-          for (Map.Entry<String, Long> _iter71 : struct.shardInfo.entrySet())
+          for (Map.Entry<String, Long> _iter79 : struct.shardInfo.entrySet())
           {
-            oprot.writeString(_iter71.getKey());
-            oprot.writeI64(_iter71.getValue());
+            oprot.writeString(_iter79.getKey());
+            oprot.writeI64(_iter79.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -1013,9 +1013,9 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
         oprot.writeFieldBegin(RESULTS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.results.size()));
-          for (BlurResult _iter72 : struct.results)
+          for (BlurResult _iter80 : struct.results)
           {
-            _iter72.write(oprot);
+            _iter80.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -1025,9 +1025,9 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
         oprot.writeFieldBegin(FACET_COUNTS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, struct.facetCounts.size()));
-          for (long _iter73 : struct.facetCounts)
+          for (long _iter81 : struct.facetCounts)
           {
-            oprot.writeI64(_iter73);
+            oprot.writeI64(_iter81);
           }
           oprot.writeListEnd();
         }
@@ -1037,9 +1037,9 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
         oprot.writeFieldBegin(EXCEPTIONS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.exceptions.size()));
-          for (BlurException _iter74 : struct.exceptions)
+          for (BlurException _iter82 : struct.exceptions)
           {
-            _iter74.write(oprot);
+            _iter82.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -1093,37 +1093,37 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
       if (struct.isSetShardInfo()) {
         {
           oprot.writeI32(struct.shardInfo.size());
-          for (Map.Entry<String, Long> _iter75 : struct.shardInfo.entrySet())
+          for (Map.Entry<String, Long> _iter83 : struct.shardInfo.entrySet())
           {
-            oprot.writeString(_iter75.getKey());
-            oprot.writeI64(_iter75.getValue());
+            oprot.writeString(_iter83.getKey());
+            oprot.writeI64(_iter83.getValue());
           }
         }
       }
       if (struct.isSetResults()) {
         {
           oprot.writeI32(struct.results.size());
-          for (BlurResult _iter76 : struct.results)
+          for (BlurResult _iter84 : struct.results)
           {
-            _iter76.write(oprot);
+            _iter84.write(oprot);
           }
         }
       }
       if (struct.isSetFacetCounts()) {
         {
           oprot.writeI32(struct.facetCounts.size());
-          for (long _iter77 : struct.facetCounts)
+          for (long _iter85 : struct.facetCounts)
           {
-            oprot.writeI64(_iter77);
+            oprot.writeI64(_iter85);
           }
         }
       }
       if (struct.isSetExceptions()) {
         {
           oprot.writeI32(struct.exceptions.size());
-          for (BlurException _iter78 : struct.exceptions)
+          for (BlurException _iter86 : struct.exceptions)
           {
-            _iter78.write(oprot);
+            _iter86.write(oprot);
           }
         }
       }
@@ -1142,56 +1142,56 @@ public class BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
       }
       if (incoming.get(1)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map79 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
-          struct.shardInfo = new HashMap<String,Long>(2*_map79.size);
-          for (int _i80 = 0; _i80 < _map79.size; ++_i80)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map87 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
+          struct.shardInfo = new HashMap<String,Long>(2*_map87.size);
+          for (int _i88 = 0; _i88 < _map87.size; ++_i88)
           {
-            String _key81; // optional
-            long _val82; // required
-            _key81 = iprot.readString();
-            _val82 = iprot.readI64();
-            struct.shardInfo.put(_key81, _val82);
+            String _key89; // optional
+            long _val90; // required
+            _key89 = iprot.readString();
+            _val90 = iprot.readI64();
+            struct.shardInfo.put(_key89, _val90);
           }
         }
         struct.setShardInfoIsSet(true);
       }
       if (incoming.get(2)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list83 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
-          struct.results = new ArrayList<BlurResult>(_list83.size);
-          for (int _i84 = 0; _i84 < _list83.size; ++_i84)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list91 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.results = new ArrayList<BlurResult>(_list91.size);
+          for (int _i92 = 0; _i92 < _list91.size; ++_i92)
           {
-            BlurResult _elem85; // required
-            _elem85 = new BlurResult();
-            _elem85.read(iprot);
-            struct.results.add(_elem85);
+            BlurResult _elem93; // required
+            _elem93 = new BlurResult();
+            _elem93.read(iprot);
+            struct.results.add(_elem93);
           }
         }
         struct.setResultsIsSet(true);
       }
       if (incoming.get(3)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list86 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
-          struct.facetCounts = new ArrayList<Long>(_list86.size);
-          for (int _i87 = 0; _i87 < _list86.size; ++_i87)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list94 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
+          struct.facetCounts = new ArrayList<Long>(_list94.size);
+          for (int _i95 = 0; _i95 < _list94.size; ++_i95)
           {
-            long _elem88; // required
-            _elem88 = iprot.readI64();
-            struct.facetCounts.add(_elem88);
+            long _elem96; // required
+            _elem96 = iprot.readI64();
+            struct.facetCounts.add(_elem96);
           }
         }
         struct.setFacetCountsIsSet(true);
       }
       if (incoming.get(4)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list89 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
-          struct.exceptions = new ArrayList<BlurException>(_list89.size);
-          for (int _i90 = 0; _i90 < _list89.size; ++_i90)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list97 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.exceptions = new ArrayList<BlurException>(_list97.size);
+          for (int _i98 = 0; _i98 < _list97.size; ++_i98)
           {
-            BlurException _elem91; // required
-            _elem91 = new BlurException();
-            _elem91.read(iprot);
-            struct.exceptions.add(_elem91);
+            BlurException _elem99; // required
+            _elem99 = new BlurException();
+            _elem99.read(iprot);
+            struct.exceptions.add(_elem99);
           }
         }
         struct.setExceptionsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
index 1780e4e..d39d208 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
@@ -903,15 +903,15 @@ public class ColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0
           case 6: // PROPERTIES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map110 = iprot.readMapBegin();
-                struct.properties = new HashMap<String,String>(2*_map110.size);
-                for (int _i111 = 0; _i111 < _map110.size; ++_i111)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map118 = iprot.readMapBegin();
+                struct.properties = new HashMap<String,String>(2*_map118.size);
+                for (int _i119 = 0; _i119 < _map118.size; ++_i119)
                 {
-                  String _key112; // optional
-                  String _val113; // required
-                  _key112 = iprot.readString();
-                  _val113 = iprot.readString();
-                  struct.properties.put(_key112, _val113);
+                  String _key120; // optional
+                  String _val121; // required
+                  _key120 = iprot.readString();
+                  _val121 = iprot.readString();
+                  struct.properties.put(_key120, _val121);
                 }
                 iprot.readMapEnd();
               }
@@ -962,10 +962,10 @@ public class ColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0
         oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.properties.size()));
-          for (Map.Entry<String, String> _iter114 : struct.properties.entrySet())
+          for (Map.Entry<String, String> _iter122 : struct.properties.entrySet())
           {
-            oprot.writeString(_iter114.getKey());
-            oprot.writeString(_iter114.getValue());
+            oprot.writeString(_iter122.getKey());
+            oprot.writeString(_iter122.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -1026,10 +1026,10 @@ public class ColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0
       if (struct.isSetProperties()) {
         {
           oprot.writeI32(struct.properties.size());
-          for (Map.Entry<String, String> _iter115 : struct.properties.entrySet())
+          for (Map.Entry<String, String> _iter123 : struct.properties.entrySet())
           {
-            oprot.writeString(_iter115.getKey());
-            oprot.writeString(_iter115.getValue());
+            oprot.writeString(_iter123.getKey());
+            oprot.writeString(_iter123.getValue());
           }
         }
       }
@@ -1061,15 +1061,15 @@ public class ColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0
       }
       if (incoming.get(5)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map116 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.properties = new HashMap<String,String>(2*_map116.size);
-          for (int _i117 = 0; _i117 < _map116.size; ++_i117)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map124 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.properties = new HashMap<String,String>(2*_map124.size);
+          for (int _i125 = 0; _i125 < _map124.size; ++_i125)
           {
-            String _key118; // optional
-            String _val119; // required
-            _key118 = iprot.readString();
-            _val119 = iprot.readString();
-            struct.properties.put(_key118, _val119);
+            String _key126; // optional
+            String _val127; // required
+            _key126 = iprot.readString();
+            _val127 = iprot.readString();
+            struct.properties.put(_key126, _val127);
           }
         }
         struct.setPropertiesIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Metric.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Metric.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Metric.java
index f2f0814..8dfb8af 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Metric.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Metric.java
@@ -703,15 +703,15 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
           case 2: // STR_MAP
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map176 = iprot.readMapBegin();
-                struct.strMap = new HashMap<String,String>(2*_map176.size);
-                for (int _i177 = 0; _i177 < _map176.size; ++_i177)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map184 = iprot.readMapBegin();
+                struct.strMap = new HashMap<String,String>(2*_map184.size);
+                for (int _i185 = 0; _i185 < _map184.size; ++_i185)
                 {
-                  String _key178; // optional
-                  String _val179; // required
-                  _key178 = iprot.readString();
-                  _val179 = iprot.readString();
-                  struct.strMap.put(_key178, _val179);
+                  String _key186; // optional
+                  String _val187; // required
+                  _key186 = iprot.readString();
+                  _val187 = iprot.readString();
+                  struct.strMap.put(_key186, _val187);
                 }
                 iprot.readMapEnd();
               }
@@ -723,15 +723,15 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
           case 3: // LONG_MAP
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map180 = iprot.readMapBegin();
-                struct.longMap = new HashMap<String,Long>(2*_map180.size);
-                for (int _i181 = 0; _i181 < _map180.size; ++_i181)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map188 = iprot.readMapBegin();
+                struct.longMap = new HashMap<String,Long>(2*_map188.size);
+                for (int _i189 = 0; _i189 < _map188.size; ++_i189)
                 {
-                  String _key182; // optional
-                  long _val183; // required
-                  _key182 = iprot.readString();
-                  _val183 = iprot.readI64();
-                  struct.longMap.put(_key182, _val183);
+                  String _key190; // optional
+                  long _val191; // required
+                  _key190 = iprot.readString();
+                  _val191 = iprot.readI64();
+                  struct.longMap.put(_key190, _val191);
                 }
                 iprot.readMapEnd();
               }
@@ -743,15 +743,15 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
           case 4: // DOUBLE_MAP
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map184 = iprot.readMapBegin();
-                struct.doubleMap = new HashMap<String,Double>(2*_map184.size);
-                for (int _i185 = 0; _i185 < _map184.size; ++_i185)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map192 = iprot.readMapBegin();
+                struct.doubleMap = new HashMap<String,Double>(2*_map192.size);
+                for (int _i193 = 0; _i193 < _map192.size; ++_i193)
                 {
-                  String _key186; // optional
-                  double _val187; // required
-                  _key186 = iprot.readString();
-                  _val187 = iprot.readDouble();
-                  struct.doubleMap.put(_key186, _val187);
+                  String _key194; // optional
+                  double _val195; // required
+                  _key194 = iprot.readString();
+                  _val195 = iprot.readDouble();
+                  struct.doubleMap.put(_key194, _val195);
                 }
                 iprot.readMapEnd();
               }
@@ -784,10 +784,10 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
         oprot.writeFieldBegin(STR_MAP_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.strMap.size()));
-          for (Map.Entry<String, String> _iter188 : struct.strMap.entrySet())
+          for (Map.Entry<String, String> _iter196 : struct.strMap.entrySet())
           {
-            oprot.writeString(_iter188.getKey());
-            oprot.writeString(_iter188.getValue());
+            oprot.writeString(_iter196.getKey());
+            oprot.writeString(_iter196.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -797,10 +797,10 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
         oprot.writeFieldBegin(LONG_MAP_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, struct.longMap.size()));
-          for (Map.Entry<String, Long> _iter189 : struct.longMap.entrySet())
+          for (Map.Entry<String, Long> _iter197 : struct.longMap.entrySet())
           {
-            oprot.writeString(_iter189.getKey());
-            oprot.writeI64(_iter189.getValue());
+            oprot.writeString(_iter197.getKey());
+            oprot.writeI64(_iter197.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -810,10 +810,10 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
         oprot.writeFieldBegin(DOUBLE_MAP_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE, struct.doubleMap.size()));
-          for (Map.Entry<String, Double> _iter190 : struct.doubleMap.entrySet())
+          for (Map.Entry<String, Double> _iter198 : struct.doubleMap.entrySet())
           {
-            oprot.writeString(_iter190.getKey());
-            oprot.writeDouble(_iter190.getValue());
+            oprot.writeString(_iter198.getKey());
+            oprot.writeDouble(_iter198.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -856,30 +856,30 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
       if (struct.isSetStrMap()) {
         {
           oprot.writeI32(struct.strMap.size());
-          for (Map.Entry<String, String> _iter191 : struct.strMap.entrySet())
+          for (Map.Entry<String, String> _iter199 : struct.strMap.entrySet())
           {
-            oprot.writeString(_iter191.getKey());
-            oprot.writeString(_iter191.getValue());
+            oprot.writeString(_iter199.getKey());
+            oprot.writeString(_iter199.getValue());
           }
         }
       }
       if (struct.isSetLongMap()) {
         {
           oprot.writeI32(struct.longMap.size());
-          for (Map.Entry<String, Long> _iter192 : struct.longMap.entrySet())
+          for (Map.Entry<String, Long> _iter200 : struct.longMap.entrySet())
           {
-            oprot.writeString(_iter192.getKey());
-            oprot.writeI64(_iter192.getValue());
+            oprot.writeString(_iter200.getKey());
+            oprot.writeI64(_iter200.getValue());
           }
         }
       }
       if (struct.isSetDoubleMap()) {
         {
           oprot.writeI32(struct.doubleMap.size());
-          for (Map.Entry<String, Double> _iter193 : struct.doubleMap.entrySet())
+          for (Map.Entry<String, Double> _iter201 : struct.doubleMap.entrySet())
           {
-            oprot.writeString(_iter193.getKey());
-            oprot.writeDouble(_iter193.getValue());
+            oprot.writeString(_iter201.getKey());
+            oprot.writeDouble(_iter201.getValue());
           }
         }
       }
@@ -895,45 +895,45 @@ public class Metric implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Met
       }
       if (incoming.get(1)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map194 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.strMap = new HashMap<String,String>(2*_map194.size);
-          for (int _i195 = 0; _i195 < _map194.size; ++_i195)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map202 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.strMap = new HashMap<String,String>(2*_map202.size);
+          for (int _i203 = 0; _i203 < _map202.size; ++_i203)
           {
-            String _key196; // optional
-            String _val197; // required
-            _key196 = iprot.readString();
-            _val197 = iprot.readString();
-            struct.strMap.put(_key196, _val197);
+            String _key204; // optional
+            String _val205; // required
+            _key204 = iprot.readString();
+            _val205 = iprot.readString();
+            struct.strMap.put(_key204, _val205);
           }
         }
         struct.setStrMapIsSet(true);
       }
       if (incoming.get(2)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map198 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
-          struct.longMap = new HashMap<String,Long>(2*_map198.size);
-          for (int _i199 = 0; _i199 < _map198.size; ++_i199)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map206 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
+          struct.longMap = new HashMap<String,Long>(2*_map206.size);
+          for (int _i207 = 0; _i207 < _map206.size; ++_i207)
           {
-            String _key200; // optional
-            long _val201; // required
-            _key200 = iprot.readString();
-            _val201 = iprot.readI64();
-            struct.longMap.put(_key200, _val201);
+            String _key208; // optional
+            long _val209; // required
+            _key208 = iprot.readString();
+            _val209 = iprot.readI64();
+            struct.longMap.put(_key208, _val209);
           }
         }
         struct.setLongMapIsSet(true);
       }
       if (incoming.get(3)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map202 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE, iprot.readI32());
-          struct.doubleMap = new HashMap<String,Double>(2*_map202.size);
-          for (int _i203 = 0; _i203 < _map202.size; ++_i203)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map210 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE, iprot.readI32());
+          struct.doubleMap = new HashMap<String,Double>(2*_map210.size);
+          for (int _i211 = 0; _i211 < _map210.size; ++_i211)
           {
-            String _key204; // optional
-            double _val205; // required
-            _key204 = iprot.readString();
-            _val205 = iprot.readDouble();
-            struct.doubleMap.put(_key204, _val205);
+            String _key212; // optional
+            double _val213; // required
+            _key212 = iprot.readString();
+            _val213 = iprot.readDouble();
+            struct.doubleMap.put(_key212, _val213);
           }
         }
         struct.setDoubleMapIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/RowMutation.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/RowMutation.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/RowMutation.java
index 4371cba..9396b2b 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/RowMutation.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/RowMutation.java
@@ -675,14 +675,14 @@ public class RowMutation implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
           case 5: // RECORD_MUTATIONS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list92 = iprot.readListBegin();
-                struct.recordMutations = new ArrayList<RecordMutation>(_list92.size);
-                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list100 = iprot.readListBegin();
+                struct.recordMutations = new ArrayList<RecordMutation>(_list100.size);
+                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
                 {
-                  RecordMutation _elem94; // required
-                  _elem94 = new RecordMutation();
-                  _elem94.read(iprot);
-                  struct.recordMutations.add(_elem94);
+                  RecordMutation _elem102; // required
+                  _elem102 = new RecordMutation();
+                  _elem102.read(iprot);
+                  struct.recordMutations.add(_elem102);
                 }
                 iprot.readListEnd();
               }
@@ -725,9 +725,9 @@ public class RowMutation implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
         oprot.writeFieldBegin(RECORD_MUTATIONS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.recordMutations.size()));
-          for (RecordMutation _iter95 : struct.recordMutations)
+          for (RecordMutation _iter103 : struct.recordMutations)
           {
-            _iter95.write(oprot);
+            _iter103.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -776,9 +776,9 @@ public class RowMutation implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
       if (struct.isSetRecordMutations()) {
         {
           oprot.writeI32(struct.recordMutations.size());
-          for (RecordMutation _iter96 : struct.recordMutations)
+          for (RecordMutation _iter104 : struct.recordMutations)
           {
-            _iter96.write(oprot);
+            _iter104.write(oprot);
           }
         }
       }
@@ -802,14 +802,14 @@ public class RowMutation implements org.apache.blur.thirdparty.thrift_0_9_0.TBas
       }
       if (incoming.get(3)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list97 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
-          struct.recordMutations = new ArrayList<RecordMutation>(_list97.size);
-          for (int _i98 = 0; _i98 < _list97.size; ++_i98)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list105 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.recordMutations = new ArrayList<RecordMutation>(_list105.size);
+          for (int _i106 = 0; _i106 < _list105.size; ++_i106)
           {
-            RecordMutation _elem99; // required
-            _elem99 = new RecordMutation();
-            _elem99.read(iprot);
-            struct.recordMutations.add(_elem99);
+            RecordMutation _elem107; // required
+            _elem107 = new RecordMutation();
+            _elem107.read(iprot);
+            struct.recordMutations.add(_elem107);
           }
         }
         struct.setRecordMutationsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Schema.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Schema.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Schema.java
index be715ae..e54f746 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Schema.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Schema.java
@@ -488,28 +488,28 @@ public class Schema implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Sch
           case 2: // FAMILIES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map120 = iprot.readMapBegin();
-                struct.families = new HashMap<String,Map<String,ColumnDefinition>>(2*_map120.size);
-                for (int _i121 = 0; _i121 < _map120.size; ++_i121)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map128 = iprot.readMapBegin();
+                struct.families = new HashMap<String,Map<String,ColumnDefinition>>(2*_map128.size);
+                for (int _i129 = 0; _i129 < _map128.size; ++_i129)
                 {
-                  String _key122; // optional
-                  Map<String,ColumnDefinition> _val123; // required
-                  _key122 = iprot.readString();
+                  String _key130; // optional
+                  Map<String,ColumnDefinition> _val131; // required
+                  _key130 = iprot.readString();
                   {
-                    org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map124 = iprot.readMapBegin();
-                    _val123 = new HashMap<String,ColumnDefinition>(2*_map124.size);
-                    for (int _i125 = 0; _i125 < _map124.size; ++_i125)
+                    org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map132 = iprot.readMapBegin();
+                    _val131 = new HashMap<String,ColumnDefinition>(2*_map132.size);
+                    for (int _i133 = 0; _i133 < _map132.size; ++_i133)
                     {
-                      String _key126; // optional
-                      ColumnDefinition _val127; // required
-                      _key126 = iprot.readString();
-                      _val127 = new ColumnDefinition();
-                      _val127.read(iprot);
-                      _val123.put(_key126, _val127);
+                      String _key134; // optional
+                      ColumnDefinition _val135; // required
+                      _key134 = iprot.readString();
+                      _val135 = new ColumnDefinition();
+                      _val135.read(iprot);
+                      _val131.put(_key134, _val135);
                     }
                     iprot.readMapEnd();
                   }
-                  struct.families.put(_key122, _val123);
+                  struct.families.put(_key130, _val131);
                 }
                 iprot.readMapEnd();
               }
@@ -542,15 +542,15 @@ public class Schema implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Sch
         oprot.writeFieldBegin(FAMILIES_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, struct.families.size()));
-          for (Map.Entry<String, Map<String,ColumnDefinition>> _iter128 : struct.families.entrySet())
+          for (Map.Entry<String, Map<String,ColumnDefinition>> _iter136 : struct.families.entrySet())
           {
-            oprot.writeString(_iter128.getKey());
+            oprot.writeString(_iter136.getKey());
             {
-              oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, _iter128.getValue().size()));
-              for (Map.Entry<String, ColumnDefinition> _iter129 : _iter128.getValue().entrySet())
+              oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, _iter136.getValue().size()));
+              for (Map.Entry<String, ColumnDefinition> _iter137 : _iter136.getValue().entrySet())
               {
-                oprot.writeString(_iter129.getKey());
-                _iter129.getValue().write(oprot);
+                oprot.writeString(_iter137.getKey());
+                _iter137.getValue().write(oprot);
               }
               oprot.writeMapEnd();
             }
@@ -590,15 +590,15 @@ public class Schema implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Sch
       if (struct.isSetFamilies()) {
         {
           oprot.writeI32(struct.families.size());
-          for (Map.Entry<String, Map<String,ColumnDefinition>> _iter130 : struct.families.entrySet())
+          for (Map.Entry<String, Map<String,ColumnDefinition>> _iter138 : struct.families.entrySet())
           {
-            oprot.writeString(_iter130.getKey());
+            oprot.writeString(_iter138.getKey());
             {
-              oprot.writeI32(_iter130.getValue().size());
-              for (Map.Entry<String, ColumnDefinition> _iter131 : _iter130.getValue().entrySet())
+              oprot.writeI32(_iter138.getValue().size());
+              for (Map.Entry<String, ColumnDefinition> _iter139 : _iter138.getValue().entrySet())
               {
-                oprot.writeString(_iter131.getKey());
-                _iter131.getValue().write(oprot);
+                oprot.writeString(_iter139.getKey());
+                _iter139.getValue().write(oprot);
               }
             }
           }
@@ -616,27 +616,27 @@ public class Schema implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Sch
       }
       if (incoming.get(1)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map132 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, iprot.readI32());
-          struct.families = new HashMap<String,Map<String,ColumnDefinition>>(2*_map132.size);
-          for (int _i133 = 0; _i133 < _map132.size; ++_i133)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map140 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, iprot.readI32());
+          struct.families = new HashMap<String,Map<String,ColumnDefinition>>(2*_map140.size);
+          for (int _i141 = 0; _i141 < _map140.size; ++_i141)
           {
-            String _key134; // optional
-            Map<String,ColumnDefinition> _val135; // required
-            _key134 = iprot.readString();
+            String _key142; // optional
+            Map<String,ColumnDefinition> _val143; // required
+            _key142 = iprot.readString();
             {
-              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map136 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
-              _val135 = new HashMap<String,ColumnDefinition>(2*_map136.size);
-              for (int _i137 = 0; _i137 < _map136.size; ++_i137)
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map144 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+              _val143 = new HashMap<String,ColumnDefinition>(2*_map144.size);
+              for (int _i145 = 0; _i145 < _map144.size; ++_i145)
               {
-                String _key138; // optional
-                ColumnDefinition _val139; // required
-                _key138 = iprot.readString();
-                _val139 = new ColumnDefinition();
-                _val139.read(iprot);
-                _val135.put(_key138, _val139);
+                String _key146; // optional
+                ColumnDefinition _val147; // required
+                _key146 = iprot.readString();
+                _val147 = new ColumnDefinition();
+                _val147.read(iprot);
+                _val143.put(_key146, _val147);
               }
             }
-            struct.families.put(_key134, _val135);
+            struct.families.put(_key142, _val143);
           }
         }
         struct.setFamiliesIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f8179cb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
new file mode 100644
index 0000000..86123f3
--- /dev/null
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
@@ -0,0 +1,620 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.blur.thrift.generated;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
+
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
+import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
+import org.apache.blur.thirdparty.thrift_0_9_0.TException;
+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 SortField extends org.apache.blur.thirdparty.thrift_0_9_0.TUnion<SortField, SortField._Fields> {
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("SortField");
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField NULL_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("nullValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField STRING_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("stringValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)2);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("intValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I32, (short)3);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField LONG_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("longValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, (short)4);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField DOUBLE_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("doubleValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE, (short)5);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField BINARY_VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("binaryValue", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)6);
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
+    NULL_VALUE((short)1, "nullValue"),
+    STRING_VALUE((short)2, "stringValue"),
+    INT_VALUE((short)3, "intValue"),
+    LONG_VALUE((short)4, "longValue"),
+    DOUBLE_VALUE((short)5, "doubleValue"),
+    BINARY_VALUE((short)6, "binaryValue");
+
+    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: // NULL_VALUE
+          return NULL_VALUE;
+        case 2: // STRING_VALUE
+          return STRING_VALUE;
+        case 3: // INT_VALUE
+          return INT_VALUE;
+        case 4: // LONG_VALUE
+          return LONG_VALUE;
+        case 5: // DOUBLE_VALUE
+          return DOUBLE_VALUE;
+        case 6: // BINARY_VALUE
+          return BINARY_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;
+    }
+  }
+
+  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.NULL_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("nullValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.STRING_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("stringValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
+    tmpMap.put(_Fields.INT_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("intValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I32)));
+    tmpMap.put(_Fields.LONG_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("longValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64)));
+    tmpMap.put(_Fields.DOUBLE_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("doubleValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.DOUBLE)));
+    tmpMap.put(_Fields.BINARY_VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("binaryValue", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING        , true)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(SortField.class, metaDataMap);
+  }
+
+  public SortField() {
+    super();
+  }
+
+  public SortField(_Fields setField, Object value) {
+    super(setField, value);
+  }
+
+  public SortField(SortField other) {
+    super(other);
+  }
+  public SortField deepCopy() {
+    return new SortField(this);
+  }
+
+  public static SortField nullValue(boolean value) {
+    SortField x = new SortField();
+    x.setNullValue(value);
+    return x;
+  }
+
+  public static SortField stringValue(String value) {
+    SortField x = new SortField();
+    x.setStringValue(value);
+    return x;
+  }
+
+  public static SortField intValue(int value) {
+    SortField x = new SortField();
+    x.setIntValue(value);
+    return x;
+  }
+
+  public static SortField longValue(long value) {
+    SortField x = new SortField();
+    x.setLongValue(value);
+    return x;
+  }
+
+  public static SortField doubleValue(double value) {
+    SortField x = new SortField();
+    x.setDoubleValue(value);
+    return x;
+  }
+
+  public static SortField binaryValue(ByteBuffer value) {
+    SortField x = new SortField();
+    x.setBinaryValue(value);
+    return x;
+  }
+
+  public static SortField binaryValue(byte[] value) {
+    SortField x = new SortField();
+    x.setBinaryValue(ByteBuffer.wrap(value));
+    return x;
+  }
+
+
+  @Override
+  protected void checkType(_Fields setField, Object value) throws ClassCastException {
+    switch (setField) {
+      case NULL_VALUE:
+        if (value instanceof Boolean) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type Boolean for field 'nullValue', but got " + value.getClass().getSimpleName());
+      case STRING_VALUE:
+        if (value instanceof String) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type String for field 'stringValue', but got " + value.getClass().getSimpleName());
+      case INT_VALUE:
+        if (value instanceof Integer) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type Integer for field 'intValue', but got " + value.getClass().getSimpleName());
+      case LONG_VALUE:
+        if (value instanceof Long) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type Long for field 'longValue', but got " + value.getClass().getSimpleName());
+      case DOUBLE_VALUE:
+        if (value instanceof Double) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type Double for field 'doubleValue', but got " + value.getClass().getSimpleName());
+      case BINARY_VALUE:
+        if (value instanceof ByteBuffer) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type ByteBuffer for field 'binaryValue', but got " + value.getClass().getSimpleName());
+      default:
+        throw new IllegalArgumentException("Unknown field id " + setField);
+    }
+  }
+
+  @Override
+  protected Object standardSchemeReadValue(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField field) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    _Fields setField = _Fields.findByThriftId(field.id);
+    if (setField != null) {
+      switch (setField) {
+        case NULL_VALUE:
+          if (field.type == NULL_VALUE_FIELD_DESC.type) {
+            Boolean nullValue;
+            nullValue = iprot.readBool();
+            return nullValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case STRING_VALUE:
+          if (field.type == STRING_VALUE_FIELD_DESC.type) {
+            String stringValue;
+            stringValue = iprot.readString();
+            return stringValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case INT_VALUE:
+          if (field.type == INT_VALUE_FIELD_DESC.type) {
+            Integer intValue;
+            intValue = iprot.readI32();
+            return intValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case LONG_VALUE:
+          if (field.type == LONG_VALUE_FIELD_DESC.type) {
+            Long longValue;
+            longValue = iprot.readI64();
+            return longValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case DOUBLE_VALUE:
+          if (field.type == DOUBLE_VALUE_FIELD_DESC.type) {
+            Double doubleValue;
+            doubleValue = iprot.readDouble();
+            return doubleValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case BINARY_VALUE:
+          if (field.type == BINARY_VALUE_FIELD_DESC.type) {
+            ByteBuffer binaryValue;
+            binaryValue = iprot.readBinary();
+            return binaryValue;
+          } else {
+            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        default:
+          throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
+      }
+    } else {
+      return null;
+    }
+  }
+
+  @Override
+  protected void standardSchemeWriteValue(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    switch (setField_) {
+      case NULL_VALUE:
+        Boolean nullValue = (Boolean)value_;
+        oprot.writeBool(nullValue);
+        return;
+      case STRING_VALUE:
+        String stringValue = (String)value_;
+        oprot.writeString(stringValue);
+        return;
+      case INT_VALUE:
+        Integer intValue = (Integer)value_;
+        oprot.writeI32(intValue);
+        return;
+      case LONG_VALUE:
+        Long longValue = (Long)value_;
+        oprot.writeI64(longValue);
+        return;
+      case DOUBLE_VALUE:
+        Double doubleValue = (Double)value_;
+        oprot.writeDouble(doubleValue);
+        return;
+      case BINARY_VALUE:
+        ByteBuffer binaryValue = (ByteBuffer)value_;
+        oprot.writeBinary(binaryValue);
+        return;
+      default:
+        throw new IllegalStateException("Cannot write union with unknown field " + setField_);
+    }
+  }
+
+  @Override
+  protected Object tupleSchemeReadValue(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, short fieldID) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    _Fields setField = _Fields.findByThriftId(fieldID);
+    if (setField != null) {
+      switch (setField) {
+        case NULL_VALUE:
+          Boolean nullValue;
+          nullValue = iprot.readBool();
+          return nullValue;
+        case STRING_VALUE:
+          String stringValue;
+          stringValue = iprot.readString();
+          return stringValue;
+        case INT_VALUE:
+          Integer intValue;
+          intValue = iprot.readI32();
+          return intValue;
+        case LONG_VALUE:
+          Long longValue;
+          longValue = iprot.readI64();
+          return longValue;
+        case DOUBLE_VALUE:
+          Double doubleValue;
+          doubleValue = iprot.readDouble();
+          return doubleValue;
+        case BINARY_VALUE:
+          ByteBuffer binaryValue;
+          binaryValue = iprot.readBinary();
+          return binaryValue;
+        default:
+          throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
+      }
+    } else {
+      throw new TProtocolException("Couldn't find a field with field id " + fieldID);
+    }
+  }
+
+  @Override
+  protected void tupleSchemeWriteValue(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    switch (setField_) {
+      case NULL_VALUE:
+        Boolean nullValue = (Boolean)value_;
+        oprot.writeBool(nullValue);
+        return;
+      case STRING_VALUE:
+        String stringValue = (String)value_;
+        oprot.writeString(stringValue);
+        return;
+      case INT_VALUE:
+        Integer intValue = (Integer)value_;
+        oprot.writeI32(intValue);
+        return;
+      case LONG_VALUE:
+        Long longValue = (Long)value_;
+        oprot.writeI64(longValue);
+        return;
+      case DOUBLE_VALUE:
+        Double doubleValue = (Double)value_;
+        oprot.writeDouble(doubleValue);
+        return;
+      case BINARY_VALUE:
+        ByteBuffer binaryValue = (ByteBuffer)value_;
+        oprot.writeBinary(binaryValue);
+        return;
+      default:
+        throw new IllegalStateException("Cannot write union with unknown field " + setField_);
+    }
+  }
+
+  @Override
+  protected org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField getFieldDesc(_Fields setField) {
+    switch (setField) {
+      case NULL_VALUE:
+        return NULL_VALUE_FIELD_DESC;
+      case STRING_VALUE:
+        return STRING_VALUE_FIELD_DESC;
+      case INT_VALUE:
+        return INT_VALUE_FIELD_DESC;
+      case LONG_VALUE:
+        return LONG_VALUE_FIELD_DESC;
+      case DOUBLE_VALUE:
+        return DOUBLE_VALUE_FIELD_DESC;
+      case BINARY_VALUE:
+        return BINARY_VALUE_FIELD_DESC;
+      default:
+        throw new IllegalArgumentException("Unknown field id " + setField);
+    }
+  }
+
+  @Override
+  protected org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct getStructDesc() {
+    return STRUCT_DESC;
+  }
+
+  @Override
+  protected _Fields enumForId(short id) {
+    return _Fields.findByThriftIdOrThrow(id);
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+
+  public boolean getNullValue() {
+    if (getSetField() == _Fields.NULL_VALUE) {
+      return (Boolean)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'nullValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setNullValue(boolean value) {
+    setField_ = _Fields.NULL_VALUE;
+    value_ = value;
+  }
+
+  public String getStringValue() {
+    if (getSetField() == _Fields.STRING_VALUE) {
+      return (String)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'stringValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setStringValue(String value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.STRING_VALUE;
+    value_ = value;
+  }
+
+  public int getIntValue() {
+    if (getSetField() == _Fields.INT_VALUE) {
+      return (Integer)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'intValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setIntValue(int value) {
+    setField_ = _Fields.INT_VALUE;
+    value_ = value;
+  }
+
+  public long getLongValue() {
+    if (getSetField() == _Fields.LONG_VALUE) {
+      return (Long)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'longValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setLongValue(long value) {
+    setField_ = _Fields.LONG_VALUE;
+    value_ = value;
+  }
+
+  public double getDoubleValue() {
+    if (getSetField() == _Fields.DOUBLE_VALUE) {
+      return (Double)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'doubleValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setDoubleValue(double value) {
+    setField_ = _Fields.DOUBLE_VALUE;
+    value_ = value;
+  }
+
+  public byte[] getBinaryValue() {
+    setBinaryValue(org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.rightSize(bufferForBinaryValue()));
+    ByteBuffer b = bufferForBinaryValue();
+    return b == null ? null : b.array();
+  }
+
+  public ByteBuffer bufferForBinaryValue() {
+    if (getSetField() == _Fields.BINARY_VALUE) {
+      return (ByteBuffer)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'binaryValue' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setBinaryValue(byte[] value) {
+    setBinaryValue(ByteBuffer.wrap(value));
+  }
+
+  public void setBinaryValue(ByteBuffer value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.BINARY_VALUE;
+    value_ = value;
+  }
+
+  public boolean isSetNullValue() {
+    return setField_ == _Fields.NULL_VALUE;
+  }
+
+
+  public boolean isSetStringValue() {
+    return setField_ == _Fields.STRING_VALUE;
+  }
+
+
+  public boolean isSetIntValue() {
+    return setField_ == _Fields.INT_VALUE;
+  }
+
+
+  public boolean isSetLongValue() {
+    return setField_ == _Fields.LONG_VALUE;
+  }
+
+
+  public boolean isSetDoubleValue() {
+    return setField_ == _Fields.DOUBLE_VALUE;
+  }
+
+
+  public boolean isSetBinaryValue() {
+    return setField_ == _Fields.BINARY_VALUE;
+  }
+
+
+  public boolean equals(Object other) {
+    if (other instanceof SortField) {
+      return equals((SortField)other);
+    } else {
+      return false;
+    }
+  }
+
+  public boolean equals(SortField other) {
+    return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
+  }
+
+  @Override
+  public int compareTo(SortField other) {
+    int lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(getSetField(), other.getSetField());
+    if (lastComparison == 0) {
+      return org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
+    }
+    return lastComparison;
+  }
+
+
+  /**
+   * If you'd like this to perform more respectably, use the hashcode generator option.
+   */
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+
+}


Mime
View raw message