whatap 0.4.79 → 0.4.80
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/.vscode/keep-context.json +3 -3
- package/README.md +51 -51
- package/bindings/darwin/x64/whatap.node +0 -0
- package/bindings/linux/ia32/whatap.node +0 -0
- package/bindings/linux/x64/whatap.node +0 -0
- package/help.txt +10 -10
- package/index.js +8 -8
- package/lib/conf/conf-sys-mon.js +100 -100
- package/lib/conf/config-default.js +238 -238
- package/lib/conf/configure.js +423 -423
- package/lib/conf/license.js +41 -41
- package/lib/control/cmd-config.js +23 -23
- package/lib/control/control-handler.js +344 -344
- package/lib/control/packagectr-helper.js +149 -149
- package/lib/core/agent.js +329 -328
- package/lib/core/interceptor.js +142 -142
- package/lib/core/request-agent.js +26 -26
- package/lib/counter/counter-manager.js +127 -127
- package/lib/counter/meter/meter-activex.js +66 -66
- package/lib/counter/meter/meter-httpc.js +57 -57
- package/lib/counter/meter/meter-resource.js +9 -9
- package/lib/counter/meter/meter-service.js +167 -167
- package/lib/counter/meter/meter-socket.io.js +50 -50
- package/lib/counter/meter/meter-sql.js +70 -70
- package/lib/counter/meter/meter-users.js +57 -57
- package/lib/counter/meter.js +183 -183
- package/lib/counter/task/activetransaction.js +93 -93
- package/lib/counter/task/agentinfo.js +105 -105
- package/lib/counter/task/counter-task.js +9 -9
- package/lib/counter/task/gcstat.js +34 -34
- package/lib/counter/task/heapmem.js +24 -24
- package/lib/counter/task/httpc.js +75 -75
- package/lib/counter/task/proc-cpu.js +28 -28
- package/lib/counter/task/realtimeuser.js +30 -30
- package/lib/counter/task/res/systemECSTask.js +54 -54
- package/lib/counter/task/res/systemKubeTask.js +52 -52
- package/lib/counter/task/res/util/awsEcsClientThread.js +166 -166
- package/lib/counter/task/res/util/linuxProcStatUtil.js +13 -13
- package/lib/counter/task/res-sys-cpu.js +61 -61
- package/lib/counter/task/service.js +201 -201
- package/lib/counter/task/socketio.js +29 -29
- package/lib/counter/task/sql.js +104 -104
- package/lib/counter/task/systemperf.js +42 -42
- package/lib/data/datapack-sender.js +256 -256
- package/lib/data/dataprofile-agent.js +136 -136
- package/lib/data/datatext-agent.js +135 -135
- package/lib/data/event-level.js +15 -15
- package/lib/data/test.js +48 -48
- package/lib/env/constants.js +20 -20
- package/lib/kube/kube-client.js +143 -143
- package/lib/lang/text-types.js +58 -58
- package/lib/logger.js +319 -319
- package/lib/net/netflag.js +54 -54
- package/lib/net/paramdef.js +40 -40
- package/lib/net/receiver.js +65 -65
- package/lib/net/security-master.js +182 -173
- package/lib/net/sender.js +140 -140
- package/lib/net/tcp-return.js +17 -17
- package/lib/net/tcp-session.js +285 -285
- package/lib/net/tcpreq-client-proxy.js +69 -69
- package/lib/net/tcprequest-mgr.js +57 -57
- package/lib/observers/cluster-observer.js +21 -21
- package/lib/observers/express-observer.js +214 -214
- package/lib/observers/file-observer.js +184 -184
- package/lib/observers/global-observer.js +30 -30
- package/lib/observers/http-observer.js +704 -704
- package/lib/observers/maria-observer.js +382 -382
- package/lib/observers/memcached-observer.js +55 -55
- package/lib/observers/mongo-observer.js +262 -265
- package/lib/observers/mongodb-observer.js +197 -197
- package/lib/observers/mongoose-observer.js +83 -83
- package/lib/observers/mssql-observer.js +205 -205
- package/lib/observers/mysql-observer.js +436 -394
- package/lib/observers/net-observer.js +72 -72
- package/lib/observers/pgsql-observer.js +295 -295
- package/lib/observers/process-observer.js +25 -25
- package/lib/observers/promise-observer.js +31 -31
- package/lib/observers/redis-observer.js +156 -109
- package/lib/observers/schedule-observer.js +66 -66
- package/lib/observers/socket.io-observer.js +54 -54
- package/lib/observers/stream-observer.js +19 -19
- package/lib/observers/thrift-observer.js +196 -196
- package/lib/pack/activestack-pack.js +54 -54
- package/lib/pack/counter-pack.js +649 -649
- package/lib/pack/errorsnap-pack.js +68 -68
- package/lib/pack/event-pack.js +53 -53
- package/lib/pack/hitmap-pack.js +62 -62
- package/lib/pack/hitmap-pack1.js +146 -146
- package/lib/pack/netstat.js +14 -14
- package/lib/pack/pack.js +49 -49
- package/lib/pack/packenum.js +60 -60
- package/lib/pack/param-pack.js +213 -213
- package/lib/pack/profile-pack.js +48 -48
- package/lib/pack/realtimeuser-pack.js +40 -40
- package/lib/pack/stat-general-pack.js +95 -95
- package/lib/pack/staterror-pack.js +119 -119
- package/lib/pack/stathttpc-pack.js +66 -66
- package/lib/pack/stathttpc-rec.js +78 -78
- package/lib/pack/statremote-pack.js +45 -45
- package/lib/pack/statservice-pack.js +62 -62
- package/lib/pack/statservice-pack1.js +87 -87
- package/lib/pack/statservice-rec.js +292 -292
- package/lib/pack/statservice-rec_dep.js +151 -151
- package/lib/pack/statsql-pack.js +69 -69
- package/lib/pack/statsql-rec.js +100 -100
- package/lib/pack/statuseragent-pack.js +43 -43
- package/lib/pack/tagcount-pack.js +398 -398
- package/lib/pack/tagctr.js +14 -14
- package/lib/pack/text-pack.js +49 -49
- package/lib/pack/time-count.js +25 -25
- package/lib/pack/websocket.js +14 -14
- package/lib/plugin/plugin-loadermanager.js +56 -56
- package/lib/plugin/plugin.js +75 -75
- package/lib/requestlog.js +326 -326
- package/lib/service/tx-record.js +288 -288
- package/lib/stat/stat-error.js +116 -116
- package/lib/stat/stat-httpc.js +97 -97
- package/lib/stat/stat-remoteip.js +46 -46
- package/lib/stat/stat-sql.js +112 -112
- package/lib/stat/stat-tranx.js +57 -57
- package/lib/stat/stat-tx-caller.js +159 -159
- package/lib/stat/stat-tx-domain.js +110 -110
- package/lib/stat/stat-tx-referer.js +111 -111
- package/lib/stat/stat-useragent.js +48 -48
- package/lib/stat/timingsender.js +72 -72
- package/lib/step/activestack-step.js +37 -37
- package/lib/step/dbc-step.js +35 -35
- package/lib/step/http-stepx.js +66 -66
- package/lib/step/message-step.js +39 -39
- package/lib/step/method-stepx.js +46 -46
- package/lib/step/resultset-step.js +39 -39
- package/lib/step/securemsg-step.js +43 -43
- package/lib/step/socket-step.js +46 -46
- package/lib/step/sql-stepx.js +67 -67
- package/lib/step/sqlxtype.js +15 -15
- package/lib/step/step.js +65 -65
- package/lib/step/stepenum.js +53 -53
- package/lib/trace/local-context.js +13 -13
- package/lib/trace/parsed-sql.js +13 -13
- package/lib/trace/profile-collector.js +70 -70
- package/lib/trace/serviceurl-pattern-detector.js +117 -117
- package/lib/trace/trace-context-manager.js +195 -195
- package/lib/trace/trace-context.js +134 -134
- package/lib/util/anylist.js +102 -102
- package/lib/util/array-util.js +100 -100
- package/lib/util/bitutil.js +27 -27
- package/lib/util/cardinality/hyperloglog.js +105 -105
- package/lib/util/cardinality/murmurhash.js +31 -31
- package/lib/util/cardinality/registerset.js +74 -74
- package/lib/util/config-util.js +17 -17
- package/lib/util/cypher.js +89 -89
- package/lib/util/datetimehelper.js +237 -229
- package/lib/util/dateutil.js +110 -106
- package/lib/util/errordata.js +20 -20
- package/lib/util/escape-literal-sql.js +342 -342
- package/lib/util/hashutil2.js +126 -126
- package/lib/util/hexa32.js +57 -57
- package/lib/util/index.js +78 -78
- package/lib/util/intint-map.js +47 -47
- package/lib/util/intkey-linkedmap.js +26 -26
- package/lib/util/intkey-map.js +25 -25
- package/lib/util/intset.js +82 -82
- package/lib/util/iputil.js +119 -119
- package/lib/util/iputil_x.js +526 -526
- package/lib/util/keygen.js +17 -17
- package/lib/util/kube-util.js +72 -72
- package/lib/util/longint-linkedmap.js +35 -35
- package/lib/util/longkey-linkedmap.js +25 -25
- package/lib/util/longlong-linkedmap.js +37 -37
- package/lib/util/nodeutil.js +67 -67
- package/lib/util/oidutil.js +96 -93
- package/lib/util/paramsecurity.js +78 -78
- package/lib/util/pathtree.js +172 -172
- package/lib/util/pre-process.js +13 -13
- package/lib/util/process-seq.js +165 -165
- package/lib/util/property-util.js +35 -35
- package/lib/util/request-queue.js +42 -42
- package/lib/util/requestdouble-queue.js +72 -72
- package/lib/util/resourceprofile.js +156 -156
- package/lib/util/seedrandom.js +242 -242
- package/lib/util/stop-watch.js +29 -29
- package/lib/util/string-util.js +9 -9
- package/lib/util/stringkey-linkedmap.js +28 -28
- package/lib/util/stringnum-linkedmap.js +31 -31
- package/lib/util/stringset.js +65 -65
- package/lib/util/system-util.js +9 -9
- package/lib/util/userid-util.js +57 -57
- package/lib/util/utils.js +67 -67
- package/lib/value/blob-value.js +61 -61
- package/lib/value/boolean-value.js +51 -51
- package/lib/value/decimal-value.js +71 -71
- package/lib/value/double-summary.js +105 -105
- package/lib/value/double-value.js +50 -50
- package/lib/value/float-array.js +59 -59
- package/lib/value/float-value.js +64 -64
- package/lib/value/int-array.js +59 -59
- package/lib/value/int-map-value.js +151 -151
- package/lib/value/int-value.js +64 -64
- package/lib/value/ip4-value.js +83 -83
- package/lib/value/list-value.js +136 -136
- package/lib/value/long-array.js +59 -59
- package/lib/value/long-summary.js +105 -105
- package/lib/value/map-value.js +175 -175
- package/lib/value/metric-value.js +157 -157
- package/lib/value/null-value.js +42 -42
- package/lib/value/number-value.js +34 -34
- package/lib/value/summary-value.js +29 -29
- package/lib/value/text-array.js +117 -117
- package/lib/value/text-value.js +59 -59
- package/lib/value/texthash-value.js +49 -49
- package/lib/value/value.js +14 -14
- package/lib/value/valueenum.js +99 -99
- package/logs/whatap-20230906.log +54 -0
- package/package.json +28 -28
- package/whatap.conf +1 -1
- package/logs/whatap-20230616.log +0 -13
|
@@ -1,399 +1,399 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2016 the WHATAP project authors. All rights reserved.
|
|
3
|
-
* Use of this source code is governed by a license that
|
|
4
|
-
* can be found in the LICENSE file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var PackEnum = require('./packenum'),
|
|
8
|
-
Pack = require('./pack'),
|
|
9
|
-
Long = require('long'),
|
|
10
|
-
ValueEnum = require('../value/valueenum'),
|
|
11
|
-
SummaryValue = require('../value/summary-value') ,
|
|
12
|
-
DataOutPutX = require('../io/data-outputx'),
|
|
13
|
-
DataInputX = require('../io/data-inputx'),
|
|
14
|
-
HashUtil = require('../util/hashutil'),
|
|
15
|
-
MapValue = require('../value/map-value')
|
|
16
|
-
|
|
17
|
-
function TagCountPack() {
|
|
18
|
-
Pack.call(this);
|
|
19
|
-
this.category = ''
|
|
20
|
-
this.tagHash = 0
|
|
21
|
-
this.originOid = 0
|
|
22
|
-
this.tags = new MapValue()
|
|
23
|
-
this.fields = new MapValue()
|
|
24
|
-
this.read_size
|
|
25
|
-
this.fieldPos
|
|
26
|
-
this.tagPos
|
|
27
|
-
this.madeByPlugIn
|
|
28
|
-
}
|
|
29
|
-
TagCountPack.prototype = new Pack();
|
|
30
|
-
TagCountPack.prototype.constructor = TagCountPack;
|
|
31
|
-
|
|
32
|
-
TagCountPack.prototype.getPackType = function () {
|
|
33
|
-
return PackEnum.TAG_COUNT;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
TagCountPack.prototype.setOriginOid = function (oid) {
|
|
37
|
-
this.originOid = oid
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
TagCountPack.prototype.resetOid = function () {
|
|
41
|
-
if (this.originOid !== null) {
|
|
42
|
-
this.oid = this.originOid;
|
|
43
|
-
this.originOid = null;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
TagCountPack.prototype.getTagString = function(name) {
|
|
48
|
-
return this.tags.getText(name);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
TagCountPack.prototype.getTagNotNull = function(name) {
|
|
52
|
-
var v = this.tags.getText(name);
|
|
53
|
-
return v == null ? "" : v;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
TagCountPack.prototype.getTag = function(name) {
|
|
57
|
-
return this.tags.get(name);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
TagCountPack.prototype.getTagInt = function(name) {
|
|
61
|
-
return this.tags.getInt(name);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
TagCountPack.prototype.getTagLong = function(name) {
|
|
65
|
-
return this.tags.getLong(name);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
TagCountPack.prototype.putTag = function(name , value) {
|
|
69
|
-
this.tags.put(name, value);
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
TagCountPack.prototype.putTagInt = function(name , value) {
|
|
74
|
-
this.tags.putInt(name , value);
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
TagCountPack.prototype.putTagString = function(name , value) {
|
|
79
|
-
this.tags.putString(name, value);
|
|
80
|
-
return this;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
TagCountPack.prototype.putTagLong = function(name , value) {
|
|
84
|
-
this.tags.putLong(name, value);
|
|
85
|
-
return this;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
TagCountPack.prototype.putTagFloat = function(name , value) {
|
|
89
|
-
this.tags.putFloat(name, value);
|
|
90
|
-
return this;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
TagCountPack.prototype.putTagDouble = function(name , value) {
|
|
94
|
-
this.tags.putDouble(name, value);
|
|
95
|
-
return this;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
TagCountPack.prototype.putTagBoolean= function(name , value) {
|
|
99
|
-
this.tags.putBoolean(name, value);
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
TagCountPack.prototype.put = function(name , value) {
|
|
104
|
-
this.fields.put(name, value);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
TagCountPack.prototype.putInt = function(name , value) {
|
|
108
|
-
this.fields.putInt(name, value);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
TagCountPack.prototype.putLog = function(name , value) {
|
|
112
|
-
this.fields.putLong(name, value);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
TagCountPack.prototype.putString = function(name , value) {
|
|
116
|
-
this.fields.putString(name, value);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
TagCountPack.prototype.putFloat = function(name , value) {
|
|
120
|
-
this.fields.putFloat(name, value);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
TagCountPack.prototype.putDouble = function(name , value) {
|
|
124
|
-
this.fields.putDouble(name, value);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
TagCountPack.prototype.putBoolean = function(name , value) {
|
|
128
|
-
this.fields.putBoolean(name, value);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
TagCountPack.prototype.get = function(name) {
|
|
132
|
-
return this.fields.get(name);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
TagCountPack.prototype.getField = function(key) {
|
|
136
|
-
return get(key);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
TagCountPack.prototype.getFloat = function(name) {
|
|
140
|
-
var val = this.fields.get(name);
|
|
141
|
-
if (val == null)
|
|
142
|
-
return 0;
|
|
143
|
-
switch (val.getValueType()) {
|
|
144
|
-
case ValueEnum.DOUBLE_SUMMARY:
|
|
145
|
-
case ValueEnum.LONG_SUMMARY:
|
|
146
|
-
return val.avg();
|
|
147
|
-
case ValueEnum.METRIC:
|
|
148
|
-
return val.avg();
|
|
149
|
-
default:
|
|
150
|
-
if (val instanceof Number) {
|
|
151
|
-
return val.doubleValue();
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
TagCountPack.prototype.getLong = function(name) {
|
|
158
|
-
var val = this.fields.get(name);
|
|
159
|
-
if (val == null)
|
|
160
|
-
return 0;
|
|
161
|
-
switch (val.getValueType()) {
|
|
162
|
-
case ValueEnum.DOUBLE_SUMMARY:
|
|
163
|
-
case ValueEnum.LONG_SUMMARY:
|
|
164
|
-
return val.avg().longValue();
|
|
165
|
-
case ValueEnum.METRIC:
|
|
166
|
-
return val.avg();
|
|
167
|
-
default:
|
|
168
|
-
if (val instanceof Number) {
|
|
169
|
-
return val.longValue();
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return 0;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
TagCountPack.prototype.write = function(dout) {
|
|
176
|
-
Pack.prototype.write.call(this, dout);
|
|
177
|
-
dout.writeByte(1);
|
|
178
|
-
dout.writeText(this.category);
|
|
179
|
-
/*
|
|
180
|
-
if (this.tagHash == 0 && this.tags.size() > 0) {
|
|
181
|
-
var tagBytes = this.resetTagHash();
|
|
182
|
-
dout.writeDecimal(this.tagHash);
|
|
183
|
-
dout.write(tagBytes);
|
|
184
|
-
} else {
|
|
185
|
-
this.tagHash = 0;
|
|
186
|
-
dout.writeDecimal(this.tagHash);
|
|
187
|
-
dout.writeValue(this.tags);
|
|
188
|
-
}
|
|
189
|
-
*/
|
|
190
|
-
this.tagHash = 0;
|
|
191
|
-
dout.writeDecimal(this.tagHash);
|
|
192
|
-
dout.writeValue(this.tags);
|
|
193
|
-
dout.writeValue(this.fields);
|
|
194
|
-
if (this.originOid != null) {
|
|
195
|
-
dout.writeBoolean(true);
|
|
196
|
-
dout.writeInt(this.originOid);
|
|
197
|
-
} else {
|
|
198
|
-
dout.writeBoolean(false);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
TagCountPack.prototype.resetTagHash = function() {
|
|
203
|
-
var tagIO = new DataOutPutX();
|
|
204
|
-
tagIO.writeValue(this.tags);
|
|
205
|
-
var tagBytes = tagIO.toByteArray();
|
|
206
|
-
this.tagHash = HashUtil.hash(tagBytes);
|
|
207
|
-
return tagBytes;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
TagCountPack.prototype.read = function(din) {
|
|
211
|
-
var offset1 = din.getOffset();
|
|
212
|
-
Pack.prototype.read.call(this, din);
|
|
213
|
-
var ver = din.readByte();
|
|
214
|
-
this.category = din.readText();
|
|
215
|
-
this.tagHash = din.readDecimal();
|
|
216
|
-
this.tags = din.readValue();
|
|
217
|
-
this.fields = din.readValue();
|
|
218
|
-
if (ver == 0) {
|
|
219
|
-
this.read_size = din.getOffset() - offset1;
|
|
220
|
-
return this;
|
|
221
|
-
}
|
|
222
|
-
if (din.readBoolean()) {
|
|
223
|
-
this.originOid = din.readInt();
|
|
224
|
-
}
|
|
225
|
-
this.read_size = din.getOffset() - offset1;
|
|
226
|
-
return this;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
TagCountPack.prototype.isEmpty = () => {
|
|
230
|
-
return this.fields.isEmpty();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
TagCountPack.prototype.size = () => {
|
|
234
|
-
return this.fields.size();
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
TagCountPack.prototype.clear = () => {
|
|
238
|
-
this.fields.clear();
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
TagCountPack.prototype.writeHead = () => {
|
|
242
|
-
var dout = new DataOutPutX();
|
|
243
|
-
|
|
244
|
-
dout.writeDecimal(this.time);
|
|
245
|
-
dout.writeDecimal(this.oid);
|
|
246
|
-
dout.writeDecimal(this.okind);
|
|
247
|
-
dout.writeDecimal(this.onode);
|
|
248
|
-
|
|
249
|
-
dout.writeDecimal(this.tagHash);
|
|
250
|
-
dout.writeDecimal(this.tagPos);
|
|
251
|
-
dout.writeDecimal(this.fieldPos);
|
|
252
|
-
return dout.toByteArray();
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
TagCountPack.prototype.writeField = (info) => {
|
|
256
|
-
var dout = new DataOutPutX();
|
|
257
|
-
_writeMap(this.fields, info.field, dout);
|
|
258
|
-
return dout.toByteArray();
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
TagCountPack.prototype.writeTag = (info) => {
|
|
262
|
-
var dout = new DataOutPutX();
|
|
263
|
-
_writeMap(this.tags, info.tags, dout);
|
|
264
|
-
return dout.toByteArray();
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
TagCountPack.prototype._readMap = ( map, info, din) => {
|
|
268
|
-
while (din.readBoolean()) {
|
|
269
|
-
var idx = din.readDecimal();
|
|
270
|
-
var value = din.readValue();
|
|
271
|
-
var key = info.getName(idx);
|
|
272
|
-
map.put(key, value);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
TagCountPack.prototype._writeMap = (fields, info, dout) => {
|
|
277
|
-
var en = fields.keys();
|
|
278
|
-
while (en.hasMoreElements()) {
|
|
279
|
-
var key = en.nextString();
|
|
280
|
-
var value = fields.get(key);
|
|
281
|
-
var idx = info.intern(key);
|
|
282
|
-
dout.writeBoolean(true);
|
|
283
|
-
dout.writeDecimal(idx);
|
|
284
|
-
dout.writeValue(value);
|
|
285
|
-
}
|
|
286
|
-
dout.writeBoolean(false);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
TagCountPack.prototype.readHead = ( b ) => {
|
|
290
|
-
var din = new DataInputX(b);
|
|
291
|
-
this.time = din.readDecimal();
|
|
292
|
-
this.oid = din.readDecimal();
|
|
293
|
-
this.okind = din.readDecimal();
|
|
294
|
-
this.onode = din.readDecimal();
|
|
295
|
-
|
|
296
|
-
this.tagHash = din.readDecimal();
|
|
297
|
-
this.tagPos = din.readDecimal();
|
|
298
|
-
this.fieldPos = din.readDecimal();
|
|
299
|
-
|
|
300
|
-
this.read_size += b.length;
|
|
301
|
-
|
|
302
|
-
return this;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
TagCountPack.prototype.readTag = (b, info) => {
|
|
306
|
-
var din = new DataInputX(b);
|
|
307
|
-
this._readMap(this.tags, info.tags, din);
|
|
308
|
-
|
|
309
|
-
this.read_size += b.length;
|
|
310
|
-
|
|
311
|
-
return this;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
TagCountPack.prototype.readField = (b, info) => {
|
|
315
|
-
var din = new DataInputX(b);
|
|
316
|
-
this._readMap(this.fields, info.field, din);
|
|
317
|
-
|
|
318
|
-
this.read_size += b.length;
|
|
319
|
-
|
|
320
|
-
return this;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
TagCountPack.prototype.getCategory = () => {
|
|
324
|
-
return this.category;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
TagCountPack.prototype.hasAnyField = (fields) => {
|
|
328
|
-
if (fields != null) {
|
|
329
|
-
fields.array.forEach(element => {
|
|
330
|
-
if(this.fields.get(element) != null) {
|
|
331
|
-
return true;
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
TagCountPack.prototype.createTagHash = (tags) => {
|
|
339
|
-
if (tags === null || tags.length === 0) return 0;
|
|
340
|
-
|
|
341
|
-
var tagIO = new DataOutPutX();
|
|
342
|
-
for(var k in tags){
|
|
343
|
-
let v = this.tags.get(t);
|
|
344
|
-
if (v != null) {
|
|
345
|
-
tagIO.writeValue(v);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
let tagBytes = tagIO.toByteArray();
|
|
349
|
-
return HashUtil.hash(tagBytes);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
TagCountPack.prototype.copyCompact = () => {
|
|
353
|
-
var p = new TagCountPack();
|
|
354
|
-
p.time = this.time;
|
|
355
|
-
p.pcode = this.pcode;
|
|
356
|
-
p.oid = this.oid;
|
|
357
|
-
p.okind = this.okind;
|
|
358
|
-
p.onode = this.onode;
|
|
359
|
-
p.category = this.category.intern();
|
|
360
|
-
p.tagHash = this.tagHash;
|
|
361
|
-
|
|
362
|
-
var en = this.tags.entries();
|
|
363
|
-
while (en.hasMoreElements()) {
|
|
364
|
-
let ent = en.nextElement();
|
|
365
|
-
let key = ent.getKey().intern();
|
|
366
|
-
let val = ent.getValue();
|
|
367
|
-
if (val.getValueType() == ValueEnum.TEXT) {
|
|
368
|
-
var t = val;
|
|
369
|
-
t.value = t.value.intern();
|
|
370
|
-
}
|
|
371
|
-
p.tags.put(key, val);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
p.fields = this.fields.copy();
|
|
375
|
-
return p;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
TagCountPack.prototype.isTag = (key, val) => {
|
|
379
|
-
return val.equals(this.getTagString(key));
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
TagCountPack.prototype.flat = () => {
|
|
383
|
-
var out = new MapValue();
|
|
384
|
-
out.put("time", this.time);
|
|
385
|
-
if (this.oid != 0) {
|
|
386
|
-
out.put("oid", this.oid);
|
|
387
|
-
}
|
|
388
|
-
if (this.okind != 0) {
|
|
389
|
-
out.put("okind", this.okind);
|
|
390
|
-
}
|
|
391
|
-
if (this.onode != 0) {
|
|
392
|
-
out.put("onode", this.onode);
|
|
393
|
-
}
|
|
394
|
-
out.putAll(this.tags);
|
|
395
|
-
out.putAll(this.fields);
|
|
396
|
-
return out;
|
|
397
|
-
}
|
|
398
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2016 the WHATAP project authors. All rights reserved.
|
|
3
|
+
* Use of this source code is governed by a license that
|
|
4
|
+
* can be found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var PackEnum = require('./packenum'),
|
|
8
|
+
Pack = require('./pack'),
|
|
9
|
+
Long = require('long'),
|
|
10
|
+
ValueEnum = require('../value/valueenum'),
|
|
11
|
+
SummaryValue = require('../value/summary-value') ,
|
|
12
|
+
DataOutPutX = require('../io/data-outputx'),
|
|
13
|
+
DataInputX = require('../io/data-inputx'),
|
|
14
|
+
HashUtil = require('../util/hashutil'),
|
|
15
|
+
MapValue = require('../value/map-value')
|
|
16
|
+
|
|
17
|
+
function TagCountPack() {
|
|
18
|
+
Pack.call(this);
|
|
19
|
+
this.category = ''
|
|
20
|
+
this.tagHash = 0
|
|
21
|
+
this.originOid = 0
|
|
22
|
+
this.tags = new MapValue()
|
|
23
|
+
this.fields = new MapValue()
|
|
24
|
+
this.read_size
|
|
25
|
+
this.fieldPos
|
|
26
|
+
this.tagPos
|
|
27
|
+
this.madeByPlugIn
|
|
28
|
+
}
|
|
29
|
+
TagCountPack.prototype = new Pack();
|
|
30
|
+
TagCountPack.prototype.constructor = TagCountPack;
|
|
31
|
+
|
|
32
|
+
TagCountPack.prototype.getPackType = function () {
|
|
33
|
+
return PackEnum.TAG_COUNT;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
TagCountPack.prototype.setOriginOid = function (oid) {
|
|
37
|
+
this.originOid = oid
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
TagCountPack.prototype.resetOid = function () {
|
|
41
|
+
if (this.originOid !== null) {
|
|
42
|
+
this.oid = this.originOid;
|
|
43
|
+
this.originOid = null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
TagCountPack.prototype.getTagString = function(name) {
|
|
48
|
+
return this.tags.getText(name);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
TagCountPack.prototype.getTagNotNull = function(name) {
|
|
52
|
+
var v = this.tags.getText(name);
|
|
53
|
+
return v == null ? "" : v;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
TagCountPack.prototype.getTag = function(name) {
|
|
57
|
+
return this.tags.get(name);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
TagCountPack.prototype.getTagInt = function(name) {
|
|
61
|
+
return this.tags.getInt(name);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
TagCountPack.prototype.getTagLong = function(name) {
|
|
65
|
+
return this.tags.getLong(name);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
TagCountPack.prototype.putTag = function(name , value) {
|
|
69
|
+
this.tags.put(name, value);
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
TagCountPack.prototype.putTagInt = function(name , value) {
|
|
74
|
+
this.tags.putInt(name , value);
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
TagCountPack.prototype.putTagString = function(name , value) {
|
|
79
|
+
this.tags.putString(name, value);
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
TagCountPack.prototype.putTagLong = function(name , value) {
|
|
84
|
+
this.tags.putLong(name, value);
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
TagCountPack.prototype.putTagFloat = function(name , value) {
|
|
89
|
+
this.tags.putFloat(name, value);
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
TagCountPack.prototype.putTagDouble = function(name , value) {
|
|
94
|
+
this.tags.putDouble(name, value);
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
TagCountPack.prototype.putTagBoolean= function(name , value) {
|
|
99
|
+
this.tags.putBoolean(name, value);
|
|
100
|
+
return this;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
TagCountPack.prototype.put = function(name , value) {
|
|
104
|
+
this.fields.put(name, value);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
TagCountPack.prototype.putInt = function(name , value) {
|
|
108
|
+
this.fields.putInt(name, value);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
TagCountPack.prototype.putLog = function(name , value) {
|
|
112
|
+
this.fields.putLong(name, value);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
TagCountPack.prototype.putString = function(name , value) {
|
|
116
|
+
this.fields.putString(name, value);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
TagCountPack.prototype.putFloat = function(name , value) {
|
|
120
|
+
this.fields.putFloat(name, value);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
TagCountPack.prototype.putDouble = function(name , value) {
|
|
124
|
+
this.fields.putDouble(name, value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
TagCountPack.prototype.putBoolean = function(name , value) {
|
|
128
|
+
this.fields.putBoolean(name, value);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
TagCountPack.prototype.get = function(name) {
|
|
132
|
+
return this.fields.get(name);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
TagCountPack.prototype.getField = function(key) {
|
|
136
|
+
return get(key);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
TagCountPack.prototype.getFloat = function(name) {
|
|
140
|
+
var val = this.fields.get(name);
|
|
141
|
+
if (val == null)
|
|
142
|
+
return 0;
|
|
143
|
+
switch (val.getValueType()) {
|
|
144
|
+
case ValueEnum.DOUBLE_SUMMARY:
|
|
145
|
+
case ValueEnum.LONG_SUMMARY:
|
|
146
|
+
return val.avg();
|
|
147
|
+
case ValueEnum.METRIC:
|
|
148
|
+
return val.avg();
|
|
149
|
+
default:
|
|
150
|
+
if (val instanceof Number) {
|
|
151
|
+
return val.doubleValue();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
TagCountPack.prototype.getLong = function(name) {
|
|
158
|
+
var val = this.fields.get(name);
|
|
159
|
+
if (val == null)
|
|
160
|
+
return 0;
|
|
161
|
+
switch (val.getValueType()) {
|
|
162
|
+
case ValueEnum.DOUBLE_SUMMARY:
|
|
163
|
+
case ValueEnum.LONG_SUMMARY:
|
|
164
|
+
return val.avg().longValue();
|
|
165
|
+
case ValueEnum.METRIC:
|
|
166
|
+
return val.avg();
|
|
167
|
+
default:
|
|
168
|
+
if (val instanceof Number) {
|
|
169
|
+
return val.longValue();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
TagCountPack.prototype.write = function(dout) {
|
|
176
|
+
Pack.prototype.write.call(this, dout);
|
|
177
|
+
dout.writeByte(1);
|
|
178
|
+
dout.writeText(this.category);
|
|
179
|
+
/*
|
|
180
|
+
if (this.tagHash == 0 && this.tags.size() > 0) {
|
|
181
|
+
var tagBytes = this.resetTagHash();
|
|
182
|
+
dout.writeDecimal(this.tagHash);
|
|
183
|
+
dout.write(tagBytes);
|
|
184
|
+
} else {
|
|
185
|
+
this.tagHash = 0;
|
|
186
|
+
dout.writeDecimal(this.tagHash);
|
|
187
|
+
dout.writeValue(this.tags);
|
|
188
|
+
}
|
|
189
|
+
*/
|
|
190
|
+
this.tagHash = 0;
|
|
191
|
+
dout.writeDecimal(this.tagHash);
|
|
192
|
+
dout.writeValue(this.tags);
|
|
193
|
+
dout.writeValue(this.fields);
|
|
194
|
+
if (this.originOid != null) {
|
|
195
|
+
dout.writeBoolean(true);
|
|
196
|
+
dout.writeInt(this.originOid);
|
|
197
|
+
} else {
|
|
198
|
+
dout.writeBoolean(false);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
TagCountPack.prototype.resetTagHash = function() {
|
|
203
|
+
var tagIO = new DataOutPutX();
|
|
204
|
+
tagIO.writeValue(this.tags);
|
|
205
|
+
var tagBytes = tagIO.toByteArray();
|
|
206
|
+
this.tagHash = HashUtil.hash(tagBytes);
|
|
207
|
+
return tagBytes;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
TagCountPack.prototype.read = function(din) {
|
|
211
|
+
var offset1 = din.getOffset();
|
|
212
|
+
Pack.prototype.read.call(this, din);
|
|
213
|
+
var ver = din.readByte();
|
|
214
|
+
this.category = din.readText();
|
|
215
|
+
this.tagHash = din.readDecimal();
|
|
216
|
+
this.tags = din.readValue();
|
|
217
|
+
this.fields = din.readValue();
|
|
218
|
+
if (ver == 0) {
|
|
219
|
+
this.read_size = din.getOffset() - offset1;
|
|
220
|
+
return this;
|
|
221
|
+
}
|
|
222
|
+
if (din.readBoolean()) {
|
|
223
|
+
this.originOid = din.readInt();
|
|
224
|
+
}
|
|
225
|
+
this.read_size = din.getOffset() - offset1;
|
|
226
|
+
return this;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
TagCountPack.prototype.isEmpty = () => {
|
|
230
|
+
return this.fields.isEmpty();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
TagCountPack.prototype.size = () => {
|
|
234
|
+
return this.fields.size();
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
TagCountPack.prototype.clear = () => {
|
|
238
|
+
this.fields.clear();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
TagCountPack.prototype.writeHead = () => {
|
|
242
|
+
var dout = new DataOutPutX();
|
|
243
|
+
|
|
244
|
+
dout.writeDecimal(this.time);
|
|
245
|
+
dout.writeDecimal(this.oid);
|
|
246
|
+
dout.writeDecimal(this.okind);
|
|
247
|
+
dout.writeDecimal(this.onode);
|
|
248
|
+
|
|
249
|
+
dout.writeDecimal(this.tagHash);
|
|
250
|
+
dout.writeDecimal(this.tagPos);
|
|
251
|
+
dout.writeDecimal(this.fieldPos);
|
|
252
|
+
return dout.toByteArray();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
TagCountPack.prototype.writeField = (info) => {
|
|
256
|
+
var dout = new DataOutPutX();
|
|
257
|
+
_writeMap(this.fields, info.field, dout);
|
|
258
|
+
return dout.toByteArray();
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
TagCountPack.prototype.writeTag = (info) => {
|
|
262
|
+
var dout = new DataOutPutX();
|
|
263
|
+
_writeMap(this.tags, info.tags, dout);
|
|
264
|
+
return dout.toByteArray();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
TagCountPack.prototype._readMap = ( map, info, din) => {
|
|
268
|
+
while (din.readBoolean()) {
|
|
269
|
+
var idx = din.readDecimal();
|
|
270
|
+
var value = din.readValue();
|
|
271
|
+
var key = info.getName(idx);
|
|
272
|
+
map.put(key, value);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
TagCountPack.prototype._writeMap = (fields, info, dout) => {
|
|
277
|
+
var en = fields.keys();
|
|
278
|
+
while (en.hasMoreElements()) {
|
|
279
|
+
var key = en.nextString();
|
|
280
|
+
var value = fields.get(key);
|
|
281
|
+
var idx = info.intern(key);
|
|
282
|
+
dout.writeBoolean(true);
|
|
283
|
+
dout.writeDecimal(idx);
|
|
284
|
+
dout.writeValue(value);
|
|
285
|
+
}
|
|
286
|
+
dout.writeBoolean(false);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
TagCountPack.prototype.readHead = ( b ) => {
|
|
290
|
+
var din = new DataInputX(b);
|
|
291
|
+
this.time = din.readDecimal();
|
|
292
|
+
this.oid = din.readDecimal();
|
|
293
|
+
this.okind = din.readDecimal();
|
|
294
|
+
this.onode = din.readDecimal();
|
|
295
|
+
|
|
296
|
+
this.tagHash = din.readDecimal();
|
|
297
|
+
this.tagPos = din.readDecimal();
|
|
298
|
+
this.fieldPos = din.readDecimal();
|
|
299
|
+
|
|
300
|
+
this.read_size += b.length;
|
|
301
|
+
|
|
302
|
+
return this;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
TagCountPack.prototype.readTag = (b, info) => {
|
|
306
|
+
var din = new DataInputX(b);
|
|
307
|
+
this._readMap(this.tags, info.tags, din);
|
|
308
|
+
|
|
309
|
+
this.read_size += b.length;
|
|
310
|
+
|
|
311
|
+
return this;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
TagCountPack.prototype.readField = (b, info) => {
|
|
315
|
+
var din = new DataInputX(b);
|
|
316
|
+
this._readMap(this.fields, info.field, din);
|
|
317
|
+
|
|
318
|
+
this.read_size += b.length;
|
|
319
|
+
|
|
320
|
+
return this;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
TagCountPack.prototype.getCategory = () => {
|
|
324
|
+
return this.category;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
TagCountPack.prototype.hasAnyField = (fields) => {
|
|
328
|
+
if (fields != null) {
|
|
329
|
+
fields.array.forEach(element => {
|
|
330
|
+
if(this.fields.get(element) != null) {
|
|
331
|
+
return true;
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
TagCountPack.prototype.createTagHash = (tags) => {
|
|
339
|
+
if (tags === null || tags.length === 0) return 0;
|
|
340
|
+
|
|
341
|
+
var tagIO = new DataOutPutX();
|
|
342
|
+
for(var k in tags){
|
|
343
|
+
let v = this.tags.get(t);
|
|
344
|
+
if (v != null) {
|
|
345
|
+
tagIO.writeValue(v);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
let tagBytes = tagIO.toByteArray();
|
|
349
|
+
return HashUtil.hash(tagBytes);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
TagCountPack.prototype.copyCompact = () => {
|
|
353
|
+
var p = new TagCountPack();
|
|
354
|
+
p.time = this.time;
|
|
355
|
+
p.pcode = this.pcode;
|
|
356
|
+
p.oid = this.oid;
|
|
357
|
+
p.okind = this.okind;
|
|
358
|
+
p.onode = this.onode;
|
|
359
|
+
p.category = this.category.intern();
|
|
360
|
+
p.tagHash = this.tagHash;
|
|
361
|
+
|
|
362
|
+
var en = this.tags.entries();
|
|
363
|
+
while (en.hasMoreElements()) {
|
|
364
|
+
let ent = en.nextElement();
|
|
365
|
+
let key = ent.getKey().intern();
|
|
366
|
+
let val = ent.getValue();
|
|
367
|
+
if (val.getValueType() == ValueEnum.TEXT) {
|
|
368
|
+
var t = val;
|
|
369
|
+
t.value = t.value.intern();
|
|
370
|
+
}
|
|
371
|
+
p.tags.put(key, val);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
p.fields = this.fields.copy();
|
|
375
|
+
return p;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
TagCountPack.prototype.isTag = (key, val) => {
|
|
379
|
+
return val.equals(this.getTagString(key));
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
TagCountPack.prototype.flat = () => {
|
|
383
|
+
var out = new MapValue();
|
|
384
|
+
out.put("time", this.time);
|
|
385
|
+
if (this.oid != 0) {
|
|
386
|
+
out.put("oid", this.oid);
|
|
387
|
+
}
|
|
388
|
+
if (this.okind != 0) {
|
|
389
|
+
out.put("okind", this.okind);
|
|
390
|
+
}
|
|
391
|
+
if (this.onode != 0) {
|
|
392
|
+
out.put("onode", this.onode);
|
|
393
|
+
}
|
|
394
|
+
out.putAll(this.tags);
|
|
395
|
+
out.putAll(this.fields);
|
|
396
|
+
return out;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
399
|
module.exports = TagCountPack;
|