incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [28/39] Adding the column definition method to Thrift and the Shell.
Date Mon, 12 Aug 2013 15:49:07 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
index 2264b24..a95e3b9 100644
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
+++ b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
@@ -1730,13 +1730,13 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 11: // BLOCK_CACHING_FILE_TYPES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.SET) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set158 = iprot.readSetBegin();
-                struct.blockCachingFileTypes = new HashSet<String>(2*_set158.size);
-                for (int _i159 = 0; _i159 < _set158.size; ++_i159)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set128 = iprot.readSetBegin();
+                struct.blockCachingFileTypes = new HashSet<String>(2*_set128.size);
+                for (int _i129 = 0; _i129 < _set128.size; ++_i129)
                 {
-                  String _elem160; // required
-                  _elem160 = iprot.readString();
-                  struct.blockCachingFileTypes.add(_elem160);
+                  String _elem130; // required
+                  _elem130 = iprot.readString();
+                  struct.blockCachingFileTypes.add(_elem130);
                 }
                 iprot.readSetEnd();
               }
@@ -1765,15 +1765,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 14: // TABLE_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 _map161 = iprot.readMapBegin();
-                struct.tableProperties = new HashMap<String,String>(2*_map161.size);
-                for (int _i162 = 0; _i162 < _map161.size; ++_i162)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map131 = iprot.readMapBegin();
+                struct.tableProperties = new HashMap<String,String>(2*_map131.size);
+                for (int _i132 = 0; _i132 < _map131.size; ++_i132)
                 {
-                  String _key163; // required
-                  String _val164; // optional
-                  _key163 = iprot.readString();
-                  _val164 = iprot.readString();
-                  struct.tableProperties.put(_key163, _val164);
+                  String _key133; // required
+                  String _val134; // optional
+                  _key133 = iprot.readString();
+                  _val134 = iprot.readString();
+                  struct.tableProperties.put(_key133, _val134);
                 }
                 iprot.readMapEnd();
               }
@@ -1809,15 +1809,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 18: // DEFAULT_MISSING_FIELD_PROPS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map165 = iprot.readMapBegin();
-                struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map165.size);
-                for (int _i166 = 0; _i166 < _map165.size; ++_i166)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map135 = iprot.readMapBegin();
+                struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map135.size);
+                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
                 {
-                  String _key167; // required
-                  String _val168; // optional
-                  _key167 = iprot.readString();
-                  _val168 = iprot.readString();
-                  struct.defaultMissingFieldProps.put(_key167, _val168);
+                  String _key137; // required
+                  String _val138; // optional
+                  _key137 = iprot.readString();
+                  _val138 = iprot.readString();
+                  struct.defaultMissingFieldProps.put(_key137, _val138);
                 }
                 iprot.readMapEnd();
               }
@@ -1874,9 +1874,9 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(BLOCK_CACHING_FILE_TYPES_FIELD_DESC);
         {
           oprot.writeSetBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.blockCachingFileTypes.size()));
-          for (String _iter169 : struct.blockCachingFileTypes)
+          for (String _iter139 : struct.blockCachingFileTypes)
           {
-            oprot.writeString(_iter169);
+            oprot.writeString(_iter139);
           }
           oprot.writeSetEnd();
         }
@@ -1894,10 +1894,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(TABLE_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.tableProperties.size()));
-          for (Map.Entry<String, String> _iter170 : struct.tableProperties.entrySet())
+          for (Map.Entry<String, String> _iter140 : struct.tableProperties.entrySet())
           {
-            oprot.writeString(_iter170.getKey());
-            oprot.writeString(_iter170.getValue());
+            oprot.writeString(_iter140.getKey());
+            oprot.writeString(_iter140.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -1918,10 +1918,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(DEFAULT_MISSING_FIELD_PROPS_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.defaultMissingFieldProps.size()));
-          for (Map.Entry<String, String> _iter171 : struct.defaultMissingFieldProps.entrySet())
+          for (Map.Entry<String, String> _iter141 : struct.defaultMissingFieldProps.entrySet())
           {
-            oprot.writeString(_iter171.getKey());
-            oprot.writeString(_iter171.getValue());
+            oprot.writeString(_iter141.getKey());
+            oprot.writeString(_iter141.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -2015,9 +2015,9 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetBlockCachingFileTypes()) {
         {
           oprot.writeI32(struct.blockCachingFileTypes.size());
-          for (String _iter172 : struct.blockCachingFileTypes)
+          for (String _iter142 : struct.blockCachingFileTypes)
           {
-            oprot.writeString(_iter172);
+            oprot.writeString(_iter142);
           }
         }
       }
@@ -2030,10 +2030,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetTableProperties()) {
         {
           oprot.writeI32(struct.tableProperties.size());
-          for (Map.Entry<String, String> _iter173 : struct.tableProperties.entrySet())
+          for (Map.Entry<String, String> _iter143 : struct.tableProperties.entrySet())
           {
-            oprot.writeString(_iter173.getKey());
-            oprot.writeString(_iter173.getValue());
+            oprot.writeString(_iter143.getKey());
+            oprot.writeString(_iter143.getValue());
           }
         }
       }
@@ -2049,10 +2049,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetDefaultMissingFieldProps()) {
         {
           oprot.writeI32(struct.defaultMissingFieldProps.size());
-          for (Map.Entry<String, String> _iter174 : struct.defaultMissingFieldProps.entrySet())
+          for (Map.Entry<String, String> _iter144 : struct.defaultMissingFieldProps.entrySet())
           {
-            oprot.writeString(_iter174.getKey());
-            oprot.writeString(_iter174.getValue());
+            oprot.writeString(_iter144.getKey());
+            oprot.writeString(_iter144.getValue());
           }
         }
       }
@@ -2092,13 +2092,13 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(7)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set175 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.blockCachingFileTypes = new HashSet<String>(2*_set175.size);
-          for (int _i176 = 0; _i176 < _set175.size; ++_i176)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set145 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.blockCachingFileTypes = new HashSet<String>(2*_set145.size);
+          for (int _i146 = 0; _i146 < _set145.size; ++_i146)
           {
-            String _elem177; // required
-            _elem177 = iprot.readString();
-            struct.blockCachingFileTypes.add(_elem177);
+            String _elem147; // required
+            _elem147 = iprot.readString();
+            struct.blockCachingFileTypes.add(_elem147);
           }
         }
         struct.setBlockCachingFileTypesIsSet(true);
@@ -2114,15 +2114,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(10)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map178 = 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.tableProperties = new HashMap<String,String>(2*_map178.size);
-          for (int _i179 = 0; _i179 < _map178.size; ++_i179)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map148 = 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.tableProperties = new HashMap<String,String>(2*_map148.size);
+          for (int _i149 = 0; _i149 < _map148.size; ++_i149)
           {
-            String _key180; // required
-            String _val181; // optional
-            _key180 = iprot.readString();
-            _val181 = iprot.readString();
-            struct.tableProperties.put(_key180, _val181);
+            String _key150; // required
+            String _val151; // optional
+            _key150 = iprot.readString();
+            _val151 = iprot.readString();
+            struct.tableProperties.put(_key150, _val151);
           }
         }
         struct.setTablePropertiesIsSet(true);
@@ -2141,15 +2141,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(14)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map182 = 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.defaultMissingFieldProps = new HashMap<String,String>(2*_map182.size);
-          for (int _i183 = 0; _i183 < _map182.size; ++_i183)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map152 = 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.defaultMissingFieldProps = new HashMap<String,String>(2*_map152.size);
+          for (int _i153 = 0; _i153 < _map152.size; ++_i153)
           {
-            String _key184; // required
-            String _val185; // optional
-            _key184 = iprot.readString();
-            _val185 = iprot.readString();
-            struct.defaultMissingFieldProps.put(_key184, _val185);
+            String _key154; // required
+            String _val155; // optional
+            _key154 = iprot.readString();
+            _val155 = iprot.readString();
+            struct.defaultMissingFieldProps.put(_key154, _val155);
           }
         }
         struct.setDefaultMissingFieldPropsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/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 7399e36..a600cef 100644
