incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/9] Sorting feature is now implemented for String type, no integration tests yet. Still need to implement sorting on other types.
Date Wed, 29 Jan 2014 04:09:00 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5e495671/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/User.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/User.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/User.java
index 7b203b3..1e587cc 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/User.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/User.java
@@ -476,15 +476,15 @@ public class User implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<User,
           case 2: // ATTRIBUTES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map214 = iprot.readMapBegin();
-                struct.attributes = new HashMap<String,String>(2*_map214.size);
-                for (int _i215 = 0; _i215 < _map214.size; ++_i215)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map222 = iprot.readMapBegin();
+                struct.attributes = new HashMap<String,String>(2*_map222.size);
+                for (int _i223 = 0; _i223 < _map222.size; ++_i223)
                 {
-                  String _key216; // optional
-                  String _val217; // required
-                  _key216 = iprot.readString();
-                  _val217 = iprot.readString();
-                  struct.attributes.put(_key216, _val217);
+                  String _key224; // optional
+                  String _val225; // required
+                  _key224 = iprot.readString();
+                  _val225 = iprot.readString();
+                  struct.attributes.put(_key224, _val225);
                 }
                 iprot.readMapEnd();
               }
@@ -517,10 +517,10 @@ public class User implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<User,
         oprot.writeFieldBegin(ATTRIBUTES_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.attributes.size()));
-          for (Map.Entry<String, String> _iter218 : struct.attributes.entrySet())
+          for (Map.Entry<String, String> _iter226 : struct.attributes.entrySet())
           {
-            oprot.writeString(_iter218.getKey());
-            oprot.writeString(_iter218.getValue());
+            oprot.writeString(_iter226.getKey());
+            oprot.writeString(_iter226.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -557,10 +557,10 @@ public class User implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<User,
       if (struct.isSetAttributes()) {
         {
           oprot.writeI32(struct.attributes.size());
-          for (Map.Entry<String, String> _iter219 : struct.attributes.entrySet())
+          for (Map.Entry<String, String> _iter227 : struct.attributes.entrySet())
           {
-            oprot.writeString(_iter219.getKey());
-            oprot.writeString(_iter219.getValue());
+            oprot.writeString(_iter227.getKey());
+            oprot.writeString(_iter227.getValue());
           }
         }
       }
@@ -576,15 +576,15 @@ public class User implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<User,
       }
       if (incoming.get(1)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map220 = 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.attributes = new HashMap<String,String>(2*_map220.size);
-          for (int _i221 = 0; _i221 < _map220.size; ++_i221)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map228 = 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.attributes = new HashMap<String,String>(2*_map228.size);
+          for (int _i229 = 0; _i229 < _map228.size; ++_i229)
           {
-            String _key222; // optional
-            String _val223; // required
-            _key222 = iprot.readString();
-            _val223 = iprot.readString();
-            struct.attributes.put(_key222, _val223);
+            String _key230; // optional
+            String _val231; // required
+            _key230 = iprot.readString();
+            _val231 = iprot.readString();
+            struct.attributes.put(_key230, _val231);
           }
         }
         struct.setAttributesIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5e495671/distribution/src/main/scripts/interface/gen-js/Blur.js
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-js/Blur.js b/distribution/src/main/scripts/interface/gen-js/Blur.js
index a132a8a..ec884cf 100644
--- a/distribution/src/main/scripts/interface/gen-js/Blur.js
+++ b/distribution/src/main/scripts/interface/gen-js/Blur.js
@@ -663,18 +663,18 @@ Blur_tableList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size224 = 0;
-        var _rtmp3228;
+        var _size232 = 0;
+        var _rtmp3236;
         this.success = [];
-        var _etype227 = 0;
-        _rtmp3228 = input.readListBegin();
-        _etype227 = _rtmp3228.etype;
-        _size224 = _rtmp3228.size;
-        for (var _i229 = 0; _i229 < _size224; ++_i229)
+        var _etype235 = 0;
+        _rtmp3236 = input.readListBegin();
+        _etype235 = _rtmp3236.etype;
+        _size232 = _rtmp3236.size;
+        for (var _i237 = 0; _i237 < _size232; ++_i237)
         {
-          var elem230 = null;
-          elem230 = input.readString().value;
-          this.success.push(elem230);
+          var elem238 = null;
+          elem238 = input.readString().value;
+          this.success.push(elem238);
         }
         input.readListEnd();
       } else {
@@ -703,12 +703,12 @@ Blur_tableList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter231 in this.success)
+    for (var iter239 in this.success)
     {
-      if (this.success.hasOwnProperty(iter231))
+      if (this.success.hasOwnProperty(iter239))
       {
-        iter231 = this.success[iter231];
-        output.writeString(iter231);
+        iter239 = this.success[iter239];
+        output.writeString(iter239);
       }
     }
     output.writeListEnd();
@@ -809,18 +809,18 @@ Blur_tableListByCluster_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size232 = 0;
-        var _rtmp3236;
+        var _size240 = 0;
+        var _rtmp3244;
         this.success = [];
-        var _etype235 = 0;
-        _rtmp3236 = input.readListBegin();
-        _etype235 = _rtmp3236.etype;
-        _size232 = _rtmp3236.size;
-        for (var _i237 = 0; _i237 < _size232; ++_i237)
+        var _etype243 = 0;
+        _rtmp3244 = input.readListBegin();
+        _etype243 = _rtmp3244.etype;
+        _size240 = _rtmp3244.size;
+        for (var _i245 = 0; _i245 < _size240; ++_i245)
         {
-          var elem238 = null;
-          elem238 = input.readString().value;
-          this.success.push(elem238);
+          var elem246 = null;
+          elem246 = input.readString().value;
+          this.success.push(elem246);
         }
         input.readListEnd();
       } else {
@@ -849,12 +849,12 @@ Blur_tableListByCluster_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter239 in this.success)
+    for (var iter247 in this.success)
     {
-      if (this.success.hasOwnProperty(iter239))
+      if (this.success.hasOwnProperty(iter247))
       {
-        iter239 = this.success[iter239];
-        output.writeString(iter239);
+        iter247 = this.success[iter247];
+        output.writeString(iter247);
       }
     }
     output.writeListEnd();
@@ -1840,40 +1840,40 @@ Blur_listSnapshots_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size240 = 0;
-        var _rtmp3244;
+        var _size248 = 0;
+        var _rtmp3252;
         this.success = {};
