@hpcc-js/comms 3.17.6 → 3.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cache as e, Dispatch as t, Edge as n, Graph as r, Message as i, SAXStac
|
|
|
3
3
|
var ee = Object.defineProperty, __name = (e, t) => ee(e, "name", {
|
|
4
4
|
value: t,
|
|
5
5
|
configurable: !0
|
|
6
|
-
}), S = "@hpcc-js/comms", C = "3.17.
|
|
6
|
+
}), S = "@hpcc-js/comms", C = "3.17.7", w = "3.31.1", T = y("comms/connection.ts");
|
|
7
7
|
function instanceOfIOptions(e) {
|
|
8
8
|
return "baseUrl" in e;
|
|
9
9
|
}
|
|
@@ -99,9 +99,7 @@ function send(e, t, n, r = "json", i) {
|
|
|
99
99
|
case "get":
|
|
100
100
|
a = get(e, t, n, r, i);
|
|
101
101
|
break;
|
|
102
|
-
default:
|
|
103
|
-
a = post(e, t, n, r, i);
|
|
104
|
-
break;
|
|
102
|
+
default: a = post(e, t, n, r, i);
|
|
105
103
|
}
|
|
106
104
|
return a;
|
|
107
105
|
}
|
|
@@ -149,7 +147,7 @@ var ESPExceptions = class extends Error {
|
|
|
149
147
|
Source;
|
|
150
148
|
Exception;
|
|
151
149
|
constructor(e, t, n) {
|
|
152
|
-
super("ESPException: " + n.Source), this.action = e, this.request = t, this.Source = n.Source, this.Exception = n.Exception, n.Exception.length ?
|
|
150
|
+
super("ESPException: " + n.Source), this.action = e, this.request = t, this.Source = n.Source, this.Exception = n.Exception, this.message = n.Exception.length ? `${n.Exception[0].Code}: ${n.Exception[0].Message}` : "";
|
|
153
151
|
}
|
|
154
152
|
};
|
|
155
153
|
function isExceptions(e) {
|
|
@@ -2362,7 +2360,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2362
2360
|
return this.TpLogicalClusterQuery(e).then((e) => {
|
|
2363
2361
|
if (e.default) return e.default;
|
|
2364
2362
|
let t, n;
|
|
2365
|
-
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor"
|
|
2363
|
+
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor" && (t = e, !0))), t || n;
|
|
2366
2364
|
});
|
|
2367
2365
|
}
|
|
2368
2366
|
}, H;
|
|
@@ -2816,7 +2814,6 @@ function formatTrim_default(e) {
|
|
|
2816
2814
|
default:
|
|
2817
2815
|
if (!+e[n]) break out;
|
|
2818
2816
|
r > 0 && (r = 0);
|
|
2819
|
-
break;
|
|
2820
2817
|
}
|
|
2821
2818
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
2822
2819
|
}
|
|
@@ -2937,9 +2934,7 @@ function locale_default(e) {
|
|
|
2937
2934
|
case "^":
|
|
2938
2935
|
e = T.slice(0, w = T.length >> 1) + n + e + r + T.slice(w);
|
|
2939
2936
|
break;
|
|
2940
|
-
default:
|
|
2941
|
-
e = T + n + e + r;
|
|
2942
|
-
break;
|
|
2937
|
+
default: e = T + n + e + r;
|
|
2943
2938
|
}
|
|
2944
2939
|
return a(e);
|
|
2945
2940
|
}
|
|
@@ -3058,8 +3053,6 @@ function createXGMMLGraph(e, t) {
|
|
|
3058
3053
|
case "edge":
|
|
3059
3054
|
let s = c.createEdge(r[t.source], r[t.target], flattenAtt(a));
|
|
3060
3055
|
i[t.id] = s;
|
|
3061
|
-
break;
|
|
3062
|
-
default:
|
|
3063
3056
|
}
|
|
3064
3057
|
}), a;
|
|
3065
3058
|
}
|
|
@@ -3090,7 +3083,6 @@ function createGraph(e) {
|
|
|
3090
3083
|
case "function":
|
|
3091
3084
|
let c = r[a.parentScope()];
|
|
3092
3085
|
c ? c._.children().push(a) : console.warn(`Missing F:Parent (${a.Id}): ${a.parentScope()}`);
|
|
3093
|
-
break;
|
|
3094
3086
|
}
|
|
3095
3087
|
for (let e in n) {
|
|
3096
3088
|
let r = n[e], a = t[r.parentScope()];
|
|
@@ -3196,7 +3188,6 @@ var Resource = class extends s {
|
|
|
3196
3188
|
let t = this.type.lastIndexOf("_"), n = t > 0 ? t : this.type.length, r = n - 1;
|
|
3197
3189
|
for (; r >= 0 && "0123456789".indexOf(this.type.charAt(r)) !== -1; --r);
|
|
3198
3190
|
r + 1 < n && (e = parseInt(this.type.substring(r + 1, n), 10)), this.type.indexOf("data") === 0 && (e *= 2);
|
|
3199
|
-
break;
|
|
3200
3191
|
}
|
|
3201
3192
|
return e < this.name.length && (e = this.name.length), e;
|
|
3202
3193
|
}
|
|
@@ -3214,10 +3205,7 @@ var Resource = class extends s {
|
|
|
3214
3205
|
case "xs:restriction":
|
|
3215
3206
|
this._restricition = e;
|
|
3216
3207
|
break;
|
|
3217
|
-
case "xs:maxLength":
|
|
3218
|
-
this._maxLength = e;
|
|
3219
|
-
break;
|
|
3220
|
-
default:
|
|
3208
|
+
case "xs:maxLength": this._maxLength = e;
|
|
3221
3209
|
}
|
|
3222
3210
|
}
|
|
3223
3211
|
fix() {
|
|
@@ -3240,10 +3228,7 @@ var Resource = class extends s {
|
|
|
3240
3228
|
let t = new XSDXMLNode(e);
|
|
3241
3229
|
this.schema.root ? this.xsdStack.depth() && this.xsdStack.top().append(t) : this.schema.root = t, this.xsdStack.push(t);
|
|
3242
3230
|
break;
|
|
3243
|
-
case "xs:simpleType":
|
|
3244
|
-
this.simpleType = new XSDSimpleType(e);
|
|
3245
|
-
break;
|
|
3246
|
-
default: break;
|
|
3231
|
+
case "xs:simpleType": this.simpleType = new XSDSimpleType(e);
|
|
3247
3232
|
}
|
|
3248
3233
|
}
|
|
3249
3234
|
endXMLNode(e) {
|
|
@@ -3281,21 +3266,11 @@ var XSDParser2 = class extends XSDParser {
|
|
|
3281
3266
|
let t = new XSDXMLNode(e);
|
|
3282
3267
|
!this.schema.root && this._rootName === e.$.name && (this.schema.root = t), this.xsdStack.depth() && this.xsdStack.top().append(t), this.xsdStack.push(t);
|
|
3283
3268
|
break;
|
|
3284
|
-
case "xsd:simpleType":
|
|
3285
|
-
this.simpleType = new XSDSimpleType(e);
|
|
3286
|
-
break;
|
|
3287
|
-
default: break;
|
|
3269
|
+
case "xsd:simpleType": this.simpleType = new XSDSimpleType(e);
|
|
3288
3270
|
}
|
|
3289
3271
|
}
|
|
3290
3272
|
endXMLNode(e) {
|
|
3291
|
-
|
|
3292
|
-
case "xsd:element":
|
|
3293
|
-
this.xsdStack.pop().fix();
|
|
3294
|
-
break;
|
|
3295
|
-
case "xsd:simpleType": break;
|
|
3296
|
-
default: break;
|
|
3297
|
-
}
|
|
3298
|
-
super.endXMLNode(e);
|
|
3273
|
+
e.name === "xsd:element" && this.xsdStack.pop().fix(), super.endXMLNode(e);
|
|
3299
3274
|
}
|
|
3300
3275
|
};
|
|
3301
3276
|
function parseXSD2(e, t) {
|
|
@@ -3390,7 +3365,7 @@ var GlobalResultCache = class extends e {
|
|
|
3390
3365
|
}, () => new Result(e, t, n, !0));
|
|
3391
3366
|
}
|
|
3392
3367
|
constructor(e, t, n, r) {
|
|
3393
|
-
super(), e instanceof WorkunitsService ?
|
|
3368
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e), typeof r == "boolean" && r === !0 ? this.set({
|
|
3394
3369
|
NodeGroup: t,
|
|
3395
3370
|
LogicalFileName: n
|
|
3396
3371
|
}) : isECLResult(n) && Array.isArray(r) ? this.set({
|
|
@@ -3603,7 +3578,7 @@ var GlobalResultCache = class extends e {
|
|
|
3603
3578
|
return this.get("ECLSourceFiles");
|
|
3604
3579
|
}
|
|
3605
3580
|
constructor(e, t, n) {
|
|
3606
|
-
super(), e instanceof WorkunitsService ?
|
|
3581
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.set({
|
|
3607
3582
|
Wuid: t,
|
|
3608
3583
|
...n
|
|
3609
3584
|
});
|
|
@@ -3644,7 +3619,7 @@ var GlobalResultCache = class extends e {
|
|
|
3644
3619
|
return this.get("When");
|
|
3645
3620
|
}
|
|
3646
3621
|
constructor(e, t, n) {
|
|
3647
|
-
super(), e instanceof WorkunitsService ?
|
|
3622
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e);
|
|
3648
3623
|
let r = m(n.Value);
|
|
3649
3624
|
this.set({
|
|
3650
3625
|
Wuid: t,
|
|
@@ -4094,7 +4069,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4094
4069
|
case U.Failed:
|
|
4095
4070
|
case U.Aborted:
|
|
4096
4071
|
case U.NotFound: return !0;
|
|
4097
|
-
default:
|
|
4098
4072
|
}
|
|
4099
4073
|
return !1;
|
|
4100
4074
|
}
|
|
@@ -4102,14 +4076,12 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4102
4076
|
switch (this.StateID) {
|
|
4103
4077
|
case U.Aborted:
|
|
4104
4078
|
case U.Failed: return !0;
|
|
4105
|
-
default:
|
|
4106
4079
|
}
|
|
4107
4080
|
return !1;
|
|
4108
4081
|
}
|
|
4109
4082
|
isDeleted() {
|
|
4110
4083
|
switch (this.StateID) {
|
|
4111
4084
|
case U.NotFound: return !0;
|
|
4112
|
-
default:
|
|
4113
4085
|
}
|
|
4114
4086
|
return !1;
|
|
4115
4087
|
}
|
|
@@ -4117,7 +4089,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4117
4089
|
switch (this.StateID) {
|
|
4118
4090
|
case U.DebugPaused:
|
|
4119
4091
|
case U.DebugRunning: return !0;
|
|
4120
|
-
default:
|
|
4121
4092
|
}
|
|
4122
4093
|
return this._debugMode;
|
|
4123
4094
|
}
|
|
@@ -4129,7 +4100,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4129
4100
|
case U.Blocked:
|
|
4130
4101
|
case U.DebugPaused:
|
|
4131
4102
|
case U.DebugRunning: return !0;
|
|
4132
|
-
default:
|
|
4133
4103
|
}
|
|
4134
4104
|
return !1;
|
|
4135
4105
|
}
|
|
@@ -4441,16 +4411,10 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4441
4411
|
this.isComplete() && t([e]);
|
|
4442
4412
|
});
|
|
4443
4413
|
break;
|
|
4444
|
-
case "changed":
|
|
4445
|
-
super.on(e, t);
|
|
4446
|
-
break;
|
|
4447
|
-
default:
|
|
4414
|
+
case "changed": super.on(e, t);
|
|
4448
4415
|
}
|
|
4449
4416
|
else switch (e) {
|
|
4450
|
-
case "changed":
|
|
4451
|
-
super.on(e, t, n);
|
|
4452
|
-
break;
|
|
4453
|
-
default:
|
|
4417
|
+
case "changed": super.on(e, t, n);
|
|
4454
4418
|
}
|
|
4455
4419
|
return this._monitor(), this;
|
|
4456
4420
|
}
|
|
@@ -4473,7 +4437,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4473
4437
|
...e,
|
|
4474
4438
|
Wuid: this.Wuid
|
|
4475
4439
|
}).then((e) => (e.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID", U.NotFound)) : this.set(e.Workunits.ECLWorkunit[0]), e)).catch((e) => {
|
|
4476
|
-
if (!e.Exception.some((e) => e.Code === 20081
|
|
4440
|
+
if (!e.Exception.some((e) => e.Code === 20081 && (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4477
4441
|
return {};
|
|
4478
4442
|
});
|
|
4479
4443
|
}
|
|
@@ -4489,7 +4453,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4489
4453
|
IncludeResultsViewNames: t,
|
|
4490
4454
|
SuppressResultSchemas: !1
|
|
4491
4455
|
}).then((e) => (this.set(e.Workunit), t && this.set({ ResultViews: e.ResultViews }), e)).catch((e) => {
|
|
4492
|
-
if (!e.Exception.some((e) => e.Code === 20080
|
|
4456
|
+
if (!e.Exception.some((e) => e.Code === 20080 && (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4493
4457
|
return {};
|
|
4494
4458
|
});
|
|
4495
4459
|
}
|
|
@@ -4716,7 +4680,7 @@ var lt, ut = class Activity extends s {
|
|
|
4716
4680
|
return lt ||= new Activity(e), t && lt.set(t), lt;
|
|
4717
4681
|
}
|
|
4718
4682
|
constructor(e) {
|
|
4719
|
-
super(), e instanceof SMCService ?
|
|
4683
|
+
super(), this.connection = e instanceof SMCService ? e : new SMCService(e), this.clear({});
|
|
4720
4684
|
}
|
|
4721
4685
|
runningWorkunits(e = "") {
|
|
4722
4686
|
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) => st.attach(this.connection.connectionOptions(), e.Wuid, e));
|
|
@@ -4920,7 +4884,7 @@ var lt, ut = class Activity extends s {
|
|
|
4920
4884
|
return r && i.set(r), i;
|
|
4921
4885
|
}
|
|
4922
4886
|
constructor(e, t, n) {
|
|
4923
|
-
super(), e instanceof DFUService ?
|
|
4887
|
+
super(), this.connection = e instanceof DFUService ? e : new DFUService(e), this.clear({
|
|
4924
4888
|
Cluster: t,
|
|
4925
4889
|
Name: n
|
|
4926
4890
|
});
|
|
@@ -4958,7 +4922,7 @@ var lt, ut = class Activity extends s {
|
|
|
4958
4922
|
...e.FileDetail,
|
|
4959
4923
|
ProtectList: e?.FileDetail?.ProtectList ?? { DFUFileProtect: [] }
|
|
4960
4924
|
}), e.FileDetail)).catch((e) => {
|
|
4961
|
-
if (!e.Exception.some((e) => e.Code === 20038
|
|
4925
|
+
if (!e.Exception.some((e) => e.Code === 20038 && (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0))) throw dt.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4962
4926
|
return {};
|
|
4963
4927
|
});
|
|
4964
4928
|
}
|
|
@@ -5060,7 +5024,7 @@ var lt, ut = class Activity extends s {
|
|
|
5060
5024
|
return n && r.set(n), r;
|
|
5061
5025
|
}
|
|
5062
5026
|
constructor(e) {
|
|
5063
|
-
super(), e instanceof MachineService ?
|
|
5027
|
+
super(), this.connection = e instanceof MachineService ? e : new MachineService(e);
|
|
5064
5028
|
}
|
|
5065
5029
|
}, TargetClusterCache = class extends e {
|
|
5066
5030
|
constructor() {
|
|
@@ -5191,7 +5155,7 @@ var TopologyCache = class extends e {
|
|
|
5191
5155
|
return t && n.set(t), n;
|
|
5192
5156
|
}
|
|
5193
5157
|
constructor(e) {
|
|
5194
|
-
super(), e instanceof TopologyService ?
|
|
5158
|
+
super(), this.connection = e instanceof TopologyService ? e : new TopologyService(e);
|
|
5195
5159
|
}
|
|
5196
5160
|
GetESPServiceBaseURL(e = "") {
|
|
5197
5161
|
return this.connection.TpServiceQuery({}).then((t) => {
|
|
@@ -5221,16 +5185,10 @@ var TopologyCache = class extends e {
|
|
|
5221
5185
|
}
|
|
5222
5186
|
on(e, t, n) {
|
|
5223
5187
|
if (this.isCallback(t)) switch (e) {
|
|
5224
|
-
case "changed":
|
|
5225
|
-
super.on(e, t);
|
|
5226
|
-
break;
|
|
5227
|
-
default:
|
|
5188
|
+
case "changed": super.on(e, t);
|
|
5228
5189
|
}
|
|
5229
5190
|
else switch (e) {
|
|
5230
|
-
case "changed":
|
|
5231
|
-
super.on(e, t, n);
|
|
5232
|
-
break;
|
|
5233
|
-
default:
|
|
5191
|
+
case "changed": super.on(e, t, n);
|
|
5234
5192
|
}
|
|
5235
5193
|
return this._monitor(), this;
|
|
5236
5194
|
}
|
|
@@ -5238,7 +5196,7 @@ var TopologyCache = class extends e {
|
|
|
5238
5196
|
//#endregion
|
|
5239
5197
|
//#region src/ecl/queryGraph.ts
|
|
5240
5198
|
function safeAssign(e, t, n) {
|
|
5241
|
-
t
|
|
5199
|
+
t !== "__proto__" && t !== "constructor" && t !== "prototype" && (e[t] = n);
|
|
5242
5200
|
}
|
|
5243
5201
|
function xmlEncode(e) {
|
|
5244
5202
|
return e = "" + e, e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, " ").replace(/\r/g, " ");
|
|
@@ -5559,9 +5517,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5559
5517
|
let r = new Edge$1(this, t);
|
|
5560
5518
|
this.edges.push(r), this.idx[t] = r;
|
|
5561
5519
|
break;
|
|
5562
|
-
default:
|
|
5563
|
-
console.warn("Graph.getItem - Unknown Node Type!");
|
|
5564
|
-
break;
|
|
5520
|
+
default: console.warn("Graph.getItem - Unknown Node Type!");
|
|
5565
5521
|
}
|
|
5566
5522
|
let n = this.idx[t];
|
|
5567
5523
|
return Array.from(e.attributes).forEach((e) => {
|
|
@@ -5580,55 +5536,37 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5580
5536
|
walkDocument(e, t) {
|
|
5581
5537
|
let n = this.getItem(e, t);
|
|
5582
5538
|
return e.childNodes.forEach((e) => {
|
|
5583
|
-
|
|
5584
|
-
case
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
let t = this.walkDocument(e, e.getAttribute("id"));
|
|
5599
|
-
n.addVertex(t);
|
|
5600
|
-
}
|
|
5601
|
-
break;
|
|
5602
|
-
case "att":
|
|
5603
|
-
let i = e.getAttribute("name"), a = "_" + i, o = e.getAttribute("value");
|
|
5604
|
-
i.indexOf("Time") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espTime2Seconds$1(o))) : i.indexOf("Size") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSize2Bytes(o))) : i.indexOf("Skew") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSkew2Number(o))) : safeAssign(n, i, o);
|
|
5605
|
-
break;
|
|
5606
|
-
case "edge":
|
|
5607
|
-
let s = this.walkDocument(e, e.getAttribute("id"));
|
|
5608
|
-
if (s.NumRowsProcessed === void 0 ? s.Count === void 0 ? s.count !== void 0 && (s._eclwatchCount = s.count.replace(/\B(?=(\d{3})+(?!\d))/g, ",")) : s._eclwatchCount = s.Count.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : s._eclwatchCount = s.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.inputProgress && (s._eclwatchInputProgress = "[" + s.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "]"), s.SkewMaxRowsProcessed && s.SkewMinRowsProcessed && (s._eclwatchSkew = "+" + s.SkewMaxRowsProcessed + ", " + s.SkewMinRowsProcessed), !s._dependsOn && !s._childGraph && (s._sourceActivity || s._targetActivity)) {
|
|
5609
|
-
s._isSpill = !0;
|
|
5610
|
-
let e = s.getSource();
|
|
5611
|
-
e && (e._isSpill = !0);
|
|
5612
|
-
let t = s.getTarget();
|
|
5613
|
-
t && (t._isSpill = !0);
|
|
5614
|
-
}
|
|
5615
|
-
n.addEdge(s);
|
|
5616
|
-
break;
|
|
5617
|
-
default: break;
|
|
5539
|
+
if (e.nodeType === 1) switch (e.tagName) {
|
|
5540
|
+
case "graph": break;
|
|
5541
|
+
case "node":
|
|
5542
|
+
let t = !1, r = this.getChildByTagName(e, "att");
|
|
5543
|
+
if (r) {
|
|
5544
|
+
let i = this.getChildByTagName(r, "graph");
|
|
5545
|
+
if (i) {
|
|
5546
|
+
t = !0;
|
|
5547
|
+
let r = this.walkDocument(i, e.getAttribute("id"));
|
|
5548
|
+
n.addSubgraph(r);
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5551
|
+
if (!t) {
|
|
5552
|
+
let t = this.walkDocument(e, e.getAttribute("id"));
|
|
5553
|
+
n.addVertex(t);
|
|
5618
5554
|
}
|
|
5619
5555
|
break;
|
|
5620
|
-
case
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
case
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5556
|
+
case "att":
|
|
5557
|
+
let i = e.getAttribute("name"), a = "_" + i, o = e.getAttribute("value");
|
|
5558
|
+
i.indexOf("Time") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espTime2Seconds$1(o))) : i.indexOf("Size") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSize2Bytes(o))) : i.indexOf("Skew") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSkew2Number(o))) : safeAssign(n, i, o);
|
|
5559
|
+
break;
|
|
5560
|
+
case "edge":
|
|
5561
|
+
let s = this.walkDocument(e, e.getAttribute("id"));
|
|
5562
|
+
if (s.NumRowsProcessed === void 0 ? s.Count === void 0 ? s.count !== void 0 && (s._eclwatchCount = s.count.replace(/\B(?=(\d{3})+(?!\d))/g, ",")) : s._eclwatchCount = s.Count.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : s._eclwatchCount = s.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.inputProgress && (s._eclwatchInputProgress = "[" + s.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "]"), s.SkewMaxRowsProcessed && s.SkewMinRowsProcessed && (s._eclwatchSkew = "+" + s.SkewMaxRowsProcessed + ", " + s.SkewMinRowsProcessed), !s._dependsOn && !s._childGraph && (s._sourceActivity || s._targetActivity)) {
|
|
5563
|
+
s._isSpill = !0;
|
|
5564
|
+
let e = s.getSource();
|
|
5565
|
+
e && (e._isSpill = !0);
|
|
5566
|
+
let t = s.getTarget();
|
|
5567
|
+
t && (t._isSpill = !0);
|
|
5568
|
+
}
|
|
5569
|
+
n.addEdge(s);
|
|
5632
5570
|
}
|
|
5633
5571
|
}), n;
|
|
5634
5572
|
}
|
|
@@ -5741,7 +5679,7 @@ var QueryCache = class extends e {
|
|
|
5741
5679
|
return this.get("PriorityID");
|
|
5742
5680
|
}
|
|
5743
5681
|
constructor(e, t, n, r) {
|
|
5744
|
-
super(), e instanceof WorkunitsService ?
|
|
5682
|
+
super(), this.wsWorkunitsService = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.topology = yt.attach(this.wsWorkunitsService.opts()), this.set({
|
|
5745
5683
|
QuerySet: t,
|
|
5746
5684
|
QueryId: n,
|
|
5747
5685
|
...r
|
|
@@ -5890,7 +5828,7 @@ var QueryCache = class extends e {
|
|
|
5890
5828
|
return !0;
|
|
5891
5829
|
}
|
|
5892
5830
|
conflate(e) {
|
|
5893
|
-
return this.key === e.key
|
|
5831
|
+
return this.key === e.key && (this.value = e.value, !0);
|
|
5894
5832
|
}
|
|
5895
5833
|
void() {
|
|
5896
5834
|
return this.value === this.oldValue;
|
|
@@ -5913,7 +5851,7 @@ var QueryCache = class extends e {
|
|
|
5913
5851
|
}, () => new Store(e, t, n, r));
|
|
5914
5852
|
}
|
|
5915
5853
|
constructor(e, t, n, r) {
|
|
5916
|
-
e instanceof StoreService ?
|
|
5854
|
+
this.connection = e instanceof StoreService ? e : new StoreService(e), this.Name = t, this.UserSpecific = r, this.Namespace = n;
|
|
5917
5855
|
}
|
|
5918
5856
|
_knownValues = {};
|
|
5919
5857
|
create() {
|
|
@@ -6224,7 +6162,6 @@ var QueryCache = class extends e {
|
|
|
6224
6162
|
case $.Failed:
|
|
6225
6163
|
case $.Aborted:
|
|
6226
6164
|
case $.NotFound: return !0;
|
|
6227
|
-
default:
|
|
6228
6165
|
}
|
|
6229
6166
|
return !1;
|
|
6230
6167
|
}
|
|
@@ -6234,7 +6171,6 @@ var QueryCache = class extends e {
|
|
|
6234
6171
|
isDeleted() {
|
|
6235
6172
|
switch (this.State) {
|
|
6236
6173
|
case $.NotFound: return !0;
|
|
6237
|
-
default:
|
|
6238
6174
|
}
|
|
6239
6175
|
return !1;
|
|
6240
6176
|
}
|
|
@@ -6283,16 +6219,10 @@ var QueryCache = class extends e {
|
|
|
6283
6219
|
this.isComplete() && t([e]);
|
|
6284
6220
|
});
|
|
6285
6221
|
break;
|
|
6286
|
-
case "changed":
|
|
6287
|
-
super.on(e, t);
|
|
6288
|
-
break;
|
|
6289
|
-
default:
|
|
6222
|
+
case "changed": super.on(e, t);
|
|
6290
6223
|
}
|
|
6291
6224
|
else switch (e) {
|
|
6292
|
-
case "changed":
|
|
6293
|
-
super.on(e, t, n);
|
|
6294
|
-
break;
|
|
6295
|
-
default:
|
|
6225
|
+
case "changed": super.on(e, t, n);
|
|
6296
6226
|
}
|
|
6297
6227
|
return this._monitor(), this;
|
|
6298
6228
|
}
|