--- a/distribution/src/main/scripts/interface/gen-js/Blur.js
+++ b/distribution/src/main/scripts/interface/gen-js/Blur.js
@@ -67,18 +67,18 @@ Blur_shardClusterList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size216 = 0;
-        var _rtmp3220;
+        var _size196 = 0;
+        var _rtmp3200;
         this.success = [];
-        var _etype219 = 0;
-        _rtmp3220 = input.readListBegin();
-        _etype219 = _rtmp3220.etype;
-        _size216 = _rtmp3220.size;
-        for (var _i221 = 0; _i221 < _size216; ++_i221)
+        var _etype199 = 0;
+        _rtmp3200 = input.readListBegin();
+        _etype199 = _rtmp3200.etype;
+        _size196 = _rtmp3200.size;
+        for (var _i201 = 0; _i201 < _size196; ++_i201)
         {
-          var elem222 = null;
-          elem222 = input.readString().value;
-          this.success.push(elem222);
+          var elem202 = null;
+          elem202 = input.readString().value;
+          this.success.push(elem202);
         }
         input.readListEnd();
       } else {
@@ -107,12 +107,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 iter223 in this.success)
+    for (var iter203 in this.success)
     {
-      if (this.success.hasOwnProperty(iter223))
+      if (this.success.hasOwnProperty(iter203))
       {
-        iter223 = this.success[iter223];
-        output.writeString(iter223);
+        iter203 = this.success[iter203];
+        output.writeString(iter203);
       }
     }
     output.writeListEnd();
@@ -213,18 +213,18 @@ Blur_shardServerList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size224 = 0;
-        var _rtmp3228;
+        var _size204 = 0;
+        var _rtmp3208;
         this.success = [];
-        var _etype227 = 0;
-        _rtmp3228 = input.readListBegin();
-        _etype227 = _rtmp3228.etype;
-        _size224 = _rtmp3228.size;
-        for (var _i229 = 0; _i229 < _size224; ++_i229)
+        var _etype207 = 0;
+        _rtmp3208 = input.readListBegin();
+        _etype207 = _rtmp3208.etype;
+        _size204 = _rtmp3208.size;
+        for (var _i209 = 0; _i209 < _size204; ++_i209)
         {
-          var elem230 = null;
-          elem230 = input.readString().value;
-          this.success.push(elem230);
+          var elem210 = null;
+          elem210 = input.readString().value;
+          this.success.push(elem210);
         }
         input.readListEnd();
       } else {
@@ -253,12 +253,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 iter231 in this.success)
+    for (var iter211 in this.success)
     {
-      if (this.success.hasOwnProperty(iter231))
+      if (this.success.hasOwnProperty(iter211))
       {
-        iter231 = this.success[iter231];
-        output.writeString(iter231);
+        iter211 = this.success[iter211];
+        output.writeString(iter211);
       }
     }
     output.writeListEnd();
@@ -334,18 +334,18 @@ Blur_controllerServerList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size232 = 0;
-        var _rtmp3236;
+        var _size212 = 0;
+        var _rtmp3216;
         this.success = [];
-        var _etype235 = 0;
-        _rtmp3236 = input.readListBegin();
-        _etype235 = _rtmp3236.etype;
-        _size232 = _rtmp3236.size;
-        for (var _i237 = 0; _i237 < _size232; ++_i237)
+        var _etype215 = 0;
+        _rtmp3216 = input.readListBegin();
+        _etype215 = _rtmp3216.etype;
+        _size212 = _rtmp3216.size;
+        for (var _i217 = 0; _i217 < _size212; ++_i217)
         {
-          var elem238 = null;
-          elem238 = input.readString().value;
-          this.success.push(elem238);
+          var elem218 = null;
+          elem218 = input.readString().value;
+          this.success.push(elem218);
         }
         input.readListEnd();
       } else {
@@ -374,12 +374,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 iter239 in this.success)
+    for (var iter219 in this.success)
     {
-      if (this.success.hasOwnProperty(iter239))
+      if (this.success.hasOwnProperty(iter219))
       {
-        iter239 = this.success[iter239];
-        output.writeString(iter239);
+        iter219 = this.success[iter219];
+        output.writeString(iter219);
       }
     }
     output.writeListEnd();
@@ -480,27 +480,27 @@ Blur_shardServerLayout_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size240 = 0;
-        var _rtmp3244;
+        var _size220 = 0;
+        var _rtmp3224;
         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 _ktype221 = 0;
+        var _vtype222 = 0;
+        _rtmp3224 = input.readMapBegin();
+        _ktype221 = _rtmp3224.ktype;
+        _vtype222 = _rtmp3224.vtype;
+        _size220 = _rtmp3224.size;
+        for (var _i225 = 0; _i225 < _size220; ++_i225)
         {
-          if (_i245 > 0 ) {
+          if (_i225 > 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;
-          val247 = input.readString().value;
-          this.success[key246] = val247;
+          var key226 = null;
+          var val227 = null;
+          key226 = input.readString().value;
+          val227 = input.readString().value;
+          this.success[key226] = val227;
         }
         input.readMapEnd();
       } else {
@@ -529,13 +529,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 kiter248 in this.success)
+    for (var kiter228 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter248))
+      if (this.success.hasOwnProperty(kiter228))
       {
-        var viter249 = this.success[kiter248];
-        output.writeString(kiter248);
-        output.writeString(viter249);
+        var viter229 = this.success[kiter228];
+        output.writeString(kiter228);
+        output.writeString(viter229);
       }
     }
     output.writeMapEnd();
@@ -636,49 +636,49 @@ Blur_shardServerLayoutState_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size250 = 0;
-        var _rtmp3254;
+        var _size230 = 0;
+        var _rtmp3234;
         this.success = {};
-        var _ktype251 = 0;
-        var _vtype252 = 0;
-        _rtmp3254 = input.readMapBegin();
-        _ktype251 = _rtmp3254.ktype;
-        _vtype252 = _rtmp3254.vtype;
-        _size250 = _rtmp3254.size;
-        for (var _i255 = 0; _i255 < _size250; ++_i255)
+        var _ktype231 = 0;
+        var _vtype232 = 0;
+        _rtmp3234 = input.readMapBegin();
+        _ktype231 = _rtmp3234.ktype;
+        _vtype232 = _rtmp3234.vtype;
+        _size230 = _rtmp3234.size;
+        for (var _i235 = 0; _i235 < _size230; ++_i235)
         {
-          if (_i255 > 0 ) {
+          if (_i235 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key256 = null;
-          var val257 = null;
-          key256 = input.readString().value;
-          var _size258 = 0;
-          var _rtmp3262;
-          val257 = {};
-          var _ktype259 = 0;
-          var _vtype260 = 0;
-          _rtmp3262 = input.readMapBegin();
-          _ktype259 = _rtmp3262.ktype;
-          _vtype260 = _rtmp3262.vtype;
-          _size258 = _rtmp3262.size;
-          for (var _i263 = 0; _i263 < _size258; ++_i263)
+          var key236 = null;
+          var val237 = null;
+          key236 = input.readString().value;
+          var _size238 = 0;
+          var _rtmp3242;
+          val237 = {};
+          var _ktype239 = 0;
+          var _vtype240 = 0;
+          _rtmp3242 = input.readMapBegin();
+          _ktype239 = _rtmp3242.ktype;
+          _vtype240 = _rtmp3242.vtype;
+          _size238 = _rtmp3242.size;
+          for (var _i243 = 0; _i243 < _size238; ++_i243)
           {
-            if (_i263 > 0 ) {
+            if (_i243 > 0 ) {
               if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
                 input.rstack.pop();
               }
             }
-            var key264 = null;
-            var val265 = null;
-            key264 = input.readString().value;
-            val265 = input.readI32().value;
-            val257[key264] = val265;
+            var key244 = null;
+            var val245 = null;
+            key244 = input.readString().value;
+            val245 = input.readI32().value;
+            val237[key244] = val245;
           }
           input.readMapEnd();
-          this.success[key256] = val257;
+          this.success[key236] = val237;
         }
         input.readMapEnd();
       } else {
@@ -707,20 +707,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 kiter266 in this.success)
+    for (var kiter246 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter266))
+      if (this.success.hasOwnProperty(kiter246))
       {
-        var viter267 = this.success[kiter266];
-        output.writeString(kiter266);
-        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I32, Thrift.objectLength(viter267));
-        for (var kiter268 in viter267)
+        var viter247 = this.success[kiter246];
+        output.writeString(kiter246);
+        output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I32, Thrift.objectLength(viter247));
+        for (var kiter248 in viter247)
         {
-          if (viter267.hasOwnProperty(kiter268))
+          if (viter247.hasOwnProperty(kiter248))
           {
-            var viter269 = viter267[kiter268];
-            output.writeString(kiter268);
-            output.writeI32(viter269);
+            var viter249 = viter247[kiter248];
+            output.writeString(kiter248);
+            output.writeI32(viter249);
           }
         }
         output.writeMapEnd();