-        var _ktype241 = 0;
-        var _vtype242 = 0;
-        _rtmp3244 = input.readMapBegin();
-        _ktype241 = _rtmp3244.ktype;
-        _vtype242 = _rtmp3244.vtype;
-        _size240 = _rtmp3244.size;
-        for (var _i245 = 0; _i245 < _size240; ++_i245)
+        var _ktype249 = 0;
+        var _vtype250 = 0;
+        _rtmp3252 = input.readMapBegin();
+        _ktype249 = _rtmp3252.ktype;
+        _vtype250 = _rtmp3252.vtype;
+        _size248 = _rtmp3252.size;
+        for (var _i253 = 0; _i253 < _size248; ++_i253)
         {
-          if (_i245 > 0 ) {
+          if (_i253 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key246 = null;
-          var val247 = null;
-          key246 = input.readString().value;
-          var _size248 = 0;
-          var _rtmp3252;
-          val247 = [];
-          var _etype251 = 0;
-          _rtmp3252 = input.readListBegin();
-          _etype251 = _rtmp3252.etype;
-          _size248 = _rtmp3252.size;
-          for (var _i253 = 0; _i253 < _size248; ++_i253)
+          var key254 = null;
+          var val255 = null;
+          key254 = input.readString().value;
+          var _size256 = 0;
+          var _rtmp3260;
+          val255 = [];
+          var _etype259 = 0;
+          _rtmp3260 = input.readListBegin();
+          _etype259 = _rtmp3260.etype;
+          _size256 = _rtmp3260.size;
+          for (var _i261 = 0; _i261 < _size256; ++_i261)
           {
-            var elem254 = null;
-            elem254 = input.readString().value;
-            val247.push(elem254);
+            var elem262 = null;
+            elem262 = input.readString().value;
+            val255.push(elem262);
           }
           input.readListEnd();
-          this.success[key246] = val247;
+          this.success[key254] = val255;
         }
         input.readMapEnd();
       } else {
@@ -1902,19 +1902,19 @@ Blur_listSnapshots_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.MAP, 0);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.LIST, Thrift.objectLength(this.success));
-    for (var kiter255 in this.success)
+    for (var kiter263 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter255))
+      if (this.success.hasOwnProperty(kiter263))
       {
-        var viter256 = this.success[kiter255];
-        output.writeString(kiter255);
-        output.writeListBegin(Thrift.Type.STRING, viter256.length);
-        for (var iter257 in viter256)
+        var viter264 = this.success[kiter263];
+        output.writeString(kiter263);
+        output.writeListBegin(Thrift.Type.STRING, viter264.length);
+        for (var iter265 in viter264)
         {
-          if (viter256.hasOwnProperty(iter257))
+          if (viter264.hasOwnProperty(iter265))
           {
-            iter257 = viter256[iter257];
-            output.writeString(iter257);
+            iter265 = viter264[iter265];
+            output.writeString(iter265);
           }
         }
         output.writeListEnd();
@@ -2328,19 +2328,19 @@ Blur_fetchRowBatch_args.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.LIST) {
-        var _size258 = 0;
-        var _rtmp3262;
+        var _size266 = 0;
+        var _rtmp3270;
         this.selectors = [];
-        var _etype261 = 0;
-        _rtmp3262 = input.readListBegin();
-        _etype261 = _rtmp3262.etype;
-        _size258 = _rtmp3262.size;
-        for (var _i263 = 0; _i263 < _size258; ++_i263)
+        var _etype269 = 0;
+        _rtmp3270 = input.readListBegin();
+        _etype269 = _rtmp3270.etype;
+        _size266 = _rtmp3270.size;
+        for (var _i271 = 0; _i271 < _size266; ++_i271)
         {
-          var elem264 = null;
-          elem264 = new Selector();
-          elem264.read(input);
-          this.selectors.push(elem264);
+          var elem272 = null;
+          elem272 = new Selector();
+          elem272.read(input);
+          this.selectors.push(elem272);
         }
         input.readListEnd();
       } else {
@@ -2366,12 +2366,12 @@ Blur_fetchRowBatch_args.prototype.write = function(output) {
   if (this.selectors !== null && this.selectors !== undefined) {
     output.writeFieldBegin('selectors', Thrift.Type.LIST, 2);
     output.writeListBegin(Thrift.Type.STRUCT, this.selectors.length);
-    for (var iter265 in this.selectors)
+    for (var iter273 in this.selectors)
     {
-      if (this.selectors.hasOwnProperty(iter265))
+      if (this.selectors.hasOwnProperty(iter273))
       {
-        iter265 = this.selectors[iter265];
-        iter265.write(output);
+        iter273 = this.selectors[iter273];
+        iter273.write(output);
       }
     }
     output.writeListEnd();
@@ -2414,19 +2414,19 @@ Blur_fetchRowBatch_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size266 = 0;
-        var _rtmp3270;
+        var _size274 = 0;
+        var _rtmp3278;
         this.success = [];
-        var _etype269 = 0;
-        _rtmp3270 = input.readListBegin();
-        _etype269 = _rtmp3270.etype;
-        _size266 = _rtmp3270.size;
-        for (var _i271 = 0; _i271 < _size266; ++_i271)
+        var _etype277 = 0;
+        _rtmp3278 = input.readListBegin();
+        _etype277 = _rtmp3278.etype;
+        _size274 = _rtmp3278.size;
+        for (var _i279 = 0; _i279 < _size274; ++_i279)
         {
-          var elem272 = null;
-          elem272 = new FetchResult();
-          elem272.read(input);
-          this.success.push(elem272);
+          var elem280 = null;
+          elem280 = new FetchResult();
+          elem280.read(input);
+          this.success.push(elem280);
         }
         input.readListEnd();
       } else {
@@ -2455,12 +2455,12 @@ Blur_fetchRowBatch_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRUCT, this.success.length);
-    for (var iter273 in this.success)
+    for (var iter281 in this.success)
     {
-      if (this.success.hasOwnProperty(iter273))
+      if (this.success.hasOwnProperty(iter281))
       {
-        iter273 = this.success[iter273];
-        iter273.write(output);
+        iter281 = this.success[iter281];
+        iter281.write(output);
       }
     }
     output.writeListEnd();
@@ -2612,19 +2612,19 @@ Blur_mutateBatch_args.prototype.read = function(input) {
     {
       case 1:
       if (ftype == Thrift.Type.LIST) {
-        var _size274 = 0;
-        var _rtmp3278;
+        var _size282 = 0;
+        var _rtmp3286;
         this.mutations = [];
-        var _etype277 = 0;
-        _rtmp3278 = input.readListBegin();
-        _etype277 = _rtmp3278.etype;
-        _size274 = _rtmp3278.size;
-        for (var _i279 = 0; _i279 < _size274; ++_i279)
+        var _etype285 = 0;
+        _rtmp3286 = input.readListBegin();
+        _etype285 = _rtmp3286.etype;
+        _size282 = _rtmp3286.size;
+        for (var _i287 = 0; _i287 < _size282; ++_i287)
         {
-          var elem280 = null;
-          elem280 = new RowMutation();
-          elem280.read(input);
-          this.mutations.push(elem280);
+          var elem288 = null;
+          elem288 = new RowMutation();
+          elem288.read(input);
+          this.mutations.push(elem288);
         }
         input.readListEnd();
       } else {
@@ -2648,12 +2648,12 @@ Blur_mutateBatch_args.prototype.write = function(output) {
   if (this.mutations !== null && this.mutations !== undefined) {
     output.writeFieldBegin('mutations', Thrift.Type.LIST, 1);
     output.writeListBegin(Thrift.Type.STRUCT, this.mutations.length);
-    for (var iter281 in this.mutations)
+    for (var iter289 in this.mutations)
     {
-      if (this.mutations.hasOwnProperty(iter281))
+      if (this.mutations.hasOwnProperty(iter289))
       {
-        iter281 = this.mutations[iter281];
-        iter281.write(output);
+        iter289 = this.mutations[iter289];
+        iter289.write(output);
       }
     }
     output.writeListEnd();
@@ -2931,18 +2931,18 @@ Blur_queryStatusIdList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size282 = 0;
-        var _rtmp3286;
+        var _size290 = 0;
+        var _rtmp3294;
         this.success = [];
-        var _etype285 = 0;
-        _rtmp3286 = input.readListBegin();
-        _etype285 = _rtmp3286.etype;
-        _size282 = _rtmp3286.size;
-        for (var _i287 = 0; _i287 < _size282; ++_i287)
+        var _etype293 = 0;
+        _rtmp3294 = input.readListBegin();
+        _etype293 = _rtmp3294.etype;
+        _size290 = _rtmp3294.size;
+        for (var _i295 = 0; _i295 < _size290; ++_i295)
         {
-          var elem288 = null;
-          elem288 = input.readString().value;
-          this.success.push(elem288);
+          var elem296 = null;
+          elem296 = input.readString().value;
+          this.success.push(elem296);
         }
         input.readListEnd();
       } else {
@@ -2971,12 +2971,12 @@ Blur_queryStatusIdList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter289 in this.success)
+    for (var iter297 in this.success)
     {
-      if (this.success.hasOwnProperty(iter289))
+      if (this.success.hasOwnProperty(iter297))
       {
-        iter289 = this.success[iter289];
-        output.writeString(iter289);
+        iter297 = this.success[iter297];
+        output.writeString(iter297);
       }
     }
     output.writeListEnd();
@@ -3276,18 +3276,18 @@ Blur_terms_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size290 = 0;
-        var _rtmp3294;
+        var _size298 = 0;
+        var _rtmp3302;
         this.success = [];
-        var _etype293 = 0;
-        _rtmp3294 = input.readListBegin();
-        _etype293 = _rtmp3294.etype;
-        _size290 = _rtmp3294.size;
-        for (var _i295 = 0; _i295 < _size290; ++_i295)
+        var _etype301 = 0;
+        _rtmp3302 = input.readListBegin();
+        _etype301 = _rtmp3302.etype;
+        _size298 = _rtmp3302.size;
+        for (var _i303 = 0; _i303 < _size298; ++_i303)
         {
-          var elem296 = null;
-          elem296 = input.readString().value;
-          this.success.push(elem296);
+          var elem304 = null;
+          elem304 = input.readString().value;
+          this.success.push(elem304);
         }
         input.readListEnd();
       } else {
@@ -3316,12 +3316,12 @@ Blur_terms_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter297 in this.success)
+    for (var iter305 in this.success)
     {
-      if (this.success.hasOwnProperty(iter297))
+      if (this.success.hasOwnProperty(iter305))
       {
-        iter297 = this.success[iter297];
-        output.writeString(iter297);
+        iter305 = this.success[iter305];
+        output.writeString(iter305);
       }
     }
     output.writeListEnd();
@@ -3566,18 +3566,18 @@ Blur_shardClusterList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size298 = 0;
-        var _rtmp3302;
+        var _size306 = 0;
+        var _rtmp3310;
         this.success = [];
-        var _etype301 = 0;
-        _rtmp3302 = input.readListBegin();
-        _etype301 = _rtmp3302.etype;
-        _size298 = _rtmp3302.size;
-        for (var _i303 = 0; _i303 < _size298; ++_i303)
+        var _etype309 = 0;
+        _rtmp3310 = input.readListBegin();
+        _etype309 = _rtmp3310.etype;
+        _size306 = _rtmp3310.size;
+        for (var _i311 = 0; _i311 < _size306; ++_i311)
         {
-          var elem304 = null;
-          elem304 = input.readString().value;
-          this.success.push(elem304);
+          var elem312 = null;
+          elem312 = input.readString().value;
+          this.success.push(elem312);
         }
         input.readListEnd();
       } else {
@@ -3606,12 +3606,12 @@ Blur_shardClusterList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter305 in this.success)
+    for (var iter313 in this.success)
     {
-      if (this.success.hasOwnProperty(iter305))
+      if (this.success.hasOwnProperty(iter313))
       {
-        iter305 = this.success[iter305];
-        output.writeString(iter305);
+        iter313 = this.success[iter313];
+        output.writeString(iter313);
       }
     }
     output.writeListEnd();
@@ -3712,18 +3712,18 @@ Blur_shardServerList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size306 = 0;
-        var _rtmp3310;
+        var _size314 = 0;
+        var _rtmp3318;
         this.success = [];
-        var _etype309 = 0;
-        _rtmp3310 = input.readListBegin();
-        _etype309 = _rtmp3310.etype;
-        _size306 = _rtmp3310.size;
-        for (var _i311 = 0; _i311 < _size306; ++_i311)
+        var _etype317 = 0;
+        _rtmp3318 = input.readListBegin();
+        _etype317 = _rtmp3318.etype;
+        _size314 = _rtmp3318.size;
+        for (var _i319 = 0; _i319 < _size314; ++_i319)
         {
-          var elem312 = null;
-          elem312 = input.readString().value;
-          this.success.push(elem312);
+          var elem320 = null;
+          elem320 = input.readString().value;
+          this.success.push(elem320);
         }
         input.readListEnd();
       } else {
@@ -3752,12 +3752,12 @@ Blur_shardServerList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter313 in this.success)
+    for (var iter321 in this.success)
     {
-      if (this.success.hasOwnProperty(iter313))
+      if (this.success.hasOwnProperty(iter321))
       {
-        iter313 = this.success[iter313];
-        output.writeString(iter313);
+        iter321 = this.success[iter321];
+        output.writeString(iter321);
       }
     }
     output.writeListEnd();
@@ -3833,18 +3833,18 @@ Blur_controllerServerList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size314 = 0;
-        var _rtmp3318;
+        var _size322 = 0;
+        var _rtmp3326;
         this.success = [];
-        var _etype317 = 0;
-        _rtmp3318 = input.readListBegin();
-        _etype317 = _rtmp3318.etype;
-        _size314 = _rtmp3318.size;
-        for (var _i319 = 0; _i319 < _size314; ++_i319)
+        var _etype325 = 0;
+        _rtmp3326 = input.readListBegin();
+        _etype325 = _rtmp3326.etype;
+        _size322 = _rtmp3326.size;
+        for (var _i327 = 0; _i327 < _size322; ++_i327)
         {
-          var elem320 = null;
-          elem320 = input.readString().value;
-          this.success.push(elem320);
+          var elem328 = null;
+          elem328 = input.readString().value;
+          this.success.push(elem328);
         }
         input.readListEnd();
       } else {
@@ -3873,12 +3873,12 @@ Blur_controllerServerList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter321 in this.success)
+    for (var iter329 in this.success)
     {
-      if (this.success.hasOwnProperty(iter321))
+      if (this.success.hasOwnProperty(iter329))
       {
-        iter321 = this.success[iter321];
-        output.writeString(iter321);
+        iter329 = this.success[iter329];
+        output.writeString(iter329);
       }
     }
     output.writeListEnd();
@@ -3979,27 +3979,27 @@ Blur_shardServerLayout_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size322 = 0;
-        var _rtmp3326;
+        var _size330 = 0;
+        var _rtmp3334;
         this.success = {};
-        var _ktype323 = 0;
-        var _vtype324 = 0;
-        _rtmp3326 = input.readMapBegin();
-        _ktype323 = _rtmp3326.ktype;
-        _vtype324 = _rtmp3326.vtype;
-        _size322 = _rtmp3326.size;
-        for (var _i327 = 0; _i327 < _size322; ++_i327)
+        var _ktype331 = 0;
+        var _vtype332 = 0;
+        _rtmp3334 = input.readMapBegin();
+        _ktype331 = _rtmp3334.ktype;
+        _vtype332 = _rtmp3334.vtype;
+        _size330 = _rtmp3334.size;
+        for (var _i335 = 0; _i335 < _size330; ++_i335)
         {
-          if (_i327 > 0 ) {
+          if (_i335 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key328 = null;
-          var val329 = null;
-          key328 = input.readString().value;
-          val329 = input.readString().value;
-          this.success[key328] = val329;
+          var key336 = null;
+          var val337 = null;
+          key336 = input.readString().value;
+          val337 = input.readString().value;
+          this.success[key336] = val337;
         }
         input.readMapEnd();
       } else {
@@ -4028,13 +4028,13 @@ Blur_shardServerLayout_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.MAP, 0);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.success));
-    for (var kiter330 in this.success)
+    for (var kiter338 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter330))
+      if (this.success.hasOwnProperty(kiter338))
       {
-        var viter331 = this.success[kiter330];
-        output.writeString(kiter330);
-        output.writeString(viter331);
+        var viter339 = this.success[kiter338];
+        output.writeString(kiter338);
+        output.writeString(viter339);
       }
     }
     output.writeMapEnd();
