123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _y47(){_y47.baseConstructor.call( this, "QE Worker" );this._2uh( "-> new _y47()" );this._rd=this._0p2.bind(this);this._rg=this._z83.bind(this);this._u8=this._8u1.bind(this);this._qzm();};_olk._vjl(_y47, _o7g._2l2?_ucm:_2d8);_y47.prototype._qzm=function(){_y47.superClass._qzm.call(this);this._igd=null;if(this._z19){this._z19._fdm();}this._z19=new _sc1(this._r91.bind(this));this._4lg={};this._2l={};this._624={};this._rca={};this._fq={};this._xq2=[];this._bz3("");};_y47.prototype._bz3=function(_t0j){if(this._h29){this._lol(this._h29, null);this._2uh( "-> _bz3: promise " + _t0j + " rejected" );}this._h29=_t0j;};_y47.prototype._8u1=function(){return this._h29;};_y47.prototype._37g=function(_t0j,_xbh){this._bz3(_t0j);this._igd=_xbh.forest;var _cmm=this._igd._jfm;this._2uh( "-> _37g: " + _cmm.map(function(_3cn){ return _3cn._nh4._i0n; } ).join( ", " ) );var _tzl=_cmm.length;for(var i=0;i<_tzl;i++){var _3cn=_cmm[i];this._xq2=this._xq2.concat(_3cn._kw9);var _gfc=_3cn._nh4;this._2l[_gfc._i0n]=i;this._4lg[_gfc._i0n]=new _tc1(_gfc, this._z19, this._rd, this._rg, this._u8);}this._vmb(this._4lg);};_y47.prototype._r91=function(_ljc,_69l){this._1hm( "onDataStoreColumnsAvailable", { "datastoreName":_ljc, "columns":_69l } );};_y47.prototype._0p2=function(_ljc,_17k){var _svj=_17k?_17k._4kl().rows.length:0;this._1hm( "onBeforeDataStoreChange", { "datastoreName":_ljc, "rowCount":_svj } );};_y47.prototype._z83=function(_ljc,_17k,_7ka,_t0j){var _svj=_17k?_17k._4kl().rows.length:0;_m0n._bqh(this._xq2, _ljc);this._1hm( "onDataStoreChange", { "datastoreName":_ljc, "rowCount":_svj } );if(_7ka){if(this._xq2.length==0){if(_t0j==this._h29){this._lol(_t0j);this._h29="";}else{this._bz3("");return;}}}};_y47.prototype._hjl=function(_xbh){this._mxe=_xbh.workerIndex;this._2uh( "-> _hjl: " + Object.keys( _xbh.srcs ).join( ", " ) );this._z19._wll(_xbh.xsrf);this._z19._d6g(_xbh.outputId);this._z19._wwc(_xbh.gatewayUrl);for(var _vdn in _xbh.srcs){this._z19._4dm(_vdn, _xbh.srcs[_vdn]);}};_y47.prototype._4rh=function(_t0j,_xbh){this._bz3(_t0j);this._xq2=[];this._z19._wll(_xbh.xsrf);this._z19._d6g(_xbh.outputId);this._z19._wwc(_xbh.gatewayUrl);for(var _vdn in _xbh.srcs){var _gc2=this._igd._jfm[this._2l[_vdn]]._kw9;this._xq2=this._xq2.concat(_gc2);this._z19._b8j(_vdn, _xbh.srcs[_vdn]);}};_y47.prototype._bp9=function(_t0j,_xbh){var _m6m={ "rowCounts":{} };for(var _vdn in this._624){var _17k=this._624[_vdn]._a3g();_m6m.rowCounts[_vdn]=_17k?_17k._4kl().rows.length:0;}this._lol(_t0j, _m6m);};_y47.prototype._6u9=function(_t0j,_xbh){this._624[_xbh.datastoreName]._0kk(_xbh.query);};_y47.prototype._8yc=function(_t0j,_xbh){var _rga=_xbh.dataStoreNames;if(_xbh.queries){for(var i=0;i<_rga.length;i++){this._624[_rga[i]]._g7g(_xbh.queries[i], false);}}for(var _vdn in this._4lg){this._ko(this._4lg[_vdn], _rga);}this._lol(_t0j);};_y47.prototype._ko=function(_e78,_sga){if(_sga.indexOf(_e78._c0n._i0n)!=-1){_e78._jee();return;}for(var _vdn in _e78._c0n._tfm){this._ko(_e78._tfm[_vdn], _sga);}};_y47.prototype._4xc=function(_t0j,_xbh){this._bz3(_t0j);};_y47.prototype._vk8=function(_t0j,_xbh){this._bz3(_t0j);};_y47.prototype._d75=function(_t0j,_xbh){var _8bn=this._624[_xbh.datastoreName]._a3g()._4kl();var _ech={ columns:_8bn.columns };if(_xbh.toRow!==undefined){_ech.rows=_8bn.rows.slice(_xbh.fromRow||0, _xbh.toRow);_ech.rows.length=_8bn.rows.length;}this._lol(_t0j, _ech);};_y47.prototype._mf8=function(_t0j,_xbh){var _d5n=this._624[_xbh.datastoreName]._a3g()._4kl().rows;this._lol(_t0j, { rows:_d5n.slice(_xbh.fromRow, _xbh.toRow)});};_y47.prototype._kik=function(_t0j,_xbh){this._lol(_t0j, this._624[_xbh.datastoreName]._c0n._tsh);};_y47.prototype._up9=function(_t0j,_xbh){this._lol(_t0j, this._z19._xdm(this._624[_xbh.datastoreName]._c0n._i0n));};_y47.prototype._6fe=function(_t0j,_xbh){var _8bn=_9gm._vfn(this._624[_xbh.datastoreName]._a3g()._4kl());_8bn.columns=null;_8bn.rowCount=_8bn.rows.length;this._lol(_t0j, _8bn);};_y47.prototype._2d6=function(_8bn){var _u0l=_8bn.columns.length;var _96f=new Array(_u0l);for(var _ujn=0;_ujn<_u0l;_ujn++){_96f[_ujn]=false;}var _d5n=_8bn.rows;var _38n=_d5n.length;for(var _ekn=0;_ekn<_38n;_ekn++){var _sin=_d5n[_ekn];for(var _ujn=0;_ujn<_u0l;_ujn++){if(!_96f[_ujn]){_96f[_ujn]=(_sin[_ujn]!==null);}}}if(_96f.indexOf(false)==-1){return _8bn;}var _2qg=[];var _oqg=_8bn.columns.map(function(_75m,_ujn){ return this[_ujn]?_75m:{ "name":_75m.name, "values":_2qg }; }, _96f );return { "columns":_oqg, "rows":_d5n, "rowCount":_8bn.rowCount };};_y47.prototype._vmb=function(_sq){if(_sq){for(var _vdn in _sq){var _e78=_sq[_vdn];this._624[_vdn]=_e78;var _249=[];var _1g9={};this._eme(_e78, _249, _1g9);this._rca[_vdn]={ _wl8:_249, _hm8:_1g9 };var _xbh=_e78._c0n._qr3;for(var _i0j in _xbh){var _nx7=this._fq[_i0j];if(!_nx7){_nx7=[];this._fq[_i0j]=_nx7;}_nx7.push(_vdn);}this._vmb(_e78._tfm);}}};_y47.prototype._eme=function(_e78,_249,_1g9){if(_e78._tfm){for(var o in _e78._tfm){_249.push(o._i0n);_1g9[o._i0n]=true;this._eme(o, _249, _1g9);}}};
|