@@ -799,18 +799,18 @@ Blur_tableList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size270 = 0;
-        var _rtmp3274;
+        var _size250 = 0;
+        var _rtmp3254;
         this.success = [];
-        var _etype273 = 0;
-        _rtmp3274 = input.readListBegin();
-        _etype273 = _rtmp3274.etype;
-        _size270 = _rtmp3274.size;
-        for (var _i275 = 0; _i275 < _size270; ++_i275)
+        var _etype253 = 0;
+        _rtmp3254 = input.readListBegin();
+        _etype253 = _rtmp3254.etype;
+        _size250 = _rtmp3254.size;
+        for (var _i255 = 0; _i255 < _size250; ++_i255)
         {
-          var elem276 = null;
-          elem276 = input.readString().value;
-          this.success.push(elem276);
+          var elem256 = null;
+          elem256 = input.readString().value;
+          this.success.push(elem256);
         }
         input.readListEnd();
       } else {
@@ -839,12 +839,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 iter277 in this.success)
+    for (var iter257 in this.success)
     {
-      if (this.success.hasOwnProperty(iter277))
+      if (this.success.hasOwnProperty(iter257))
       {
-        iter277 = this.success[iter277];
-        output.writeString(iter277);
+        iter257 = this.success[iter257];
+        output.writeString(iter257);
       }
     }
     output.writeListEnd();
@@ -945,18 +945,18 @@ Blur_tableListByCluster_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size278 = 0;
-        var _rtmp3282;
+        var _size258 = 0;
+        var _rtmp3262;
         this.success = [];
-        var _etype281 = 0;
-        _rtmp3282 = input.readListBegin();
-        _etype281 = _rtmp3282.etype;
-        _size278 = _rtmp3282.size;
-        for (var _i283 = 0; _i283 < _size278; ++_i283)
+        var _etype261 = 0;
+        _rtmp3262 = input.readListBegin();
+        _etype261 = _rtmp3262.etype;
+        _size258 = _rtmp3262.size;
+        for (var _i263 = 0; _i263 < _size258; ++_i263)
         {
-          var elem284 = null;
-          elem284 = input.readString().value;
-          this.success.push(elem284);
+          var elem264 = null;
+          elem264 = input.readString().value;
+          this.success.push(elem264);
         }
         input.readListEnd();
       } else {
@@ -985,12 +985,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 iter285 in this.success)
+    for (var iter265 in this.success)
     {
-      if (this.success.hasOwnProperty(iter285))
+      if (this.success.hasOwnProperty(iter265))
       {
-        iter285 = this.success[iter285];
-        output.writeString(iter285);
+        iter265 = this.success[iter265];
+        output.writeString(iter265);
       }
     }
     output.writeListEnd();
@@ -1617,19 +1617,19 @@ Blur_currentQueries_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size286 = 0;
-        var _rtmp3290;
+        var _size266 = 0;
+        var _rtmp3270;
         this.success = [];
-        var _etype289 = 0;
-        _rtmp3290 = input.readListBegin();
-        _etype289 = _rtmp3290.etype;
-        _size286 = _rtmp3290.size;
-        for (var _i291 = 0; _i291 < _size286; ++_i291)
+        var _etype269 = 0;
+        _rtmp3270 = input.readListBegin();
+        _etype269 = _rtmp3270.etype;
+        _size266 = _rtmp3270.size;
+        for (var _i271 = 0; _i271 < _size266; ++_i271)
         {
-          var elem292 = null;
-          elem292 = new BlurQueryStatus();
-          elem292.read(input);
-          this.success.push(elem292);
+          var elem272 = null;
+          elem272 = new BlurQueryStatus();
+          elem272.read(input);
+          this.success.push(elem272);
         }
         input.readListEnd();
       } else {
@@ -1658,12 +1658,12 @@ Blur_currentQueries_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 iter293 in this.success)
+    for (var iter273 in this.success)
     {
-      if (this.success.hasOwnProperty(iter293))
+      if (this.success.hasOwnProperty(iter273))
       {
-        iter293 = this.success[iter293];
-        iter293.write(output);
+        iter273 = this.success[iter273];
+        iter273.write(output);
       }
     }
     output.writeListEnd();
@@ -1764,18 +1764,18 @@ Blur_queryStatusIdList_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size294 = 0;
-        var _rtmp3298;
+        var _size274 = 0;
+        var _rtmp3278;
         this.success = [];
-        var _etype297 = 0;
-        _rtmp3298 = input.readListBegin();
-        _etype297 = _rtmp3298.etype;
-        _size294 = _rtmp3298.size;
-        for (var _i299 = 0; _i299 < _size294; ++_i299)
+        var _etype277 = 0;
+        _rtmp3278 = input.readListBegin();
+        _etype277 = _rtmp3278.etype;
+        _size274 = _rtmp3278.size;
+        for (var _i279 = 0; _i279 < _size274; ++_i279)
         {
-          var elem300 = null;
-          elem300 = input.readI64().value;
-          this.success.push(elem300);
+          var elem280 = null;
+          elem280 = input.readI64().value;
+          this.success.push(elem280);
         }
         input.readListEnd();
       } else {
@@ -1804,12 +1804,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.I64, this.success.length);
-    for (var iter301 in this.success)
+    for (var iter281 in this.success)
     {
-      if (this.success.hasOwnProperty(iter301))
+      if (this.success.hasOwnProperty(iter281))
       {
-        iter301 = this.success[iter301];
-        output.writeI64(iter301);
+        iter281 = this.success[iter281];
+        output.writeI64(iter281);
       }
     }
     output.writeListEnd();
@@ -2484,18 +2484,18 @@ Blur_terms_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.LIST) {
-        var _size302 = 0;
-        var _rtmp3306;
+        var _size282 = 0;
+        var _rtmp3286;
         this.success = [];
-        var _etype305 = 0;
-        _rtmp3306 = input.readListBegin();
-        _etype305 = _rtmp3306.etype;
-        _size302 = _rtmp3306.size;
-        for (var _i307 = 0; _i307 < _size302; ++_i307)
+        var _etype285 = 0;
+        _rtmp3286 = input.readListBegin();
+        _etype285 = _rtmp3286.etype;
+        _size282 = _rtmp3286.size;
+        for (var _i287 = 0; _i287 < _size282; ++_i287)
         {
-          var elem308 = null;
-          elem308 = input.readString().value;
-          this.success.push(elem308);
+          var elem288 = null;
+          elem288 = input.readString().value;
+          this.success.push(elem288);
         }
         input.readListEnd();
       } else {
@@ -2524,12 +2524,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 iter309 in this.success)
+    for (var iter289 in this.success)
     {
-      if (this.success.hasOwnProperty(iter309))
+      if (this.success.hasOwnProperty(iter289))
       {
-        iter309 = this.success[iter309];
-        output.writeString(iter309);
+        iter289 = this.success[iter289];
+        output.writeString(iter289);
       }
     }
     output.writeListEnd();