@@ -4135,49 +4135,49 @@ Blur_shardServerLayoutState_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size332 = 0;
-        var _rtmp3336;
+        var _size340 = 0;
+        var _rtmp3344;
         this.success = {};
-        var _ktype333 = 0;
-        var _vtype334 = 0;
-        _rtmp3336 = input.readMapBegin();
-        _ktype333 = _rtmp3336.ktype;
-        _vtype334 = _rtmp3336.vtype;
-        _size332 = _rtmp3336.size;
-        for (var _i337 = 0; _i337 < _size332; ++_i337)
+        var _ktype341 = 0;
+        var _vtype342 = 0;
+        _rtmp3344 = input.readMapBegin();
+        _ktype341 = _rtmp3344.ktype;
+        _vtype342 = _rtmp3344.vtype;
+        _size340 = _rtmp3344.size;
+        for (var _i345 = 0; _i345 < _size340; ++_i345)
         {
-          if (_i337 > 0 ) {
+          if (_i345 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key338 = null;
-          var val339 = null;
-          key338 = input.readString().value;
-          var _size340 = 0;
-          var _rtmp3344;
-          val339 = {};
-          var _ktype341 = 0;
-          var _vtype342 = 0;
-          _rtmp3344 = input.readMapBegin();
-          _ktype341 = _rtmp3344.ktype;
-          _vtype342 = _rtmp3344.vtype;
-          _size340 = _rtmp3344.size;
-          for (var _i345 = 0; _i345 < _size340; ++_i345)
+          var key346 = null;
+          var val347 = null;
+          key346 = input.readString().value;
+          var _size348 = 0;
+          var _rtmp3352;
+          val347 = {};
+          var _ktype349 = 0;
+          var _vtype350 = 0;
+          _rtmp3352 = input.readMapBegin();
+          _ktype349 = _rtmp3352.ktype;
+          _vtype350 = _rtmp3352.vtype;
+          _size348 = _rtmp3352.size;
+          for (var _i353 = 0; _i353 < _size348; ++_i353)
           {
-            if (_i345 > 0 ) {
+            if (_i353 > 0 ) {
               if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
                 input.rstack.pop();
               }
             }
-            var key346 = null;
-            var val347 = null;
-            key346 = input.readString().value;
-            val347 = input.readI32().value;
-            val339[key346] = val347;
+            var key354 = null;
+            var val355 = null;
+            key354 = input.readString().value;
+            val355 = input.readI32().value;
+            val347[key354] = val355;
           }
           input.readMapEnd();
-          this.success[key338] = val339;
+          this.success[key346] = val347;
         }
         input.readMapEnd();
       } else {
@@ -4206,20 +4206,20 @@ Blur_shardServerLayoutState_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.MAP, 0);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.MAP, Thrift.objectLength(this.success));
-    for (var kiter348 in this.success)
+    for (var kiter356 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter348))
+      if (this.success.hasOwnProperty(kiter356))
       {
-        var viter349 = this.success[kiter348];
-        output.writeString(kiter348);
-        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I32, Thrift.objectLength(viter349));
-        for (var kiter350 in viter349)
+        var viter357 = this.success[kiter356];
+        output.writeString(kiter356);
+        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I32, Thrift.objectLength(viter357));
+        for (var kiter358 in viter357)
         {
-          if (viter349.hasOwnProperty(kiter350))
+          if (viter357.hasOwnProperty(kiter358))
           {
-            var viter351 = viter349[kiter350];
-            output.writeString(kiter350);
-            output.writeI32(viter351);
+            var viter359 = viter357[kiter358];
+            output.writeString(kiter358);
+            output.writeI32(viter359);
           }
         }
         output.writeMapEnd();
@@ -4422,27 +4422,27 @@ Blur_configuration_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size352 = 0;
-        var _rtmp3356;
+        var _size360 = 0;
+        var _rtmp3364;
         this.success = {};
-        var _ktype353 = 0;
-        var _vtype354 = 0;
-        _rtmp3356 = input.readMapBegin();
-        _ktype353 = _rtmp3356.ktype;
-        _vtype354 = _rtmp3356.vtype;
-        _size352 = _rtmp3356.size;
-        for (var _i357 = 0; _i357 < _size352; ++_i357)
+        var _ktype361 = 0;
+        var _vtype362 = 0;
+        _rtmp3364 = input.readMapBegin();
+        _ktype361 = _rtmp3364.ktype;
+        _vtype362 = _rtmp3364.vtype;
+        _size360 = _rtmp3364.size;
+        for (var _i365 = 0; _i365 < _size360; ++_i365)
         {
-          if (_i357 > 0 ) {
+          if (_i365 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key358 = null;
-          var val359 = null;
-          key358 = input.readString().value;
-          val359 = input.readString().value;
-          this.success[key358] = val359;
+          var key366 = null;
+          var val367 = null;
+          key366 = input.readString().value;
+          val367 = input.readString().value;
+          this.success[key366] = val367;
         }
         input.readMapEnd();
       } else {
@@ -4471,13 +4471,13 @@ Blur_configuration_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.MAP, 0);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.success));
-    for (var kiter360 in this.success)
+    for (var kiter368 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter360))
+      if (this.success.hasOwnProperty(kiter368))
       {
-        var viter361 = this.success[kiter360];
-        output.writeString(kiter360);
-        output.writeString(viter361);
+        var viter369 = this.success[kiter368];
+        output.writeString(kiter368);
+        output.writeString(viter369);
       }
     }
     output.writeMapEnd();
