dolphindb 3.0.27 → 3.0.29
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/browser.d.ts +2 -0
- package/browser.js +3 -0
- package/browser.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/test.js +12 -9
- package/test.js.map +1 -1
package/browser.d.ts
CHANGED
|
@@ -525,6 +525,8 @@ export interface StreamingMessage<TRows = any> extends StreamingParams {
|
|
|
525
525
|
rows: number;
|
|
526
526
|
/** 每次接收到的 data 组成的数组 An array of data received each time */
|
|
527
527
|
segments: DdbTableData<TRows>[];
|
|
528
|
+
/** 每次接收到的 obj 组成的数组 An array of obj received each time */
|
|
529
|
+
objs: DdbObj<DdbVectorObj[]>[];
|
|
528
530
|
};
|
|
529
531
|
/** 成功订阅后,后续推送过来的 message 解析错误,则会设置 error 并调用 handler
|
|
530
532
|
After successfully subscribed, if the subsequently pushed message is parsed incorrectly, the error will be set and the handler will be called. */
|
package/browser.js
CHANGED
|
@@ -3066,6 +3066,7 @@ export class DDB {
|
|
|
3066
3066
|
offset: 0,
|
|
3067
3067
|
rows: 0,
|
|
3068
3068
|
segments: [],
|
|
3069
|
+
objs: []
|
|
3069
3070
|
};
|
|
3070
3071
|
let schema;
|
|
3071
3072
|
console.log(t('订阅流表成功:'),
|
|
@@ -3111,6 +3112,7 @@ export class DDB {
|
|
|
3111
3112
|
};
|
|
3112
3113
|
win.rows += rows;
|
|
3113
3114
|
win.segments.push(data);
|
|
3115
|
+
win.objs.push(obj);
|
|
3114
3116
|
if (win.rows >= winsize * 2 && win.segments.length >= 2) {
|
|
3115
3117
|
let winsize_ = 0;
|
|
3116
3118
|
let i = win.segments.length - 1;
|
|
@@ -3118,6 +3120,7 @@ export class DDB {
|
|
|
3118
3120
|
for (; winsize_ < winsize; i--)
|
|
3119
3121
|
winsize_ += win.segments[i].data.length;
|
|
3120
3122
|
win.segments = win.segments.slice(i);
|
|
3123
|
+
win.objs = win.objs.slice(i);
|
|
3121
3124
|
win.offset += win.rows - winsize_;
|
|
3122
3125
|
win.rows = winsize_;
|
|
3123
3126
|
}
|