@@ -2989,19 +2989,19 @@ Blur_mutateBatch_args.prototype.read = function(input) {
     {
       case 1:
       if (ftype == Thrift.Type.LIST) {
-        var _size310 = 0;
-        var _rtmp3314;
+        var _size290 = 0;
+        var _rtmp3294;
         this.mutations = [];
-        var _etype313 = 0;
-        _rtmp3314 = input.readListBegin();
-        _etype313 = _rtmp3314.etype;
-        _size310 = _rtmp3314.size;
-        for (var _i315 = 0; _i315 < _size310; ++_i315)
+        var _etype293 = 0;
+        _rtmp3294 = input.readListBegin();
+        _etype293 = _rtmp3294.etype;
+        _size290 = _rtmp3294.size;
+        for (var _i295 = 0; _i295 < _size290; ++_i295)
         {
-          var elem316 = null;
-          elem316 = new RowMutation();
-          elem316.read(input);
-          this.mutations.push(elem316);
+          var elem296 = null;
+          elem296 = new RowMutation();
+          elem296.read(input);
+          this.mutations.push(elem296);
         }
         input.readListEnd();
       } else {
@@ -3025,12 +3025,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 iter317 in this.mutations)
+    for (var iter297 in this.mutations)
     {
-      if (this.mutations.hasOwnProperty(iter317))
+      if (this.mutations.hasOwnProperty(iter297))
       {
-        iter317 = this.mutations[iter317];
-        iter317.write(output);
+        iter297 = this.mutations[iter297];
+        iter297.write(output);
       }
     }
     output.writeListEnd();
@@ -3557,6 +3557,144 @@ Blur_removeTable_result.prototype.write = function(output) {
   return;
 };
 
+Blur_addColumnDefinition_args = function(args) {
+  this.table = null;
+  this.columnDefinition = null;
+  if (args) {
+    if (args.table !== undefined) {
+      this.table = args.table;
+    }
+    if (args.columnDefinition !== undefined) {
+      this.columnDefinition = args.columnDefinition;
+    }
+  }
+};
+Blur_addColumnDefinition_args.prototype = {};
+Blur_addColumnDefinition_args.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.table = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 2:
+      if (ftype == Thrift.Type.STRUCT) {
+        this.columnDefinition = new ColumnDefinition();
+        this.columnDefinition.read(input);
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      default:
+        input.skip(ftype);
+    }
+    input.readFieldEnd();
+  }
+  input.readStructEnd();
+  return;
+};
+
+Blur_addColumnDefinition_args.prototype.write = function(output) {
+  output.writeStructBegin('Blur_addColumnDefinition_args');
+  if (this.table !== null && this.table !== undefined) {
+    output.writeFieldBegin('table', Thrift.Type.STRING, 1);
+    output.writeString(this.table);
+    output.writeFieldEnd();
+  }
+  if (this.columnDefinition !== null && this.columnDefinition !== undefined) {
+    output.writeFieldBegin('columnDefinition', Thrift.Type.STRUCT, 2);
+    this.columnDefinition.write(output);
+    output.writeFieldEnd();
+  }
+  output.writeFieldStop();
+  output.writeStructEnd();
+  return;
+};
+
+Blur_addColumnDefinition_result = function(args) {
+  this.success = null;
+  this.ex = null;
+  if (args instanceof BlurException) {
+    this.ex = args;
+    return;
+  }
+  if (args) {
+    if (args.success !== undefined) {
+      this.success = args.success;
+    }
+    if (args.ex !== undefined) {
+      this.ex = args.ex;
+    }
+  }
+};
+Blur_addColumnDefinition_result.prototype = {};
+Blur_addColumnDefinition_result.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 0:
+      if (ftype == Thrift.Type.BOOL) {
+        this.success = input.readBool().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 1:
+      if (ftype == Thrift.Type.STRUCT) {
+        this.ex = new BlurException();
+        this.ex.read(input);
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      default:
+        input.skip(ftype);
+    }
+    input.readFieldEnd();
+  }
+  input.readStructEnd();
+  return;
+};
+
+Blur_addColumnDefinition_result.prototype.write = function(output) {
+  output.writeStructBegin('Blur_addColumnDefinition_result');
+  if (this.success !== null && this.success !== undefined) {
+    output.writeFieldBegin('success', Thrift.Type.BOOL, 0);
+    output.writeBool(this.success);
+    output.writeFieldEnd();
+  }
+  if (this.ex !== null && this.ex !== undefined) {
+    output.writeFieldBegin('ex', Thrift.Type.STRUCT, 1);
+    this.ex.write(output);
+    output.writeFieldEnd();
+  }
+  output.writeFieldStop();
+  output.writeStructEnd();
+  return;
+};
+
 Blur_optimize_args = function(args) {
   this.table = null;
   this.numberOfSegmentsPerShard = null;
@@ -3865,27 +4003,27 @@ Blur_configuration_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size318 = 0;
-        var _rtmp3322;
+        var _size298 = 0;
+        var _rtmp3302;
         this.success = {};
-        var _ktype319 = 0;
-        var _vtype320 = 0;
-        _rtmp3322 = input.readMapBegin();
-        _ktype319 = _rtmp3322.ktype;
-        _vtype320 = _rtmp3322.vtype;
-        _size318 = _rtmp3322.size;
-        for (var _i323 = 0; _i323 < _size318; ++_i323)
+        var _ktype299 = 0;
+        var _vtype300 = 0;
+        _rtmp3302 = input.readMapBegin();
+        _ktype299 = _rtmp3302.ktype;
+        _vtype300 = _rtmp3302.vtype;
+        _size298 = _rtmp3302.size;
+        for (var _i303 = 0; _i303 < _size298; ++_i303)
         {
-          if (_i323 > 0 ) {
+          if (_i303 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key324 = null;
-          var val325 = null;
-          key324 = input.readString().value;
-          val325 = input.readString().value;
-          this.success[key324] = val325;
+          var key304 = null;
+          var val305 = null;
+          key304 = input.readString().value;
+          val305 = input.readString().value;
+          this.success[key304] = val305;
         }
         input.readMapEnd();
       } else {
@@ -3914,13 +4052,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 kiter326 in this.success)
+    for (var kiter306 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter326))
+      if (this.success.hasOwnProperty(kiter306))
       {
-        var viter327 = this.success[kiter326];
-        output.writeString(kiter326);
-        output.writeString(viter327);
+        var viter307 = this.success[kiter306];
+        output.writeString(kiter306);
+        output.writeString(viter307);
       }
     }
     output.writeMapEnd();
