http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/dcd1bc0e/blur-status/src/main/webapp/js/Blur.js ---------------------------------------------------------------------- diff --git a/blur-status/src/main/webapp/js/Blur.js b/blur-status/src/main/webapp/js/Blur.js deleted file mode 100644 index bc51fd3..0000000 --- a/blur-status/src/main/webapp/js/Blur.js +++ /dev/null @@ -1,6664 +0,0 @@ -// -// Autogenerated by Thrift Compiler (0.9.0) -// -// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -// - - -//HELPER FUNCTIONS AND STRUCTURES - -Blur_createTable_args = function(args) { - this.tableDescriptor = null; - if (args) { - if (args.tableDescriptor !== undefined) { - this.tableDescriptor = args.tableDescriptor; - } - } -}; -Blur_createTable_args.prototype = {}; -Blur_createTable_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.STRUCT) { - this.tableDescriptor = new TableDescriptor(); - this.tableDescriptor.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_createTable_args.prototype.write = function(output) { - output.writeStructBegin('Blur_createTable_args'); - if (this.tableDescriptor !== null && this.tableDescriptor !== undefined) { - output.writeFieldBegin('tableDescriptor', Thrift.Type.STRUCT, 1); - this.tableDescriptor.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_createTable_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_createTable_result.prototype = {}; -Blur_createTable_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_createTable_result.prototype.write = function(output) { - output.writeStructBegin('Blur_createTable_result'); - 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_enableTable_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_enableTable_args.prototype = {}; -Blur_enableTable_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_enableTable_args.prototype.write = function(output) { - output.writeStructBegin('Blur_enableTable_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_enableTable_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_enableTable_result.prototype = {}; -Blur_enableTable_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_enableTable_result.prototype.write = function(output) { - output.writeStructBegin('Blur_enableTable_result'); - 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_disableTable_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_disableTable_args.prototype = {}; -Blur_disableTable_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_disableTable_args.prototype.write = function(output) { - output.writeStructBegin('Blur_disableTable_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_disableTable_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_disableTable_result.prototype = {}; -Blur_disableTable_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_disableTable_result.prototype.write = function(output) { - output.writeStructBegin('Blur_disableTable_result'); - 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_removeTable_args = function(args) { - this.table = null; - this.deleteIndexFiles = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.deleteIndexFiles !== undefined) { - this.deleteIndexFiles = args.deleteIndexFiles; - } - } -}; -Blur_removeTable_args.prototype = {}; -Blur_removeTable_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.BOOL) { - this.deleteIndexFiles = input.readBool().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_removeTable_args.prototype.write = function(output) { - output.writeStructBegin('Blur_removeTable_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.deleteIndexFiles !== null && this.deleteIndexFiles !== undefined) { - output.writeFieldBegin('deleteIndexFiles', Thrift.Type.BOOL, 2); - output.writeBool(this.deleteIndexFiles); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_removeTable_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_removeTable_result.prototype = {}; -Blur_removeTable_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_removeTable_result.prototype.write = function(output) { - output.writeStructBegin('Blur_removeTable_result'); - 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_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_tableList_args = function(args) { -}; -Blur_tableList_args.prototype = {}; -Blur_tableList_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; - } - input.skip(ftype); - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_tableList_args.prototype.write = function(output) { - output.writeStructBegin('Blur_tableList_args'); - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_tableList_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_tableList_result.prototype = {}; -Blur_tableList_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.LIST) { - var _size208 = 0; - var _rtmp3212; - this.success = []; - var _etype211 = 0; - _rtmp3212 = input.readListBegin(); - _etype211 = _rtmp3212.etype; - _size208 = _rtmp3212.size; - for (var _i213 = 0; _i213 < _size208; ++_i213) - { - var elem214 = null; - elem214 = input.readString().value; - this.success.push(elem214); - } - input.readListEnd(); - } 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_tableList_result.prototype.write = function(output) { - output.writeStructBegin('Blur_tableList_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.LIST, 0); - output.writeListBegin(Thrift.Type.STRING, this.success.length); - for (var iter215 in this.success) - { - if (this.success.hasOwnProperty(iter215)) - { - iter215 = this.success[iter215]; - output.writeString(iter215); - } - } - output.writeListEnd(); - 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_tableListByCluster_args = function(args) { - this.cluster = null; - if (args) { - if (args.cluster !== undefined) { - this.cluster = args.cluster; - } - } -}; -Blur_tableListByCluster_args.prototype = {}; -Blur_tableListByCluster_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.cluster = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_tableListByCluster_args.prototype.write = function(output) { - output.writeStructBegin('Blur_tableListByCluster_args'); - if (this.cluster !== null && this.cluster !== undefined) { - output.writeFieldBegin('cluster', Thrift.Type.STRING, 1); - output.writeString(this.cluster); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_tableListByCluster_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_tableListByCluster_result.prototype = {}; -Blur_tableListByCluster_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.LIST) { - var _size216 = 0; - var _rtmp3220; - this.success = []; - var _etype219 = 0; - _rtmp3220 = input.readListBegin(); - _etype219 = _rtmp3220.etype; - _size216 = _rtmp3220.size; - for (var _i221 = 0; _i221 < _size216; ++_i221) - { - var elem222 = null; - elem222 = input.readString().value; - this.success.push(elem222); - } - input.readListEnd(); - } 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_tableListByCluster_result.prototype.write = function(output) { - output.writeStructBegin('Blur_tableListByCluster_result'); - 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) - { - if (this.success.hasOwnProperty(iter223)) - { - iter223 = this.success[iter223]; - output.writeString(iter223); - } - } - output.writeListEnd(); - 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_describe_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_describe_args.prototype = {}; -Blur_describe_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_describe_args.prototype.write = function(output) { - output.writeStructBegin('Blur_describe_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_describe_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_describe_result.prototype = {}; -Blur_describe_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.STRUCT) { - this.success = new TableDescriptor(); - this.success.read(input); - } 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_describe_result.prototype.write = function(output) { - output.writeStructBegin('Blur_describe_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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_schema_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_schema_args.prototype = {}; -Blur_schema_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_schema_args.prototype.write = function(output) { - output.writeStructBegin('Blur_schema_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_schema_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_schema_result.prototype = {}; -Blur_schema_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.STRUCT) { - this.success = new Schema(); - this.success.read(input); - } 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_schema_result.prototype.write = function(output) { - output.writeStructBegin('Blur_schema_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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_parseQuery_args = function(args) { - this.table = null; - this.query = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.query !== undefined) { - this.query = args.query; - } - } -}; -Blur_parseQuery_args.prototype = {}; -Blur_parseQuery_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.query = new Query(); - this.query.read(input); - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_parseQuery_args.prototype.write = function(output) { - output.writeStructBegin('Blur_parseQuery_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.query !== null && this.query !== undefined) { - output.writeFieldBegin('query', Thrift.Type.STRUCT, 2); - this.query.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_parseQuery_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_parseQuery_result.prototype = {}; -Blur_parseQuery_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.STRING) { - this.success = input.readString().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_parseQuery_result.prototype.write = function(output) { - output.writeStructBegin('Blur_parseQuery_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRING, 0); - output.writeString(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_tableStats_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_tableStats_args.prototype = {}; -Blur_tableStats_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_tableStats_args.prototype.write = function(output) { - output.writeStructBegin('Blur_tableStats_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_tableStats_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_tableStats_result.prototype = {}; -Blur_tableStats_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.STRUCT) { - this.success = new TableStats(); - this.success.read(input); - } 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_tableStats_result.prototype.write = function(output) { - output.writeStructBegin('Blur_tableStats_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.numberOfSegmentsPerShard !== undefined) { - this.numberOfSegmentsPerShard = args.numberOfSegmentsPerShard; - } - } -}; -Blur_optimize_args.prototype = {}; -Blur_optimize_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.I32) { - this.numberOfSegmentsPerShard = input.readI32().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_optimize_args.prototype.write = function(output) { - output.writeStructBegin('Blur_optimize_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.numberOfSegmentsPerShard !== null && this.numberOfSegmentsPerShard !== undefined) { - output.writeFieldBegin('numberOfSegmentsPerShard', Thrift.Type.I32, 2); - output.writeI32(this.numberOfSegmentsPerShard); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_optimize_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_optimize_result.prototype = {}; -Blur_optimize_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_optimize_result.prototype.write = function(output) { - output.writeStructBegin('Blur_optimize_result'); - 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_createSnapshot_args = function(args) { - this.table = null; - this.name = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.name !== undefined) { - this.name = args.name; - } - } -}; -Blur_createSnapshot_args.prototype = {}; -Blur_createSnapshot_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.STRING) { - this.name = input.readString().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_createSnapshot_args.prototype.write = function(output) { - output.writeStructBegin('Blur_createSnapshot_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.name !== null && this.name !== undefined) { - output.writeFieldBegin('name', Thrift.Type.STRING, 2); - output.writeString(this.name); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_createSnapshot_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_createSnapshot_result.prototype = {}; -Blur_createSnapshot_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_createSnapshot_result.prototype.write = function(output) { - output.writeStructBegin('Blur_createSnapshot_result'); - 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_removeSnapshot_args = function(args) { - this.table = null; - this.name = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.name !== undefined) { - this.name = args.name; - } - } -}; -Blur_removeSnapshot_args.prototype = {}; -Blur_removeSnapshot_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.STRING) { - this.name = input.readString().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_removeSnapshot_args.prototype.write = function(output) { - output.writeStructBegin('Blur_removeSnapshot_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.name !== null && this.name !== undefined) { - output.writeFieldBegin('name', Thrift.Type.STRING, 2); - output.writeString(this.name); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_removeSnapshot_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_removeSnapshot_result.prototype = {}; -Blur_removeSnapshot_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_removeSnapshot_result.prototype.write = function(output) { - output.writeStructBegin('Blur_removeSnapshot_result'); - 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_listSnapshots_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_listSnapshots_args.prototype = {}; -Blur_listSnapshots_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_listSnapshots_args.prototype.write = function(output) { - output.writeStructBegin('Blur_listSnapshots_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_listSnapshots_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_listSnapshots_result.prototype = {}; -Blur_listSnapshots_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.MAP) { - var _size224 = 0; - var _rtmp3228; - this.success = {}; - var _ktype225 = 0; - var _vtype226 = 0; - _rtmp3228 = input.readMapBegin(); - _ktype225 = _rtmp3228.ktype; - _vtype226 = _rtmp3228.vtype; - _size224 = _rtmp3228.size; - for (var _i229 = 0; _i229 < _size224; ++_i229) - { - if (_i229 > 0 ) { - if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) { - input.rstack.pop(); - } - } - var key230 = null; - var val231 = null; - key230 = input.readString().value; - var _size232 = 0; - var _rtmp3236; - val231 = []; - var _etype235 = 0; - _rtmp3236 = input.readListBegin(); - _etype235 = _rtmp3236.etype; - _size232 = _rtmp3236.size; - for (var _i237 = 0; _i237 < _size232; ++_i237) - { - var elem238 = null; - elem238 = input.readString().value; - val231.push(elem238); - } - input.readListEnd(); - this.success[key230] = val231; - } - input.readMapEnd(); - } 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_listSnapshots_result.prototype.write = function(output) { - output.writeStructBegin('Blur_listSnapshots_result'); - 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 kiter239 in this.success) - { - if (this.success.hasOwnProperty(kiter239)) - { - var viter240 = this.success[kiter239]; - output.writeString(kiter239); - output.writeListBegin(Thrift.Type.STRING, viter240.length); - for (var iter241 in viter240) - { - if (viter240.hasOwnProperty(iter241)) - { - iter241 = viter240[iter241]; - output.writeString(iter241); - } - } - output.writeListEnd(); - } - } - output.writeMapEnd(); - 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_setUser_args = function(args) { - this.user = null; - if (args) { - if (args.user !== undefined) { - this.user = args.user; - } - } -}; -Blur_setUser_args.prototype = {}; -Blur_setUser_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.STRUCT) { - this.user = new User(); - this.user.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_setUser_args.prototype.write = function(output) { - output.writeStructBegin('Blur_setUser_args'); - if (this.user !== null && this.user !== undefined) { - output.writeFieldBegin('user', Thrift.Type.STRUCT, 1); - this.user.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_setUser_result = function(args) { -}; -Blur_setUser_result.prototype = {}; -Blur_setUser_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; - } - input.skip(ftype); - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_setUser_result.prototype.write = function(output) { - output.writeStructBegin('Blur_setUser_result'); - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_query_args = function(args) { - this.table = null; - this.blurQuery = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.blurQuery !== undefined) { - this.blurQuery = args.blurQuery; - } - } -}; -Blur_query_args.prototype = {}; -Blur_query_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.blurQuery = new BlurQuery(); - this.blurQuery.read(input); - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_query_args.prototype.write = function(output) { - output.writeStructBegin('Blur_query_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.blurQuery !== null && this.blurQuery !== undefined) { - output.writeFieldBegin('blurQuery', Thrift.Type.STRUCT, 2); - this.blurQuery.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_query_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_query_result.prototype = {}; -Blur_query_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.STRUCT) { - this.success = new BlurResults(); - this.success.read(input); - } 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_query_result.prototype.write = function(output) { - output.writeStructBegin('Blur_query_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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_fetchRow_args = function(args) { - this.table = null; - this.selector = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.selector !== undefined) { - this.selector = args.selector; - } - } -}; -Blur_fetchRow_args.prototype = {}; -Blur_fetchRow_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.selector = new Selector(); - this.selector.read(input); - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_fetchRow_args.prototype.write = function(output) { - output.writeStructBegin('Blur_fetchRow_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.selector !== null && this.selector !== undefined) { - output.writeFieldBegin('selector', Thrift.Type.STRUCT, 2); - this.selector.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_fetchRow_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_fetchRow_result.prototype = {}; -Blur_fetchRow_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.STRUCT) { - this.success = new FetchResult(); - this.success.read(input); - } 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_fetchRow_result.prototype.write = function(output) { - output.writeStructBegin('Blur_fetchRow_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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_fetchRowBatch_args = function(args) { - this.table = null; - this.selectors = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.selectors !== undefined) { - this.selectors = args.selectors; - } - } -}; -Blur_fetchRowBatch_args.prototype = {}; -Blur_fetchRowBatch_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.LIST) { - var _size242 = 0; - var _rtmp3246; - this.selectors = []; - var _etype245 = 0; - _rtmp3246 = input.readListBegin(); - _etype245 = _rtmp3246.etype; - _size242 = _rtmp3246.size; - for (var _i247 = 0; _i247 < _size242; ++_i247) - { - var elem248 = null; - elem248 = new Selector(); - elem248.read(input); - this.selectors.push(elem248); - } - input.readListEnd(); - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_fetchRowBatch_args.prototype.write = function(output) { - output.writeStructBegin('Blur_fetchRowBatch_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.selectors !== null && this.selectors !== undefined) { - output.writeFieldBegin('selectors', Thrift.Type.LIST, 2); - output.writeListBegin(Thrift.Type.STRUCT, this.selectors.length); - for (var iter249 in this.selectors) - { - if (this.selectors.hasOwnProperty(iter249)) - { - iter249 = this.selectors[iter249]; - iter249.write(output); - } - } - output.writeListEnd(); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_fetchRowBatch_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_fetchRowBatch_result.prototype = {}; -Blur_fetchRowBatch_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.LIST) { - var _size250 = 0; - var _rtmp3254; - this.success = []; - var _etype253 = 0; - _rtmp3254 = input.readListBegin(); - _etype253 = _rtmp3254.etype; - _size250 = _rtmp3254.size; - for (var _i255 = 0; _i255 < _size250; ++_i255) - { - var elem256 = null; - elem256 = new FetchResult(); - elem256.read(input); - this.success.push(elem256); - } - input.readListEnd(); - } 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_fetchRowBatch_result.prototype.write = function(output) { - output.writeStructBegin('Blur_fetchRowBatch_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.LIST, 0); - output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter257 in this.success) - { - if (this.success.hasOwnProperty(iter257)) - { - iter257 = this.success[iter257]; - iter257.write(output); - } - } - output.writeListEnd(); - 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_mutate_args = function(args) { - this.mutation = null; - if (args) { - if (args.mutation !== undefined) { - this.mutation = args.mutation; - } - } -}; -Blur_mutate_args.prototype = {}; -Blur_mutate_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.STRUCT) { - this.mutation = new RowMutation(); - this.mutation.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_mutate_args.prototype.write = function(output) { - output.writeStructBegin('Blur_mutate_args'); - if (this.mutation !== null && this.mutation !== undefined) { - output.writeFieldBegin('mutation', Thrift.Type.STRUCT, 1); - this.mutation.write(output); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_mutate_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_mutate_result.prototype = {}; -Blur_mutate_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_mutate_result.prototype.write = function(output) { - output.writeStructBegin('Blur_mutate_result'); - 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_mutateBatch_args = function(args) { - this.mutations = null; - if (args) { - if (args.mutations !== undefined) { - this.mutations = args.mutations; - } - } -}; -Blur_mutateBatch_args.prototype = {}; -Blur_mutateBatch_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.LIST) { - var _size258 = 0; - var _rtmp3262; - this.mutations = []; - var _etype261 = 0; - _rtmp3262 = input.readListBegin(); - _etype261 = _rtmp3262.etype; - _size258 = _rtmp3262.size; - for (var _i263 = 0; _i263 < _size258; ++_i263) - { - var elem264 = null; - elem264 = new RowMutation(); - elem264.read(input); - this.mutations.push(elem264); - } - input.readListEnd(); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_mutateBatch_args.prototype.write = function(output) { - output.writeStructBegin('Blur_mutateBatch_args'); - if (this.mutations !== null && this.mutations !== undefined) { - output.writeFieldBegin('mutations', Thrift.Type.LIST, 1); - output.writeListBegin(Thrift.Type.STRUCT, this.mutations.length); - for (var iter265 in this.mutations) - { - if (this.mutations.hasOwnProperty(iter265)) - { - iter265 = this.mutations[iter265]; - iter265.write(output); - } - } - output.writeListEnd(); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_mutateBatch_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_mutateBatch_result.prototype = {}; -Blur_mutateBatch_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_mutateBatch_result.prototype.write = function(output) { - output.writeStructBegin('Blur_mutateBatch_result'); - 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_cancelQuery_args = function(args) { - this.table = null; - this.uuid = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.uuid !== undefined) { - this.uuid = args.uuid; - } - } -}; -Blur_cancelQuery_args.prototype = {}; -Blur_cancelQuery_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.STRING) { - this.uuid = input.readString().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_cancelQuery_args.prototype.write = function(output) { - output.writeStructBegin('Blur_cancelQuery_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.uuid !== null && this.uuid !== undefined) { - output.writeFieldBegin('uuid', Thrift.Type.STRING, 2); - output.writeString(this.uuid); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_cancelQuery_result = function(args) { - this.ex = null; - if (args instanceof BlurException) { - this.ex = args; - return; - } - if (args) { - if (args.ex !== undefined) { - this.ex = args.ex; - } - } -}; -Blur_cancelQuery_result.prototype = {}; -Blur_cancelQuery_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 1: - if (ftype == Thrift.Type.STRUCT) { - this.ex = new BlurException(); - this.ex.read(input); - } else { - input.skip(ftype); - } - break; - case 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_cancelQuery_result.prototype.write = function(output) { - output.writeStructBegin('Blur_cancelQuery_result'); - 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_queryStatusIdList_args = function(args) { - this.table = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - } -}; -Blur_queryStatusIdList_args.prototype = {}; -Blur_queryStatusIdList_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 0: - input.skip(ftype); - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_queryStatusIdList_args.prototype.write = function(output) { - output.writeStructBegin('Blur_queryStatusIdList_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_queryStatusIdList_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_queryStatusIdList_result.prototype = {}; -Blur_queryStatusIdList_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.LIST) { - var _size266 = 0; - var _rtmp3270; - this.success = []; - var _etype269 = 0; - _rtmp3270 = input.readListBegin(); - _etype269 = _rtmp3270.etype; - _size266 = _rtmp3270.size; - for (var _i271 = 0; _i271 < _size266; ++_i271) - { - var elem272 = null; - elem272 = input.readString().value; - this.success.push(elem272); - } - input.readListEnd(); - } 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_queryStatusIdList_result.prototype.write = function(output) { - output.writeStructBegin('Blur_queryStatusIdList_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.LIST, 0); - output.writeListBegin(Thrift.Type.STRING, this.success.length); - for (var iter273 in this.success) - { - if (this.success.hasOwnProperty(iter273)) - { - iter273 = this.success[iter273]; - output.writeString(iter273); - } - } - output.writeListEnd(); - 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_queryStatusById_args = function(args) { - this.table = null; - this.uuid = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.uuid !== undefined) { - this.uuid = args.uuid; - } - } -}; -Blur_queryStatusById_args.prototype = {}; -Blur_queryStatusById_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.STRING) { - this.uuid = input.readString().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_queryStatusById_args.prototype.write = function(output) { - output.writeStructBegin('Blur_queryStatusById_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.uuid !== null && this.uuid !== undefined) { - output.writeFieldBegin('uuid', Thrift.Type.STRING, 2); - output.writeString(this.uuid); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_queryStatusById_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_queryStatusById_result.prototype = {}; -Blur_queryStatusById_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.STRUCT) { - this.success = new BlurQueryStatus(); - this.success.read(input); - } 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_queryStatusById_result.prototype.write = function(output) { - output.writeStructBegin('Blur_queryStatusById_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); - this.success.write(output); - 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_terms_args = function(args) { - this.table = null; - this.columnFamily = null; - this.columnName = null; - this.startWith = null; - this.size = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.columnFamily !== undefined) { - this.columnFamily = args.columnFamily; - } - if (args.columnName !== undefined) { - this.columnName = args.columnName; - } - if (args.startWith !== undefined) { - this.startWith = args.startWith; - } - if (args.size !== undefined) { - this.size = args.size; - } - } -}; -Blur_terms_args.prototype = {}; -Blur_terms_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.STRING) { - this.columnFamily = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 3: - if (ftype == Thrift.Type.STRING) { - this.columnName = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 4: - if (ftype == Thrift.Type.STRING) { - this.startWith = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 5: - if (ftype == Thrift.Type.I16) { - this.size = input.readI16().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_terms_args.prototype.write = function(output) { - output.writeStructBegin('Blur_terms_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.columnFamily !== null && this.columnFamily !== undefined) { - output.writeFieldBegin('columnFamily', Thrift.Type.STRING, 2); - output.writeString(this.columnFamily); - output.writeFieldEnd(); - } - if (this.columnName !== null && this.columnName !== undefined) { - output.writeFieldBegin('columnName', Thrift.Type.STRING, 3); - output.writeString(this.columnName); - output.writeFieldEnd(); - } - if (this.startWith !== null && this.startWith !== undefined) { - output.writeFieldBegin('startWith', Thrift.Type.STRING, 4); - output.writeString(this.startWith); - output.writeFieldEnd(); - } - if (this.size !== null && this.size !== undefined) { - output.writeFieldBegin('size', Thrift.Type.I16, 5); - output.writeI16(this.size); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_terms_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_terms_result.prototype = {}; -Blur_terms_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.LIST) { - var _size274 = 0; - var _rtmp3278; - this.success = []; - var _etype277 = 0; - _rtmp3278 = input.readListBegin(); - _etype277 = _rtmp3278.etype; - _size274 = _rtmp3278.size; - for (var _i279 = 0; _i279 < _size274; ++_i279) - { - var elem280 = null; - elem280 = input.readString().value; - this.success.push(elem280); - } - input.readListEnd(); - } 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_terms_result.prototype.write = function(output) { - output.writeStructBegin('Blur_terms_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.LIST, 0); - output.writeListBegin(Thrift.Type.STRING, this.success.length); - for (var iter281 in this.success) - { - if (this.success.hasOwnProperty(iter281)) - { - iter281 = this.success[iter281]; - output.writeString(iter281); - } - } - output.writeListEnd(); - 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_recordFrequency_args = function(args) { - this.table = null; - this.columnFamily = null; - this.columnName = null; - this.value = null; - if (args) { - if (args.table !== undefined) { - this.table = args.table; - } - if (args.columnFamily !== undefined) { - this.columnFamily = args.columnFamily; - } - if (args.columnName !== undefined) { - this.columnName = args.columnName; - } - if (args.value !== undefined) { - this.value = args.value; - } - } -}; -Blur_recordFrequency_args.prototype = {}; -Blur_recordFrequency_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.STRING) { - this.columnFamily = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 3: - if (ftype == Thrift.Type.STRING) { - this.columnName = input.readString().value; - } else { - input.skip(ftype); - } - break; - case 4: - if (ftype == Thrift.Type.STRING) { - this.value = input.readString().value; - } else { - input.skip(ftype); - } - break; - default: - input.skip(ftype); - } - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_recordFrequency_args.prototype.write = function(output) { - output.writeStructBegin('Blur_recordFrequency_args'); - if (this.table !== null && this.table !== undefined) { - output.writeFieldBegin('table', Thrift.Type.STRING, 1); - output.writeString(this.table); - output.writeFieldEnd(); - } - if (this.columnFamily !== null && this.columnFamily !== undefined) { - output.writeFieldBegin('columnFamily', Thrift.Type.STRING, 2); - output.writeString(this.columnFamily); - output.writeFieldEnd(); - } - if (this.columnName !== null && this.columnName !== undefined) { - output.writeFieldBegin('columnName', Thrift.Type.STRING, 3); - output.writeString(this.columnName); - output.writeFieldEnd(); - } - if (this.value !== null && this.value !== undefined) { - output.writeFieldBegin('value', Thrift.Type.STRING, 4); - output.writeString(this.value); - output.writeFieldEnd(); - } - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_recordFrequency_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_recordFrequency_result.prototype = {}; -Blur_recordFrequency_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.I64) { - this.success = input.readI64().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_recordFrequency_result.prototype.write = function(output) { - output.writeStructBegin('Blur_recordFrequency_result'); - if (this.success !== null && this.success !== undefined) { - output.writeFieldBegin('success', Thrift.Type.I64, 0); - output.writeI64(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_shardClusterList_args = function(args) { -}; -Blur_shardClusterList_args.prototype = {}; -Blur_shardClusterList_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; - } - input.skip(ftype); - input.readFieldEnd(); - } - input.readStructEnd(); - return; -}; - -Blur_shardClusterList_args.prototype.write = function(output) { - output.writeStructBegin('Blur_shardClusterList_args'); - output.writeFieldStop(); - output.writeStructEnd(); - return; -}; - -Blur_shardClusterList_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_shardClusterList_result.prototype = {}; -Blur_shardClusterList_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.LIST) { - var _size282 = 0; - var _rtmp3286; - this.success = []; - var _etype285 = 0; - _rtmp3286 = input.readListBegin(); - _etype285 = _rtmp3286.etype; - _size282 = _rtmp3286.size; - for (var _i287 = 0; _i287 < _size282; ++_i287) - { - var elem288 = null; - elem288 = input.readString().value; - this.success.push(elem288); - } - input.readListEnd(); - } else { - input.skip(ftype); - } - break; - case 1: - if (ftype == Thrif
<TRUNCATED>