@@ -4517,18 +4517,18 @@ Blur_metrics_args.prototype.read = function(input) {
     {
       case 1:
       if (ftype == Thrift.Type.SET) {
-        var _size362 = 0;
-        var _rtmp3366;
+        var _size370 = 0;
+        var _rtmp3374;
         this.metrics = [];
-        var _etype365 = 0;
-        _rtmp3366 = input.readSetBegin();
-        _etype365 = _rtmp3366.etype;
-        _size362 = _rtmp3366.size;
-        for (var _i367 = 0; _i367 < _size362; ++_i367)
+        var _etype373 = 0;
+        _rtmp3374 = input.readSetBegin();
+        _etype373 = _rtmp3374.etype;
+        _size370 = _rtmp3374.size;
+        for (var _i375 = 0; _i375 < _size370; ++_i375)
         {
-          var elem368 = null;
-          elem368 = input.readString().value;
-          this.metrics.push(elem368);
+          var elem376 = null;
+          elem376 = input.readString().value;
+          this.metrics.push(elem376);
         }
         input.readSetEnd();
       } else {
@@ -4552,12 +4552,12 @@ Blur_metrics_args.prototype.write = function(output) {
   if (this.metrics !== null && this.metrics !== undefined) {
     output.writeFieldBegin('metrics', Thrift.Type.SET, 1);
     output.writeSetBegin(Thrift.Type.STRING, this.metrics.length);
-    for (var iter369 in this.metrics)
+    for (var iter377 in this.metrics)
     {
-      if (this.metrics.hasOwnProperty(iter369))
+      if (this.metrics.hasOwnProperty(iter377))
       {
-        iter369 = this.metrics[iter369];
-        output.writeString(iter369);
+        iter377 = this.metrics[iter377];
+        output.writeString(iter377);
       }
     }
     output.writeSetEnd();
@@ -4600,28 +4600,28 @@ Blur_metrics_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size370 = 0;
-        var _rtmp3374;
+        var _size378 = 0;
+        var _rtmp3382;
         this.success = {};
-        var _ktype371 = 0;
-        var _vtype372 = 0;
-        _rtmp3374 = input.readMapBegin();
-        _ktype371 = _rtmp3374.ktype;
-        _vtype372 = _rtmp3374.vtype;
-        _size370 = _rtmp3374.size;
-        for (var _i375 = 0; _i375 < _size370; ++_i375)
+        var _ktype379 = 0;
+        var _vtype380 = 0;
+        _rtmp3382 = input.readMapBegin();
+        _ktype379 = _rtmp3382.ktype;
+        _vtype380 = _rtmp3382.vtype;
+        _size378 = _rtmp3382.size;
+        for (var _i383 = 0; _i383 < _size378; ++_i383)
         {
-          if (_i375 > 0 ) {
+          if (_i383 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key376 = null;
-          var val377 = null;
-          key376 = input.readString().value;
-          val377 = new Metric();
-          val377.read(input);
-          this.success[key376] = val377;
+          var key384 = null;
+          var val385 = null;
+          key384 = input.readString().value;
+          val385 = new Metric();
+          val385.read(input);
+          this.success[key384] = val385;
         }
         input.readMapEnd();
       } else {
@@ -4650,13 +4650,13 @@ Blur_metrics_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.MAP, 0);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.success));
-    for (var kiter378 in this.success)
+    for (var kiter386 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter378))
+      if (this.success.hasOwnProperty(kiter386))
       {
-        var viter379 = this.success[kiter378];
-        output.writeString(kiter378);
-        viter379.write(output);
+        var viter387 = this.success[kiter386];
+        output.writeString(kiter386);
+        viter387.write(output);
       }
     }
     output.writeMapEnd();
@@ -4826,18 +4826,18 @@ Blur_traceList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size380 = 0;
-        var _rtmp3384;
+        var _size388 = 0;
+        var _rtmp3392;
         this.success = [];
-        var _etype383 = 0;
-        _rtmp3384 = input.readListBegin();
-        _etype383 = _rtmp3384.etype;
-        _size380 = _rtmp3384.size;
-        for (var _i385 = 0; _i385 < _size380; ++_i385)
+        var _etype391 = 0;
+        _rtmp3392 = input.readListBegin();
+        _etype391 = _rtmp3392.etype;
+        _size388 = _rtmp3392.size;
+        for (var _i393 = 0; _i393 < _size388; ++_i393)
         {
-          var elem386 = null;
-          elem386 = input.readString().value;
-          this.success.push(elem386);
+          var elem394 = null;
+          elem394 = input.readString().value;
+          this.success.push(elem394);
         }
         input.readListEnd();
       } else {
@@ -4866,12 +4866,12 @@ Blur_traceList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter387 in this.success)
+    for (var iter395 in this.success)
     {
-      if (this.success.hasOwnProperty(iter387))
+      if (this.success.hasOwnProperty(iter395))
       {
-        iter387 = this.success[iter387];
-        output.writeString(iter387);
+        iter395 = this.success[iter395];
+        output.writeString(iter395);
       }
     }
     output.writeListEnd();
@@ -4972,18 +4972,18 @@ Blur_traceRequestList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size388 = 0;
-        var _rtmp3392;
+        var _size396 = 0;
+        var _rtmp3400;
         this.success = [];
-        var _etype391 = 0;
-        _rtmp3392 = input.readListBegin();
-        _etype391 = _rtmp3392.etype;
-        _size388 = _rtmp3392.size;
-        for (var _i393 = 0; _i393 < _size388; ++_i393)
+        var _etype399 = 0;
+        _rtmp3400 = input.readListBegin();
+        _etype399 = _rtmp3400.etype;
+        _size396 = _rtmp3400.size;
+        for (var _i401 = 0; _i401 < _size396; ++_i401)
         {
-          var elem394 = null;
-          elem394 = input.readString().value;
-          this.success.push(elem394);
+          var elem402 = null;
+          elem402 = input.readString().value;
+          this.success.push(elem402);
         }
         input.readListEnd();
       } else {
@@ -5012,12 +5012,12 @@ Blur_traceRequestList_result.prototype.write = function(output) {
   if (this.success !== null && this.success !== undefined) {
     output.writeFieldBegin('success', Thrift.Type.LIST, 0);
     output.writeListBegin(Thrift.Type.STRING, this.success.length);
-    for (var iter395 in this.success)
+    for (var iter403 in this.success)
     {
-      if (this.success.hasOwnProperty(iter395))
+      if (this.success.hasOwnProperty(iter403))
       {
-        iter395 = this.success[iter395];
-        output.writeString(iter395);
+        iter403 = this.success[iter403];
+        output.writeString(iter403);
       }
     }
     output.writeListEnd();

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5e495671/distribution/src/main/scripts/interface/gen-js/Blur_types.js
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-js/Blur_types.js b/distribution/src/main/scripts/interface/gen-js/Blur_types.js
index 2684719..fffd9c8 100644
--- a/distribution/src/main/scripts/interface/gen-js/Blur_types.js
+++ b/distribution/src/main/scripts/interface/gen-js/Blur_types.js
@@ -1243,6 +1243,88 @@ Facet.prototype.write = function(output) {
   return;
 };
 
+SortField = function(args) {
+  this.family = null;
+  this.column = null;
+  this.reverse = null;
+  if (args) {
+    if (args.family !== undefined) {
+      this.family = args.family;
+    }
+    if (args.column !== undefined) {
+      this.column = args.column;
+    }
+    if (args.reverse !== undefined) {
+      this.reverse = args.reverse;
+    }
+  }
+};
+SortField.prototype = {};
+SortField.prototype.read = function(input) {
+  input.readStructBegin();
+  while (true)
+  {
+    var ret = input.readFieldBegin();
+    var fname = ret.fname;
+    var ftype = ret.ftype;
+    var fid = ret.fid;
+    if (ftype == Thrift.Type.STOP) {
+      break;
+    }
+    switch (fid)
+    {
+      case 1:
+      if (ftype == Thrift.Type.STRING) {
+        this.family = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 2:
+      if (ftype == Thrift.Type.STRING) {
+        this.column = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 3:
+      if (ftype == Thrift.Type.BOOL) {
+        this.reverse = input.readBool().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      default:
+        input.skip(ftype);
+    }
+    input.readFieldEnd();
+  }
+  input.readStructEnd();
+  return;
+};
+
+SortField.prototype.write = function(output) {
+  output.writeStructBegin('SortField');
+  if (this.family !== null && this.family !== undefined) {
+    output.writeFieldBegin('family', Thrift.Type.STRING, 1);
+    output.writeString(this.family);
+    output.writeFieldEnd();
+  }
+  if (this.column !== null && this.column !== undefined) {
+    output.writeFieldBegin('column', Thrift.Type.STRING, 2);
+    output.writeString(this.column);
+    output.writeFieldEnd();
+  }
+  if (this.reverse !== null && this.reverse !== undefined) {
+    output.writeFieldBegin('reverse', Thrift.Type.BOOL, 3);
+    output.writeBool(this.reverse);
+    output.writeFieldEnd();
+  }
+  output.writeFieldStop();
+  output.writeStructEnd();
+  return;
+};
+
 BlurQuery = function(args) {
   this.query = null;
   this.facets = null;
@@ -1256,6 +1338,7 @@ BlurQuery = function(args) {
   this.userContext = null;
   this.cacheResult = true;
   this.startTime = 0;
+  this.sortFields = null;
   if (args) {
     if (args.query !== undefined) {
       this.query = args.query;
@@ -1293,6 +1376,9 @@ BlurQuery = function(args) {
     if (args.startTime !== undefined) {
       this.startTime = args.startTime;
     }
+    if (args.sortFields !== undefined) {
+      this.sortFields = args.sortFields;
+    }
   }
 };
 BlurQuery.prototype = {};
@@ -1409,6 +1495,27 @@ BlurQuery.prototype.read = function(input) {
         input.skip(ftype);
       }
       break;
+      case 15:
+      if (ftype == Thrift.Type.LIST) {
+        var _size57 = 0;
+        var _rtmp361;
+        this.sortFields = [];
+        var _etype60 = 0;
+        _rtmp361 = input.readListBegin();
+        _etype60 = _rtmp361.etype;
+        _size57 = _rtmp361.size;
+        for (var _i62 = 0; _i62 < _size57; ++_i62)
+        {
+          var elem63 = null;
+          elem63 = new SortField();
+          elem63.read(input);
+          this.sortFields.push(elem63);
+        }
+        input.readListEnd();
+      } else {
+        input.skip(ftype);
+      }
+      break;
       default:
         input.skip(ftype);
     }
@@ -1428,12 +1535,12 @@ BlurQuery.prototype.write = function(output) {
   if (this.facets !== null && this.facets !== undefined) {
     output.writeFieldBegin('facets', Thrift.Type.LIST, 3);
     output.writeListBegin(Thrift.Type.STRUCT, this.facets.length);
-    for (var iter57 in this.facets)
+    for (var iter64 in this.facets)
     {
-      if (this.facets.hasOwnProperty(iter57))
+      if (this.facets.hasOwnProperty(iter64))
       {
-        iter57 = this.facets[iter57];
-        iter57.write(output);
+        iter64 = this.facets[iter64];
+        iter64.write(output);
       }
     }
     output.writeListEnd();
@@ -1489,12 +1596,26 @@ BlurQuery.prototype.write = function(output) {
     output.writeI64(this.startTime);
     output.writeFieldEnd();
   }
+  if (this.sortFields !== null && this.sortFields !== undefined) {
+    output.writeFieldBegin('sortFields', Thrift.Type.LIST, 15);
+    output.writeListBegin(Thrift.Type.STRUCT, this.sortFields.length);
+    for (var iter65 in this.sortFields)
+    {
+      if (this.sortFields.hasOwnProperty(iter65))
+      {
+        iter65 = this.sortFields[iter65];
+        iter65.write(output);
+      }
+    }
+    output.writeListEnd();
+    output.writeFieldEnd();
+  }
   output.writeFieldStop();
   output.writeStructEnd();
   return;
 };
 
-SortField = function(args) {
+SortFieldResult = function(args) {
   this.nullValue = null;
   this.stringValue = null;
   this.intValue = null;
@@ -1522,8 +1643,8 @@ SortField = function(args) {
     }
   }
 };
-SortField.prototype = {};
-SortField.prototype.read = function(input) {
+SortFieldResult.prototype = {};
+SortFieldResult.prototype.read = function(input) {
   input.readStructBegin();
   while (true)
   {
@@ -1587,8 +1708,8 @@ SortField.prototype.read = function(input) {
   return;
 };
 
-SortField.prototype.write = function(output) {
-  output.writeStructBegin('SortField');
+SortFieldResult.prototype.write = function(output) {
+  output.writeStructBegin('SortFieldResult');
   if (this.nullValue !== null && this.nullValue !== undefined) {
     output.writeFieldBegin('nullValue', Thrift.Type.BOOL, 1);
     output.writeBool(this.nullValue);
@@ -1628,7 +1749,7 @@ BlurResult = function(args) {
   this.locationId = null;
   this.score = null;
   this.fetchResult = null;
-  this.sortFields = null;
+  this.sortFieldResults = null;
   if (args) {
     if (args.locationId !== undefined) {
       this.locationId = args.locationId;
@@ -1639,8 +1760,8 @@ BlurResult = function(args) {
     if (args.fetchResult !== undefined) {
       this.fetchResult = args.fetchResult;
     }
-    if (args.sortFields !== undefined) {
-      this.sortFields = args.sortFields;
+    if (args.sortFieldResults !== undefined) {
+      this.sortFieldResults = args.sortFieldResults;
     }
   }
 };
@@ -1682,19 +1803,19 @@ BlurResult.prototype.read = function(input) {
       break;
       case 4:
       if (ftype == Thrift.Type.LIST) {
-        var _size58 = 0;
-        var _rtmp362;
-        this.sortFields = [];
-        var _etype61 = 0;
-        _rtmp362 = input.readListBegin();
-        _etype61 = _rtmp362.etype;
-        _size58 = _rtmp362.size;
-        for (var _i63 = 0; _i63 < _size58; ++_i63)
+        var _size66 = 0;
+        var _rtmp370;
+        this.sortFieldResults = [];
+        var _etype69 = 0;
+        _rtmp370 = input.readListBegin();
+        _etype69 = _rtmp370.etype;
+        _size66 = _rtmp370.size;
+        for (var _i71 = 0; _i71 < _size66; ++_i71)
         {
-          var elem64 = null;
-          elem64 = new SortField();
-          elem64.read(input);
-          this.sortFields.push(elem64);
+          var elem72 = null;
+          elem72 = new SortFieldResult();
+          elem72.read(input);
+          this.sortFieldResults.push(elem72);
         }
         input.readListEnd();
       } else {
@@ -1727,15 +1848,15 @@ BlurResult.prototype.write = function(output) {
     this.fetchResult.write(output);
     output.writeFieldEnd();
   }
-  if (this.sortFields !== null && this.sortFields !== undefined) {
-    output.writeFieldBegin('sortFields', Thrift.Type.LIST, 4);
-    output.writeListBegin(Thrift.Type.STRUCT, this.sortFields.length);
-    for (var iter65 in this.sortFields)
+  if (this.sortFieldResults !== null && this.sortFieldResults !== undefined) {
+    output.writeFieldBegin('sortFieldResults', Thrift.Type.LIST, 4);
+    output.writeListBegin(Thrift.Type.STRUCT, this.sortFieldResults.length);
+    for (var iter73 in this.sortFieldResults)
     {
-      if (this.sortFields.hasOwnProperty(iter65))
+      if (this.sortFieldResults.hasOwnProperty(iter73))
       {
-        iter65 = this.sortFields[iter65];
-        iter65.write(output);
+        iter73 = this.sortFieldResults[iter73];
+        iter73.write(output);
       }
     }
     output.writeListEnd();
@@ -1797,27 +1918,27 @@ BlurResults.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size66 = 0;
-        var _rtmp370;
+        var _size74 = 0;
+        var _rtmp378;
         this.shardInfo = {};
-        var _ktype67 = 0;
-        var _vtype68 = 0;
-        _rtmp370 = input.readMapBegin();
-        _ktype67 = _rtmp370.ktype;
-        _vtype68 = _rtmp370.vtype;
-        _size66 = _rtmp370.size;
-        for (var _i71 = 0; _i71 < _size66; ++_i71)
+        var _ktype75 = 0;
+        var _vtype76 = 0;
+        _rtmp378 = input.readMapBegin();
+        _ktype75 = _rtmp378.ktype;
+        _vtype76 = _rtmp378.vtype;
+        _size74 = _rtmp378.size;
+        for (var _i79 = 0; _i79 < _size74; ++_i79)
         {
-          if (_i71 > 0 ) {
+          if (_i79 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key72 = null;
-          var val73 = null;
-          key72 = input.readString().value;
-          val73 = input.readI64().value;
-          this.shardInfo[key72] = val73;
+          var key80 = null;
+          var val81 = null;
+          key80 = input.readString().value;
+          val81 = input.readI64().value;
+          this.shardInfo[key80] = val81;
         }
         input.readMapEnd();
       } else {
@@ -1826,19 +1947,19 @@ BlurResults.prototype.read = function(input) {
       break;
       case 3:
       if (ftype == Thrift.Type.LIST) {
-        var _size74 = 0;
-        var _rtmp378;
+        var _size82 = 0;
+        var _rtmp386;
         this.results = [];
-        var _etype77 = 0;
-        _rtmp378 = input.readListBegin();
-        _etype77 = _rtmp378.etype;
-        _size74 = _rtmp378.size;
-        for (var _i79 = 0; _i79 < _size74; ++_i79)
+        var _etype85 = 0;
+        _rtmp386 = input.readListBegin();
+        _etype85 = _rtmp386.etype;
+        _size82 = _rtmp386.size;
+        for (var _i87 = 0; _i87 < _size82; ++_i87)
         {
-          var elem80 = null;
-          elem80 = new BlurResult();
-          elem80.read(input);
-          this.results.push(elem80);
+          var elem88 = null;
+          elem88 = new BlurResult();
+          elem88.read(input);
+          this.results.push(elem88);
         }
         input.readListEnd();
       } else {
@@ -1847,18 +1968,18 @@ BlurResults.prototype.read = function(input) {
       break;
       case 4:
       if (ftype == Thrift.Type.LIST) {
-        var _size81 = 0;
-        var _rtmp385;
+        var _size89 = 0;
+        var _rtmp393;
         this.facetCounts = [];
-        var _etype84 = 0;
-        _rtmp385 = input.readListBegin();
-        _etype84 = _rtmp385.etype;
-        _size81 = _rtmp385.size;
-        for (var _i86 = 0; _i86 < _size81; ++_i86)
+        var _etype92 = 0;
+        _rtmp393 = input.readListBegin();
+        _etype92 = _rtmp393.etype;
+        _size89 = _rtmp393.size;
+        for (var _i94 = 0; _i94 < _size89; ++_i94)
         {
-          var elem87 = null;
-          elem87 = input.readI64().value;
-          this.facetCounts.push(elem87);
+          var elem95 = null;
+          elem95 = input.readI64().value;
+          this.facetCounts.push(elem95);
         }
         input.readListEnd();
       } else {
@@ -1867,19 +1988,19 @@ BlurResults.prototype.read = function(input) {
       break;
       case 5:
       if (ftype == Thrift.Type.LIST) {
-        var _size88 = 0;
-        var _rtmp392;
+        var _size96 = 0;
+        var _rtmp3100;
         this.exceptions = [];
-        var _etype91 = 0;
-        _rtmp392 = input.readListBegin();
-        _etype91 = _rtmp392.etype;
-        _size88 = _rtmp392.size;
-        for (var _i93 = 0; _i93 < _size88; ++_i93)
+        var _etype99 = 0;
+        _rtmp3100 = input.readListBegin();
+        _etype99 = _rtmp3100.etype;
+        _size96 = _rtmp3100.size;
+        for (var _i101 = 0; _i101 < _size96; ++_i101)
         {
-          var elem94 = null;
-          elem94 = new BlurException();
-          elem94.read(input);
-          this.exceptions.push(elem94);
+          var elem102 = null;
+          elem102 = new BlurException();
+          elem102.read(input);
+          this.exceptions.push(elem102);
         }
         input.readListEnd();
       } else {
@@ -1913,13 +2034,13 @@ BlurResults.prototype.write = function(output) {
   if (this.shardInfo !== null && this.shardInfo !== undefined) {
     output.writeFieldBegin('shardInfo', Thrift.Type.MAP, 2);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I64, Thrift.objectLength(this.shardInfo));
-    for (var kiter95 in this.shardInfo)
+    for (var kiter103 in this.shardInfo)
     {
-      if (this.shardInfo.hasOwnProperty(kiter95))
+      if (this.shardInfo.hasOwnProperty(kiter103))
       {
-        var viter96 = this.shardInfo[kiter95];
-        output.writeString(kiter95);
-        output.writeI64(viter96);
+        var viter104 = this.shardInfo[kiter103];
+        output.writeString(kiter103);
+        output.writeI64(viter104);
       }
     }
     output.writeMapEnd();
@@ -1928,12 +2049,12 @@ BlurResults.prototype.write = function(output) {
   if (this.results !== null && this.results !== undefined) {
     output.writeFieldBegin('results', Thrift.Type.LIST, 3);
     output.writeListBegin(Thrift.Type.STRUCT, this.results.length);
-    for (var iter97 in this.results)
+    for (var iter105 in this.results)
     {
-      if (this.results.hasOwnProperty(iter97))
+      if (this.results.hasOwnProperty(iter105))
       {
-        iter97 = this.results[iter97];
-        iter97.write(output);
+        iter105 = this.results[iter105];
+        iter105.write(output);
       }
     }
     output.writeListEnd();
@@ -1942,12 +2063,12 @@ BlurResults.prototype.write = function(output) {
   if (this.facetCounts !== null && this.facetCounts !== undefined) {
     output.writeFieldBegin('facetCounts', Thrift.Type.LIST, 4);
     output.writeListBegin(Thrift.Type.I64, this.facetCounts.length);
-    for (var iter98 in this.facetCounts)
+    for (var iter106 in this.facetCounts)
     {
-      if (this.facetCounts.hasOwnProperty(iter98))
+      if (this.facetCounts.hasOwnProperty(iter106))
       {
-        iter98 = this.facetCounts[iter98];
-        output.writeI64(iter98);
+        iter106 = this.facetCounts[iter106];
+        output.writeI64(iter106);
       }
     }
     output.writeListEnd();
@@ -1956,12 +2077,12 @@ BlurResults.prototype.write = function(output) {
   if (this.exceptions !== null && this.exceptions !== undefined) {
     output.writeFieldBegin('exceptions', Thrift.Type.LIST, 5);
     output.writeListBegin(Thrift.Type.STRUCT, this.exceptions.length);
-    for (var iter99 in this.exceptions)
+    for (var iter107 in this.exceptions)
     {
-      if (this.exceptions.hasOwnProperty(iter99))
+      if (this.exceptions.hasOwnProperty(iter107))
       {
-        iter99 = this.exceptions[iter99];
-        iter99.write(output);
+        iter107 = this.exceptions[iter107];
+        iter107.write(output);
       }
     }
     output.writeListEnd();
@@ -2101,19 +2222,19 @@ RowMutation.prototype.read = function(input) {
       break;
       case 5:
       if (ftype == Thrift.Type.LIST) {
-        var _size100 = 0;
-        var _rtmp3104;
+        var _size108 = 0;
+        var _rtmp3112;
         this.recordMutations = [];
-        var _etype103 = 0;
-        _rtmp3104 = input.readListBegin();
-        _etype103 = _rtmp3104.etype;
-        _size100 = _rtmp3104.size;
-        for (var _i105 = 0; _i105 < _size100; ++_i105)
+        var _etype111 = 0;
+        _rtmp3112 = input.readListBegin();
+        _etype111 = _rtmp3112.etype;
+        _size108 = _rtmp3112.size;
+        for (var _i113 = 0; _i113 < _size108; ++_i113)
         {
-          var elem106 = null;
-          elem106 = new RecordMutation();
-          elem106.read(input);
-          this.recordMutations.push(elem106);
+          var elem114 = null;
+          elem114 = new RecordMutation();
+          elem114.read(input);
+          this.recordMutations.push(elem114);
         }
         input.readListEnd();
       } else {
@@ -2149,12 +2270,12 @@ RowMutation.prototype.write = function(output) {
   if (this.recordMutations !== null && this.recordMutations !== undefined) {
     output.writeFieldBegin('recordMutations', Thrift.Type.LIST, 5);
     output.writeListBegin(Thrift.Type.STRUCT, this.recordMutations.length);
-    for (var iter107 in this.recordMutations)
+    for (var iter115 in this.recordMutations)
     {
-      if (this.recordMutations.hasOwnProperty(iter107))
+      if (this.recordMutations.hasOwnProperty(iter115))
       {
-        iter107 = this.recordMutations[iter107];
-        iter107.write(output);
+        iter115 = this.recordMutations[iter115];
+        iter115.write(output);
       }
     }
     output.writeListEnd();
@@ -2287,28 +2408,28 @@ BlurQueryStatus.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size108 = 0;
-        var _rtmp3112;
+        var _size116 = 0;
+        var _rtmp3120;
         this.cpuTimes = {};
-        var _ktype109 = 0;
-        var _vtype110 = 0;
-        _rtmp3112 = input.readMapBegin();
-        _ktype109 = _rtmp3112.ktype;
-        _vtype110 = _rtmp3112.vtype;
-        _size108 = _rtmp3112.size;
-        for (var _i113 = 0; _i113 < _size108; ++_i113)
+        var _ktype117 = 0;
+        var _vtype118 = 0;
+        _rtmp3120 = input.readMapBegin();
+        _ktype117 = _rtmp3120.ktype;
+        _vtype118 = _rtmp3120.vtype;
+        _size116 = _rtmp3120.size;
+        for (var _i121 = 0; _i121 < _size116; ++_i121)
         {
-          if (_i113 > 0 ) {
+          if (_i121 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key114 = null;
-          var val115 = null;
-          key114 = input.readString().value;
-          val115 = new CpuTime();
-          val115.read(input);
-          this.cpuTimes[key114] = val115;
+          var key122 = null;
+          var val123 = null;
+          key122 = input.readString().value;
+          val123 = new CpuTime();
+          val123.read(input);
+          this.cpuTimes[key122] = val123;
         }
         input.readMapEnd();
       } else {
@@ -2369,13 +2490,13 @@ BlurQueryStatus.prototype.write = function(output) {
   if (this.cpuTimes !== null && this.cpuTimes !== undefined) {
     output.writeFieldBegin('cpuTimes', Thrift.Type.MAP, 2);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.cpuTimes));
-    for (var kiter116 in this.cpuTimes)
+    for (var kiter124 in this.cpuTimes)
     {
-      if (this.cpuTimes.hasOwnProperty(kiter116))
+      if (this.cpuTimes.hasOwnProperty(kiter124))
       {
-        var viter117 = this.cpuTimes[kiter116];
-        output.writeString(kiter116);
-        viter117.write(output);
+        var viter125 = this.cpuTimes[kiter124];
+        output.writeString(kiter124);
+        viter125.write(output);
       }
     }
     output.writeMapEnd();
@@ -2516,6 +2637,7 @@ ColumnDefinition = function(args) {
   this.fieldLessIndexed = null;
   this.fieldType = null;
   this.properties = null;
+  this.sortable = null;
   if (args) {
     if (args.family !== undefined) {
       this.family = args.family;
@@ -2535,6 +2657,9 @@ ColumnDefinition = function(args) {
     if (args.properties !== undefined) {
       this.properties = args.properties;
     }
+    if (args.sortable !== undefined) {
+      this.sortable = args.sortable;
+    }
   }
 };
 ColumnDefinition.prototype = {};
@@ -2588,33 +2713,40 @@ ColumnDefinition.prototype.read = function(input) {
       break;
       case 6:
       if (ftype == Thrift.Type.MAP) {
-        var _size118 = 0;
-        var _rtmp3122;
+        var _size126 = 0;
+        var _rtmp3130;
         this.properties = {};
-        var _ktype119 = 0;
-        var _vtype120 = 0;
-        _rtmp3122 = input.readMapBegin();
-        _ktype119 = _rtmp3122.ktype;
-        _vtype120 = _rtmp3122.vtype;
-        _size118 = _rtmp3122.size;
-        for (var _i123 = 0; _i123 < _size118; ++_i123)
+        var _ktype127 = 0;
+        var _vtype128 = 0;
+        _rtmp3130 = input.readMapBegin();
+        _ktype127 = _rtmp3130.ktype;
+        _vtype128 = _rtmp3130.vtype;
+        _size126 = _rtmp3130.size;
+        for (var _i131 = 0; _i131 < _size126; ++_i131)
         {
-          if (_i123 > 0 ) {
+          if (_i131 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key124 = null;
-          var val125 = null;
-          key124 = input.readString().value;
-          val125 = input.readString().value;
-          this.properties[key124] = val125;
+          var key132 = null;
+          var val133 = null;
+          key132 = input.readString().value;
+          val133 = input.readString().value;
+          this.properties[key132] = val133;
         }
         input.readMapEnd();
       } else {
         input.skip(ftype);
       }
       break;
+      case 7:
+      if (ftype == Thrift.Type.BOOL) {
+        this.sortable = input.readBool().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
       default:
         input.skip(ftype);
     }
@@ -2654,18 +2786,23 @@ ColumnDefinition.prototype.write = function(output) {
   if (this.properties !== null && this.properties !== undefined) {
     output.writeFieldBegin('properties', Thrift.Type.MAP, 6);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
-    for (var kiter126 in this.properties)
+    for (var kiter134 in this.properties)
     {
-      if (this.properties.hasOwnProperty(kiter126))
+      if (this.properties.hasOwnProperty(kiter134))
       {
-        var viter127 = this.properties[kiter126];
-        output.writeString(kiter126);
-        output.writeString(viter127);
+        var viter135 = this.properties[kiter134];
+        output.writeString(kiter134);
+        output.writeString(viter135);
       }
     }
     output.writeMapEnd();
     output.writeFieldEnd();
   }
+  if (this.sortable !== null && this.sortable !== undefined) {
+    output.writeFieldBegin('sortable', Thrift.Type.BOOL, 7);
+    output.writeBool(this.sortable);
+    output.writeFieldEnd();
+  }
   output.writeFieldStop();
   output.writeStructEnd();
   return;
@@ -2706,50 +2843,50 @@ Schema.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size128 = 0;
-        var _rtmp3132;
+        var _size136 = 0;
+        var _rtmp3140;
         this.families = {};
-        var _ktype129 = 0;
-        var _vtype130 = 0;
-        _rtmp3132 = input.readMapBegin();
-        _ktype129 = _rtmp3132.ktype;
-        _vtype130 = _rtmp3132.vtype;
-        _size128 = _rtmp3132.size;
-        for (var _i133 = 0; _i133 < _size128; ++_i133)
+        var _ktype137 = 0;
+        var _vtype138 = 0;
+        _rtmp3140 = input.readMapBegin();
+        _ktype137 = _rtmp3140.ktype;
+        _vtype138 = _rtmp3140.vtype;
+        _size136 = _rtmp3140.size;
+        for (var _i141 = 0; _i141 < _size136; ++_i141)
         {
-          if (_i133 > 0 ) {
+          if (_i141 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key134 = null;
-          var val135 = null;
-          key134 = input.readString().value;
-          var _size136 = 0;
-          var _rtmp3140;
-          val135 = {};
-          var _ktype137 = 0;
-          var _vtype138 = 0;
-          _rtmp3140 = input.readMapBegin();
-          _ktype137 = _rtmp3140.ktype;
-          _vtype138 = _rtmp3140.vtype;
-          _size136 = _rtmp3140.size;
-          for (var _i141 = 0; _i141 < _size136; ++_i141)
+          var key142 = null;
+          var val143 = null;
+          key142 = input.readString().value;
+          var _size144 = 0;
+          var _rtmp3148;
+          val143 = {};
+          var _ktype145 = 0;
+          var _vtype146 = 0;
+          _rtmp3148 = input.readMapBegin();
+          _ktype145 = _rtmp3148.ktype;
+          _vtype146 = _rtmp3148.vtype;
+          _size144 = _rtmp3148.size;
+          for (var _i149 = 0; _i149 < _size144; ++_i149)
           {
-            if (_i141 > 0 ) {
+            if (_i149 > 0 ) {
               if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
                 input.rstack.pop();
               }
             }
-            var key142 = null;
-            var val143 = null;
-            key142 = input.readString().value;
-            val143 = new ColumnDefinition();
-            val143.read(input);
-            val135[key142] = val143;
+            var key150 = null;
+            var val151 = null;
+            key150 = input.readString().value;
+            val151 = new ColumnDefinition();
+            val151.read(input);
+            val143[key150] = val151;
           }
           input.readMapEnd();
-          this.families[key134] = val135;
+          this.families[key142] = val143;
         }
         input.readMapEnd();
       } else {
@@ -2775,20 +2912,20 @@ Schema.prototype.write = function(output) {
   if (this.families !== null && this.families !== undefined) {
     output.writeFieldBegin('families', Thrift.Type.MAP, 2);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.MAP, Thrift.objectLength(this.families));
-    for (var kiter144 in this.families)
+    for (var kiter152 in this.families)
     {
-      if (this.families.hasOwnProperty(kiter144))
+      if (this.families.hasOwnProperty(kiter152))
       {
-        var viter145 = this.families[kiter144];
-        output.writeString(kiter144);
-        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(viter145));
-        for (var kiter146 in viter145)
+        var viter153 = this.families[kiter152];
+        output.writeString(kiter152);
+        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(viter153));
+        for (var kiter154 in viter153)
         {
-          if (viter145.hasOwnProperty(kiter146))
+          if (viter153.hasOwnProperty(kiter154))
           {
-            var viter147 = viter145[kiter146];
-            output.writeString(kiter146);
-            viter147.write(output);
+            var viter155 = viter153[kiter154];
+            output.writeString(kiter154);
+            viter155.write(output);
           }
         }
         output.writeMapEnd();
@@ -2931,18 +3068,18 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 11:
       if (ftype == Thrift.Type.SET) {
-        var _size148 = 0;
-        var _rtmp3152;
+        var _size156 = 0;
+        var _rtmp3160;
         this.blockCachingFileTypes = [];
-        var _etype151 = 0;
-        _rtmp3152 = input.readSetBegin();
-        _etype151 = _rtmp3152.etype;
-        _size148 = _rtmp3152.size;
-        for (var _i153 = 0; _i153 < _size148; ++_i153)
+        var _etype159 = 0;
+        _rtmp3160 = input.readSetBegin();
+        _etype159 = _rtmp3160.etype;
+        _size156 = _rtmp3160.size;
+        for (var _i161 = 0; _i161 < _size156; ++_i161)
         {
-          var elem154 = null;
-          elem154 = input.readString().value;
-          this.blockCachingFileTypes.push(elem154);
+          var elem162 = null;
+          elem162 = input.readString().value;
+          this.blockCachingFileTypes.push(elem162);
         }
         input.readSetEnd();
       } else {
@@ -2958,18 +3095,18 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 13:
       if (ftype == Thrift.Type.LIST) {
-        var _size155 = 0;
-        var _rtmp3159;
+        var _size163 = 0;
+        var _rtmp3167;
         this.preCacheCols = [];
-        var _etype158 = 0;
-        _rtmp3159 = input.readListBegin();
-        _etype158 = _rtmp3159.etype;
-        _size155 = _rtmp3159.size;
-        for (var _i160 = 0; _i160 < _size155; ++_i160)
+        var _etype166 = 0;
+        _rtmp3167 = input.readListBegin();
+        _etype166 = _rtmp3167.etype;
+        _size163 = _rtmp3167.size;
+        for (var _i168 = 0; _i168 < _size163; ++_i168)
         {
-          var elem161 = null;
-          elem161 = input.readString().value;
-          this.preCacheCols.push(elem161);
+          var elem169 = null;
+          elem169 = input.readString().value;
+          this.preCacheCols.push(elem169);
         }
         input.readListEnd();
       } else {
@@ -2978,27 +3115,27 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 14:
       if (ftype == Thrift.Type.MAP) {
-        var _size162 = 0;
-        var _rtmp3166;
+        var _size170 = 0;
+        var _rtmp3174;
         this.tableProperties = {};
-        var _ktype163 = 0;
-        var _vtype164 = 0;
-        _rtmp3166 = input.readMapBegin();
-        _ktype163 = _rtmp3166.ktype;
-        _vtype164 = _rtmp3166.vtype;
-        _size162 = _rtmp3166.size;
-        for (var _i167 = 0; _i167 < _size162; ++_i167)
+        var _ktype171 = 0;
+        var _vtype172 = 0;
+        _rtmp3174 = input.readMapBegin();
+        _ktype171 = _rtmp3174.ktype;
+        _vtype172 = _rtmp3174.vtype;
+        _size170 = _rtmp3174.size;
+        for (var _i175 = 0; _i175 < _size170; ++_i175)
         {
-          if (_i167 > 0 ) {
+          if (_i175 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key168 = null;
-          var val169 = null;
-          key168 = input.readString().value;
-          val169 = input.readString().value;
-          this.tableProperties[key168] = val169;
+          var key176 = null;
+          var val177 = null;
+          key176 = input.readString().value;
+          val177 = input.readString().value;
+          this.tableProperties[key176] = val177;
         }
         input.readMapEnd();
       } else {
@@ -3028,27 +3165,27 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 18:
       if (ftype == Thrift.Type.MAP) {
-        var _size170 = 0;
-        var _rtmp3174;
+        var _size178 = 0;
+        var _rtmp3182;
         this.defaultMissingFieldProps = {};
-        var _ktype171 = 0;
-        var _vtype172 = 0;
-        _rtmp3174 = input.readMapBegin();
-        _ktype171 = _rtmp3174.ktype;
-        _vtype172 = _rtmp3174.vtype;
-        _size170 = _rtmp3174.size;
-        for (var _i175 = 0; _i175 < _size170; ++_i175)
+        var _ktype179 = 0;
+        var _vtype180 = 0;
+        _rtmp3182 = input.readMapBegin();
+        _ktype179 = _rtmp3182.ktype;
+        _vtype180 = _rtmp3182.vtype;
+        _size178 = _rtmp3182.size;
+        for (var _i183 = 0; _i183 < _size178; ++_i183)
         {
-          if (_i175 > 0 ) {
+          if (_i183 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key176 = null;
-          var val177 = null;
-          key176 = input.readString().value;
-          val177 = input.readString().value;
-          this.defaultMissingFieldProps[key176] = val177;
+          var key184 = null;
+          var val185 = null;
+          key184 = input.readString().value;
+          val185 = input.readString().value;
+          this.defaultMissingFieldProps[key184] = val185;
         }
         input.readMapEnd();
       } else {
@@ -3104,12 +3241,12 @@ TableDescriptor.prototype.write = function(output) {
   if (this.blockCachingFileTypes !== null && this.blockCachingFileTypes !== undefined) {
     output.writeFieldBegin('blockCachingFileTypes', Thrift.Type.SET, 11);
     output.writeSetBegin(Thrift.Type.STRING, this.blockCachingFileTypes.length);
-    for (var iter178 in this.blockCachingFileTypes)
+    for (var iter186 in this.blockCachingFileTypes)
     {
-      if (this.blockCachingFileTypes.hasOwnProperty(iter178))
+      if (this.blockCachingFileTypes.hasOwnProperty(iter186))
       {
-        iter178 = this.blockCachingFileTypes[iter178];
-        output.writeString(iter178);
+        iter186 = this.blockCachingFileTypes[iter186];
+        output.writeString(iter186);
       }
     }
     output.writeSetEnd();
@@ -3123,12 +3260,12 @@ TableDescriptor.prototype.write = function(output) {
   if (this.preCacheCols !== null && this.preCacheCols !== undefined) {
     output.writeFieldBegin('preCacheCols', Thrift.Type.LIST, 13);
     output.writeListBegin(Thrift.Type.STRING, this.preCacheCols.length);
-    for (var iter179 in this.preCacheCols)
+    for (var iter187 in this.preCacheCols)
     {
-      if (this.preCacheCols.hasOwnProperty(iter179))
+      if (this.preCacheCols.hasOwnProperty(iter187))
       {
-        iter179 = this.preCacheCols[iter179];
-        output.writeString(iter179);
+        iter187 = this.preCacheCols[iter187];
+        output.writeString(iter187);
       }
     }
     output.writeListEnd();
@@ -3137,13 +3274,13 @@ TableDescriptor.prototype.write = function(output) {
   if (this.tableProperties !== null && this.tableProperties !== undefined) {
     output.writeFieldBegin('tableProperties', Thrift.Type.MAP, 14);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.tableProperties));
-    for (var kiter180 in this.tableProperties)
+    for (var kiter188 in this.tableProperties)
     {
-      if (this.tableProperties.hasOwnProperty(kiter180))
+      if (this.tableProperties.hasOwnProperty(kiter188))
       {
-        var viter181 = this.tableProperties[kiter180];
-        output.writeString(kiter180);
-        output.writeString(viter181);
+        var viter189 = this.tableProperties[kiter188];
+        output.writeString(kiter188);
+        output.writeString(viter189);
       }
     }
     output.writeMapEnd();
@@ -3167,13 +3304,13 @@ TableDescriptor.prototype.write = function(output) {
   if (this.defaultMissingFieldProps !== null && this.defaultMissingFieldProps !== undefined) {
     output.writeFieldBegin('defaultMissingFieldProps', Thrift.Type.MAP, 18);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.defaultMissingFieldProps));
-    for (var kiter182 in this.defaultMissingFieldProps)
+    for (var kiter190 in this.defaultMissingFieldProps)
     {
-      if (this.defaultMissingFieldProps.hasOwnProperty(kiter182))
+      if (this.defaultMissingFieldProps.hasOwnProperty(kiter190))
       {
-        var viter183 = this.defaultMissingFieldProps[kiter182];
-        output.writeString(kiter182);
-        output.writeString(viter183);
+        var viter191 = this.defaultMissingFieldProps[kiter190];
+        output.writeString(kiter190);
+        output.writeString(viter191);
       }
     }
     output.writeMapEnd();
@@ -3227,38 +3364,9 @@ Metric.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size184 = 0;
-        var _rtmp3188;
-        this.strMap = {};
-        var _ktype185 = 0;
-        var _vtype186 = 0;
-        _rtmp3188 = input.readMapBegin();
-        _ktype185 = _rtmp3188.ktype;
-        _vtype186 = _rtmp3188.vtype;
-        _size184 = _rtmp3188.size;
-        for (var _i189 = 0; _i189 < _size184; ++_i189)
-        {
-          if (_i189 > 0 ) {
-            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
-              input.rstack.pop();
-            }
-          }
-          var key190 = null;
-          var val191 = null;
-          key190 = input.readString().value;
-          val191 = input.readString().value;
-          this.strMap[key190] = val191;
-        }
-        input.readMapEnd();
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 3:
-      if (ftype == Thrift.Type.MAP) {
         var _size192 = 0;
         var _rtmp3196;
-        this.longMap = {};
+        this.strMap = {};
         var _ktype193 = 0;
         var _vtype194 = 0;
         _rtmp3196 = input.readMapBegin();
@@ -3275,19 +3383,19 @@ Metric.prototype.read = function(input) {
           var key198 = null;
           var val199 = null;
           key198 = input.readString().value;
-          val199 = input.readI64().value;
-          this.longMap[key198] = val199;
+          val199 = input.readString().value;
+          this.strMap[key198] = val199;
         }
         input.readMapEnd();
       } else {
         input.skip(ftype);
       }
       break;
-      case 4:
+      case 3:
       if (ftype == Thrift.Type.MAP) {
         var _size200 = 0;
         var _rtmp3204;
-        this.doubleMap = {};
+        this.longMap = {};
         var _ktype201 = 0;
         var _vtype202 = 0;
         _rtmp3204 = input.readMapBegin();
@@ -3304,8 +3412,37 @@ Metric.prototype.read = function(input) {
           var key206 = null;
           var val207 = null;
           key206 = input.readString().value;
-          val207 = input.readDouble().value;
-          this.doubleMap[key206] = val207;
+          val207 = input.readI64().value;
+          this.longMap[key206] = val207;
+        }
+        input.readMapEnd();
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 4:
+      if (ftype == Thrift.Type.MAP) {
+        var _size208 = 0;
+        var _rtmp3212;
+        this.doubleMap = {};
+        var _ktype209 = 0;
+        var _vtype210 = 0;
+        _rtmp3212 = input.readMapBegin();
+        _ktype209 = _rtmp3212.ktype;
+        _vtype210 = _rtmp3212.vtype;
+        _size208 = _rtmp3212.size;
+        for (var _i213 = 0; _i213 < _size208; ++_i213)
+        {
+          if (_i213 > 0 ) {
+            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
+              input.rstack.pop();
+            }
+          }
+          var key214 = null;
+          var val215 = null;
+          key214 = input.readString().value;
+          val215 = input.readDouble().value;
+          this.doubleMap[key214] = val215;
         }
         input.readMapEnd();
       } else {
@@ -3331,13 +3468,13 @@ Metric.prototype.write = function(output) {
   if (this.strMap !== null && this.strMap !== undefined) {
     output.writeFieldBegin('strMap', Thrift.Type.MAP, 2);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.strMap));
-    for (var kiter208 in this.strMap)
+    for (var kiter216 in this.strMap)
     {
-      if (this.strMap.hasOwnProperty(kiter208))
+      if (this.strMap.hasOwnProperty(kiter216))
       {
-        var viter209 = this.strMap[kiter208];
-        output.writeString(kiter208);
-        output.writeString(viter209);
+        var viter217 = this.strMap[kiter216];
+        output.writeString(kiter216);
+        output.writeString(viter217);
       }
     }
     output.writeMapEnd();
@@ -3346,13 +3483,13 @@ Metric.prototype.write = function(output) {
   if (this.longMap !== null && this.longMap !== undefined) {
     output.writeFieldBegin('longMap', Thrift.Type.MAP, 3);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I64, Thrift.objectLength(this.longMap));
-    for (var kiter210 in this.longMap)
+    for (var kiter218 in this.longMap)
     {
-      if (this.longMap.hasOwnProperty(kiter210))
+      if (this.longMap.hasOwnProperty(kiter218))
       {
-        var viter211 = this.longMap[kiter210];
-        output.writeString(kiter210);
-        output.writeI64(viter211);
+        var viter219 = this.longMap[kiter218];
+        output.writeString(kiter218);
+        output.writeI64(viter219);
       }
     }
     output.writeMapEnd();
@@ -3361,13 +3498,13 @@ Metric.prototype.write = function(output) {
   if (this.doubleMap !== null && this.doubleMap !== undefined) {
     output.writeFieldBegin('doubleMap', Thrift.Type.MAP, 4);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.DOUBLE, Thrift.objectLength(this.doubleMap));
-    for (var kiter212 in this.doubleMap)
+    for (var kiter220 in this.doubleMap)
     {
-      if (this.doubleMap.hasOwnProperty(kiter212))
+      if (this.doubleMap.hasOwnProperty(kiter220))
       {
-        var viter213 = this.doubleMap[kiter212];
-        output.writeString(kiter212);
-        output.writeDouble(viter213);
+        var viter221 = this.doubleMap[kiter220];
+        output.writeString(kiter220);
+        output.writeDouble(viter221);
       }
     }
     output.writeMapEnd();
@@ -3413,27 +3550,27 @@ User.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size214 = 0;
-        var _rtmp3218;
+        var _size222 = 0;
+        var _rtmp3226;
         this.attributes = {};
-        var _ktype215 = 0;
-        var _vtype216 = 0;
-        _rtmp3218 = input.readMapBegin();
-        _ktype215 = _rtmp3218.ktype;
-        _vtype216 = _rtmp3218.vtype;
-        _size214 = _rtmp3218.size;
-        for (var _i219 = 0; _i219 < _size214; ++_i219)
+        var _ktype223 = 0;
+        var _vtype224 = 0;
+        _rtmp3226 = input.readMapBegin();
+        _ktype223 = _rtmp3226.ktype;
+        _vtype224 = _rtmp3226.vtype;
+        _size222 = _rtmp3226.size;
+        for (var _i227 = 0; _i227 < _size222; ++_i227)
         {
-          if (_i219 > 0 ) {
+          if (_i227 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key220 = null;
-          var val221 = null;
-          key220 = input.readString().value;
-          val221 = input.readString().value;
-          this.attributes[key220] = val221;
+          var key228 = null;
+          var val229 = null;
+          key228 = input.readString().value;
+          val229 = input.readString().value;
+          this.attributes[key228] = val229;
         }
         input.readMapEnd();
       } else {
@@ -3459,13 +3596,13 @@ User.prototype.write = function(output) {
   if (this.attributes !== null && this.attributes !== undefined) {
     output.writeFieldBegin('attributes', Thrift.Type.MAP, 2);
     output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.attributes));
-    for (var kiter222 in this.attributes)
+    for (var kiter230 in this.attributes)
     {
-      if (this.attributes.hasOwnProperty(kiter222))
+      if (this.attributes.hasOwnProperty(kiter230))
       {
-        var viter223 = this.attributes[kiter222];
-        output.writeString(kiter222);
-        output.writeString(viter223);
+        var viter231 = this.attributes[kiter230];
+        output.writeString(kiter230);
+        output.writeString(viter231);
       }
     }
     output.writeMapEnd();


Mime
View raw message