@@ -3960,18 +4098,18 @@ Blur_metrics_args.prototype.read = function(input) {
     {
       case 1:
       if (ftype == Thrift.Type.SET) {
-        var _size328 = 0;
-        var _rtmp3332;
+        var _size308 = 0;
+        var _rtmp3312;
         this.metrics = [];
-        var _etype331 = 0;
-        _rtmp3332 = input.readSetBegin();
-        _etype331 = _rtmp3332.etype;
-        _size328 = _rtmp3332.size;
-        for (var _i333 = 0; _i333 < _size328; ++_i333)
+        var _etype311 = 0;
+        _rtmp3312 = input.readSetBegin();
+        _etype311 = _rtmp3312.etype;
+        _size308 = _rtmp3312.size;
+        for (var _i313 = 0; _i313 < _size308; ++_i313)
         {
-          var elem334 = null;
-          elem334 = input.readString().value;
-          this.metrics.push(elem334);
+          var elem314 = null;
+          elem314 = input.readString().value;
+          this.metrics.push(elem314);
         }
         input.readSetEnd();
       } else {
@@ -3995,12 +4133,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 iter335 in this.metrics)
+    for (var iter315 in this.metrics)
     {
-      if (this.metrics.hasOwnProperty(iter335))
+      if (this.metrics.hasOwnProperty(iter315))
       {
-        iter335 = this.metrics[iter335];
-        output.writeString(iter335);
+        iter315 = this.metrics[iter315];
+        output.writeString(iter315);
       }
     }
     output.writeSetEnd();
@@ -4043,28 +4181,28 @@ Blur_metrics_result.prototype.read = function(input) {
     {
       case 0:
       if (ftype == Thrift.Type.MAP) {
-        var _size336 = 0;
-        var _rtmp3340;
+        var _size316 = 0;
+        var _rtmp3320;
         this.success = {};
-        var _ktype337 = 0;
-        var _vtype338 = 0;
-        _rtmp3340 = input.readMapBegin();
-        _ktype337 = _rtmp3340.ktype;
-        _vtype338 = _rtmp3340.vtype;
-        _size336 = _rtmp3340.size;
-        for (var _i341 = 0; _i341 < _size336; ++_i341)
+        var _ktype317 = 0;
+        var _vtype318 = 0;
+        _rtmp3320 = input.readMapBegin();
+        _ktype317 = _rtmp3320.ktype;
+        _vtype318 = _rtmp3320.vtype;
+        _size316 = _rtmp3320.size;
+        for (var _i321 = 0; _i321 < _size316; ++_i321)
         {
-          if (_i341 > 0 ) {
+          if (_i321 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key342 = null;
-          var val343 = null;
-          key342 = input.readString().value;
-          val343 = new Metric();
-          val343.read(input);
-          this.success[key342] = val343;
+          var key322 = null;
+          var val323 = null;
+          key322 = input.readString().value;
+          val323 = new Metric();
+          val323.read(input);
+          this.success[key322] = val323;
         }
         input.readMapEnd();
       } else {
@@ -4093,13 +4231,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 kiter344 in this.success)
+    for (var kiter324 in this.success)
     {
-      if (this.success.hasOwnProperty(kiter344))
+      if (this.success.hasOwnProperty(kiter324))
       {
-        var viter345 = this.success[kiter344];
-        output.writeString(kiter344);
-        viter345.write(output);
+        var viter325 = this.success[kiter324];
+        output.writeString(kiter324);
+        viter325.write(output);
       }
     }
     output.writeMapEnd();
@@ -5072,6 +5210,44 @@ BlurClient.prototype.recv_removeTable = function() {
   }
   return;
 };
+BlurClient.prototype.addColumnDefinition = function(table, columnDefinition) {
+  this.send_addColumnDefinition(table, columnDefinition);
+  return this.recv_addColumnDefinition();
+};
+
+BlurClient.prototype.send_addColumnDefinition = function(table, columnDefinition) {
+  this.output.writeMessageBegin('addColumnDefinition', Thrift.MessageType.CALL, this.seqid);
+  var args = new Blur_addColumnDefinition_args();
+  args.table = table;
+  args.columnDefinition = columnDefinition;
+  args.write(this.output);
+  this.output.writeMessageEnd();
+  return this.output.getTransport().flush();
+};
+
+BlurClient.prototype.recv_addColumnDefinition = function() {
+  var ret = this.input.readMessageBegin();
+  var fname = ret.fname;
+  var mtype = ret.mtype;
+  var rseqid = ret.rseqid;
+  if (mtype == Thrift.MessageType.EXCEPTION) {
+    var x = new Thrift.TApplicationException();
+    x.read(this.input);
+    this.input.readMessageEnd();
+    throw x;
+  }
+  var result = new Blur_addColumnDefinition_result();
+  result.read(this.input);
+  this.input.readMessageEnd();
+
+  if (null !== result.ex) {
+    throw result.ex;
+  }
+  if (null !== result.success) {
+    return result.success;
+  }
+  throw 'addColumnDefinition failed: unknown result';
+};
 BlurClient.prototype.optimize = function(table, numberOfSegmentsPerShard) {
   this.send_optimize(table, numberOfSegmentsPerShard);
   this.recv_optimize();

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/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 ae259a2..629ec99 100644
--- a/distribution/src/main/scripts/interface/gen-js/Blur_types.js
+++ b/distribution/src/main/scripts/interface/gen-js/Blur_types.js
@@ -2555,390 +2555,6 @@ Schema.prototype.write = function(output) {
   return;
 };
 
-AlternateColumnDefinition = function(args) {
-  this.analyzerClassName = null;
-  if (args) {
-    if (args.analyzerClassName !== undefined) {
-      this.analyzerClassName = args.analyzerClassName;
-    }
-  }
-};
-AlternateColumnDefinition.prototype = {};
-AlternateColumnDefinition.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.analyzerClassName = input.readString().value;
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 0:
-        input.skip(ftype);
-        break;
-      default:
-        input.skip(ftype);
-    }
-    input.readFieldEnd();
-  }
-  input.readStructEnd();
-  return;
-};
-
-AlternateColumnDefinition.prototype.write = function(output) {
-  output.writeStructBegin('AlternateColumnDefinition');
-  if (this.analyzerClassName !== null && this.analyzerClassName !== undefined) {
-    output.writeFieldBegin('analyzerClassName', Thrift.Type.STRING, 1);
-    output.writeString(this.analyzerClassName);
-    output.writeFieldEnd();
-  }
-  output.writeFieldStop();
-  output.writeStructEnd();
-  return;
-};
-
-ColumnDefinition = function(args) {
-  this.analyzerClassName = 'org.apache.blur.analysis.NoStopWordStandardAnalyzer';
-  this.fullTextIndex = null;
-  this.alternateColumnDefinitions = null;
-  if (args) {
-    if (args.analyzerClassName !== undefined) {
-      this.analyzerClassName = args.analyzerClassName;
-    }
-    if (args.fullTextIndex !== undefined) {
-      this.fullTextIndex = args.fullTextIndex;
-    }
-    if (args.alternateColumnDefinitions !== undefined) {
-      this.alternateColumnDefinitions = args.alternateColumnDefinitions;
-    }
-  }
-};
-ColumnDefinition.prototype = {};
-ColumnDefinition.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.analyzerClassName = input.readString().value;
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 2:
-      if (ftype == Thrift.Type.BOOL) {
-        this.fullTextIndex = input.readBool().value;
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 3:
-      if (ftype == Thrift.Type.MAP) {
-        var _size120 = 0;
-        var _rtmp3124;
-        this.alternateColumnDefinitions = {};
-        var _ktype121 = 0;
-        var _vtype122 = 0;
-        _rtmp3124 = input.readMapBegin();
-        _ktype121 = _rtmp3124.ktype;
-        _vtype122 = _rtmp3124.vtype;
-        _size120 = _rtmp3124.size;
-        for (var _i125 = 0; _i125 < _size120; ++_i125)
-        {
-          if (_i125 > 0 ) {
-            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
-              input.rstack.pop();
-            }
-          }
-          var key126 = null;
-          var val127 = null;
-          key126 = input.readString().value;
-          val127 = new AlternateColumnDefinition();
-          val127.read(input);
-          this.alternateColumnDefinitions[key126] = val127;
-        }
-        input.readMapEnd();
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      default:
-        input.skip(ftype);
-    }
-    input.readFieldEnd();
-  }
-  input.readStructEnd();
-  return;
-};
-
-ColumnDefinition.prototype.write = function(output) {
-  output.writeStructBegin('ColumnDefinition');
-  if (this.analyzerClassName !== null && this.analyzerClassName !== undefined) {
-    output.writeFieldBegin('analyzerClassName', Thrift.Type.STRING, 1);
-    output.writeString(this.analyzerClassName);
-    output.writeFieldEnd();
-  }
-  if (this.fullTextIndex !== null && this.fullTextIndex !== undefined) {
-    output.writeFieldBegin('fullTextIndex', Thrift.Type.BOOL, 2);
-    output.writeBool(this.fullTextIndex);
-    output.writeFieldEnd();
-  }
-  if (this.alternateColumnDefinitions !== null && this.alternateColumnDefinitions !== undefined) {
-    output.writeFieldBegin('alternateColumnDefinitions', Thrift.Type.MAP, 3);
-    output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.alternateColumnDefinitions));
-    for (var kiter128 in this.alternateColumnDefinitions)
-    {
-      if (this.alternateColumnDefinitions.hasOwnProperty(kiter128))
-      {
-        var viter129 = this.alternateColumnDefinitions[kiter128];
-        output.writeString(kiter128);
-        viter129.write(output);
-      }
-    }
-    output.writeMapEnd();
-    output.writeFieldEnd();
-  }
-  output.writeFieldStop();
-  output.writeStructEnd();
-  return;
-};
-
-ColumnFamilyDefinition = function(args) {
-  this.defaultDefinition = null;
-  this.columnDefinitions = null;
-  if (args) {
-    if (args.defaultDefinition !== undefined) {
-      this.defaultDefinition = args.defaultDefinition;
-    }
-    if (args.columnDefinitions !== undefined) {
-      this.columnDefinitions = args.columnDefinitions;
-    }
-  }
-};
-ColumnFamilyDefinition.prototype = {};
-ColumnFamilyDefinition.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.STRUCT) {
-        this.defaultDefinition = new ColumnDefinition();
-        this.defaultDefinition.read(input);
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 2:
-      if (ftype == Thrift.Type.MAP) {
-        var _size130 = 0;
-        var _rtmp3134;
-        this.columnDefinitions = {};
-        var _ktype131 = 0;
-        var _vtype132 = 0;
-        _rtmp3134 = input.readMapBegin();
-        _ktype131 = _rtmp3134.ktype;
-        _vtype132 = _rtmp3134.vtype;
-        _size130 = _rtmp3134.size;
-        for (var _i135 = 0; _i135 < _size130; ++_i135)
-        {
-          if (_i135 > 0 ) {
-            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
-              input.rstack.pop();
-            }
-          }
-          var key136 = null;
-          var val137 = null;
-          key136 = input.readString().value;
-          val137 = new ColumnDefinition();
-          val137.read(input);
-          this.columnDefinitions[key136] = val137;
-        }
-        input.readMapEnd();
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      default:
-        input.skip(ftype);
-    }
-    input.readFieldEnd();
-  }
-  input.readStructEnd();
-  return;
-};
-
-ColumnFamilyDefinition.prototype.write = function(output) {
-  output.writeStructBegin('ColumnFamilyDefinition');
-  if (this.defaultDefinition !== null && this.defaultDefinition !== undefined) {
-    output.writeFieldBegin('defaultDefinition', Thrift.Type.STRUCT, 1);
-    this.defaultDefinition.write(output);
-    output.writeFieldEnd();
-  }
-  if (this.columnDefinitions !== null && this.columnDefinitions !== undefined) {
-    output.writeFieldBegin('columnDefinitions', Thrift.Type.MAP, 2);
-    output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.columnDefinitions));
-    for (var kiter138 in this.columnDefinitions)
-    {
-      if (this.columnDefinitions.hasOwnProperty(kiter138))
-      {
-        var viter139 = this.columnDefinitions[kiter138];
-        output.writeString(kiter138);
-        viter139.write(output);
-      }
-    }
-    output.writeMapEnd();
-    output.writeFieldEnd();
-  }
-  output.writeFieldStop();
-  output.writeStructEnd();
-  return;
-};
-
-AnalyzerDefinition = function(args) {
-  this.defaultDefinition = null;
-  this.fullTextAnalyzerClassName = 'org.apache.blur.analysis.NoStopWordStandardAnalyzer';
-  this.columnFamilyDefinitions = null;
-  if (args) {
-    if (args.defaultDefinition !== undefined) {
-      this.defaultDefinition = args.defaultDefinition;
-    }
-    if (args.fullTextAnalyzerClassName !== undefined) {
-      this.fullTextAnalyzerClassName = args.fullTextAnalyzerClassName;
-    }
-    if (args.columnFamilyDefinitions !== undefined) {
-      this.columnFamilyDefinitions = args.columnFamilyDefinitions;
-    }
-  }
-};
-AnalyzerDefinition.prototype = {};
-AnalyzerDefinition.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.STRUCT) {
-        this.defaultDefinition = new ColumnDefinition();
-        this.defaultDefinition.read(input);
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 2:
-      if (ftype == Thrift.Type.STRING) {
-        this.fullTextAnalyzerClassName = input.readString().value;
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      case 3:
-      if (ftype == Thrift.Type.MAP) {
-        var _size140 = 0;
-        var _rtmp3144;
-        this.columnFamilyDefinitions = {};
-        var _ktype141 = 0;
-        var _vtype142 = 0;
-        _rtmp3144 = input.readMapBegin();
-        _ktype141 = _rtmp3144.ktype;
-        _vtype142 = _rtmp3144.vtype;
-        _size140 = _rtmp3144.size;
-        for (var _i145 = 0; _i145 < _size140; ++_i145)
-        {
-          if (_i145 > 0 ) {
-            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
-              input.rstack.pop();
-            }
-          }
-          var key146 = null;
-          var val147 = null;
-          key146 = input.readString().value;
-          val147 = new ColumnFamilyDefinition();
-          val147.read(input);
-          this.columnFamilyDefinitions[key146] = val147;
-        }
-        input.readMapEnd();
-      } else {
-        input.skip(ftype);
-      }
-      break;
-      default:
-        input.skip(ftype);
-    }
-    input.readFieldEnd();
-  }
-  input.readStructEnd();
-  return;
-};
-
-AnalyzerDefinition.prototype.write = function(output) {
-  output.writeStructBegin('AnalyzerDefinition');
-  if (this.defaultDefinition !== null && this.defaultDefinition !== undefined) {
-    output.writeFieldBegin('defaultDefinition', Thrift.Type.STRUCT, 1);
-    this.defaultDefinition.write(output);
-    output.writeFieldEnd();
-  }
-  if (this.fullTextAnalyzerClassName !== null && this.fullTextAnalyzerClassName !== undefined) {
-    output.writeFieldBegin('fullTextAnalyzerClassName', Thrift.Type.STRING, 2);
-    output.writeString(this.fullTextAnalyzerClassName);
-    output.writeFieldEnd();
-  }
-  if (this.columnFamilyDefinitions !== null && this.columnFamilyDefinitions !== undefined) {
-    output.writeFieldBegin('columnFamilyDefinitions', Thrift.Type.MAP, 3);
-    output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.columnFamilyDefinitions));
-    for (var kiter148 in this.columnFamilyDefinitions)
-    {
-      if (this.columnFamilyDefinitions.hasOwnProperty(kiter148))
-      {
-        var viter149 = this.columnFamilyDefinitions[kiter148];
-        output.writeString(kiter148);
-        viter149.write(output);
-      }
-    }
-    output.writeMapEnd();
-    output.writeFieldEnd();
-  }
-  output.writeFieldStop();
-  output.writeStructEnd();
-  return;
-};
-
 ColumnPreCache = function(args) {
   this.preCacheCols = null;
   if (args) {
@@ -2963,18 +2579,18 @@ ColumnPreCache.prototype.read = function(input) {
     {
       case 1:
       if (ftype == Thrift.Type.LIST) {
-        var _size150 = 0;
-        var _rtmp3154;
+        var _size120 = 0;
+        var _rtmp3124;
         this.preCacheCols = [];
-        var _etype153 = 0;
-        _rtmp3154 = input.readListBegin();
-        _etype153 = _rtmp3154.etype;
-        _size150 = _rtmp3154.size;
-        for (var _i155 = 0; _i155 < _size150; ++_i155)
+        var _etype123 = 0;
+        _rtmp3124 = input.readListBegin();
+        _etype123 = _rtmp3124.etype;
+        _size120 = _rtmp3124.size;
+        for (var _i125 = 0; _i125 < _size120; ++_i125)
         {
-          var elem156 = null;
-          elem156 = input.readString().value;
-          this.preCacheCols.push(elem156);
+          var elem126 = null;
+          elem126 = input.readString().value;
+          this.preCacheCols.push(elem126);
         }
         input.readListEnd();
       } else {
@@ -2998,12 +2614,12 @@ ColumnPreCache.prototype.write = function(output) {
   if (this.preCacheCols !== null && this.preCacheCols !== undefined) {
     output.writeFieldBegin('preCacheCols', Thrift.Type.LIST, 1);
     output.writeListBegin(Thrift.Type.STRING, this.preCacheCols.length);
-    for (var iter157 in this.preCacheCols)
+    for (var iter127 in this.preCacheCols)
     {
-      if (this.preCacheCols.hasOwnProperty(iter157))
+      if (this.preCacheCols.hasOwnProperty(iter127))
       {
-        iter157 = this.preCacheCols[iter157];
-        output.writeString(iter157);
+        iter127 = this.preCacheCols[iter127];
+        output.writeString(iter127);
       }
     }
     output.writeListEnd();
@@ -3143,18 +2759,18 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 11:
       if (ftype == Thrift.Type.SET) {
-        var _size158 = 0;
-        var _rtmp3162;
+        var _size128 = 0;
+        var _rtmp3132;
         this.blockCachingFileTypes = [];
-        var _etype161 = 0;
-        _rtmp3162 = input.readSetBegin();
-        _etype161 = _rtmp3162.etype;
-        _size158 = _rtmp3162.size;
-        for (var _i163 = 0; _i163 < _size158; ++_i163)
+        var _etype131 = 0;
+        _rtmp3132 = input.readSetBegin();
+        _etype131 = _rtmp3132.etype;
+        _size128 = _rtmp3132.size;
+        for (var _i133 = 0; _i133 < _size128; ++_i133)
         {
-          var elem164 = null;
-          elem164 = input.readString().value;
-          this.blockCachingFileTypes.push(elem164);
+          var elem134 = null;
+          elem134 = input.readString().value;
+          this.blockCachingFileTypes.push(elem134);
         }
         input.readSetEnd();
       } else {
@@ -3178,27 +2794,27 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 14:
       if (ftype == Thrift.Type.MAP) {
-        var _size165 = 0;
-        var _rtmp3169;
+        var _size135 = 0;
+        var _rtmp3139;
         this.tableProperties = {};
-        var _ktype166 = 0;
-        var _vtype167 = 0;
-        _rtmp3169 = input.readMapBegin();
-        _ktype166 = _rtmp3169.ktype;
-        _vtype167 = _rtmp3169.vtype;
-        _size165 = _rtmp3169.size;
-        for (var _i170 = 0; _i170 < _size165; ++_i170)
+        var _ktype136 = 0;
+        var _vtype137 = 0;
+        _rtmp3139 = input.readMapBegin();
+        _ktype136 = _rtmp3139.ktype;
+        _vtype137 = _rtmp3139.vtype;
+        _size135 = _rtmp3139.size;
+        for (var _i140 = 0; _i140 < _size135; ++_i140)
         {
-          if (_i170 > 0 ) {
+          if (_i140 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key171 = null;
-          var val172 = null;
-          key171 = input.readString().value;
-          val172 = input.readString().value;
-          this.tableProperties[key171] = val172;
+          var key141 = null;
+          var val142 = null;
+          key141 = input.readString().value;
+          val142 = input.readString().value;
+          this.tableProperties[key141] = val142;
         }
         input.readMapEnd();
       } else {
@@ -3228,27 +2844,27 @@ TableDescriptor.prototype.read = function(input) {
       break;
       case 18:
       if (ftype == Thrift.Type.MAP) {
-        var _size173 = 0;
-        var _rtmp3177;
+        var _size143 = 0;
+        var _rtmp3147;
         this.defaultMissingFieldProps = {};
-        var _ktype174 = 0;
-        var _vtype175 = 0;
-        _rtmp3177 = input.readMapBegin();
-        _ktype174 = _rtmp3177.ktype;
-        _vtype175 = _rtmp3177.vtype;
-        _size173 = _rtmp3177.size;
-        for (var _i178 = 0; _i178 < _size173; ++_i178)
+        var _ktype144 = 0;
+        var _vtype145 = 0;
+        _rtmp3147 = input.readMapBegin();
+        _ktype144 = _rtmp3147.ktype;
+        _vtype145 = _rtmp3147.vtype;
+        _size143 = _rtmp3147.size;
+        for (var _i148 = 0; _i148 < _size143; ++_i148)
         {
-          if (_i178 > 0 ) {
+          if (_i148 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key179 = null;
-          var val180 = null;
-          key179 = input.readString().value;
-          val180 = input.readString().value;
-          this.defaultMissingFieldProps[key179] = val180;
+          var key149 = null;
+          var val150 = null;
+          key149 = input.readString().value;
+          val150 = input.readString().value;
+          this.defaultMissingFieldProps[key149] = val150;
         }
         input.readMapEnd();
       } else {
@@ -3304,12 +2920,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 iter181 in this.blockCachingFileTypes)
+    for (var iter151 in this.blockCachingFileTypes)
     {
-      if (this.blockCachingFileTypes.hasOwnProperty(iter181))
+      if (this.blockCachingFileTypes.hasOwnProperty(iter151))
       {
-        iter181 = this.blockCachingFileTypes[iter181];
-        output.writeString(iter181);
+        iter151 = this.blockCachingFileTypes[iter151];
+        output.writeString(iter151);
       }
     }
     output.writeSetEnd();
@@ -3328,13 +2944,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 kiter182 in this.tableProperties)
+    for (var kiter152 in this.tableProperties)
     {
-      if (this.tableProperties.hasOwnProperty(kiter182))
+      if (this.tableProperties.hasOwnProperty(kiter152))
       {
-        var viter183 = this.tableProperties[kiter182];
-        output.writeString(kiter182);
-        output.writeString(viter183);
+        var viter153 = this.tableProperties[kiter152];
+        output.writeString(kiter152);
+        output.writeString(viter153);
       }
     }
     output.writeMapEnd();
@@ -3358,13 +2974,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 kiter184 in this.defaultMissingFieldProps)
+    for (var kiter154 in this.defaultMissingFieldProps)
     {
-      if (this.defaultMissingFieldProps.hasOwnProperty(kiter184))
+      if (this.defaultMissingFieldProps.hasOwnProperty(kiter154))
       {
-        var viter185 = this.defaultMissingFieldProps[kiter184];
-        output.writeString(kiter184);
-        output.writeString(viter185);
+        var viter155 = this.defaultMissingFieldProps[kiter154];
+        output.writeString(kiter154);
+        output.writeString(viter155);
       }
     }
     output.writeMapEnd();
@@ -3418,27 +3034,27 @@ Metric.prototype.read = function(input) {
       break;
       case 2:
       if (ftype == Thrift.Type.MAP) {
-        var _size186 = 0;
-        var _rtmp3190;
+        var _size156 = 0;
+        var _rtmp3160;
         this.strMap = {};
-        var _ktype187 = 0;
-        var _vtype188 = 0;
-        _rtmp3190 = input.readMapBegin();
-        _ktype187 = _rtmp3190.ktype;
-        _vtype188 = _rtmp3190.vtype;
-        _size186 = _rtmp3190.size;
-        for (var _i191 = 0; _i191 < _size186; ++_i191)
+        var _ktype157 = 0;
+        var _vtype158 = 0;
+        _rtmp3160 = input.readMapBegin();
+        _ktype157 = _rtmp3160.ktype;
+        _vtype158 = _rtmp3160.vtype;
+        _size156 = _rtmp3160.size;
+        for (var _i161 = 0; _i161 < _size156; ++_i161)
         {
-          if (_i191 > 0 ) {
+          if (_i161 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key192 = null;
-          var val193 = null;
-          key192 = input.readString().value;
-          val193 = input.readString().value;
-          this.strMap[key192] = val193;
+          var key162 = null;
+          var val163 = null;
+          key162 = input.readString().value;
+          val163 = input.readString().value;
+          this.strMap[key162] = val163;
         }
         input.readMapEnd();
       } else {
@@ -3447,27 +3063,27 @@ Metric.prototype.read = function(input) {
       break;
       case 3:
       if (ftype == Thrift.Type.MAP) {
-        var _size194 = 0;
-        var _rtmp3198;
+        var _size164 = 0;
+        var _rtmp3168;
         this.longMap = {};
-        var _ktype195 = 0;
-        var _vtype196 = 0;
-        _rtmp3198 = input.readMapBegin();
-        _ktype195 = _rtmp3198.ktype;
-        _vtype196 = _rtmp3198.vtype;
-        _size194 = _rtmp3198.size;
-        for (var _i199 = 0; _i199 < _size194; ++_i199)
+        var _ktype165 = 0;
+        var _vtype166 = 0;
+        _rtmp3168 = input.readMapBegin();
+        _ktype165 = _rtmp3168.ktype;
+        _vtype166 = _rtmp3168.vtype;
+        _size164 = _rtmp3168.size;
+        for (var _i169 = 0; _i169 < _size164; ++_i169)
         {
-          if (_i199 > 0 ) {
+          if (_i169 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key200 = null;
-          var val201 = null;
-          key200 = input.readString().value;
-          val201 = input.readI64().value;
-          this.longMap[key200] = val201;
+          var key170 = null;
+          var val171 = null;
+          key170 = input.readString().value;
+          val171 = input.readI64().value;
+          this.longMap[key170] = val171;
         }
         input.readMapEnd();
       } else {
@@ -3476,27 +3092,27 @@ Metric.prototype.read = function(input) {
       break;
       case 4:
       if (ftype == Thrift.Type.MAP) {
-        var _size202 = 0;
-        var _rtmp3206;
+        var _size172 = 0;
+        var _rtmp3176;
         this.doubleMap = {};
-        var _ktype203 = 0;
-        var _vtype204 = 0;
-        _rtmp3206 = input.readMapBegin();
-        _ktype203 = _rtmp3206.ktype;
-        _vtype204 = _rtmp3206.vtype;
-        _size202 = _rtmp3206.size;
-        for (var _i207 = 0; _i207 < _size202; ++_i207)
+        var _ktype173 = 0;
+        var _vtype174 = 0;
+        _rtmp3176 = input.readMapBegin();
+        _ktype173 = _rtmp3176.ktype;
+        _vtype174 = _rtmp3176.vtype;
+        _size172 = _rtmp3176.size;
+        for (var _i177 = 0; _i177 < _size172; ++_i177)
         {
-          if (_i207 > 0 ) {
+          if (_i177 > 0 ) {
             if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
               input.rstack.pop();
             }
           }
-          var key208 = null;
-          var val209 = null;
-          key208 = input.readString().value;
-          val209 = input.readDouble().value;
-          this.doubleMap[key208] = val209;
+          var key178 = null;
+          var val179 = null;
+          key178 = input.readString().value;
+          val179 = input.readDouble().value;
+          this.doubleMap[key178] = val179;
         }
         input.readMapEnd();
       } else {
@@ -3522,13 +3138,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 kiter210 in this.strMap)
+    for (var kiter180 in this.strMap)
     {
-      if (this.strMap.hasOwnProperty(kiter210))
+      if (this.strMap.hasOwnProperty(kiter180))
       {
-        var viter211 = this.strMap[kiter210];
-        output.writeString(kiter210);
-        output.writeString(viter211);
+        var viter181 = this.strMap[kiter180];
+        output.writeString(kiter180);
+        output.writeString(viter181);
       }
     }
     output.writeMapEnd();
@@ -3537,13 +3153,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 kiter212 in this.longMap)
+    for (var kiter182 in this.longMap)
     {
-      if (this.longMap.hasOwnProperty(kiter212))
+      if (this.longMap.hasOwnProperty(kiter182))
       {
-        var viter213 = this.longMap[kiter212];
-        output.writeString(kiter212);
-        output.writeI64(viter213);
+        var viter183 = this.longMap[kiter182];
+        output.writeString(kiter182);
+        output.writeI64(viter183);
       }
     }
     output.writeMapEnd();
@@ -3552,13 +3168,175 @@ 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 kiter214 in this.doubleMap)
+    for (var kiter184 in this.doubleMap)
+    {
+      if (this.doubleMap.hasOwnProperty(kiter184))
+      {
+        var viter185 = this.doubleMap[kiter184];
+        output.writeString(kiter184);
+        output.writeDouble(viter185);
+      }
+    }
+    output.writeMapEnd();
+    output.writeFieldEnd();
+  }
+  output.writeFieldStop();
+  output.writeStructEnd();
+  return;
+};
+
+ColumnDefinition = function(args) {
+  this.family = null;
+  this.columnName = null;
+  this.subColumnName = null;
+  this.fieldLessIndexing = null;
+  this.fieldType = null;
+  this.properties = null;
+  if (args) {
+    if (args.family !== undefined) {
+      this.family = args.family;
+    }
+    if (args.columnName !== undefined) {
+      this.columnName = args.columnName;
+    }
+    if (args.subColumnName !== undefined) {
+      this.subColumnName = args.subColumnName;
+    }
+    if (args.fieldLessIndexing !== undefined) {
+      this.fieldLessIndexing = args.fieldLessIndexing;
+    }
+    if (args.fieldType !== undefined) {
+      this.fieldType = args.fieldType;
+    }
+    if (args.properties !== undefined) {
+      this.properties = args.properties;
+    }
+  }
+};
+ColumnDefinition.prototype = {};
+ColumnDefinition.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.columnName = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 3:
+      if (ftype == Thrift.Type.STRING) {
+        this.subColumnName = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 4:
+      if (ftype == Thrift.Type.BOOL) {
+        this.fieldLessIndexing = input.readBool().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 5:
+      if (ftype == Thrift.Type.STRING) {
+        this.fieldType = input.readString().value;
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      case 6:
+      if (ftype == Thrift.Type.MAP) {
+        var _size186 = 0;
+        var _rtmp3190;
+        this.properties = {};
+        var _ktype187 = 0;
+        var _vtype188 = 0;
+        _rtmp3190 = input.readMapBegin();
+        _ktype187 = _rtmp3190.ktype;
+        _vtype188 = _rtmp3190.vtype;
+        _size186 = _rtmp3190.size;
+        for (var _i191 = 0; _i191 < _size186; ++_i191)
+        {
+          if (_i191 > 0 ) {
+            if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
+              input.rstack.pop();
+            }
+          }
+          var key192 = null;
+          var val193 = null;
+          key192 = input.readString().value;
+          val193 = input.readString().value;
+          this.properties[key192] = val193;
+        }
+        input.readMapEnd();
+      } else {
+        input.skip(ftype);
+      }
+      break;
+      default:
+        input.skip(ftype);
+    }
+    input.readFieldEnd();
+  }
+  input.readStructEnd();
+  return;
+};
+
+ColumnDefinition.prototype.write = function(output) {
+  output.writeStructBegin('ColumnDefinition');
+  if (this.family !== null && this.family !== undefined) {
+    output.writeFieldBegin('family', Thrift.Type.STRING, 1);
+    output.writeString(this.family);
+    output.writeFieldEnd();
+  }
+  if (this.columnName !== null && this.columnName !== undefined) {
+    output.writeFieldBegin('columnName', Thrift.Type.STRING, 2);
+    output.writeString(this.columnName);
+    output.writeFieldEnd();
+  }
+  if (this.subColumnName !== null && this.subColumnName !== undefined) {
+    output.writeFieldBegin('subColumnName', Thrift.Type.STRING, 3);
+    output.writeString(this.subColumnName);
+    output.writeFieldEnd();
+  }
+  if (this.fieldLessIndexing !== null && this.fieldLessIndexing !== undefined) {
+    output.writeFieldBegin('fieldLessIndexing', Thrift.Type.BOOL, 4);
+    output.writeBool(this.fieldLessIndexing);
+    output.writeFieldEnd();
+  }
+  if (this.fieldType !== null && this.fieldType !== undefined) {
+    output.writeFieldBegin('fieldType', Thrift.Type.STRING, 5);
+    output.writeString(this.fieldType);
+    output.writeFieldEnd();
+  }
+  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 kiter194 in this.properties)
     {
-      if (this.doubleMap.hasOwnProperty(kiter214))
+      if (this.properties.hasOwnProperty(kiter194))
       {
-        var viter215 = this.doubleMap[kiter214];
-        output.writeString(kiter214);
-        output.writeDouble(viter215);
+        var viter195 = this.properties[kiter194];
+        output.writeString(kiter194);
+        output.writeString(viter195);
       }
     }
     output.writeMapEnd();


Mime
View raw message