@uwdata/mosaic-inputs 0.3.0 → 0.3.3
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/mosaic-inputs.js +681 -737
- package/dist/mosaic-inputs.min.js +4 -4
- package/package.json +4 -4
package/dist/mosaic-inputs.js
CHANGED
|
@@ -131,7 +131,7 @@ function __asyncValues(o) {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
//
|
|
134
|
+
// ../core/node_modules/apache-arrow/util/buffer.mjs
|
|
135
135
|
var buffer_exports = {};
|
|
136
136
|
__export(buffer_exports, {
|
|
137
137
|
compareArrayLike: () => compareArrayLike,
|
|
@@ -172,28 +172,13 @@ __export(buffer_exports, {
|
|
|
172
172
|
toUint8ClampedArrayIterator: () => toUint8ClampedArrayIterator
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
//
|
|
175
|
+
// ../core/node_modules/apache-arrow/util/utf8.mjs
|
|
176
176
|
var decoder = new TextDecoder("utf-8");
|
|
177
177
|
var decodeUtf8 = (buffer) => decoder.decode(buffer);
|
|
178
178
|
var encoder = new TextEncoder();
|
|
179
179
|
var encodeUtf8 = (value) => encoder.encode(value);
|
|
180
180
|
|
|
181
|
-
//
|
|
182
|
-
var [BigIntCtor, BigIntAvailable] = (() => {
|
|
183
|
-
const BigIntUnavailableError = () => {
|
|
184
|
-
throw new Error("BigInt is not available in this environment");
|
|
185
|
-
};
|
|
186
|
-
function BigIntUnavailable() {
|
|
187
|
-
throw BigIntUnavailableError();
|
|
188
|
-
}
|
|
189
|
-
BigIntUnavailable.asIntN = () => {
|
|
190
|
-
throw BigIntUnavailableError();
|
|
191
|
-
};
|
|
192
|
-
BigIntUnavailable.asUintN = () => {
|
|
193
|
-
throw BigIntUnavailableError();
|
|
194
|
-
};
|
|
195
|
-
return typeof BigInt !== "undefined" ? [BigInt, true] : [BigIntUnavailable, false];
|
|
196
|
-
})();
|
|
181
|
+
// ../core/node_modules/apache-arrow/util/compat.mjs
|
|
197
182
|
var [BigInt64ArrayCtor, BigInt64ArrayAvailable] = (() => {
|
|
198
183
|
const BigInt64ArrayUnavailableError = () => {
|
|
199
184
|
throw new Error("BigInt64Array is not available in this environment");
|
|
@@ -276,7 +261,7 @@ var isFlatbuffersByteBuffer = (x) => {
|
|
|
276
261
|
return isObject(x) && isFunction(x["clear"]) && isFunction(x["bytes"]) && isFunction(x["position"]) && isFunction(x["setPosition"]) && isFunction(x["capacity"]) && isFunction(x["getBufferIdentifier"]) && isFunction(x["createLong"]);
|
|
277
262
|
};
|
|
278
263
|
|
|
279
|
-
//
|
|
264
|
+
// ../core/node_modules/apache-arrow/util/buffer.mjs
|
|
280
265
|
var SharedArrayBuf = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : ArrayBuffer;
|
|
281
266
|
function collapseContiguousByteRanges(chunks) {
|
|
282
267
|
const result = chunks[0] ? [chunks[0]] : [];
|
|
@@ -459,7 +444,7 @@ function compareArrayLike(a, b) {
|
|
|
459
444
|
return true;
|
|
460
445
|
}
|
|
461
446
|
|
|
462
|
-
//
|
|
447
|
+
// ../core/node_modules/apache-arrow/io/adapters.mjs
|
|
463
448
|
var adapters_default = {
|
|
464
449
|
fromIterable(source) {
|
|
465
450
|
return pump2(fromIterable(source));
|
|
@@ -703,7 +688,7 @@ function fromNodeStream(stream) {
|
|
|
703
688
|
});
|
|
704
689
|
}
|
|
705
690
|
|
|
706
|
-
//
|
|
691
|
+
// ../core/node_modules/apache-arrow/enum.mjs
|
|
707
692
|
var MetadataVersion;
|
|
708
693
|
(function(MetadataVersion3) {
|
|
709
694
|
MetadataVersion3[MetadataVersion3["V1"] = 0] = "V1";
|
|
@@ -805,7 +790,7 @@ var BufferType;
|
|
|
805
790
|
BufferType2[BufferType2["TYPE"] = 3] = "TYPE";
|
|
806
791
|
})(BufferType || (BufferType = {}));
|
|
807
792
|
|
|
808
|
-
//
|
|
793
|
+
// ../core/node_modules/apache-arrow/util/vector.mjs
|
|
809
794
|
var vector_exports = {};
|
|
810
795
|
__export(vector_exports, {
|
|
811
796
|
clampIndex: () => clampIndex,
|
|
@@ -813,7 +798,7 @@ __export(vector_exports, {
|
|
|
813
798
|
createElementComparator: () => createElementComparator
|
|
814
799
|
});
|
|
815
800
|
|
|
816
|
-
//
|
|
801
|
+
// ../core/node_modules/apache-arrow/util/pretty.mjs
|
|
817
802
|
var undf = void 0;
|
|
818
803
|
function valueToString(x) {
|
|
819
804
|
if (x === null) {
|
|
@@ -842,7 +827,7 @@ function valueToString(x) {
|
|
|
842
827
|
return ArrayBuffer.isView(x) ? `[${x}]` : JSON.stringify(x, (_, y) => typeof y === "bigint" ? `${y}` : y);
|
|
843
828
|
}
|
|
844
829
|
|
|
845
|
-
//
|
|
830
|
+
// ../core/node_modules/apache-arrow/util/bn.mjs
|
|
846
831
|
var bn_exports = {};
|
|
847
832
|
__export(bn_exports, {
|
|
848
833
|
BN: () => BN,
|
|
@@ -911,15 +896,8 @@ function bignumToNumber(bn) {
|
|
|
911
896
|
}
|
|
912
897
|
return number;
|
|
913
898
|
}
|
|
914
|
-
var bignumToString;
|
|
915
|
-
var bignumToBigInt;
|
|
916
|
-
if (!BigIntAvailable) {
|
|
917
|
-
bignumToString = decimalToString;
|
|
918
|
-
bignumToBigInt = bignumToString;
|
|
919
|
-
} else {
|
|
920
|
-
bignumToBigInt = (a) => a.byteLength === 8 ? new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0] : decimalToString(a);
|
|
921
|
-
bignumToString = (a) => a.byteLength === 8 ? `${new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0]}` : decimalToString(a);
|
|
922
|
-
}
|
|
899
|
+
var bignumToString = (a) => a.byteLength === 8 ? `${new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0]}` : decimalToString(a);
|
|
900
|
+
var bignumToBigInt = (a) => a.byteLength === 8 ? new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0] : decimalToString(a);
|
|
923
901
|
function decimalToString(a) {
|
|
924
902
|
let digits = "";
|
|
925
903
|
const base64 = new Uint32Array(2);
|
|
@@ -938,7 +916,7 @@ function decimalToString(a) {
|
|
|
938
916
|
} while (checks[0] || checks[1] || checks[2] || checks[3]);
|
|
939
917
|
return digits !== null && digits !== void 0 ? digits : `0`;
|
|
940
918
|
}
|
|
941
|
-
var BN = class {
|
|
919
|
+
var BN = class _BN {
|
|
942
920
|
/** @nocollapse */
|
|
943
921
|
static new(num, isSigned) {
|
|
944
922
|
switch (isSigned) {
|
|
@@ -972,11 +950,19 @@ var BN = class {
|
|
|
972
950
|
return new DecimalBigNum(num);
|
|
973
951
|
}
|
|
974
952
|
constructor(num, isSigned) {
|
|
975
|
-
return
|
|
953
|
+
return _BN.new(num, isSigned);
|
|
976
954
|
}
|
|
977
955
|
};
|
|
978
956
|
|
|
979
|
-
//
|
|
957
|
+
// ../core/node_modules/apache-arrow/util/bigint.mjs
|
|
958
|
+
function bigIntToNumber(number) {
|
|
959
|
+
if (typeof number === "bigint" && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
|
|
960
|
+
throw new TypeError(`${number} is not safe to convert to a number.`);
|
|
961
|
+
}
|
|
962
|
+
return Number(number);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
// ../core/node_modules/apache-arrow/type.mjs
|
|
980
966
|
var _a;
|
|
981
967
|
var _b;
|
|
982
968
|
var _c;
|
|
@@ -996,7 +982,7 @@ var _r;
|
|
|
996
982
|
var _s;
|
|
997
983
|
var _t;
|
|
998
984
|
var _u;
|
|
999
|
-
var DataType = class {
|
|
985
|
+
var DataType = class _DataType {
|
|
1000
986
|
/** @nocollapse */
|
|
1001
987
|
static isNull(x) {
|
|
1002
988
|
return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Null;
|
|
@@ -1071,11 +1057,11 @@ var DataType = class {
|
|
|
1071
1057
|
}
|
|
1072
1058
|
/** @nocollapse */
|
|
1073
1059
|
static isDenseUnion(x) {
|
|
1074
|
-
return
|
|
1060
|
+
return _DataType.isUnion(x) && x.mode === UnionMode.Dense;
|
|
1075
1061
|
}
|
|
1076
1062
|
/** @nocollapse */
|
|
1077
1063
|
static isSparseUnion(x) {
|
|
1078
|
-
return
|
|
1064
|
+
return _DataType.isUnion(x) && x.mode === UnionMode.Sparse;
|
|
1079
1065
|
}
|
|
1080
1066
|
get typeId() {
|
|
1081
1067
|
return Type.NONE;
|
|
@@ -1548,7 +1534,7 @@ var Dictionary = class extends DataType {
|
|
|
1548
1534
|
this.indices = indices;
|
|
1549
1535
|
this.dictionary = dictionary;
|
|
1550
1536
|
this.isOrdered = isOrdered || false;
|
|
1551
|
-
this.id = id == null ? getId() :
|
|
1537
|
+
this.id = id == null ? getId() : bigIntToNumber(id);
|
|
1552
1538
|
}
|
|
1553
1539
|
get typeId() {
|
|
1554
1540
|
return Type.Dictionary;
|
|
@@ -1594,7 +1580,7 @@ function strideForType(type) {
|
|
|
1594
1580
|
}
|
|
1595
1581
|
}
|
|
1596
1582
|
|
|
1597
|
-
//
|
|
1583
|
+
// ../core/node_modules/apache-arrow/visitor.mjs
|
|
1598
1584
|
var Visitor = class {
|
|
1599
1585
|
visitMany(nodes, ...args) {
|
|
1600
1586
|
return nodes.map((node, i) => this.visit(node, ...args.map((x) => x[i])));
|
|
@@ -1942,7 +1928,7 @@ Visitor.prototype.visitSparseUnion = null;
|
|
|
1942
1928
|
Visitor.prototype.visitIntervalDayTime = null;
|
|
1943
1929
|
Visitor.prototype.visitIntervalYearMonth = null;
|
|
1944
1930
|
|
|
1945
|
-
//
|
|
1931
|
+
// ../core/node_modules/apache-arrow/util/math.mjs
|
|
1946
1932
|
var math_exports = {};
|
|
1947
1933
|
__export(math_exports, {
|
|
1948
1934
|
float64ToUint16: () => float64ToUint16,
|
|
@@ -1987,7 +1973,7 @@ function float64ToUint16(d) {
|
|
|
1987
1973
|
return sign | expo | sigf & 65535;
|
|
1988
1974
|
}
|
|
1989
1975
|
|
|
1990
|
-
//
|
|
1976
|
+
// ../core/node_modules/apache-arrow/visitor/set.mjs
|
|
1991
1977
|
var SetVisitor = class extends Visitor {
|
|
1992
1978
|
};
|
|
1993
1979
|
function wrapSet(fn) {
|
|
@@ -2218,7 +2204,7 @@ SetVisitor.prototype.visitFixedSizeList = wrapSet(setFixedSizeList);
|
|
|
2218
2204
|
SetVisitor.prototype.visitMap = wrapSet(setMap);
|
|
2219
2205
|
var instance = new SetVisitor();
|
|
2220
2206
|
|
|
2221
|
-
//
|
|
2207
|
+
// ../core/node_modules/apache-arrow/row/struct.mjs
|
|
2222
2208
|
var kParent = Symbol.for("parent");
|
|
2223
2209
|
var kRowIndex = Symbol.for("rowIndex");
|
|
2224
2210
|
var StructRow = class {
|
|
@@ -2326,7 +2312,7 @@ var StructRowProxyHandler = class {
|
|
|
2326
2312
|
}
|
|
2327
2313
|
};
|
|
2328
2314
|
|
|
2329
|
-
//
|
|
2315
|
+
// ../core/node_modules/apache-arrow/visitor/get.mjs
|
|
2330
2316
|
var GetVisitor = class extends Visitor {
|
|
2331
2317
|
};
|
|
2332
2318
|
function wrapGet(fn) {
|
|
@@ -2493,7 +2479,7 @@ GetVisitor.prototype.visitFixedSizeList = wrapGet(getFixedSizeList);
|
|
|
2493
2479
|
GetVisitor.prototype.visitMap = wrapGet(getMap);
|
|
2494
2480
|
var instance2 = new GetVisitor();
|
|
2495
2481
|
|
|
2496
|
-
//
|
|
2482
|
+
// ../core/node_modules/apache-arrow/row/map.mjs
|
|
2497
2483
|
var kKeys = Symbol.for("keys");
|
|
2498
2484
|
var kVals = Symbol.for("vals");
|
|
2499
2485
|
var MapRow = class {
|
|
@@ -2603,7 +2589,7 @@ Object.defineProperties(MapRow.prototype, {
|
|
|
2603
2589
|
[kVals]: { writable: true, enumerable: false, configurable: false, value: null }
|
|
2604
2590
|
});
|
|
2605
2591
|
|
|
2606
|
-
//
|
|
2592
|
+
// ../core/node_modules/apache-arrow/util/vector.mjs
|
|
2607
2593
|
function clampIndex(source, index, then) {
|
|
2608
2594
|
const length2 = source.length;
|
|
2609
2595
|
const adjust = index > -1 ? index : length2 + index % length2;
|
|
@@ -2745,7 +2731,7 @@ function compareObject(comparators, obj, keys) {
|
|
|
2745
2731
|
return false;
|
|
2746
2732
|
}
|
|
2747
2733
|
|
|
2748
|
-
//
|
|
2734
|
+
// ../core/node_modules/apache-arrow/util/bit.mjs
|
|
2749
2735
|
var bit_exports = {};
|
|
2750
2736
|
__export(bit_exports, {
|
|
2751
2737
|
BitIterator: () => BitIterator,
|
|
@@ -2868,34 +2854,9 @@ function popcnt_uint32(uint32) {
|
|
|
2868
2854
|
return (i + (i >>> 4) & 252645135) * 16843009 >>> 24;
|
|
2869
2855
|
}
|
|
2870
2856
|
|
|
2871
|
-
//
|
|
2857
|
+
// ../core/node_modules/apache-arrow/data.mjs
|
|
2872
2858
|
var kUnknownNullCount = -1;
|
|
2873
|
-
var Data = class {
|
|
2874
|
-
constructor(type, offset, length2, nullCount, buffers, children = [], dictionary) {
|
|
2875
|
-
this.type = type;
|
|
2876
|
-
this.children = children;
|
|
2877
|
-
this.dictionary = dictionary;
|
|
2878
|
-
this.offset = Math.floor(Math.max(offset || 0, 0));
|
|
2879
|
-
this.length = Math.floor(Math.max(length2 || 0, 0));
|
|
2880
|
-
this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
|
|
2881
|
-
let buffer;
|
|
2882
|
-
if (buffers instanceof Data) {
|
|
2883
|
-
this.stride = buffers.stride;
|
|
2884
|
-
this.values = buffers.values;
|
|
2885
|
-
this.typeIds = buffers.typeIds;
|
|
2886
|
-
this.nullBitmap = buffers.nullBitmap;
|
|
2887
|
-
this.valueOffsets = buffers.valueOffsets;
|
|
2888
|
-
} else {
|
|
2889
|
-
this.stride = strideForType(type);
|
|
2890
|
-
if (buffers) {
|
|
2891
|
-
(buffer = buffers[0]) && (this.valueOffsets = buffer);
|
|
2892
|
-
(buffer = buffers[1]) && (this.values = buffer);
|
|
2893
|
-
(buffer = buffers[2]) && (this.nullBitmap = buffer);
|
|
2894
|
-
(buffer = buffers[3]) && (this.typeIds = buffer);
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
|
|
2898
|
-
}
|
|
2859
|
+
var Data = class _Data {
|
|
2899
2860
|
get typeId() {
|
|
2900
2861
|
return this.type.typeId;
|
|
2901
2862
|
}
|
|
@@ -2922,6 +2883,31 @@ var Data = class {
|
|
|
2922
2883
|
}
|
|
2923
2884
|
return nullCount;
|
|
2924
2885
|
}
|
|
2886
|
+
constructor(type, offset, length2, nullCount, buffers, children = [], dictionary) {
|
|
2887
|
+
this.type = type;
|
|
2888
|
+
this.children = children;
|
|
2889
|
+
this.dictionary = dictionary;
|
|
2890
|
+
this.offset = Math.floor(Math.max(offset || 0, 0));
|
|
2891
|
+
this.length = Math.floor(Math.max(length2 || 0, 0));
|
|
2892
|
+
this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
|
|
2893
|
+
let buffer;
|
|
2894
|
+
if (buffers instanceof _Data) {
|
|
2895
|
+
this.stride = buffers.stride;
|
|
2896
|
+
this.values = buffers.values;
|
|
2897
|
+
this.typeIds = buffers.typeIds;
|
|
2898
|
+
this.nullBitmap = buffers.nullBitmap;
|
|
2899
|
+
this.valueOffsets = buffers.valueOffsets;
|
|
2900
|
+
} else {
|
|
2901
|
+
this.stride = strideForType(type);
|
|
2902
|
+
if (buffers) {
|
|
2903
|
+
(buffer = buffers[0]) && (this.valueOffsets = buffer);
|
|
2904
|
+
(buffer = buffers[1]) && (this.values = buffer);
|
|
2905
|
+
(buffer = buffers[2]) && (this.nullBitmap = buffer);
|
|
2906
|
+
(buffer = buffers[3]) && (this.typeIds = buffer);
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
|
|
2910
|
+
}
|
|
2925
2911
|
getValid(index) {
|
|
2926
2912
|
if (this.nullable && this.nullCount > 0) {
|
|
2927
2913
|
const pos = this.offset + index;
|
|
@@ -2946,7 +2932,7 @@ var Data = class {
|
|
|
2946
2932
|
return value;
|
|
2947
2933
|
}
|
|
2948
2934
|
clone(type = this.type, offset = this.offset, length2 = this.length, nullCount = this._nullCount, buffers = this, children = this.children) {
|
|
2949
|
-
return new
|
|
2935
|
+
return new _Data(type, offset, length2, nullCount, buffers, children, this.dictionary);
|
|
2950
2936
|
}
|
|
2951
2937
|
slice(offset, length2) {
|
|
2952
2938
|
const { stride, typeId, children } = this;
|
|
@@ -2990,7 +2976,7 @@ var Data = class {
|
|
|
2990
2976
|
}
|
|
2991
2977
|
};
|
|
2992
2978
|
Data.prototype.children = Object.freeze([]);
|
|
2993
|
-
var MakeDataVisitor = class extends Visitor {
|
|
2979
|
+
var MakeDataVisitor = class _MakeDataVisitor extends Visitor {
|
|
2994
2980
|
visit(props) {
|
|
2995
2981
|
return this.getVisitFn(props["type"]).call(this, props);
|
|
2996
2982
|
}
|
|
@@ -3098,7 +3084,7 @@ var MakeDataVisitor = class extends Visitor {
|
|
|
3098
3084
|
const { ["type"]: type, ["offset"]: offset = 0 } = props;
|
|
3099
3085
|
const nullBitmap = toUint8Array(props["nullBitmap"]);
|
|
3100
3086
|
const data = toArrayBufferView(type.indices.ArrayType, props["data"]);
|
|
3101
|
-
const { ["dictionary"]: dictionary = new Vector([new
|
|
3087
|
+
const { ["dictionary"]: dictionary = new Vector([new _MakeDataVisitor().visit({ type: type.dictionary })]) } = props;
|
|
3102
3088
|
const { ["length"]: length2 = data.length, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
|
|
3103
3089
|
return new Data(type, offset, length2, nullCount, [void 0, data, nullBitmap], [], dictionary);
|
|
3104
3090
|
}
|
|
@@ -3110,13 +3096,13 @@ var MakeDataVisitor = class extends Visitor {
|
|
|
3110
3096
|
return new Data(type, offset, length2, nullCount, [void 0, data, nullBitmap]);
|
|
3111
3097
|
}
|
|
3112
3098
|
visitFixedSizeList(props) {
|
|
3113
|
-
const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new
|
|
3099
|
+
const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.valueType }) } = props;
|
|
3114
3100
|
const nullBitmap = toUint8Array(props["nullBitmap"]);
|
|
3115
3101
|
const { ["length"]: length2 = child.length / strideForType(type), ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
|
|
3116
3102
|
return new Data(type, offset, length2, nullCount, [void 0, void 0, nullBitmap], [child]);
|
|
3117
3103
|
}
|
|
3118
3104
|
visitMap(props) {
|
|
3119
|
-
const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new
|
|
3105
|
+
const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.childType }) } = props;
|
|
3120
3106
|
const nullBitmap = toUint8Array(props["nullBitmap"]);
|
|
3121
3107
|
const valueOffsets = toInt32Array(props["valueOffsets"]);
|
|
3122
3108
|
const { ["length"]: length2 = valueOffsets.length - 1, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
|
|
@@ -3127,7 +3113,7 @@ function makeData(props) {
|
|
|
3127
3113
|
return new MakeDataVisitor().visit(props);
|
|
3128
3114
|
}
|
|
3129
3115
|
|
|
3130
|
-
//
|
|
3116
|
+
// ../core/node_modules/apache-arrow/util/chunk.mjs
|
|
3131
3117
|
var ChunkedIterator = class {
|
|
3132
3118
|
constructor(numChunks = 0, getChunkIterator) {
|
|
3133
3119
|
this.numChunks = numChunks;
|
|
@@ -3243,7 +3229,7 @@ function wrapChunkedIndexOf(indexOf) {
|
|
|
3243
3229
|
};
|
|
3244
3230
|
}
|
|
3245
3231
|
|
|
3246
|
-
//
|
|
3232
|
+
// ../core/node_modules/apache-arrow/visitor/indexof.mjs
|
|
3247
3233
|
var IndexOfVisitor = class extends Visitor {
|
|
3248
3234
|
};
|
|
3249
3235
|
function nullIndexOf(data, searchElement) {
|
|
@@ -3334,7 +3320,7 @@ IndexOfVisitor.prototype.visitFixedSizeList = indexOfValue;
|
|
|
3334
3320
|
IndexOfVisitor.prototype.visitMap = indexOfValue;
|
|
3335
3321
|
var instance3 = new IndexOfVisitor();
|
|
3336
3322
|
|
|
3337
|
-
//
|
|
3323
|
+
// ../core/node_modules/apache-arrow/visitor/iterator.mjs
|
|
3338
3324
|
var IteratorVisitor = class extends Visitor {
|
|
3339
3325
|
};
|
|
3340
3326
|
function vectorIterator(vector) {
|
|
@@ -3416,7 +3402,7 @@ IteratorVisitor.prototype.visitFixedSizeList = vectorIterator;
|
|
|
3416
3402
|
IteratorVisitor.prototype.visitMap = vectorIterator;
|
|
3417
3403
|
var instance4 = new IteratorVisitor();
|
|
3418
3404
|
|
|
3419
|
-
//
|
|
3405
|
+
// ../core/node_modules/apache-arrow/visitor/bytelength.mjs
|
|
3420
3406
|
var sum = (x, y) => x + y;
|
|
3421
3407
|
var GetByteLengthVisitor = class extends Visitor {
|
|
3422
3408
|
visitNull(____, _) {
|
|
@@ -3507,14 +3493,14 @@ GetByteLengthVisitor.prototype.visitDenseUnion = getDenseUnionByteLength;
|
|
|
3507
3493
|
GetByteLengthVisitor.prototype.visitSparseUnion = getSparseUnionByteLength;
|
|
3508
3494
|
var instance5 = new GetByteLengthVisitor();
|
|
3509
3495
|
|
|
3510
|
-
//
|
|
3496
|
+
// ../core/node_modules/apache-arrow/vector.mjs
|
|
3511
3497
|
var _a2;
|
|
3512
3498
|
var visitorsByTypeId = {};
|
|
3513
3499
|
var vectorPrototypesByTypeId = {};
|
|
3514
|
-
var Vector = class {
|
|
3500
|
+
var Vector = class _Vector {
|
|
3515
3501
|
constructor(input2) {
|
|
3516
3502
|
var _b2, _c2, _d2;
|
|
3517
|
-
const data = input2[0] instanceof
|
|
3503
|
+
const data = input2[0] instanceof _Vector ? input2.flatMap((x) => x.data) : input2;
|
|
3518
3504
|
if (data.length === 0 || data.some((x) => !(x instanceof Data))) {
|
|
3519
3505
|
throw new TypeError("Vector constructor expects an Array of Data instances.");
|
|
3520
3506
|
}
|
|
@@ -3638,7 +3624,7 @@ var Vector = class {
|
|
|
3638
3624
|
* @param others Additional Vectors to add to the end of this Vector.
|
|
3639
3625
|
*/
|
|
3640
3626
|
concat(...others) {
|
|
3641
|
-
return new
|
|
3627
|
+
return new _Vector(this.data.concat(others.flatMap((x) => x.data).flat(Number.POSITIVE_INFINITY)));
|
|
3642
3628
|
}
|
|
3643
3629
|
/**
|
|
3644
3630
|
* Return a zero-copy sub-section of this Vector.
|
|
@@ -3646,7 +3632,7 @@ var Vector = class {
|
|
|
3646
3632
|
* @param end The end of the specified portion of the Vector. This is exclusive of the element at the index 'end'.
|
|
3647
3633
|
*/
|
|
3648
3634
|
slice(begin, end) {
|
|
3649
|
-
return new
|
|
3635
|
+
return new _Vector(clampRange(this, begin, end, ({ data, _offsets }, begin2, end2) => sliceChunks(data, _offsets, begin2, end2)));
|
|
3650
3636
|
}
|
|
3651
3637
|
toJSON() {
|
|
3652
3638
|
return [...this];
|
|
@@ -3707,7 +3693,7 @@ var Vector = class {
|
|
|
3707
3693
|
*/
|
|
3708
3694
|
getChildAt(index) {
|
|
3709
3695
|
if (index > -1 && index < this.numChildren) {
|
|
3710
|
-
return new
|
|
3696
|
+
return new _Vector(this.data.map(({ children }) => children[index]));
|
|
3711
3697
|
}
|
|
3712
3698
|
return null;
|
|
3713
3699
|
}
|
|
@@ -3736,7 +3722,7 @@ var Vector = class {
|
|
|
3736
3722
|
cloned.dictionary = dictionary;
|
|
3737
3723
|
return cloned;
|
|
3738
3724
|
});
|
|
3739
|
-
return new
|
|
3725
|
+
return new _Vector(newData);
|
|
3740
3726
|
}
|
|
3741
3727
|
return new MemoizedVector(this);
|
|
3742
3728
|
}
|
|
@@ -3754,7 +3740,7 @@ var Vector = class {
|
|
|
3754
3740
|
newData2.dictionary = dictionary;
|
|
3755
3741
|
return newData2;
|
|
3756
3742
|
});
|
|
3757
|
-
return new
|
|
3743
|
+
return new _Vector(newData);
|
|
3758
3744
|
}
|
|
3759
3745
|
return this;
|
|
3760
3746
|
}
|
|
@@ -3787,7 +3773,7 @@ Vector[_a2] = ((proto) => {
|
|
|
3787
3773
|
}
|
|
3788
3774
|
return "Vector";
|
|
3789
3775
|
})(Vector.prototype);
|
|
3790
|
-
var MemoizedVector = class extends Vector {
|
|
3776
|
+
var MemoizedVector = class _MemoizedVector extends Vector {
|
|
3791
3777
|
constructor(vector) {
|
|
3792
3778
|
super(vector.data);
|
|
3793
3779
|
const get = this.get;
|
|
@@ -3812,7 +3798,7 @@ var MemoizedVector = class extends Vector {
|
|
|
3812
3798
|
}
|
|
3813
3799
|
});
|
|
3814
3800
|
Object.defineProperty(this, "slice", {
|
|
3815
|
-
value: (begin, end) => new
|
|
3801
|
+
value: (begin, end) => new _MemoizedVector(slice.call(this, begin, end))
|
|
3816
3802
|
});
|
|
3817
3803
|
Object.defineProperty(this, "isMemoized", { value: true });
|
|
3818
3804
|
Object.defineProperty(this, "unmemoize", {
|
|
@@ -3824,7 +3810,7 @@ var MemoizedVector = class extends Vector {
|
|
|
3824
3810
|
}
|
|
3825
3811
|
};
|
|
3826
3812
|
|
|
3827
|
-
//
|
|
3813
|
+
// ../core/node_modules/apache-arrow/builder/valid.mjs
|
|
3828
3814
|
function createIsValidFunction(nullValues) {
|
|
3829
3815
|
if (!nullValues || nullValues.length <= 0) {
|
|
3830
3816
|
return function isValid(value) {
|
|
@@ -3850,13 +3836,11 @@ return true;`);
|
|
|
3850
3836
|
function valueToCase(x) {
|
|
3851
3837
|
if (typeof x !== "bigint") {
|
|
3852
3838
|
return valueToString(x);
|
|
3853
|
-
} else if (BigIntAvailable) {
|
|
3854
|
-
return `${valueToString(x)}n`;
|
|
3855
3839
|
}
|
|
3856
|
-
return
|
|
3840
|
+
return `${valueToString(x)}n`;
|
|
3857
3841
|
}
|
|
3858
3842
|
|
|
3859
|
-
//
|
|
3843
|
+
// ../core/node_modules/apache-arrow/builder/buffer.mjs
|
|
3860
3844
|
var roundLengthUpToNearest64Bytes = (len, BPE) => (Math.ceil(len) * BPE + 63 & ~63 || 64) / BPE;
|
|
3861
3845
|
var sliceOrExtendArray = (arr, len = 0) => arr.length >= len ? arr.subarray(0, len) : memcpy(new arr.constructor(len), arr, 0);
|
|
3862
3846
|
var BufferBuilder = class {
|
|
@@ -3970,8 +3954,18 @@ var OffsetsBufferBuilder = class extends DataBufferBuilder {
|
|
|
3970
3954
|
}
|
|
3971
3955
|
};
|
|
3972
3956
|
|
|
3973
|
-
//
|
|
3957
|
+
// ../core/node_modules/apache-arrow/builder.mjs
|
|
3974
3958
|
var Builder = class {
|
|
3959
|
+
/** @nocollapse */
|
|
3960
|
+
// @ts-ignore
|
|
3961
|
+
static throughNode(options) {
|
|
3962
|
+
throw new Error(`"throughNode" not available in this environment`);
|
|
3963
|
+
}
|
|
3964
|
+
/** @nocollapse */
|
|
3965
|
+
// @ts-ignore
|
|
3966
|
+
static throughDOM(options) {
|
|
3967
|
+
throw new Error(`"throughDOM" not available in this environment`);
|
|
3968
|
+
}
|
|
3975
3969
|
/**
|
|
3976
3970
|
* Construct a builder with the given Arrow DataType with optional null values,
|
|
3977
3971
|
* which will be interpreted as "null" when set or appended to the `Builder`.
|
|
@@ -3989,16 +3983,6 @@ var Builder = class {
|
|
|
3989
3983
|
this._isValid = createIsValidFunction(nulls);
|
|
3990
3984
|
}
|
|
3991
3985
|
}
|
|
3992
|
-
/** @nocollapse */
|
|
3993
|
-
// @ts-ignore
|
|
3994
|
-
static throughNode(options) {
|
|
3995
|
-
throw new Error(`"throughNode" not available in this environment`);
|
|
3996
|
-
}
|
|
3997
|
-
/** @nocollapse */
|
|
3998
|
-
// @ts-ignore
|
|
3999
|
-
static throughDOM(options) {
|
|
4000
|
-
throw new Error(`"throughDOM" not available in this environment`);
|
|
4001
|
-
}
|
|
4002
3986
|
/**
|
|
4003
3987
|
* Flush the `Builder` and return a `Vector<T>`.
|
|
4004
3988
|
* @returns {Vector<T>} A `Vector<T>` of the flushed values.
|
|
@@ -4237,7 +4221,7 @@ var VariableWidthBuilder = class extends Builder {
|
|
|
4237
4221
|
}
|
|
4238
4222
|
};
|
|
4239
4223
|
|
|
4240
|
-
//
|
|
4224
|
+
// ../core/node_modules/apache-arrow/fb/block.mjs
|
|
4241
4225
|
var Block = class {
|
|
4242
4226
|
constructor() {
|
|
4243
4227
|
this.bb = null;
|
|
@@ -4272,65 +4256,48 @@ var Block = class {
|
|
|
4272
4256
|
}
|
|
4273
4257
|
static createBlock(builder, offset, metaDataLength, bodyLength) {
|
|
4274
4258
|
builder.prep(8, 24);
|
|
4275
|
-
builder.writeInt64(bodyLength);
|
|
4259
|
+
builder.writeInt64(BigInt(bodyLength !== null && bodyLength !== void 0 ? bodyLength : 0));
|
|
4276
4260
|
builder.pad(4);
|
|
4277
4261
|
builder.writeInt32(metaDataLength);
|
|
4278
|
-
builder.writeInt64(offset);
|
|
4262
|
+
builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
|
|
4279
4263
|
return builder.offset();
|
|
4280
4264
|
}
|
|
4281
4265
|
};
|
|
4282
4266
|
|
|
4283
|
-
//
|
|
4267
|
+
// ../core/node_modules/flatbuffers/mjs/constants.js
|
|
4284
4268
|
var SIZEOF_SHORT = 2;
|
|
4285
4269
|
var SIZEOF_INT = 4;
|
|
4286
4270
|
var FILE_IDENTIFIER_LENGTH = 4;
|
|
4287
4271
|
var SIZE_PREFIX_LENGTH = 4;
|
|
4288
4272
|
|
|
4289
|
-
//
|
|
4273
|
+
// ../core/node_modules/flatbuffers/mjs/utils.js
|
|
4290
4274
|
var int32 = new Int32Array(2);
|
|
4291
4275
|
var float32 = new Float32Array(int32.buffer);
|
|
4292
4276
|
var float64 = new Float64Array(int32.buffer);
|
|
4293
4277
|
var isLittleEndian = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
4294
4278
|
|
|
4295
|
-
//
|
|
4296
|
-
var Long = class {
|
|
4297
|
-
constructor(low, high) {
|
|
4298
|
-
this.low = low | 0;
|
|
4299
|
-
this.high = high | 0;
|
|
4300
|
-
}
|
|
4301
|
-
static create(low, high) {
|
|
4302
|
-
return low == 0 && high == 0 ? Long.ZERO : new Long(low, high);
|
|
4303
|
-
}
|
|
4304
|
-
toFloat64() {
|
|
4305
|
-
return (this.low >>> 0) + this.high * 4294967296;
|
|
4306
|
-
}
|
|
4307
|
-
equals(other) {
|
|
4308
|
-
return this.low == other.low && this.high == other.high;
|
|
4309
|
-
}
|
|
4310
|
-
};
|
|
4311
|
-
Long.ZERO = new Long(0, 0);
|
|
4312
|
-
|
|
4313
|
-
// ../../node_modules/flatbuffers/mjs/encoding.js
|
|
4279
|
+
// ../core/node_modules/flatbuffers/mjs/encoding.js
|
|
4314
4280
|
var Encoding;
|
|
4315
4281
|
(function(Encoding2) {
|
|
4316
4282
|
Encoding2[Encoding2["UTF8_BYTES"] = 1] = "UTF8_BYTES";
|
|
4317
4283
|
Encoding2[Encoding2["UTF16_STRING"] = 2] = "UTF16_STRING";
|
|
4318
4284
|
})(Encoding || (Encoding = {}));
|
|
4319
4285
|
|
|
4320
|
-
//
|
|
4321
|
-
var ByteBuffer = class {
|
|
4286
|
+
// ../core/node_modules/flatbuffers/mjs/byte-buffer.js
|
|
4287
|
+
var ByteBuffer = class _ByteBuffer {
|
|
4322
4288
|
/**
|
|
4323
4289
|
* Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
|
|
4324
4290
|
*/
|
|
4325
4291
|
constructor(bytes_) {
|
|
4326
4292
|
this.bytes_ = bytes_;
|
|
4327
4293
|
this.position_ = 0;
|
|
4294
|
+
this.text_decoder_ = new TextDecoder();
|
|
4328
4295
|
}
|
|
4329
4296
|
/**
|
|
4330
4297
|
* Create and allocate a new ByteBuffer with a given size.
|
|
4331
4298
|
*/
|
|
4332
4299
|
static allocate(byte_size) {
|
|
4333
|
-
return new
|
|
4300
|
+
return new _ByteBuffer(new Uint8Array(byte_size));
|
|
4334
4301
|
}
|
|
4335
4302
|
clear() {
|
|
4336
4303
|
this.position_ = 0;
|
|
@@ -4378,10 +4345,10 @@ var ByteBuffer = class {
|
|
|
4378
4345
|
return this.readInt32(offset) >>> 0;
|
|
4379
4346
|
}
|
|
4380
4347
|
readInt64(offset) {
|
|
4381
|
-
return
|
|
4348
|
+
return BigInt.asIntN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
|
|
4382
4349
|
}
|
|
4383
4350
|
readUint64(offset) {
|
|
4384
|
-
return
|
|
4351
|
+
return BigInt.asUintN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
|
|
4385
4352
|
}
|
|
4386
4353
|
readFloat32(offset) {
|
|
4387
4354
|
int32[0] = this.readInt32(offset);
|
|
@@ -4419,12 +4386,12 @@ var ByteBuffer = class {
|
|
|
4419
4386
|
this.bytes_[offset + 3] = value >> 24;
|
|
4420
4387
|
}
|
|
4421
4388
|
writeInt64(offset, value) {
|
|
4422
|
-
this.writeInt32(offset, value
|
|
4423
|
-
this.writeInt32(offset + 4, value
|
|
4389
|
+
this.writeInt32(offset, Number(BigInt.asIntN(32, value)));
|
|
4390
|
+
this.writeInt32(offset + 4, Number(BigInt.asIntN(32, value >> BigInt(32))));
|
|
4424
4391
|
}
|
|
4425
4392
|
writeUint64(offset, value) {
|
|
4426
|
-
this.writeUint32(offset, value
|
|
4427
|
-
this.writeUint32(offset + 4, value
|
|
4393
|
+
this.writeUint32(offset, Number(BigInt.asUintN(32, value)));
|
|
4394
|
+
this.writeUint32(offset + 4, Number(BigInt.asUintN(32, value >> BigInt(32))));
|
|
4428
4395
|
}
|
|
4429
4396
|
writeFloat32(offset, value) {
|
|
4430
4397
|
float32[0] = value;
|
|
@@ -4470,10 +4437,9 @@ var ByteBuffer = class {
|
|
|
4470
4437
|
* Create a JavaScript string from UTF-8 data stored inside the FlatBuffer.
|
|
4471
4438
|
* This allocates a new string and converts to wide chars upon each access.
|
|
4472
4439
|
*
|
|
4473
|
-
* To avoid the conversion to
|
|
4474
|
-
*
|
|
4475
|
-
*
|
|
4476
|
-
* FlatBuffer later on.
|
|
4440
|
+
* To avoid the conversion to string, pass Encoding.UTF8_BYTES as the
|
|
4441
|
+
* "optionalEncoding" argument. This is useful for avoiding conversion when
|
|
4442
|
+
* the data will just be packaged back up in another FlatBuffer later on.
|
|
4477
4443
|
*
|
|
4478
4444
|
* @param offset
|
|
4479
4445
|
* @param opt_encoding Defaults to UTF16_STRING
|
|
@@ -4481,39 +4447,12 @@ var ByteBuffer = class {
|
|
|
4481
4447
|
__string(offset, opt_encoding) {
|
|
4482
4448
|
offset += this.readInt32(offset);
|
|
4483
4449
|
const length2 = this.readInt32(offset);
|
|
4484
|
-
let result = "";
|
|
4485
|
-
let i = 0;
|
|
4486
4450
|
offset += SIZEOF_INT;
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
const a = this.readUint8(offset + i++);
|
|
4493
|
-
if (a < 192) {
|
|
4494
|
-
codePoint = a;
|
|
4495
|
-
} else {
|
|
4496
|
-
const b = this.readUint8(offset + i++);
|
|
4497
|
-
if (a < 224) {
|
|
4498
|
-
codePoint = (a & 31) << 6 | b & 63;
|
|
4499
|
-
} else {
|
|
4500
|
-
const c = this.readUint8(offset + i++);
|
|
4501
|
-
if (a < 240) {
|
|
4502
|
-
codePoint = (a & 15) << 12 | (b & 63) << 6 | c & 63;
|
|
4503
|
-
} else {
|
|
4504
|
-
const d = this.readUint8(offset + i++);
|
|
4505
|
-
codePoint = (a & 7) << 18 | (b & 63) << 12 | (c & 63) << 6 | d & 63;
|
|
4506
|
-
}
|
|
4507
|
-
}
|
|
4508
|
-
}
|
|
4509
|
-
if (codePoint < 65536) {
|
|
4510
|
-
result += String.fromCharCode(codePoint);
|
|
4511
|
-
} else {
|
|
4512
|
-
codePoint -= 65536;
|
|
4513
|
-
result += String.fromCharCode((codePoint >> 10) + 55296, (codePoint & (1 << 10) - 1) + 56320);
|
|
4514
|
-
}
|
|
4515
|
-
}
|
|
4516
|
-
return result;
|
|
4451
|
+
const utf8bytes = this.bytes_.subarray(offset, offset + length2);
|
|
4452
|
+
if (opt_encoding === Encoding.UTF8_BYTES)
|
|
4453
|
+
return utf8bytes;
|
|
4454
|
+
else
|
|
4455
|
+
return this.text_decoder_.decode(utf8bytes);
|
|
4517
4456
|
}
|
|
4518
4457
|
/**
|
|
4519
4458
|
* Handle unions that can contain string as its member, if a Table-derived type then initialize it,
|
|
@@ -4557,20 +4496,15 @@ var ByteBuffer = class {
|
|
|
4557
4496
|
}
|
|
4558
4497
|
return true;
|
|
4559
4498
|
}
|
|
4560
|
-
/**
|
|
4561
|
-
* A helper function to avoid generated code depending on this file directly.
|
|
4562
|
-
*/
|
|
4563
|
-
createLong(low, high) {
|
|
4564
|
-
return Long.create(low, high);
|
|
4565
|
-
}
|
|
4566
4499
|
/**
|
|
4567
4500
|
* A helper function for generating list for obj api
|
|
4568
4501
|
*/
|
|
4569
4502
|
createScalarList(listAccessor, listLength) {
|
|
4570
4503
|
const ret = [];
|
|
4571
4504
|
for (let i = 0; i < listLength; ++i) {
|
|
4572
|
-
|
|
4573
|
-
|
|
4505
|
+
const val = listAccessor(i);
|
|
4506
|
+
if (val !== null) {
|
|
4507
|
+
ret.push(val);
|
|
4574
4508
|
}
|
|
4575
4509
|
}
|
|
4576
4510
|
return ret;
|
|
@@ -4593,8 +4527,8 @@ var ByteBuffer = class {
|
|
|
4593
4527
|
}
|
|
4594
4528
|
};
|
|
4595
4529
|
|
|
4596
|
-
//
|
|
4597
|
-
var Builder2 = class {
|
|
4530
|
+
// ../core/node_modules/flatbuffers/mjs/builder.js
|
|
4531
|
+
var Builder2 = class _Builder {
|
|
4598
4532
|
/**
|
|
4599
4533
|
* Create a FlatBufferBuilder.
|
|
4600
4534
|
*/
|
|
@@ -4608,6 +4542,7 @@ var Builder2 = class {
|
|
|
4608
4542
|
this.vector_num_elems = 0;
|
|
4609
4543
|
this.force_defaults = false;
|
|
4610
4544
|
this.string_maps = null;
|
|
4545
|
+
this.text_encoder = new TextEncoder();
|
|
4611
4546
|
let initial_size;
|
|
4612
4547
|
if (!opt_initial_size) {
|
|
4613
4548
|
initial_size = 1024;
|
|
@@ -4671,7 +4606,7 @@ var Builder2 = class {
|
|
|
4671
4606
|
const align_size = ~(this.bb.capacity() - this.space + additional_bytes) + 1 & size - 1;
|
|
4672
4607
|
while (this.space < align_size + size + additional_bytes) {
|
|
4673
4608
|
const old_buf_size = this.bb.capacity();
|
|
4674
|
-
this.bb =
|
|
4609
|
+
this.bb = _Builder.growByteBuffer(this.bb);
|
|
4675
4610
|
this.space += this.bb.capacity() - old_buf_size;
|
|
4676
4611
|
}
|
|
4677
4612
|
this.pad(align_size);
|
|
@@ -4701,7 +4636,7 @@ var Builder2 = class {
|
|
|
4701
4636
|
}
|
|
4702
4637
|
/**
|
|
4703
4638
|
* Add an `int8` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4704
|
-
* @param value The `int8` to add the
|
|
4639
|
+
* @param value The `int8` to add the buffer.
|
|
4705
4640
|
*/
|
|
4706
4641
|
addInt8(value) {
|
|
4707
4642
|
this.prep(1, 0);
|
|
@@ -4709,7 +4644,7 @@ var Builder2 = class {
|
|
|
4709
4644
|
}
|
|
4710
4645
|
/**
|
|
4711
4646
|
* Add an `int16` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4712
|
-
* @param value The `int16` to add the
|
|
4647
|
+
* @param value The `int16` to add the buffer.
|
|
4713
4648
|
*/
|
|
4714
4649
|
addInt16(value) {
|
|
4715
4650
|
this.prep(2, 0);
|
|
@@ -4717,7 +4652,7 @@ var Builder2 = class {
|
|
|
4717
4652
|
}
|
|
4718
4653
|
/**
|
|
4719
4654
|
* Add an `int32` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4720
|
-
* @param value The `int32` to add the
|
|
4655
|
+
* @param value The `int32` to add the buffer.
|
|
4721
4656
|
*/
|
|
4722
4657
|
addInt32(value) {
|
|
4723
4658
|
this.prep(4, 0);
|
|
@@ -4725,7 +4660,7 @@ var Builder2 = class {
|
|
|
4725
4660
|
}
|
|
4726
4661
|
/**
|
|
4727
4662
|
* Add an `int64` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4728
|
-
* @param value The `int64` to add the
|
|
4663
|
+
* @param value The `int64` to add the buffer.
|
|
4729
4664
|
*/
|
|
4730
4665
|
addInt64(value) {
|
|
4731
4666
|
this.prep(8, 0);
|
|
@@ -4733,7 +4668,7 @@ var Builder2 = class {
|
|
|
4733
4668
|
}
|
|
4734
4669
|
/**
|
|
4735
4670
|
* Add a `float32` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4736
|
-
* @param value The `float32` to add the
|
|
4671
|
+
* @param value The `float32` to add the buffer.
|
|
4737
4672
|
*/
|
|
4738
4673
|
addFloat32(value) {
|
|
4739
4674
|
this.prep(4, 0);
|
|
@@ -4741,7 +4676,7 @@ var Builder2 = class {
|
|
|
4741
4676
|
}
|
|
4742
4677
|
/**
|
|
4743
4678
|
* Add a `float64` to the buffer, properly aligned, and grows the buffer (if necessary).
|
|
4744
|
-
* @param value The `float64` to add the
|
|
4679
|
+
* @param value The `float64` to add the buffer.
|
|
4745
4680
|
*/
|
|
4746
4681
|
addFloat64(value) {
|
|
4747
4682
|
this.prep(8, 0);
|
|
@@ -4766,7 +4701,7 @@ var Builder2 = class {
|
|
|
4766
4701
|
}
|
|
4767
4702
|
}
|
|
4768
4703
|
addFieldInt64(voffset, value, defaultValue) {
|
|
4769
|
-
if (this.force_defaults ||
|
|
4704
|
+
if (this.force_defaults || value !== defaultValue) {
|
|
4770
4705
|
this.addInt64(value);
|
|
4771
4706
|
this.slot(voffset);
|
|
4772
4707
|
}
|
|
@@ -4961,7 +4896,7 @@ var Builder2 = class {
|
|
|
4961
4896
|
requiredField(table2, field) {
|
|
4962
4897
|
const table_start = this.bb.capacity() - table2;
|
|
4963
4898
|
const vtable_start = table_start - this.bb.readInt32(table_start);
|
|
4964
|
-
const ok = this.bb.readInt16(vtable_start + field) != 0;
|
|
4899
|
+
const ok = field < this.bb.readInt16(vtable_start) && this.bb.readInt16(vtable_start + field) != 0;
|
|
4965
4900
|
if (!ok) {
|
|
4966
4901
|
throw new Error("FlatBuffers: field " + field + " must be set");
|
|
4967
4902
|
}
|
|
@@ -5021,40 +4956,14 @@ var Builder2 = class {
|
|
|
5021
4956
|
* @return The offset in the buffer where the encoded string starts
|
|
5022
4957
|
*/
|
|
5023
4958
|
createString(s) {
|
|
5024
|
-
if (
|
|
4959
|
+
if (s === null || s === void 0) {
|
|
5025
4960
|
return 0;
|
|
5026
4961
|
}
|
|
5027
4962
|
let utf8;
|
|
5028
4963
|
if (s instanceof Uint8Array) {
|
|
5029
4964
|
utf8 = s;
|
|
5030
4965
|
} else {
|
|
5031
|
-
utf8 =
|
|
5032
|
-
let i = 0;
|
|
5033
|
-
while (i < s.length) {
|
|
5034
|
-
let codePoint;
|
|
5035
|
-
const a = s.charCodeAt(i++);
|
|
5036
|
-
if (a < 55296 || a >= 56320) {
|
|
5037
|
-
codePoint = a;
|
|
5038
|
-
} else {
|
|
5039
|
-
const b = s.charCodeAt(i++);
|
|
5040
|
-
codePoint = (a << 10) + b + (65536 - (55296 << 10) - 56320);
|
|
5041
|
-
}
|
|
5042
|
-
if (codePoint < 128) {
|
|
5043
|
-
utf8.push(codePoint);
|
|
5044
|
-
} else {
|
|
5045
|
-
if (codePoint < 2048) {
|
|
5046
|
-
utf8.push(codePoint >> 6 & 31 | 192);
|
|
5047
|
-
} else {
|
|
5048
|
-
if (codePoint < 65536) {
|
|
5049
|
-
utf8.push(codePoint >> 12 & 15 | 224);
|
|
5050
|
-
} else {
|
|
5051
|
-
utf8.push(codePoint >> 18 & 7 | 240, codePoint >> 12 & 63 | 128);
|
|
5052
|
-
}
|
|
5053
|
-
utf8.push(codePoint >> 6 & 63 | 128);
|
|
5054
|
-
}
|
|
5055
|
-
utf8.push(codePoint & 63 | 128);
|
|
5056
|
-
}
|
|
5057
|
-
}
|
|
4966
|
+
utf8 = this.text_encoder.encode(s);
|
|
5058
4967
|
}
|
|
5059
4968
|
this.addInt8(0);
|
|
5060
4969
|
this.startVector(1, utf8.length, 1);
|
|
@@ -5064,12 +4973,6 @@ var Builder2 = class {
|
|
|
5064
4973
|
}
|
|
5065
4974
|
return this.endVector();
|
|
5066
4975
|
}
|
|
5067
|
-
/**
|
|
5068
|
-
* A helper function to avoid generated code depending on this file directly.
|
|
5069
|
-
*/
|
|
5070
|
-
createLong(low, high) {
|
|
5071
|
-
return Long.create(low, high);
|
|
5072
|
-
}
|
|
5073
4976
|
/**
|
|
5074
4977
|
* A helper function to pack an object
|
|
5075
4978
|
*
|
|
@@ -5104,13 +5007,13 @@ var Builder2 = class {
|
|
|
5104
5007
|
}
|
|
5105
5008
|
createStructOffsetList(list, startFunc) {
|
|
5106
5009
|
startFunc(this, list.length);
|
|
5107
|
-
this.createObjectOffsetList(list);
|
|
5010
|
+
this.createObjectOffsetList(list.slice().reverse());
|
|
5108
5011
|
return this.endVector();
|
|
5109
5012
|
}
|
|
5110
5013
|
};
|
|
5111
5014
|
|
|
5112
|
-
//
|
|
5113
|
-
var KeyValue = class {
|
|
5015
|
+
// ../core/node_modules/apache-arrow/fb/key-value.mjs
|
|
5016
|
+
var KeyValue = class _KeyValue {
|
|
5114
5017
|
constructor() {
|
|
5115
5018
|
this.bb = null;
|
|
5116
5019
|
this.bb_pos = 0;
|
|
@@ -5121,11 +5024,11 @@ var KeyValue = class {
|
|
|
5121
5024
|
return this;
|
|
5122
5025
|
}
|
|
5123
5026
|
static getRootAsKeyValue(bb, obj) {
|
|
5124
|
-
return (obj || new
|
|
5027
|
+
return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5125
5028
|
}
|
|
5126
5029
|
static getSizePrefixedRootAsKeyValue(bb, obj) {
|
|
5127
5030
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5128
|
-
return (obj || new
|
|
5031
|
+
return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5129
5032
|
}
|
|
5130
5033
|
key(optionalEncoding) {
|
|
5131
5034
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5149,14 +5052,14 @@ var KeyValue = class {
|
|
|
5149
5052
|
return offset;
|
|
5150
5053
|
}
|
|
5151
5054
|
static createKeyValue(builder, keyOffset, valueOffset) {
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
return
|
|
5055
|
+
_KeyValue.startKeyValue(builder);
|
|
5056
|
+
_KeyValue.addKey(builder, keyOffset);
|
|
5057
|
+
_KeyValue.addValue(builder, valueOffset);
|
|
5058
|
+
return _KeyValue.endKeyValue(builder);
|
|
5156
5059
|
}
|
|
5157
5060
|
};
|
|
5158
5061
|
|
|
5159
|
-
//
|
|
5062
|
+
// ../core/node_modules/apache-arrow/fb/metadata-version.mjs
|
|
5160
5063
|
var MetadataVersion2;
|
|
5161
5064
|
(function(MetadataVersion3) {
|
|
5162
5065
|
MetadataVersion3[MetadataVersion3["V1"] = 0] = "V1";
|
|
@@ -5166,21 +5069,21 @@ var MetadataVersion2;
|
|
|
5166
5069
|
MetadataVersion3[MetadataVersion3["V5"] = 4] = "V5";
|
|
5167
5070
|
})(MetadataVersion2 || (MetadataVersion2 = {}));
|
|
5168
5071
|
|
|
5169
|
-
//
|
|
5072
|
+
// ../core/node_modules/apache-arrow/fb/endianness.mjs
|
|
5170
5073
|
var Endianness;
|
|
5171
5074
|
(function(Endianness2) {
|
|
5172
5075
|
Endianness2[Endianness2["Little"] = 0] = "Little";
|
|
5173
5076
|
Endianness2[Endianness2["Big"] = 1] = "Big";
|
|
5174
5077
|
})(Endianness || (Endianness = {}));
|
|
5175
5078
|
|
|
5176
|
-
//
|
|
5079
|
+
// ../core/node_modules/apache-arrow/fb/dictionary-kind.mjs
|
|
5177
5080
|
var DictionaryKind;
|
|
5178
5081
|
(function(DictionaryKind2) {
|
|
5179
5082
|
DictionaryKind2[DictionaryKind2["DenseArray"] = 0] = "DenseArray";
|
|
5180
5083
|
})(DictionaryKind || (DictionaryKind = {}));
|
|
5181
5084
|
|
|
5182
|
-
//
|
|
5183
|
-
var Int = class {
|
|
5085
|
+
// ../core/node_modules/apache-arrow/fb/int.mjs
|
|
5086
|
+
var Int = class _Int {
|
|
5184
5087
|
constructor() {
|
|
5185
5088
|
this.bb = null;
|
|
5186
5089
|
this.bb_pos = 0;
|
|
@@ -5191,11 +5094,11 @@ var Int = class {
|
|
|
5191
5094
|
return this;
|
|
5192
5095
|
}
|
|
5193
5096
|
static getRootAsInt(bb, obj) {
|
|
5194
|
-
return (obj || new
|
|
5097
|
+
return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5195
5098
|
}
|
|
5196
5099
|
static getSizePrefixedRootAsInt(bb, obj) {
|
|
5197
5100
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5198
|
-
return (obj || new
|
|
5101
|
+
return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5199
5102
|
}
|
|
5200
5103
|
bitWidth() {
|
|
5201
5104
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5219,15 +5122,15 @@ var Int = class {
|
|
|
5219
5122
|
return offset;
|
|
5220
5123
|
}
|
|
5221
5124
|
static createInt(builder, bitWidth, isSigned) {
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
return
|
|
5125
|
+
_Int.startInt(builder);
|
|
5126
|
+
_Int.addBitWidth(builder, bitWidth);
|
|
5127
|
+
_Int.addIsSigned(builder, isSigned);
|
|
5128
|
+
return _Int.endInt(builder);
|
|
5226
5129
|
}
|
|
5227
5130
|
};
|
|
5228
5131
|
|
|
5229
|
-
//
|
|
5230
|
-
var DictionaryEncoding = class {
|
|
5132
|
+
// ../core/node_modules/apache-arrow/fb/dictionary-encoding.mjs
|
|
5133
|
+
var DictionaryEncoding = class _DictionaryEncoding {
|
|
5231
5134
|
constructor() {
|
|
5232
5135
|
this.bb = null;
|
|
5233
5136
|
this.bb_pos = 0;
|
|
@@ -5238,11 +5141,11 @@ var DictionaryEncoding = class {
|
|
|
5238
5141
|
return this;
|
|
5239
5142
|
}
|
|
5240
5143
|
static getRootAsDictionaryEncoding(bb, obj) {
|
|
5241
|
-
return (obj || new
|
|
5144
|
+
return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5242
5145
|
}
|
|
5243
5146
|
static getSizePrefixedRootAsDictionaryEncoding(bb, obj) {
|
|
5244
5147
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5245
|
-
return (obj || new
|
|
5148
|
+
return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5246
5149
|
}
|
|
5247
5150
|
/**
|
|
5248
5151
|
* The known dictionary id in the application where this data is used. In
|
|
@@ -5251,7 +5154,7 @@ var DictionaryEncoding = class {
|
|
|
5251
5154
|
*/
|
|
5252
5155
|
id() {
|
|
5253
5156
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
5254
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
5157
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
5255
5158
|
}
|
|
5256
5159
|
/**
|
|
5257
5160
|
* The dictionary indices are constrained to be non-negative integers. If
|
|
@@ -5282,7 +5185,7 @@ var DictionaryEncoding = class {
|
|
|
5282
5185
|
builder.startObject(4);
|
|
5283
5186
|
}
|
|
5284
5187
|
static addId(builder, id) {
|
|
5285
|
-
builder.addFieldInt64(0, id,
|
|
5188
|
+
builder.addFieldInt64(0, id, BigInt("0"));
|
|
5286
5189
|
}
|
|
5287
5190
|
static addIndexType(builder, indexTypeOffset) {
|
|
5288
5191
|
builder.addFieldOffset(1, indexTypeOffset, 0);
|
|
@@ -5299,8 +5202,8 @@ var DictionaryEncoding = class {
|
|
|
5299
5202
|
}
|
|
5300
5203
|
};
|
|
5301
5204
|
|
|
5302
|
-
//
|
|
5303
|
-
var Binary2 = class {
|
|
5205
|
+
// ../core/node_modules/apache-arrow/fb/binary.mjs
|
|
5206
|
+
var Binary2 = class _Binary {
|
|
5304
5207
|
constructor() {
|
|
5305
5208
|
this.bb = null;
|
|
5306
5209
|
this.bb_pos = 0;
|
|
@@ -5311,11 +5214,11 @@ var Binary2 = class {
|
|
|
5311
5214
|
return this;
|
|
5312
5215
|
}
|
|
5313
5216
|
static getRootAsBinary(bb, obj) {
|
|
5314
|
-
return (obj || new
|
|
5217
|
+
return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5315
5218
|
}
|
|
5316
5219
|
static getSizePrefixedRootAsBinary(bb, obj) {
|
|
5317
5220
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5318
|
-
return (obj || new
|
|
5221
|
+
return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5319
5222
|
}
|
|
5320
5223
|
static startBinary(builder) {
|
|
5321
5224
|
builder.startObject(0);
|
|
@@ -5325,13 +5228,13 @@ var Binary2 = class {
|
|
|
5325
5228
|
return offset;
|
|
5326
5229
|
}
|
|
5327
5230
|
static createBinary(builder) {
|
|
5328
|
-
|
|
5329
|
-
return
|
|
5231
|
+
_Binary.startBinary(builder);
|
|
5232
|
+
return _Binary.endBinary(builder);
|
|
5330
5233
|
}
|
|
5331
5234
|
};
|
|
5332
5235
|
|
|
5333
|
-
//
|
|
5334
|
-
var Bool2 = class {
|
|
5236
|
+
// ../core/node_modules/apache-arrow/fb/bool.mjs
|
|
5237
|
+
var Bool2 = class _Bool {
|
|
5335
5238
|
constructor() {
|
|
5336
5239
|
this.bb = null;
|
|
5337
5240
|
this.bb_pos = 0;
|
|
@@ -5342,11 +5245,11 @@ var Bool2 = class {
|
|
|
5342
5245
|
return this;
|
|
5343
5246
|
}
|
|
5344
5247
|
static getRootAsBool(bb, obj) {
|
|
5345
|
-
return (obj || new
|
|
5248
|
+
return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5346
5249
|
}
|
|
5347
5250
|
static getSizePrefixedRootAsBool(bb, obj) {
|
|
5348
5251
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5349
|
-
return (obj || new
|
|
5252
|
+
return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5350
5253
|
}
|
|
5351
5254
|
static startBool(builder) {
|
|
5352
5255
|
builder.startObject(0);
|
|
@@ -5356,20 +5259,20 @@ var Bool2 = class {
|
|
|
5356
5259
|
return offset;
|
|
5357
5260
|
}
|
|
5358
5261
|
static createBool(builder) {
|
|
5359
|
-
|
|
5360
|
-
return
|
|
5262
|
+
_Bool.startBool(builder);
|
|
5263
|
+
return _Bool.endBool(builder);
|
|
5361
5264
|
}
|
|
5362
5265
|
};
|
|
5363
5266
|
|
|
5364
|
-
//
|
|
5267
|
+
// ../core/node_modules/apache-arrow/fb/date-unit.mjs
|
|
5365
5268
|
var DateUnit2;
|
|
5366
5269
|
(function(DateUnit3) {
|
|
5367
5270
|
DateUnit3[DateUnit3["DAY"] = 0] = "DAY";
|
|
5368
5271
|
DateUnit3[DateUnit3["MILLISECOND"] = 1] = "MILLISECOND";
|
|
5369
5272
|
})(DateUnit2 || (DateUnit2 = {}));
|
|
5370
5273
|
|
|
5371
|
-
//
|
|
5372
|
-
var Date2 = class {
|
|
5274
|
+
// ../core/node_modules/apache-arrow/fb/date.mjs
|
|
5275
|
+
var Date2 = class _Date {
|
|
5373
5276
|
constructor() {
|
|
5374
5277
|
this.bb = null;
|
|
5375
5278
|
this.bb_pos = 0;
|
|
@@ -5380,11 +5283,11 @@ var Date2 = class {
|
|
|
5380
5283
|
return this;
|
|
5381
5284
|
}
|
|
5382
5285
|
static getRootAsDate(bb, obj) {
|
|
5383
|
-
return (obj || new
|
|
5286
|
+
return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5384
5287
|
}
|
|
5385
5288
|
static getSizePrefixedRootAsDate(bb, obj) {
|
|
5386
5289
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5387
|
-
return (obj || new
|
|
5290
|
+
return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5388
5291
|
}
|
|
5389
5292
|
unit() {
|
|
5390
5293
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5401,14 +5304,14 @@ var Date2 = class {
|
|
|
5401
5304
|
return offset;
|
|
5402
5305
|
}
|
|
5403
5306
|
static createDate(builder, unit) {
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
return
|
|
5307
|
+
_Date.startDate(builder);
|
|
5308
|
+
_Date.addUnit(builder, unit);
|
|
5309
|
+
return _Date.endDate(builder);
|
|
5407
5310
|
}
|
|
5408
5311
|
};
|
|
5409
5312
|
|
|
5410
|
-
//
|
|
5411
|
-
var Decimal2 = class {
|
|
5313
|
+
// ../core/node_modules/apache-arrow/fb/decimal.mjs
|
|
5314
|
+
var Decimal2 = class _Decimal {
|
|
5412
5315
|
constructor() {
|
|
5413
5316
|
this.bb = null;
|
|
5414
5317
|
this.bb_pos = 0;
|
|
@@ -5419,11 +5322,11 @@ var Decimal2 = class {
|
|
|
5419
5322
|
return this;
|
|
5420
5323
|
}
|
|
5421
5324
|
static getRootAsDecimal(bb, obj) {
|
|
5422
|
-
return (obj || new
|
|
5325
|
+
return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5423
5326
|
}
|
|
5424
5327
|
static getSizePrefixedRootAsDecimal(bb, obj) {
|
|
5425
5328
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5426
|
-
return (obj || new
|
|
5329
|
+
return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5427
5330
|
}
|
|
5428
5331
|
/**
|
|
5429
5332
|
* Total number of decimal digits
|
|
@@ -5464,15 +5367,15 @@ var Decimal2 = class {
|
|
|
5464
5367
|
return offset;
|
|
5465
5368
|
}
|
|
5466
5369
|
static createDecimal(builder, precision, scale, bitWidth) {
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
return
|
|
5370
|
+
_Decimal.startDecimal(builder);
|
|
5371
|
+
_Decimal.addPrecision(builder, precision);
|
|
5372
|
+
_Decimal.addScale(builder, scale);
|
|
5373
|
+
_Decimal.addBitWidth(builder, bitWidth);
|
|
5374
|
+
return _Decimal.endDecimal(builder);
|
|
5472
5375
|
}
|
|
5473
5376
|
};
|
|
5474
5377
|
|
|
5475
|
-
//
|
|
5378
|
+
// ../core/node_modules/apache-arrow/fb/time-unit.mjs
|
|
5476
5379
|
var TimeUnit2;
|
|
5477
5380
|
(function(TimeUnit3) {
|
|
5478
5381
|
TimeUnit3[TimeUnit3["SECOND"] = 0] = "SECOND";
|
|
@@ -5481,8 +5384,8 @@ var TimeUnit2;
|
|
|
5481
5384
|
TimeUnit3[TimeUnit3["NANOSECOND"] = 3] = "NANOSECOND";
|
|
5482
5385
|
})(TimeUnit2 || (TimeUnit2 = {}));
|
|
5483
5386
|
|
|
5484
|
-
//
|
|
5485
|
-
var FixedSizeBinary2 = class {
|
|
5387
|
+
// ../core/node_modules/apache-arrow/fb/fixed-size-binary.mjs
|
|
5388
|
+
var FixedSizeBinary2 = class _FixedSizeBinary {
|
|
5486
5389
|
constructor() {
|
|
5487
5390
|
this.bb = null;
|
|
5488
5391
|
this.bb_pos = 0;
|
|
@@ -5493,11 +5396,11 @@ var FixedSizeBinary2 = class {
|
|
|
5493
5396
|
return this;
|
|
5494
5397
|
}
|
|
5495
5398
|
static getRootAsFixedSizeBinary(bb, obj) {
|
|
5496
|
-
return (obj || new
|
|
5399
|
+
return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5497
5400
|
}
|
|
5498
5401
|
static getSizePrefixedRootAsFixedSizeBinary(bb, obj) {
|
|
5499
5402
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5500
|
-
return (obj || new
|
|
5403
|
+
return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5501
5404
|
}
|
|
5502
5405
|
/**
|
|
5503
5406
|
* Number of bytes per value
|
|
@@ -5517,14 +5420,14 @@ var FixedSizeBinary2 = class {
|
|
|
5517
5420
|
return offset;
|
|
5518
5421
|
}
|
|
5519
5422
|
static createFixedSizeBinary(builder, byteWidth) {
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
return
|
|
5423
|
+
_FixedSizeBinary.startFixedSizeBinary(builder);
|
|
5424
|
+
_FixedSizeBinary.addByteWidth(builder, byteWidth);
|
|
5425
|
+
return _FixedSizeBinary.endFixedSizeBinary(builder);
|
|
5523
5426
|
}
|
|
5524
5427
|
};
|
|
5525
5428
|
|
|
5526
|
-
//
|
|
5527
|
-
var FixedSizeList2 = class {
|
|
5429
|
+
// ../core/node_modules/apache-arrow/fb/fixed-size-list.mjs
|
|
5430
|
+
var FixedSizeList2 = class _FixedSizeList {
|
|
5528
5431
|
constructor() {
|
|
5529
5432
|
this.bb = null;
|
|
5530
5433
|
this.bb_pos = 0;
|
|
@@ -5535,11 +5438,11 @@ var FixedSizeList2 = class {
|
|
|
5535
5438
|
return this;
|
|
5536
5439
|
}
|
|
5537
5440
|
static getRootAsFixedSizeList(bb, obj) {
|
|
5538
|
-
return (obj || new
|
|
5441
|
+
return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5539
5442
|
}
|
|
5540
5443
|
static getSizePrefixedRootAsFixedSizeList(bb, obj) {
|
|
5541
5444
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5542
|
-
return (obj || new
|
|
5445
|
+
return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5543
5446
|
}
|
|
5544
5447
|
/**
|
|
5545
5448
|
* Number of list items per value
|
|
@@ -5559,13 +5462,13 @@ var FixedSizeList2 = class {
|
|
|
5559
5462
|
return offset;
|
|
5560
5463
|
}
|
|
5561
5464
|
static createFixedSizeList(builder, listSize) {
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
return
|
|
5465
|
+
_FixedSizeList.startFixedSizeList(builder);
|
|
5466
|
+
_FixedSizeList.addListSize(builder, listSize);
|
|
5467
|
+
return _FixedSizeList.endFixedSizeList(builder);
|
|
5565
5468
|
}
|
|
5566
5469
|
};
|
|
5567
5470
|
|
|
5568
|
-
//
|
|
5471
|
+
// ../core/node_modules/apache-arrow/fb/precision.mjs
|
|
5569
5472
|
var Precision2;
|
|
5570
5473
|
(function(Precision3) {
|
|
5571
5474
|
Precision3[Precision3["HALF"] = 0] = "HALF";
|
|
@@ -5573,8 +5476,8 @@ var Precision2;
|
|
|
5573
5476
|
Precision3[Precision3["DOUBLE"] = 2] = "DOUBLE";
|
|
5574
5477
|
})(Precision2 || (Precision2 = {}));
|
|
5575
5478
|
|
|
5576
|
-
//
|
|
5577
|
-
var FloatingPoint = class {
|
|
5479
|
+
// ../core/node_modules/apache-arrow/fb/floating-point.mjs
|
|
5480
|
+
var FloatingPoint = class _FloatingPoint {
|
|
5578
5481
|
constructor() {
|
|
5579
5482
|
this.bb = null;
|
|
5580
5483
|
this.bb_pos = 0;
|
|
@@ -5585,11 +5488,11 @@ var FloatingPoint = class {
|
|
|
5585
5488
|
return this;
|
|
5586
5489
|
}
|
|
5587
5490
|
static getRootAsFloatingPoint(bb, obj) {
|
|
5588
|
-
return (obj || new
|
|
5491
|
+
return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5589
5492
|
}
|
|
5590
5493
|
static getSizePrefixedRootAsFloatingPoint(bb, obj) {
|
|
5591
5494
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5592
|
-
return (obj || new
|
|
5495
|
+
return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5593
5496
|
}
|
|
5594
5497
|
precision() {
|
|
5595
5498
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5606,13 +5509,13 @@ var FloatingPoint = class {
|
|
|
5606
5509
|
return offset;
|
|
5607
5510
|
}
|
|
5608
5511
|
static createFloatingPoint(builder, precision) {
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
return
|
|
5512
|
+
_FloatingPoint.startFloatingPoint(builder);
|
|
5513
|
+
_FloatingPoint.addPrecision(builder, precision);
|
|
5514
|
+
return _FloatingPoint.endFloatingPoint(builder);
|
|
5612
5515
|
}
|
|
5613
5516
|
};
|
|
5614
5517
|
|
|
5615
|
-
//
|
|
5518
|
+
// ../core/node_modules/apache-arrow/fb/interval-unit.mjs
|
|
5616
5519
|
var IntervalUnit2;
|
|
5617
5520
|
(function(IntervalUnit3) {
|
|
5618
5521
|
IntervalUnit3[IntervalUnit3["YEAR_MONTH"] = 0] = "YEAR_MONTH";
|
|
@@ -5620,8 +5523,8 @@ var IntervalUnit2;
|
|
|
5620
5523
|
IntervalUnit3[IntervalUnit3["MONTH_DAY_NANO"] = 2] = "MONTH_DAY_NANO";
|
|
5621
5524
|
})(IntervalUnit2 || (IntervalUnit2 = {}));
|
|
5622
5525
|
|
|
5623
|
-
//
|
|
5624
|
-
var Interval = class {
|
|
5526
|
+
// ../core/node_modules/apache-arrow/fb/interval.mjs
|
|
5527
|
+
var Interval = class _Interval {
|
|
5625
5528
|
constructor() {
|
|
5626
5529
|
this.bb = null;
|
|
5627
5530
|
this.bb_pos = 0;
|
|
@@ -5632,11 +5535,11 @@ var Interval = class {
|
|
|
5632
5535
|
return this;
|
|
5633
5536
|
}
|
|
5634
5537
|
static getRootAsInterval(bb, obj) {
|
|
5635
|
-
return (obj || new
|
|
5538
|
+
return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5636
5539
|
}
|
|
5637
5540
|
static getSizePrefixedRootAsInterval(bb, obj) {
|
|
5638
5541
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5639
|
-
return (obj || new
|
|
5542
|
+
return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5640
5543
|
}
|
|
5641
5544
|
unit() {
|
|
5642
5545
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5653,14 +5556,14 @@ var Interval = class {
|
|
|
5653
5556
|
return offset;
|
|
5654
5557
|
}
|
|
5655
5558
|
static createInterval(builder, unit) {
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
return
|
|
5559
|
+
_Interval.startInterval(builder);
|
|
5560
|
+
_Interval.addUnit(builder, unit);
|
|
5561
|
+
return _Interval.endInterval(builder);
|
|
5659
5562
|
}
|
|
5660
5563
|
};
|
|
5661
5564
|
|
|
5662
|
-
//
|
|
5663
|
-
var List2 = class {
|
|
5565
|
+
// ../core/node_modules/apache-arrow/fb/list.mjs
|
|
5566
|
+
var List2 = class _List {
|
|
5664
5567
|
constructor() {
|
|
5665
5568
|
this.bb = null;
|
|
5666
5569
|
this.bb_pos = 0;
|
|
@@ -5671,11 +5574,11 @@ var List2 = class {
|
|
|
5671
5574
|
return this;
|
|
5672
5575
|
}
|
|
5673
5576
|
static getRootAsList(bb, obj) {
|
|
5674
|
-
return (obj || new
|
|
5577
|
+
return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5675
5578
|
}
|
|
5676
5579
|
static getSizePrefixedRootAsList(bb, obj) {
|
|
5677
5580
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5678
|
-
return (obj || new
|
|
5581
|
+
return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5679
5582
|
}
|
|
5680
5583
|
static startList(builder) {
|
|
5681
5584
|
builder.startObject(0);
|
|
@@ -5685,13 +5588,13 @@ var List2 = class {
|
|
|
5685
5588
|
return offset;
|
|
5686
5589
|
}
|
|
5687
5590
|
static createList(builder) {
|
|
5688
|
-
|
|
5689
|
-
return
|
|
5591
|
+
_List.startList(builder);
|
|
5592
|
+
return _List.endList(builder);
|
|
5690
5593
|
}
|
|
5691
5594
|
};
|
|
5692
5595
|
|
|
5693
|
-
//
|
|
5694
|
-
var Map2 = class {
|
|
5596
|
+
// ../core/node_modules/apache-arrow/fb/map.mjs
|
|
5597
|
+
var Map2 = class _Map {
|
|
5695
5598
|
constructor() {
|
|
5696
5599
|
this.bb = null;
|
|
5697
5600
|
this.bb_pos = 0;
|
|
@@ -5702,11 +5605,11 @@ var Map2 = class {
|
|
|
5702
5605
|
return this;
|
|
5703
5606
|
}
|
|
5704
5607
|
static getRootAsMap(bb, obj) {
|
|
5705
|
-
return (obj || new
|
|
5608
|
+
return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5706
5609
|
}
|
|
5707
5610
|
static getSizePrefixedRootAsMap(bb, obj) {
|
|
5708
5611
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5709
|
-
return (obj || new
|
|
5612
|
+
return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5710
5613
|
}
|
|
5711
5614
|
/**
|
|
5712
5615
|
* Set to true if the keys within each value are sorted
|
|
@@ -5726,14 +5629,14 @@ var Map2 = class {
|
|
|
5726
5629
|
return offset;
|
|
5727
5630
|
}
|
|
5728
5631
|
static createMap(builder, keysSorted) {
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
return
|
|
5632
|
+
_Map.startMap(builder);
|
|
5633
|
+
_Map.addKeysSorted(builder, keysSorted);
|
|
5634
|
+
return _Map.endMap(builder);
|
|
5732
5635
|
}
|
|
5733
5636
|
};
|
|
5734
5637
|
|
|
5735
|
-
//
|
|
5736
|
-
var Null2 = class {
|
|
5638
|
+
// ../core/node_modules/apache-arrow/fb/null.mjs
|
|
5639
|
+
var Null2 = class _Null {
|
|
5737
5640
|
constructor() {
|
|
5738
5641
|
this.bb = null;
|
|
5739
5642
|
this.bb_pos = 0;
|
|
@@ -5744,11 +5647,11 @@ var Null2 = class {
|
|
|
5744
5647
|
return this;
|
|
5745
5648
|
}
|
|
5746
5649
|
static getRootAsNull(bb, obj) {
|
|
5747
|
-
return (obj || new
|
|
5650
|
+
return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5748
5651
|
}
|
|
5749
5652
|
static getSizePrefixedRootAsNull(bb, obj) {
|
|
5750
5653
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5751
|
-
return (obj || new
|
|
5654
|
+
return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5752
5655
|
}
|
|
5753
5656
|
static startNull(builder) {
|
|
5754
5657
|
builder.startObject(0);
|
|
@@ -5758,13 +5661,13 @@ var Null2 = class {
|
|
|
5758
5661
|
return offset;
|
|
5759
5662
|
}
|
|
5760
5663
|
static createNull(builder) {
|
|
5761
|
-
|
|
5762
|
-
return
|
|
5664
|
+
_Null.startNull(builder);
|
|
5665
|
+
return _Null.endNull(builder);
|
|
5763
5666
|
}
|
|
5764
5667
|
};
|
|
5765
5668
|
|
|
5766
|
-
//
|
|
5767
|
-
var Struct_ = class {
|
|
5669
|
+
// ../core/node_modules/apache-arrow/fb/struct-.mjs
|
|
5670
|
+
var Struct_ = class _Struct_ {
|
|
5768
5671
|
constructor() {
|
|
5769
5672
|
this.bb = null;
|
|
5770
5673
|
this.bb_pos = 0;
|
|
@@ -5775,11 +5678,11 @@ var Struct_ = class {
|
|
|
5775
5678
|
return this;
|
|
5776
5679
|
}
|
|
5777
5680
|
static getRootAsStruct_(bb, obj) {
|
|
5778
|
-
return (obj || new
|
|
5681
|
+
return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5779
5682
|
}
|
|
5780
5683
|
static getSizePrefixedRootAsStruct_(bb, obj) {
|
|
5781
5684
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5782
|
-
return (obj || new
|
|
5685
|
+
return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5783
5686
|
}
|
|
5784
5687
|
static startStruct_(builder) {
|
|
5785
5688
|
builder.startObject(0);
|
|
@@ -5789,13 +5692,13 @@ var Struct_ = class {
|
|
|
5789
5692
|
return offset;
|
|
5790
5693
|
}
|
|
5791
5694
|
static createStruct_(builder) {
|
|
5792
|
-
|
|
5793
|
-
return
|
|
5695
|
+
_Struct_.startStruct_(builder);
|
|
5696
|
+
return _Struct_.endStruct_(builder);
|
|
5794
5697
|
}
|
|
5795
5698
|
};
|
|
5796
5699
|
|
|
5797
|
-
//
|
|
5798
|
-
var Time = class {
|
|
5700
|
+
// ../core/node_modules/apache-arrow/fb/time.mjs
|
|
5701
|
+
var Time = class _Time {
|
|
5799
5702
|
constructor() {
|
|
5800
5703
|
this.bb = null;
|
|
5801
5704
|
this.bb_pos = 0;
|
|
@@ -5806,11 +5709,11 @@ var Time = class {
|
|
|
5806
5709
|
return this;
|
|
5807
5710
|
}
|
|
5808
5711
|
static getRootAsTime(bb, obj) {
|
|
5809
|
-
return (obj || new
|
|
5712
|
+
return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5810
5713
|
}
|
|
5811
5714
|
static getSizePrefixedRootAsTime(bb, obj) {
|
|
5812
5715
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5813
|
-
return (obj || new
|
|
5716
|
+
return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5814
5717
|
}
|
|
5815
5718
|
unit() {
|
|
5816
5719
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5834,15 +5737,15 @@ var Time = class {
|
|
|
5834
5737
|
return offset;
|
|
5835
5738
|
}
|
|
5836
5739
|
static createTime(builder, unit, bitWidth) {
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
return
|
|
5740
|
+
_Time.startTime(builder);
|
|
5741
|
+
_Time.addUnit(builder, unit);
|
|
5742
|
+
_Time.addBitWidth(builder, bitWidth);
|
|
5743
|
+
return _Time.endTime(builder);
|
|
5841
5744
|
}
|
|
5842
5745
|
};
|
|
5843
5746
|
|
|
5844
|
-
//
|
|
5845
|
-
var Timestamp = class {
|
|
5747
|
+
// ../core/node_modules/apache-arrow/fb/timestamp.mjs
|
|
5748
|
+
var Timestamp = class _Timestamp {
|
|
5846
5749
|
constructor() {
|
|
5847
5750
|
this.bb = null;
|
|
5848
5751
|
this.bb_pos = 0;
|
|
@@ -5853,11 +5756,11 @@ var Timestamp = class {
|
|
|
5853
5756
|
return this;
|
|
5854
5757
|
}
|
|
5855
5758
|
static getRootAsTimestamp(bb, obj) {
|
|
5856
|
-
return (obj || new
|
|
5759
|
+
return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5857
5760
|
}
|
|
5858
5761
|
static getSizePrefixedRootAsTimestamp(bb, obj) {
|
|
5859
5762
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5860
|
-
return (obj || new
|
|
5763
|
+
return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5861
5764
|
}
|
|
5862
5765
|
unit() {
|
|
5863
5766
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5881,22 +5784,22 @@ var Timestamp = class {
|
|
|
5881
5784
|
return offset;
|
|
5882
5785
|
}
|
|
5883
5786
|
static createTimestamp(builder, unit, timezoneOffset) {
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
return
|
|
5787
|
+
_Timestamp.startTimestamp(builder);
|
|
5788
|
+
_Timestamp.addUnit(builder, unit);
|
|
5789
|
+
_Timestamp.addTimezone(builder, timezoneOffset);
|
|
5790
|
+
return _Timestamp.endTimestamp(builder);
|
|
5888
5791
|
}
|
|
5889
5792
|
};
|
|
5890
5793
|
|
|
5891
|
-
//
|
|
5794
|
+
// ../core/node_modules/apache-arrow/fb/union-mode.mjs
|
|
5892
5795
|
var UnionMode2;
|
|
5893
5796
|
(function(UnionMode3) {
|
|
5894
5797
|
UnionMode3[UnionMode3["Sparse"] = 0] = "Sparse";
|
|
5895
5798
|
UnionMode3[UnionMode3["Dense"] = 1] = "Dense";
|
|
5896
5799
|
})(UnionMode2 || (UnionMode2 = {}));
|
|
5897
5800
|
|
|
5898
|
-
//
|
|
5899
|
-
var Union = class {
|
|
5801
|
+
// ../core/node_modules/apache-arrow/fb/union.mjs
|
|
5802
|
+
var Union = class _Union {
|
|
5900
5803
|
constructor() {
|
|
5901
5804
|
this.bb = null;
|
|
5902
5805
|
this.bb_pos = 0;
|
|
@@ -5907,11 +5810,11 @@ var Union = class {
|
|
|
5907
5810
|
return this;
|
|
5908
5811
|
}
|
|
5909
5812
|
static getRootAsUnion(bb, obj) {
|
|
5910
|
-
return (obj || new
|
|
5813
|
+
return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5911
5814
|
}
|
|
5912
5815
|
static getSizePrefixedRootAsUnion(bb, obj) {
|
|
5913
5816
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5914
|
-
return (obj || new
|
|
5817
|
+
return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5915
5818
|
}
|
|
5916
5819
|
mode() {
|
|
5917
5820
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5953,15 +5856,15 @@ var Union = class {
|
|
|
5953
5856
|
return offset;
|
|
5954
5857
|
}
|
|
5955
5858
|
static createUnion(builder, mode2, typeIdsOffset) {
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
return
|
|
5859
|
+
_Union.startUnion(builder);
|
|
5860
|
+
_Union.addMode(builder, mode2);
|
|
5861
|
+
_Union.addTypeIds(builder, typeIdsOffset);
|
|
5862
|
+
return _Union.endUnion(builder);
|
|
5960
5863
|
}
|
|
5961
5864
|
};
|
|
5962
5865
|
|
|
5963
|
-
//
|
|
5964
|
-
var Utf82 = class {
|
|
5866
|
+
// ../core/node_modules/apache-arrow/fb/utf8.mjs
|
|
5867
|
+
var Utf82 = class _Utf8 {
|
|
5965
5868
|
constructor() {
|
|
5966
5869
|
this.bb = null;
|
|
5967
5870
|
this.bb_pos = 0;
|
|
@@ -5972,11 +5875,11 @@ var Utf82 = class {
|
|
|
5972
5875
|
return this;
|
|
5973
5876
|
}
|
|
5974
5877
|
static getRootAsUtf8(bb, obj) {
|
|
5975
|
-
return (obj || new
|
|
5878
|
+
return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5976
5879
|
}
|
|
5977
5880
|
static getSizePrefixedRootAsUtf8(bb, obj) {
|
|
5978
5881
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
5979
|
-
return (obj || new
|
|
5882
|
+
return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
5980
5883
|
}
|
|
5981
5884
|
static startUtf8(builder) {
|
|
5982
5885
|
builder.startObject(0);
|
|
@@ -5986,12 +5889,12 @@ var Utf82 = class {
|
|
|
5986
5889
|
return offset;
|
|
5987
5890
|
}
|
|
5988
5891
|
static createUtf8(builder) {
|
|
5989
|
-
|
|
5990
|
-
return
|
|
5892
|
+
_Utf8.startUtf8(builder);
|
|
5893
|
+
return _Utf8.endUtf8(builder);
|
|
5991
5894
|
}
|
|
5992
5895
|
};
|
|
5993
5896
|
|
|
5994
|
-
//
|
|
5897
|
+
// ../core/node_modules/apache-arrow/fb/type.mjs
|
|
5995
5898
|
var Type2;
|
|
5996
5899
|
(function(Type3) {
|
|
5997
5900
|
Type3[Type3["NONE"] = 0] = "NONE";
|
|
@@ -6016,10 +5919,11 @@ var Type2;
|
|
|
6016
5919
|
Type3[Type3["LargeBinary"] = 19] = "LargeBinary";
|
|
6017
5920
|
Type3[Type3["LargeUtf8"] = 20] = "LargeUtf8";
|
|
6018
5921
|
Type3[Type3["LargeList"] = 21] = "LargeList";
|
|
5922
|
+
Type3[Type3["RunEndEncoded"] = 22] = "RunEndEncoded";
|
|
6019
5923
|
})(Type2 || (Type2 = {}));
|
|
6020
5924
|
|
|
6021
|
-
//
|
|
6022
|
-
var Field = class {
|
|
5925
|
+
// ../core/node_modules/apache-arrow/fb/field.mjs
|
|
5926
|
+
var Field = class _Field {
|
|
6023
5927
|
constructor() {
|
|
6024
5928
|
this.bb = null;
|
|
6025
5929
|
this.bb_pos = 0;
|
|
@@ -6030,11 +5934,11 @@ var Field = class {
|
|
|
6030
5934
|
return this;
|
|
6031
5935
|
}
|
|
6032
5936
|
static getRootAsField(bb, obj) {
|
|
6033
|
-
return (obj || new
|
|
5937
|
+
return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6034
5938
|
}
|
|
6035
5939
|
static getSizePrefixedRootAsField(bb, obj) {
|
|
6036
5940
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
6037
|
-
return (obj || new
|
|
5941
|
+
return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6038
5942
|
}
|
|
6039
5943
|
name(optionalEncoding) {
|
|
6040
5944
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6054,7 +5958,6 @@ var Field = class {
|
|
|
6054
5958
|
/**
|
|
6055
5959
|
* This is the type of the decoded value if the field is dictionary encoded.
|
|
6056
5960
|
*/
|
|
6057
|
-
// @ts-ignore
|
|
6058
5961
|
type(obj) {
|
|
6059
5962
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
6060
5963
|
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
@@ -6072,7 +5975,7 @@ var Field = class {
|
|
|
6072
5975
|
*/
|
|
6073
5976
|
children(index, obj) {
|
|
6074
5977
|
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
6075
|
-
return offset ? (obj || new
|
|
5978
|
+
return offset ? (obj || new _Field()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
6076
5979
|
}
|
|
6077
5980
|
childrenLength() {
|
|
6078
5981
|
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -6139,8 +6042,8 @@ var Field = class {
|
|
|
6139
6042
|
}
|
|
6140
6043
|
};
|
|
6141
6044
|
|
|
6142
|
-
//
|
|
6143
|
-
var Schema = class {
|
|
6045
|
+
// ../core/node_modules/apache-arrow/fb/schema.mjs
|
|
6046
|
+
var Schema = class _Schema {
|
|
6144
6047
|
constructor() {
|
|
6145
6048
|
this.bb = null;
|
|
6146
6049
|
this.bb_pos = 0;
|
|
@@ -6151,11 +6054,11 @@ var Schema = class {
|
|
|
6151
6054
|
return this;
|
|
6152
6055
|
}
|
|
6153
6056
|
static getRootAsSchema(bb, obj) {
|
|
6154
|
-
return (obj || new
|
|
6057
|
+
return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6155
6058
|
}
|
|
6156
6059
|
static getSizePrefixedRootAsSchema(bb, obj) {
|
|
6157
6060
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
6158
|
-
return (obj || new
|
|
6061
|
+
return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6159
6062
|
}
|
|
6160
6063
|
/**
|
|
6161
6064
|
* endianness of the buffer
|
|
@@ -6187,7 +6090,7 @@ var Schema = class {
|
|
|
6187
6090
|
*/
|
|
6188
6091
|
features(index) {
|
|
6189
6092
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
6190
|
-
return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) :
|
|
6093
|
+
return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) : BigInt(0);
|
|
6191
6094
|
}
|
|
6192
6095
|
featuresLength() {
|
|
6193
6096
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -6249,17 +6152,17 @@ var Schema = class {
|
|
|
6249
6152
|
builder.finish(offset, void 0, true);
|
|
6250
6153
|
}
|
|
6251
6154
|
static createSchema(builder, endianness, fieldsOffset, customMetadataOffset, featuresOffset) {
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
return
|
|
6155
|
+
_Schema.startSchema(builder);
|
|
6156
|
+
_Schema.addEndianness(builder, endianness);
|
|
6157
|
+
_Schema.addFields(builder, fieldsOffset);
|
|
6158
|
+
_Schema.addCustomMetadata(builder, customMetadataOffset);
|
|
6159
|
+
_Schema.addFeatures(builder, featuresOffset);
|
|
6160
|
+
return _Schema.endSchema(builder);
|
|
6258
6161
|
}
|
|
6259
6162
|
};
|
|
6260
6163
|
|
|
6261
|
-
//
|
|
6262
|
-
var Footer = class {
|
|
6164
|
+
// ../core/node_modules/apache-arrow/fb/footer.mjs
|
|
6165
|
+
var Footer = class _Footer {
|
|
6263
6166
|
constructor() {
|
|
6264
6167
|
this.bb = null;
|
|
6265
6168
|
this.bb_pos = 0;
|
|
@@ -6270,11 +6173,11 @@ var Footer = class {
|
|
|
6270
6173
|
return this;
|
|
6271
6174
|
}
|
|
6272
6175
|
static getRootAsFooter(bb, obj) {
|
|
6273
|
-
return (obj || new
|
|
6176
|
+
return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6274
6177
|
}
|
|
6275
6178
|
static getSizePrefixedRootAsFooter(bb, obj) {
|
|
6276
6179
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
6277
|
-
return (obj || new
|
|
6180
|
+
return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
6278
6181
|
}
|
|
6279
6182
|
version() {
|
|
6280
6183
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6357,8 +6260,8 @@ var Footer = class {
|
|
|
6357
6260
|
}
|
|
6358
6261
|
};
|
|
6359
6262
|
|
|
6360
|
-
//
|
|
6361
|
-
var Schema2 = class {
|
|
6263
|
+
// ../core/node_modules/apache-arrow/schema.mjs
|
|
6264
|
+
var Schema2 = class _Schema {
|
|
6362
6265
|
constructor(fields = [], metadata, dictionaries) {
|
|
6363
6266
|
this.fields = fields || [];
|
|
6364
6267
|
this.metadata = metadata || /* @__PURE__ */ new Map();
|
|
@@ -6385,7 +6288,7 @@ var Schema2 = class {
|
|
|
6385
6288
|
select(fieldNames) {
|
|
6386
6289
|
const names = new Set(fieldNames);
|
|
6387
6290
|
const fields = this.fields.filter((f) => names.has(f.name));
|
|
6388
|
-
return new
|
|
6291
|
+
return new _Schema(fields, this.metadata);
|
|
6389
6292
|
}
|
|
6390
6293
|
/**
|
|
6391
6294
|
* Construct a new Schema containing only fields at the specified indices.
|
|
@@ -6395,10 +6298,10 @@ var Schema2 = class {
|
|
|
6395
6298
|
*/
|
|
6396
6299
|
selectAt(fieldIndices) {
|
|
6397
6300
|
const fields = fieldIndices.map((i) => this.fields[i]).filter(Boolean);
|
|
6398
|
-
return new
|
|
6301
|
+
return new _Schema(fields, this.metadata);
|
|
6399
6302
|
}
|
|
6400
6303
|
assign(...args) {
|
|
6401
|
-
const other = args[0] instanceof
|
|
6304
|
+
const other = args[0] instanceof _Schema ? args[0] : Array.isArray(args[0]) ? new _Schema(args[0]) : new _Schema(args);
|
|
6402
6305
|
const curFields = [...this.fields];
|
|
6403
6306
|
const metadata = mergeMaps(mergeMaps(/* @__PURE__ */ new Map(), this.metadata), other.metadata);
|
|
6404
6307
|
const newFields = other.fields.filter((f2) => {
|
|
@@ -6408,19 +6311,13 @@ var Schema2 = class {
|
|
|
6408
6311
|
})) && false : true;
|
|
6409
6312
|
});
|
|
6410
6313
|
const newDictionaries = generateDictionaryMap(newFields, /* @__PURE__ */ new Map());
|
|
6411
|
-
return new
|
|
6314
|
+
return new _Schema([...curFields, ...newFields], metadata, new Map([...this.dictionaries, ...newDictionaries]));
|
|
6412
6315
|
}
|
|
6413
6316
|
};
|
|
6414
6317
|
Schema2.prototype.fields = null;
|
|
6415
6318
|
Schema2.prototype.metadata = null;
|
|
6416
6319
|
Schema2.prototype.dictionaries = null;
|
|
6417
|
-
var Field2 = class {
|
|
6418
|
-
constructor(name, type, nullable = false, metadata) {
|
|
6419
|
-
this.name = name;
|
|
6420
|
-
this.type = type;
|
|
6421
|
-
this.nullable = nullable;
|
|
6422
|
-
this.metadata = metadata || /* @__PURE__ */ new Map();
|
|
6423
|
-
}
|
|
6320
|
+
var Field2 = class _Field {
|
|
6424
6321
|
/** @nocollapse */
|
|
6425
6322
|
static new(...args) {
|
|
6426
6323
|
let [name, type, nullable, metadata] = args;
|
|
@@ -6430,7 +6327,13 @@ var Field2 = class {
|
|
|
6430
6327
|
nullable === void 0 && (nullable = args[0].nullable);
|
|
6431
6328
|
metadata === void 0 && (metadata = args[0].metadata);
|
|
6432
6329
|
}
|
|
6433
|
-
return new
|
|
6330
|
+
return new _Field(`${name}`, type, nullable, metadata);
|
|
6331
|
+
}
|
|
6332
|
+
constructor(name, type, nullable = false, metadata) {
|
|
6333
|
+
this.name = name;
|
|
6334
|
+
this.type = type;
|
|
6335
|
+
this.nullable = nullable;
|
|
6336
|
+
this.metadata = metadata || /* @__PURE__ */ new Map();
|
|
6434
6337
|
}
|
|
6435
6338
|
get typeId() {
|
|
6436
6339
|
return this.type.typeId;
|
|
@@ -6444,7 +6347,7 @@ var Field2 = class {
|
|
|
6444
6347
|
clone(...args) {
|
|
6445
6348
|
let [name, type, nullable, metadata] = args;
|
|
6446
6349
|
!args[0] || typeof args[0] !== "object" ? [name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata] = args : { name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata } = args[0];
|
|
6447
|
-
return
|
|
6350
|
+
return _Field.new(name, type, nullable, metadata);
|
|
6448
6351
|
}
|
|
6449
6352
|
};
|
|
6450
6353
|
Field2.prototype.type = null;
|
|
@@ -6472,17 +6375,10 @@ function generateDictionaryMap(fields, dictionaries = /* @__PURE__ */ new Map())
|
|
|
6472
6375
|
return dictionaries;
|
|
6473
6376
|
}
|
|
6474
6377
|
|
|
6475
|
-
//
|
|
6476
|
-
var Long2 = Long;
|
|
6378
|
+
// ../core/node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
6477
6379
|
var Builder3 = Builder2;
|
|
6478
6380
|
var ByteBuffer2 = ByteBuffer;
|
|
6479
6381
|
var Footer_ = class {
|
|
6480
|
-
constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
|
|
6481
|
-
this.schema = schema;
|
|
6482
|
-
this.version = version;
|
|
6483
|
-
recordBatches && (this._recordBatches = recordBatches);
|
|
6484
|
-
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
6485
|
-
}
|
|
6486
6382
|
/** @nocollapse */
|
|
6487
6383
|
static decode(buf) {
|
|
6488
6384
|
buf = new ByteBuffer2(toUint8Array(buf));
|
|
@@ -6518,6 +6414,12 @@ var Footer_ = class {
|
|
|
6518
6414
|
get numDictionaries() {
|
|
6519
6415
|
return this._dictionaryBatches.length;
|
|
6520
6416
|
}
|
|
6417
|
+
constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
|
|
6418
|
+
this.schema = schema;
|
|
6419
|
+
this.version = version;
|
|
6420
|
+
recordBatches && (this._recordBatches = recordBatches);
|
|
6421
|
+
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
6422
|
+
}
|
|
6521
6423
|
*recordBatches() {
|
|
6522
6424
|
for (let block, i = -1, n = this.numRecordBatches; ++i < n; ) {
|
|
6523
6425
|
if (block = this.getRecordBatch(i)) {
|
|
@@ -6540,16 +6442,16 @@ var Footer_ = class {
|
|
|
6540
6442
|
}
|
|
6541
6443
|
};
|
|
6542
6444
|
var OffHeapFooter = class extends Footer_ {
|
|
6543
|
-
constructor(schema, _footer) {
|
|
6544
|
-
super(schema, _footer.version());
|
|
6545
|
-
this._footer = _footer;
|
|
6546
|
-
}
|
|
6547
6445
|
get numRecordBatches() {
|
|
6548
6446
|
return this._footer.recordBatchesLength();
|
|
6549
6447
|
}
|
|
6550
6448
|
get numDictionaries() {
|
|
6551
6449
|
return this._footer.dictionariesLength();
|
|
6552
6450
|
}
|
|
6451
|
+
constructor(schema, _footer) {
|
|
6452
|
+
super(schema, _footer.version());
|
|
6453
|
+
this._footer = _footer;
|
|
6454
|
+
}
|
|
6553
6455
|
getRecordBatch(index) {
|
|
6554
6456
|
if (index >= 0 && index < this.numRecordBatches) {
|
|
6555
6457
|
const fileBlock = this._footer.recordBatches(index);
|
|
@@ -6569,26 +6471,26 @@ var OffHeapFooter = class extends Footer_ {
|
|
|
6569
6471
|
return null;
|
|
6570
6472
|
}
|
|
6571
6473
|
};
|
|
6572
|
-
var FileBlock = class {
|
|
6573
|
-
constructor(metaDataLength, bodyLength, offset) {
|
|
6574
|
-
this.metaDataLength = metaDataLength;
|
|
6575
|
-
this.offset = typeof offset === "number" ? offset : offset.low;
|
|
6576
|
-
this.bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
|
|
6577
|
-
}
|
|
6474
|
+
var FileBlock = class _FileBlock {
|
|
6578
6475
|
/** @nocollapse */
|
|
6579
6476
|
static decode(block) {
|
|
6580
|
-
return new
|
|
6477
|
+
return new _FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
|
|
6581
6478
|
}
|
|
6582
6479
|
/** @nocollapse */
|
|
6583
6480
|
static encode(b, fileBlock) {
|
|
6584
6481
|
const { metaDataLength } = fileBlock;
|
|
6585
|
-
const offset =
|
|
6586
|
-
const bodyLength =
|
|
6482
|
+
const offset = BigInt(fileBlock.offset);
|
|
6483
|
+
const bodyLength = BigInt(fileBlock.bodyLength);
|
|
6587
6484
|
return Block.createBlock(b, offset, metaDataLength, bodyLength);
|
|
6588
6485
|
}
|
|
6486
|
+
constructor(metaDataLength, bodyLength, offset) {
|
|
6487
|
+
this.metaDataLength = metaDataLength;
|
|
6488
|
+
this.offset = bigIntToNumber(offset);
|
|
6489
|
+
this.bodyLength = bigIntToNumber(bodyLength);
|
|
6490
|
+
}
|
|
6589
6491
|
};
|
|
6590
6492
|
|
|
6591
|
-
//
|
|
6493
|
+
// ../core/node_modules/apache-arrow/io/interfaces.mjs
|
|
6592
6494
|
var ITERATOR_DONE = Object.freeze({ done: true, value: void 0 });
|
|
6593
6495
|
var ArrowJSON = class {
|
|
6594
6496
|
constructor(_json) {
|
|
@@ -6711,7 +6613,7 @@ var AsyncQueue = class extends ReadableInterop {
|
|
|
6711
6613
|
}
|
|
6712
6614
|
};
|
|
6713
6615
|
|
|
6714
|
-
//
|
|
6616
|
+
// ../core/node_modules/apache-arrow/io/stream.mjs
|
|
6715
6617
|
var AsyncByteQueue = class extends AsyncQueue {
|
|
6716
6618
|
write(value) {
|
|
6717
6619
|
if ((value = toUint8Array(value)).byteLength > 0) {
|
|
@@ -6723,21 +6625,27 @@ var AsyncByteQueue = class extends AsyncQueue {
|
|
|
6723
6625
|
}
|
|
6724
6626
|
toUint8Array(sync = false) {
|
|
6725
6627
|
return sync ? joinUint8Arrays(this._values)[0] : (() => __awaiter(this, void 0, void 0, function* () {
|
|
6726
|
-
var e_1,
|
|
6628
|
+
var _a5, e_1, _b2, _c2;
|
|
6727
6629
|
const buffers = [];
|
|
6728
6630
|
let byteLength = 0;
|
|
6729
6631
|
try {
|
|
6730
|
-
for (var
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6632
|
+
for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; ) {
|
|
6633
|
+
_c2 = _f2.value;
|
|
6634
|
+
_d2 = false;
|
|
6635
|
+
try {
|
|
6636
|
+
const chunk = _c2;
|
|
6637
|
+
buffers.push(chunk);
|
|
6638
|
+
byteLength += chunk.byteLength;
|
|
6639
|
+
} finally {
|
|
6640
|
+
_d2 = true;
|
|
6641
|
+
}
|
|
6734
6642
|
}
|
|
6735
6643
|
} catch (e_1_1) {
|
|
6736
6644
|
e_1 = { error: e_1_1 };
|
|
6737
6645
|
} finally {
|
|
6738
6646
|
try {
|
|
6739
|
-
if (
|
|
6740
|
-
yield
|
|
6647
|
+
if (!_d2 && !_a5 && (_b2 = _e2.return))
|
|
6648
|
+
yield _b2.call(_e2);
|
|
6741
6649
|
} finally {
|
|
6742
6650
|
if (e_1)
|
|
6743
6651
|
throw e_1.error;
|
|
@@ -6772,9 +6680,9 @@ var ByteStream = class {
|
|
|
6772
6680
|
return this.source.read(size);
|
|
6773
6681
|
}
|
|
6774
6682
|
};
|
|
6775
|
-
var AsyncByteStream = class {
|
|
6683
|
+
var AsyncByteStream = class _AsyncByteStream {
|
|
6776
6684
|
constructor(source) {
|
|
6777
|
-
if (source instanceof
|
|
6685
|
+
if (source instanceof _AsyncByteStream) {
|
|
6778
6686
|
this.source = source.source;
|
|
6779
6687
|
} else if (source instanceof AsyncByteQueue) {
|
|
6780
6688
|
this.source = new AsyncByteStreamSource(adapters_default.fromAsyncIterable(source));
|
|
@@ -6886,13 +6794,13 @@ var AsyncByteStreamSource = class {
|
|
|
6886
6794
|
}
|
|
6887
6795
|
};
|
|
6888
6796
|
|
|
6889
|
-
//
|
|
6797
|
+
// ../core/node_modules/apache-arrow/io/file.mjs
|
|
6890
6798
|
var RandomAccessFile = class extends ByteStream {
|
|
6891
6799
|
constructor(buffer, byteLength) {
|
|
6892
6800
|
super();
|
|
6893
6801
|
this.position = 0;
|
|
6894
6802
|
this.buffer = toUint8Array(buffer);
|
|
6895
|
-
this.size =
|
|
6803
|
+
this.size = byteLength === void 0 ? this.buffer.byteLength : byteLength;
|
|
6896
6804
|
}
|
|
6897
6805
|
readInt32(position) {
|
|
6898
6806
|
const { buffer, byteOffset } = this.readAt(position, 4);
|
|
@@ -7009,7 +6917,7 @@ var AsyncRandomAccessFile = class extends AsyncByteStream {
|
|
|
7009
6917
|
}
|
|
7010
6918
|
};
|
|
7011
6919
|
|
|
7012
|
-
//
|
|
6920
|
+
// ../core/node_modules/apache-arrow/util/int.mjs
|
|
7013
6921
|
var int_exports = {};
|
|
7014
6922
|
__export(int_exports, {
|
|
7015
6923
|
BaseInt64: () => BaseInt64,
|
|
@@ -7094,7 +7002,7 @@ var BaseInt64 = class {
|
|
|
7094
7002
|
return `${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`;
|
|
7095
7003
|
}
|
|
7096
7004
|
};
|
|
7097
|
-
var Uint642 = class extends BaseInt64 {
|
|
7005
|
+
var Uint642 = class _Uint64 extends BaseInt64 {
|
|
7098
7006
|
times(other) {
|
|
7099
7007
|
this._times(other);
|
|
7100
7008
|
return this;
|
|
@@ -7105,20 +7013,20 @@ var Uint642 = class extends BaseInt64 {
|
|
|
7105
7013
|
}
|
|
7106
7014
|
/** @nocollapse */
|
|
7107
7015
|
static from(val, out_buffer = new Uint32Array(2)) {
|
|
7108
|
-
return
|
|
7016
|
+
return _Uint64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
|
|
7109
7017
|
}
|
|
7110
7018
|
/** @nocollapse */
|
|
7111
7019
|
static fromNumber(num, out_buffer = new Uint32Array(2)) {
|
|
7112
|
-
return
|
|
7020
|
+
return _Uint64.fromString(num.toString(), out_buffer);
|
|
7113
7021
|
}
|
|
7114
7022
|
/** @nocollapse */
|
|
7115
7023
|
static fromString(str, out_buffer = new Uint32Array(2)) {
|
|
7116
7024
|
const length2 = str.length;
|
|
7117
|
-
const out = new
|
|
7025
|
+
const out = new _Uint64(out_buffer);
|
|
7118
7026
|
for (let posn = 0; posn < length2; ) {
|
|
7119
7027
|
const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
|
|
7120
|
-
const chunk = new
|
|
7121
|
-
const multiple = new
|
|
7028
|
+
const chunk = new _Uint64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
|
|
7029
|
+
const multiple = new _Uint64(new Uint32Array([kPowersOfTen[group], 0]));
|
|
7122
7030
|
out.times(multiple);
|
|
7123
7031
|
out.plus(chunk);
|
|
7124
7032
|
posn += group;
|
|
@@ -7129,22 +7037,22 @@ var Uint642 = class extends BaseInt64 {
|
|
|
7129
7037
|
static convertArray(values) {
|
|
7130
7038
|
const data = new Uint32Array(values.length * 2);
|
|
7131
7039
|
for (let i = -1, n = values.length; ++i < n; ) {
|
|
7132
|
-
|
|
7040
|
+
_Uint64.from(values[i], new Uint32Array(data.buffer, data.byteOffset + 2 * i * 4, 2));
|
|
7133
7041
|
}
|
|
7134
7042
|
return data;
|
|
7135
7043
|
}
|
|
7136
7044
|
/** @nocollapse */
|
|
7137
7045
|
static multiply(left, right) {
|
|
7138
|
-
const rtrn = new
|
|
7046
|
+
const rtrn = new _Uint64(new Uint32Array(left.buffer));
|
|
7139
7047
|
return rtrn.times(right);
|
|
7140
7048
|
}
|
|
7141
7049
|
/** @nocollapse */
|
|
7142
7050
|
static add(left, right) {
|
|
7143
|
-
const rtrn = new
|
|
7051
|
+
const rtrn = new _Uint64(new Uint32Array(left.buffer));
|
|
7144
7052
|
return rtrn.plus(right);
|
|
7145
7053
|
}
|
|
7146
7054
|
};
|
|
7147
|
-
var Int642 = class extends BaseInt64 {
|
|
7055
|
+
var Int642 = class _Int64 extends BaseInt64 {
|
|
7148
7056
|
negate() {
|
|
7149
7057
|
this.buffer[0] = ~this.buffer[0] + 1;
|
|
7150
7058
|
this.buffer[1] = ~this.buffer[1];
|
|
@@ -7168,21 +7076,21 @@ var Int642 = class extends BaseInt64 {
|
|
|
7168
7076
|
}
|
|
7169
7077
|
/** @nocollapse */
|
|
7170
7078
|
static from(val, out_buffer = new Uint32Array(2)) {
|
|
7171
|
-
return
|
|
7079
|
+
return _Int64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
|
|
7172
7080
|
}
|
|
7173
7081
|
/** @nocollapse */
|
|
7174
7082
|
static fromNumber(num, out_buffer = new Uint32Array(2)) {
|
|
7175
|
-
return
|
|
7083
|
+
return _Int64.fromString(num.toString(), out_buffer);
|
|
7176
7084
|
}
|
|
7177
7085
|
/** @nocollapse */
|
|
7178
7086
|
static fromString(str, out_buffer = new Uint32Array(2)) {
|
|
7179
7087
|
const negate = str.startsWith("-");
|
|
7180
7088
|
const length2 = str.length;
|
|
7181
|
-
const out = new
|
|
7089
|
+
const out = new _Int64(out_buffer);
|
|
7182
7090
|
for (let posn = negate ? 1 : 0; posn < length2; ) {
|
|
7183
7091
|
const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
|
|
7184
|
-
const chunk = new
|
|
7185
|
-
const multiple = new
|
|
7092
|
+
const chunk = new _Int64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
|
|
7093
|
+
const multiple = new _Int64(new Uint32Array([kPowersOfTen[group], 0]));
|
|
7186
7094
|
out.times(multiple);
|
|
7187
7095
|
out.plus(chunk);
|
|
7188
7096
|
posn += group;
|
|
@@ -7193,22 +7101,22 @@ var Int642 = class extends BaseInt64 {
|
|
|
7193
7101
|
static convertArray(values) {
|
|
7194
7102
|
const data = new Uint32Array(values.length * 2);
|
|
7195
7103
|
for (let i = -1, n = values.length; ++i < n; ) {
|
|
7196
|
-
|
|
7104
|
+
_Int64.from(values[i], new Uint32Array(data.buffer, data.byteOffset + 2 * i * 4, 2));
|
|
7197
7105
|
}
|
|
7198
7106
|
return data;
|
|
7199
7107
|
}
|
|
7200
7108
|
/** @nocollapse */
|
|
7201
7109
|
static multiply(left, right) {
|
|
7202
|
-
const rtrn = new
|
|
7110
|
+
const rtrn = new _Int64(new Uint32Array(left.buffer));
|
|
7203
7111
|
return rtrn.times(right);
|
|
7204
7112
|
}
|
|
7205
7113
|
/** @nocollapse */
|
|
7206
7114
|
static add(left, right) {
|
|
7207
|
-
const rtrn = new
|
|
7115
|
+
const rtrn = new _Int64(new Uint32Array(left.buffer));
|
|
7208
7116
|
return rtrn.plus(right);
|
|
7209
7117
|
}
|
|
7210
7118
|
};
|
|
7211
|
-
var Int128 = class {
|
|
7119
|
+
var Int128 = class _Int128 {
|
|
7212
7120
|
constructor(buffer) {
|
|
7213
7121
|
this.buffer = buffer;
|
|
7214
7122
|
}
|
|
@@ -7284,31 +7192,31 @@ var Int128 = class {
|
|
|
7284
7192
|
}
|
|
7285
7193
|
/** @nocollapse */
|
|
7286
7194
|
static multiply(left, right) {
|
|
7287
|
-
const rtrn = new
|
|
7195
|
+
const rtrn = new _Int128(new Uint32Array(left.buffer));
|
|
7288
7196
|
return rtrn.times(right);
|
|
7289
7197
|
}
|
|
7290
7198
|
/** @nocollapse */
|
|
7291
7199
|
static add(left, right) {
|
|
7292
|
-
const rtrn = new
|
|
7200
|
+
const rtrn = new _Int128(new Uint32Array(left.buffer));
|
|
7293
7201
|
return rtrn.plus(right);
|
|
7294
7202
|
}
|
|
7295
7203
|
/** @nocollapse */
|
|
7296
7204
|
static from(val, out_buffer = new Uint32Array(4)) {
|
|
7297
|
-
return
|
|
7205
|
+
return _Int128.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
|
|
7298
7206
|
}
|
|
7299
7207
|
/** @nocollapse */
|
|
7300
7208
|
static fromNumber(num, out_buffer = new Uint32Array(4)) {
|
|
7301
|
-
return
|
|
7209
|
+
return _Int128.fromString(num.toString(), out_buffer);
|
|
7302
7210
|
}
|
|
7303
7211
|
/** @nocollapse */
|
|
7304
7212
|
static fromString(str, out_buffer = new Uint32Array(4)) {
|
|
7305
7213
|
const negate = str.startsWith("-");
|
|
7306
7214
|
const length2 = str.length;
|
|
7307
|
-
const out = new
|
|
7215
|
+
const out = new _Int128(out_buffer);
|
|
7308
7216
|
for (let posn = negate ? 1 : 0; posn < length2; ) {
|
|
7309
7217
|
const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
|
|
7310
|
-
const chunk = new
|
|
7311
|
-
const multiple = new
|
|
7218
|
+
const chunk = new _Int128(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0, 0, 0]));
|
|
7219
|
+
const multiple = new _Int128(new Uint32Array([kPowersOfTen[group], 0, 0, 0]));
|
|
7312
7220
|
out.times(multiple);
|
|
7313
7221
|
out.plus(chunk);
|
|
7314
7222
|
posn += group;
|
|
@@ -7319,13 +7227,13 @@ var Int128 = class {
|
|
|
7319
7227
|
static convertArray(values) {
|
|
7320
7228
|
const data = new Uint32Array(values.length * 4);
|
|
7321
7229
|
for (let i = -1, n = values.length; ++i < n; ) {
|
|
7322
|
-
|
|
7230
|
+
_Int128.from(values[i], new Uint32Array(data.buffer, data.byteOffset + 4 * 4 * i, 4));
|
|
7323
7231
|
}
|
|
7324
7232
|
return data;
|
|
7325
7233
|
}
|
|
7326
7234
|
};
|
|
7327
7235
|
|
|
7328
|
-
//
|
|
7236
|
+
// ../core/node_modules/apache-arrow/visitor/vectorloader.mjs
|
|
7329
7237
|
var VectorLoader = class extends Visitor {
|
|
7330
7238
|
constructor(bytes, nodes, buffers, dictionaries) {
|
|
7331
7239
|
super();
|
|
@@ -7464,7 +7372,7 @@ function binaryDataFromJSON(values) {
|
|
|
7464
7372
|
return data;
|
|
7465
7373
|
}
|
|
7466
7374
|
|
|
7467
|
-
//
|
|
7375
|
+
// ../core/node_modules/apache-arrow/builder/binary.mjs
|
|
7468
7376
|
var BinaryBuilder = class extends VariableWidthBuilder {
|
|
7469
7377
|
constructor(opts) {
|
|
7470
7378
|
super(opts);
|
|
@@ -7497,7 +7405,7 @@ var BinaryBuilder = class extends VariableWidthBuilder {
|
|
|
7497
7405
|
}
|
|
7498
7406
|
};
|
|
7499
7407
|
|
|
7500
|
-
//
|
|
7408
|
+
// ../core/node_modules/apache-arrow/builder/bool.mjs
|
|
7501
7409
|
var BoolBuilder = class extends Builder {
|
|
7502
7410
|
constructor(options) {
|
|
7503
7411
|
super(options);
|
|
@@ -7508,7 +7416,7 @@ var BoolBuilder = class extends Builder {
|
|
|
7508
7416
|
}
|
|
7509
7417
|
};
|
|
7510
7418
|
|
|
7511
|
-
//
|
|
7419
|
+
// ../core/node_modules/apache-arrow/builder/date.mjs
|
|
7512
7420
|
var DateBuilder = class extends FixedWidthBuilder {
|
|
7513
7421
|
};
|
|
7514
7422
|
DateBuilder.prototype._setValue = setDate;
|
|
@@ -7519,12 +7427,12 @@ var DateMillisecondBuilder = class extends DateBuilder {
|
|
|
7519
7427
|
};
|
|
7520
7428
|
DateMillisecondBuilder.prototype._setValue = setDateMillisecond;
|
|
7521
7429
|
|
|
7522
|
-
//
|
|
7430
|
+
// ../core/node_modules/apache-arrow/builder/decimal.mjs
|
|
7523
7431
|
var DecimalBuilder = class extends FixedWidthBuilder {
|
|
7524
7432
|
};
|
|
7525
7433
|
DecimalBuilder.prototype._setValue = setDecimal;
|
|
7526
7434
|
|
|
7527
|
-
//
|
|
7435
|
+
// ../core/node_modules/apache-arrow/builder/dictionary.mjs
|
|
7528
7436
|
var DictionaryBuilder = class extends Builder {
|
|
7529
7437
|
constructor({ "type": type, "nullValues": nulls, "dictionaryHashFunction": hashFn }) {
|
|
7530
7438
|
super({ type: new Dictionary(type.dictionary, type.indices, type.id, type.isOrdered) });
|
|
@@ -7601,12 +7509,12 @@ var DictionaryBuilder = class extends Builder {
|
|
|
7601
7509
|
}
|
|
7602
7510
|
};
|
|
7603
7511
|
|
|
7604
|
-
//
|
|
7512
|
+
// ../core/node_modules/apache-arrow/builder/fixedsizebinary.mjs
|
|
7605
7513
|
var FixedSizeBinaryBuilder = class extends FixedWidthBuilder {
|
|
7606
7514
|
};
|
|
7607
7515
|
FixedSizeBinaryBuilder.prototype._setValue = setFixedSizeBinary;
|
|
7608
7516
|
|
|
7609
|
-
//
|
|
7517
|
+
// ../core/node_modules/apache-arrow/builder/fixedsizelist.mjs
|
|
7610
7518
|
var FixedSizeListBuilder = class extends Builder {
|
|
7611
7519
|
setValue(index, value) {
|
|
7612
7520
|
const [child] = this.children;
|
|
@@ -7625,7 +7533,7 @@ var FixedSizeListBuilder = class extends Builder {
|
|
|
7625
7533
|
}
|
|
7626
7534
|
};
|
|
7627
7535
|
|
|
7628
|
-
//
|
|
7536
|
+
// ../core/node_modules/apache-arrow/builder/float.mjs
|
|
7629
7537
|
var FloatBuilder = class extends FixedWidthBuilder {
|
|
7630
7538
|
setValue(index, value) {
|
|
7631
7539
|
this._values.set(index, value);
|
|
@@ -7641,7 +7549,7 @@ var Float32Builder = class extends FloatBuilder {
|
|
|
7641
7549
|
var Float64Builder = class extends FloatBuilder {
|
|
7642
7550
|
};
|
|
7643
7551
|
|
|
7644
|
-
//
|
|
7552
|
+
// ../core/node_modules/apache-arrow/builder/interval.mjs
|
|
7645
7553
|
var IntervalBuilder = class extends FixedWidthBuilder {
|
|
7646
7554
|
};
|
|
7647
7555
|
IntervalBuilder.prototype._setValue = setIntervalValue;
|
|
@@ -7652,7 +7560,7 @@ var IntervalYearMonthBuilder = class extends IntervalBuilder {
|
|
|
7652
7560
|
};
|
|
7653
7561
|
IntervalYearMonthBuilder.prototype._setValue = setIntervalYearMonth;
|
|
7654
7562
|
|
|
7655
|
-
//
|
|
7563
|
+
// ../core/node_modules/apache-arrow/builder/int.mjs
|
|
7656
7564
|
var IntBuilder = class extends FixedWidthBuilder {
|
|
7657
7565
|
setValue(index, value) {
|
|
7658
7566
|
this._values.set(index, value);
|
|
@@ -7675,7 +7583,7 @@ var Uint32Builder = class extends IntBuilder {
|
|
|
7675
7583
|
var Uint64Builder = class extends IntBuilder {
|
|
7676
7584
|
};
|
|
7677
7585
|
|
|
7678
|
-
//
|
|
7586
|
+
// ../core/node_modules/apache-arrow/builder/list.mjs
|
|
7679
7587
|
var ListBuilder = class extends VariableWidthBuilder {
|
|
7680
7588
|
constructor(opts) {
|
|
7681
7589
|
super(opts);
|
|
@@ -7706,7 +7614,7 @@ var ListBuilder = class extends VariableWidthBuilder {
|
|
|
7706
7614
|
}
|
|
7707
7615
|
};
|
|
7708
7616
|
|
|
7709
|
-
//
|
|
7617
|
+
// ../core/node_modules/apache-arrow/builder/map.mjs
|
|
7710
7618
|
var MapBuilder = class extends VariableWidthBuilder {
|
|
7711
7619
|
set(index, value) {
|
|
7712
7620
|
return super.set(index, value);
|
|
@@ -7745,7 +7653,7 @@ var MapBuilder = class extends VariableWidthBuilder {
|
|
|
7745
7653
|
}
|
|
7746
7654
|
};
|
|
7747
7655
|
|
|
7748
|
-
//
|
|
7656
|
+
// ../core/node_modules/apache-arrow/builder/null.mjs
|
|
7749
7657
|
var NullBuilder = class extends Builder {
|
|
7750
7658
|
// @ts-ignore
|
|
7751
7659
|
setValue(index, value) {
|
|
@@ -7756,7 +7664,7 @@ var NullBuilder = class extends Builder {
|
|
|
7756
7664
|
}
|
|
7757
7665
|
};
|
|
7758
7666
|
|
|
7759
|
-
//
|
|
7667
|
+
// ../core/node_modules/apache-arrow/builder/struct.mjs
|
|
7760
7668
|
var StructBuilder = class extends Builder {
|
|
7761
7669
|
setValue(index, value) {
|
|
7762
7670
|
const { children, type } = this;
|
|
@@ -7783,7 +7691,7 @@ var StructBuilder = class extends Builder {
|
|
|
7783
7691
|
}
|
|
7784
7692
|
};
|
|
7785
7693
|
|
|
7786
|
-
//
|
|
7694
|
+
// ../core/node_modules/apache-arrow/builder/timestamp.mjs
|
|
7787
7695
|
var TimestampBuilder = class extends FixedWidthBuilder {
|
|
7788
7696
|
};
|
|
7789
7697
|
TimestampBuilder.prototype._setValue = setTimestamp;
|
|
@@ -7800,7 +7708,7 @@ var TimestampNanosecondBuilder = class extends TimestampBuilder {
|
|
|
7800
7708
|
};
|
|
7801
7709
|
TimestampNanosecondBuilder.prototype._setValue = setTimestampNanosecond;
|
|
7802
7710
|
|
|
7803
|
-
//
|
|
7711
|
+
// ../core/node_modules/apache-arrow/builder/time.mjs
|
|
7804
7712
|
var TimeBuilder = class extends FixedWidthBuilder {
|
|
7805
7713
|
};
|
|
7806
7714
|
TimeBuilder.prototype._setValue = setTime;
|
|
@@ -7817,7 +7725,7 @@ var TimeNanosecondBuilder = class extends TimeBuilder {
|
|
|
7817
7725
|
};
|
|
7818
7726
|
TimeNanosecondBuilder.prototype._setValue = setTimeNanosecond;
|
|
7819
7727
|
|
|
7820
|
-
//
|
|
7728
|
+
// ../core/node_modules/apache-arrow/builder/union.mjs
|
|
7821
7729
|
var UnionBuilder = class extends Builder {
|
|
7822
7730
|
constructor(options) {
|
|
7823
7731
|
super(options);
|
|
@@ -7876,7 +7784,7 @@ var DenseUnionBuilder = class extends UnionBuilder {
|
|
|
7876
7784
|
}
|
|
7877
7785
|
};
|
|
7878
7786
|
|
|
7879
|
-
//
|
|
7787
|
+
// ../core/node_modules/apache-arrow/builder/utf8.mjs
|
|
7880
7788
|
var Utf8Builder = class extends VariableWidthBuilder {
|
|
7881
7789
|
constructor(opts) {
|
|
7882
7790
|
super(opts);
|
|
@@ -7898,7 +7806,7 @@ var Utf8Builder = class extends VariableWidthBuilder {
|
|
|
7898
7806
|
};
|
|
7899
7807
|
Utf8Builder.prototype._flushPending = BinaryBuilder.prototype._flushPending;
|
|
7900
7808
|
|
|
7901
|
-
//
|
|
7809
|
+
// ../core/node_modules/apache-arrow/visitor/builderctor.mjs
|
|
7902
7810
|
var GetBuilderCtor = class extends Visitor {
|
|
7903
7811
|
visitNull() {
|
|
7904
7812
|
return NullBuilder;
|
|
@@ -8032,7 +7940,7 @@ var GetBuilderCtor = class extends Visitor {
|
|
|
8032
7940
|
};
|
|
8033
7941
|
var instance6 = new GetBuilderCtor();
|
|
8034
7942
|
|
|
8035
|
-
//
|
|
7943
|
+
// ../core/node_modules/apache-arrow/visitor/typecomparator.mjs
|
|
8036
7944
|
var TypeComparator = class extends Visitor {
|
|
8037
7945
|
compareSchemas(schema, other) {
|
|
8038
7946
|
return schema === other || other instanceof schema.constructor && this.compareManyFields(schema.fields, other.fields);
|
|
@@ -8143,7 +8051,7 @@ function compareTypes(type, other) {
|
|
|
8143
8051
|
return instance7.visit(type, other);
|
|
8144
8052
|
}
|
|
8145
8053
|
|
|
8146
|
-
//
|
|
8054
|
+
// ../core/node_modules/apache-arrow/factories.mjs
|
|
8147
8055
|
function makeBuilder(options) {
|
|
8148
8056
|
const type = options.type;
|
|
8149
8057
|
const builder = new (instance6.getVisitFn(type)())(options);
|
|
@@ -8160,7 +8068,7 @@ function makeBuilder(options) {
|
|
|
8160
8068
|
return builder;
|
|
8161
8069
|
}
|
|
8162
8070
|
|
|
8163
|
-
//
|
|
8071
|
+
// ../core/node_modules/apache-arrow/util/recordbatch.mjs
|
|
8164
8072
|
function distributeVectorsIntoRecordBatches(schema, vecs) {
|
|
8165
8073
|
return uniformlyDistributeChunksAcrossRecordBatches(schema, vecs.map((v) => v.data.concat()));
|
|
8166
8074
|
}
|
|
@@ -8221,9 +8129,9 @@ function distributeChildren(fields, batchLength, children, columns, memo) {
|
|
|
8221
8129
|
return children;
|
|
8222
8130
|
}
|
|
8223
8131
|
|
|
8224
|
-
//
|
|
8132
|
+
// ../core/node_modules/apache-arrow/table.mjs
|
|
8225
8133
|
var _a3;
|
|
8226
|
-
var Table = class {
|
|
8134
|
+
var Table = class _Table {
|
|
8227
8135
|
constructor(...args) {
|
|
8228
8136
|
var _b2, _c2;
|
|
8229
8137
|
if (args.length === 0) {
|
|
@@ -8244,7 +8152,7 @@ var Table = class {
|
|
|
8244
8152
|
if (x) {
|
|
8245
8153
|
if (x instanceof RecordBatch) {
|
|
8246
8154
|
return [x];
|
|
8247
|
-
} else if (x instanceof
|
|
8155
|
+
} else if (x instanceof _Table) {
|
|
8248
8156
|
return x.batches;
|
|
8249
8157
|
} else if (x instanceof Data) {
|
|
8250
8158
|
if (x.type instanceof Struct) {
|
|
@@ -8389,7 +8297,7 @@ var Table = class {
|
|
|
8389
8297
|
concat(...others) {
|
|
8390
8298
|
const schema = this.schema;
|
|
8391
8299
|
const data = this.data.concat(others.flatMap(({ data: data2 }) => data2));
|
|
8392
|
-
return new
|
|
8300
|
+
return new _Table(schema, data.map((data2) => new RecordBatch(schema, data2)));
|
|
8393
8301
|
}
|
|
8394
8302
|
/**
|
|
8395
8303
|
* Return a zero-copy sub-section of this Table.
|
|
@@ -8401,7 +8309,7 @@ var Table = class {
|
|
|
8401
8309
|
const schema = this.schema;
|
|
8402
8310
|
[begin, end] = clampRange({ length: this.numRows }, begin, end);
|
|
8403
8311
|
const data = sliceChunks(this.data, this._offsets, begin, end);
|
|
8404
|
-
return new
|
|
8312
|
+
return new _Table(schema, data.map((chunk) => new RecordBatch(schema, chunk)));
|
|
8405
8313
|
}
|
|
8406
8314
|
/**
|
|
8407
8315
|
* Returns a child Vector by name, or null if this Vector has no child with the given name.
|
|
@@ -8451,7 +8359,7 @@ var Table = class {
|
|
|
8451
8359
|
[fields[index], children[index]] = [field, child];
|
|
8452
8360
|
[schema, batches] = distributeVectorsIntoRecordBatches(schema, children);
|
|
8453
8361
|
}
|
|
8454
|
-
return new
|
|
8362
|
+
return new _Table(schema, batches);
|
|
8455
8363
|
}
|
|
8456
8364
|
/**
|
|
8457
8365
|
* Construct a new Table containing only specified columns.
|
|
@@ -8472,7 +8380,7 @@ var Table = class {
|
|
|
8472
8380
|
selectAt(columnIndices) {
|
|
8473
8381
|
const schema = this.schema.selectAt(columnIndices);
|
|
8474
8382
|
const data = this.batches.map((batch) => batch.selectAt(columnIndices));
|
|
8475
|
-
return new
|
|
8383
|
+
return new _Table(schema, data);
|
|
8476
8384
|
}
|
|
8477
8385
|
assign(other) {
|
|
8478
8386
|
const fields = this.schema.fields;
|
|
@@ -8487,7 +8395,7 @@ var Table = class {
|
|
|
8487
8395
|
...fields.map((_, i) => [i, oldToNew[i]]).map(([i, j]) => j === void 0 ? this.getChildAt(i) : other.getChildAt(j)),
|
|
8488
8396
|
...indices.map((i) => other.getChildAt(i))
|
|
8489
8397
|
].filter(Boolean);
|
|
8490
|
-
return new
|
|
8398
|
+
return new _Table(...distributeVectorsIntoRecordBatches(schema, columns));
|
|
8491
8399
|
}
|
|
8492
8400
|
};
|
|
8493
8401
|
_a3 = Symbol.toStringTag;
|
|
@@ -8505,9 +8413,9 @@ Table[_a3] = ((proto) => {
|
|
|
8505
8413
|
return "Table";
|
|
8506
8414
|
})(Table.prototype);
|
|
8507
8415
|
|
|
8508
|
-
//
|
|
8416
|
+
// ../core/node_modules/apache-arrow/recordbatch.mjs
|
|
8509
8417
|
var _a4;
|
|
8510
|
-
var RecordBatch = class {
|
|
8418
|
+
var RecordBatch = class _RecordBatch {
|
|
8511
8419
|
constructor(...args) {
|
|
8512
8420
|
switch (args.length) {
|
|
8513
8421
|
case 2: {
|
|
@@ -8635,7 +8543,7 @@ var RecordBatch = class {
|
|
|
8635
8543
|
*/
|
|
8636
8544
|
slice(begin, end) {
|
|
8637
8545
|
const [slice] = new Vector([this.data]).slice(begin, end).data;
|
|
8638
|
-
return new
|
|
8546
|
+
return new _RecordBatch(this.schema, slice);
|
|
8639
8547
|
}
|
|
8640
8548
|
/**
|
|
8641
8549
|
* Returns a child Vector by name, or null if this Vector has no child with the given name.
|
|
@@ -8678,7 +8586,7 @@ var RecordBatch = class {
|
|
|
8678
8586
|
schema = new Schema2(fields, new Map(this.schema.metadata));
|
|
8679
8587
|
data = makeData({ type: new Struct(fields), children });
|
|
8680
8588
|
}
|
|
8681
|
-
return new
|
|
8589
|
+
return new _RecordBatch(schema, data);
|
|
8682
8590
|
}
|
|
8683
8591
|
/**
|
|
8684
8592
|
* Construct a new RecordBatch containing only specified columns.
|
|
@@ -8696,7 +8604,7 @@ var RecordBatch = class {
|
|
|
8696
8604
|
children[index] = this.data.children[index];
|
|
8697
8605
|
}
|
|
8698
8606
|
}
|
|
8699
|
-
return new
|
|
8607
|
+
return new _RecordBatch(schema, makeData({ type, length: this.numRows, children }));
|
|
8700
8608
|
}
|
|
8701
8609
|
/**
|
|
8702
8610
|
* Construct a new RecordBatch containing only columns at the specified indices.
|
|
@@ -8708,7 +8616,7 @@ var RecordBatch = class {
|
|
|
8708
8616
|
const schema = this.schema.selectAt(columnIndices);
|
|
8709
8617
|
const children = columnIndices.map((i) => this.data.children[i]).filter(Boolean);
|
|
8710
8618
|
const subset = makeData({ type: new Struct(schema.fields), length: this.numRows, children });
|
|
8711
|
-
return new
|
|
8619
|
+
return new _RecordBatch(schema, subset);
|
|
8712
8620
|
}
|
|
8713
8621
|
};
|
|
8714
8622
|
_a4 = Symbol.toStringTag;
|
|
@@ -8767,21 +8675,21 @@ var _InternalEmptyPlaceholderRecordBatch = class extends RecordBatch {
|
|
|
8767
8675
|
}
|
|
8768
8676
|
};
|
|
8769
8677
|
|
|
8770
|
-
//
|
|
8678
|
+
// ../core/node_modules/apache-arrow/fb/body-compression-method.mjs
|
|
8771
8679
|
var BodyCompressionMethod;
|
|
8772
8680
|
(function(BodyCompressionMethod2) {
|
|
8773
8681
|
BodyCompressionMethod2[BodyCompressionMethod2["BUFFER"] = 0] = "BUFFER";
|
|
8774
8682
|
})(BodyCompressionMethod || (BodyCompressionMethod = {}));
|
|
8775
8683
|
|
|
8776
|
-
//
|
|
8684
|
+
// ../core/node_modules/apache-arrow/fb/compression-type.mjs
|
|
8777
8685
|
var CompressionType;
|
|
8778
8686
|
(function(CompressionType2) {
|
|
8779
8687
|
CompressionType2[CompressionType2["LZ4_FRAME"] = 0] = "LZ4_FRAME";
|
|
8780
8688
|
CompressionType2[CompressionType2["ZSTD"] = 1] = "ZSTD";
|
|
8781
8689
|
})(CompressionType || (CompressionType = {}));
|
|
8782
8690
|
|
|
8783
|
-
//
|
|
8784
|
-
var BodyCompression = class {
|
|
8691
|
+
// ../core/node_modules/apache-arrow/fb/body-compression.mjs
|
|
8692
|
+
var BodyCompression = class _BodyCompression {
|
|
8785
8693
|
constructor() {
|
|
8786
8694
|
this.bb = null;
|
|
8787
8695
|
this.bb_pos = 0;
|
|
@@ -8792,11 +8700,11 @@ var BodyCompression = class {
|
|
|
8792
8700
|
return this;
|
|
8793
8701
|
}
|
|
8794
8702
|
static getRootAsBodyCompression(bb, obj) {
|
|
8795
|
-
return (obj || new
|
|
8703
|
+
return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
8796
8704
|
}
|
|
8797
8705
|
static getSizePrefixedRootAsBodyCompression(bb, obj) {
|
|
8798
8706
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
8799
|
-
return (obj || new
|
|
8707
|
+
return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
8800
8708
|
}
|
|
8801
8709
|
/**
|
|
8802
8710
|
* Compressor library.
|
|
@@ -8827,14 +8735,14 @@ var BodyCompression = class {
|
|
|
8827
8735
|
return offset;
|
|
8828
8736
|
}
|
|
8829
8737
|
static createBodyCompression(builder, codec, method) {
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
return
|
|
8738
|
+
_BodyCompression.startBodyCompression(builder);
|
|
8739
|
+
_BodyCompression.addCodec(builder, codec);
|
|
8740
|
+
_BodyCompression.addMethod(builder, method);
|
|
8741
|
+
return _BodyCompression.endBodyCompression(builder);
|
|
8834
8742
|
}
|
|
8835
8743
|
};
|
|
8836
8744
|
|
|
8837
|
-
//
|
|
8745
|
+
// ../core/node_modules/apache-arrow/fb/buffer.mjs
|
|
8838
8746
|
var Buffer2 = class {
|
|
8839
8747
|
constructor() {
|
|
8840
8748
|
this.bb = null;
|
|
@@ -8867,13 +8775,13 @@ var Buffer2 = class {
|
|
|
8867
8775
|
}
|
|
8868
8776
|
static createBuffer(builder, offset, length2) {
|
|
8869
8777
|
builder.prep(8, 16);
|
|
8870
|
-
builder.writeInt64(length2);
|
|
8871
|
-
builder.writeInt64(offset);
|
|
8778
|
+
builder.writeInt64(BigInt(length2 !== null && length2 !== void 0 ? length2 : 0));
|
|
8779
|
+
builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
|
|
8872
8780
|
return builder.offset();
|
|
8873
8781
|
}
|
|
8874
8782
|
};
|
|
8875
8783
|
|
|
8876
|
-
//
|
|
8784
|
+
// ../core/node_modules/apache-arrow/fb/field-node.mjs
|
|
8877
8785
|
var FieldNode = class {
|
|
8878
8786
|
constructor() {
|
|
8879
8787
|
this.bb = null;
|
|
@@ -8904,14 +8812,14 @@ var FieldNode = class {
|
|
|
8904
8812
|
}
|
|
8905
8813
|
static createFieldNode(builder, length2, null_count) {
|
|
8906
8814
|
builder.prep(8, 16);
|
|
8907
|
-
builder.writeInt64(null_count);
|
|
8908
|
-
builder.writeInt64(length2);
|
|
8815
|
+
builder.writeInt64(BigInt(null_count !== null && null_count !== void 0 ? null_count : 0));
|
|
8816
|
+
builder.writeInt64(BigInt(length2 !== null && length2 !== void 0 ? length2 : 0));
|
|
8909
8817
|
return builder.offset();
|
|
8910
8818
|
}
|
|
8911
8819
|
};
|
|
8912
8820
|
|
|
8913
|
-
//
|
|
8914
|
-
var RecordBatch2 = class {
|
|
8821
|
+
// ../core/node_modules/apache-arrow/fb/record-batch.mjs
|
|
8822
|
+
var RecordBatch2 = class _RecordBatch {
|
|
8915
8823
|
constructor() {
|
|
8916
8824
|
this.bb = null;
|
|
8917
8825
|
this.bb_pos = 0;
|
|
@@ -8922,11 +8830,11 @@ var RecordBatch2 = class {
|
|
|
8922
8830
|
return this;
|
|
8923
8831
|
}
|
|
8924
8832
|
static getRootAsRecordBatch(bb, obj) {
|
|
8925
|
-
return (obj || new
|
|
8833
|
+
return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
8926
8834
|
}
|
|
8927
8835
|
static getSizePrefixedRootAsRecordBatch(bb, obj) {
|
|
8928
8836
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
8929
|
-
return (obj || new
|
|
8837
|
+
return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
8930
8838
|
}
|
|
8931
8839
|
/**
|
|
8932
8840
|
* number of records / rows. The arrays in the batch should all have this
|
|
@@ -8934,7 +8842,7 @@ var RecordBatch2 = class {
|
|
|
8934
8842
|
*/
|
|
8935
8843
|
length() {
|
|
8936
8844
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
8937
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
8845
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
8938
8846
|
}
|
|
8939
8847
|
/**
|
|
8940
8848
|
* Nodes correspond to the pre-ordered flattened logical schema
|
|
@@ -8974,7 +8882,7 @@ var RecordBatch2 = class {
|
|
|
8974
8882
|
builder.startObject(4);
|
|
8975
8883
|
}
|
|
8976
8884
|
static addLength(builder, length2) {
|
|
8977
|
-
builder.addFieldInt64(0, length2,
|
|
8885
|
+
builder.addFieldInt64(0, length2, BigInt("0"));
|
|
8978
8886
|
}
|
|
8979
8887
|
static addNodes(builder, nodesOffset) {
|
|
8980
8888
|
builder.addFieldOffset(1, nodesOffset, 0);
|
|
@@ -8997,8 +8905,8 @@ var RecordBatch2 = class {
|
|
|
8997
8905
|
}
|
|
8998
8906
|
};
|
|
8999
8907
|
|
|
9000
|
-
//
|
|
9001
|
-
var DictionaryBatch = class {
|
|
8908
|
+
// ../core/node_modules/apache-arrow/fb/dictionary-batch.mjs
|
|
8909
|
+
var DictionaryBatch = class _DictionaryBatch {
|
|
9002
8910
|
constructor() {
|
|
9003
8911
|
this.bb = null;
|
|
9004
8912
|
this.bb_pos = 0;
|
|
@@ -9009,15 +8917,15 @@ var DictionaryBatch = class {
|
|
|
9009
8917
|
return this;
|
|
9010
8918
|
}
|
|
9011
8919
|
static getRootAsDictionaryBatch(bb, obj) {
|
|
9012
|
-
return (obj || new
|
|
8920
|
+
return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
9013
8921
|
}
|
|
9014
8922
|
static getSizePrefixedRootAsDictionaryBatch(bb, obj) {
|
|
9015
8923
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
9016
|
-
return (obj || new
|
|
8924
|
+
return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
9017
8925
|
}
|
|
9018
8926
|
id() {
|
|
9019
8927
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
9020
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
8928
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
9021
8929
|
}
|
|
9022
8930
|
data(obj) {
|
|
9023
8931
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -9036,7 +8944,7 @@ var DictionaryBatch = class {
|
|
|
9036
8944
|
builder.startObject(3);
|
|
9037
8945
|
}
|
|
9038
8946
|
static addId(builder, id) {
|
|
9039
|
-
builder.addFieldInt64(0, id,
|
|
8947
|
+
builder.addFieldInt64(0, id, BigInt("0"));
|
|
9040
8948
|
}
|
|
9041
8949
|
static addData(builder, dataOffset) {
|
|
9042
8950
|
builder.addFieldOffset(1, dataOffset, 0);
|
|
@@ -9050,7 +8958,7 @@ var DictionaryBatch = class {
|
|
|
9050
8958
|
}
|
|
9051
8959
|
};
|
|
9052
8960
|
|
|
9053
|
-
//
|
|
8961
|
+
// ../core/node_modules/apache-arrow/fb/message-header.mjs
|
|
9054
8962
|
var MessageHeader2;
|
|
9055
8963
|
(function(MessageHeader3) {
|
|
9056
8964
|
MessageHeader3[MessageHeader3["NONE"] = 0] = "NONE";
|
|
@@ -9061,8 +8969,8 @@ var MessageHeader2;
|
|
|
9061
8969
|
MessageHeader3[MessageHeader3["SparseTensor"] = 5] = "SparseTensor";
|
|
9062
8970
|
})(MessageHeader2 || (MessageHeader2 = {}));
|
|
9063
8971
|
|
|
9064
|
-
//
|
|
9065
|
-
var Message = class {
|
|
8972
|
+
// ../core/node_modules/apache-arrow/fb/message.mjs
|
|
8973
|
+
var Message = class _Message {
|
|
9066
8974
|
constructor() {
|
|
9067
8975
|
this.bb = null;
|
|
9068
8976
|
this.bb_pos = 0;
|
|
@@ -9073,11 +8981,11 @@ var Message = class {
|
|
|
9073
8981
|
return this;
|
|
9074
8982
|
}
|
|
9075
8983
|
static getRootAsMessage(bb, obj) {
|
|
9076
|
-
return (obj || new
|
|
8984
|
+
return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
9077
8985
|
}
|
|
9078
8986
|
static getSizePrefixedRootAsMessage(bb, obj) {
|
|
9079
8987
|
bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
|
|
9080
|
-
return (obj || new
|
|
8988
|
+
return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
9081
8989
|
}
|
|
9082
8990
|
version() {
|
|
9083
8991
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -9087,14 +8995,13 @@ var Message = class {
|
|
|
9087
8995
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
9088
8996
|
return offset ? this.bb.readUint8(this.bb_pos + offset) : MessageHeader2.NONE;
|
|
9089
8997
|
}
|
|
9090
|
-
// @ts-ignore
|
|
9091
8998
|
header(obj) {
|
|
9092
8999
|
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
9093
9000
|
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
9094
9001
|
}
|
|
9095
9002
|
bodyLength() {
|
|
9096
9003
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
9097
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
9004
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
9098
9005
|
}
|
|
9099
9006
|
customMetadata(index, obj) {
|
|
9100
9007
|
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -9117,7 +9024,7 @@ var Message = class {
|
|
|
9117
9024
|
builder.addFieldOffset(2, headerOffset, 0);
|
|
9118
9025
|
}
|
|
9119
9026
|
static addBodyLength(builder, bodyLength) {
|
|
9120
|
-
builder.addFieldInt64(3, bodyLength,
|
|
9027
|
+
builder.addFieldInt64(3, bodyLength, BigInt("0"));
|
|
9121
9028
|
}
|
|
9122
9029
|
static addCustomMetadata(builder, customMetadataOffset) {
|
|
9123
9030
|
builder.addFieldOffset(4, customMetadataOffset, 0);
|
|
@@ -9143,18 +9050,17 @@ var Message = class {
|
|
|
9143
9050
|
builder.finish(offset, void 0, true);
|
|
9144
9051
|
}
|
|
9145
9052
|
static createMessage(builder, version, headerType, headerOffset, bodyLength, customMetadataOffset) {
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
return
|
|
9053
|
+
_Message.startMessage(builder);
|
|
9054
|
+
_Message.addVersion(builder, version);
|
|
9055
|
+
_Message.addHeaderType(builder, headerType);
|
|
9056
|
+
_Message.addHeader(builder, headerOffset);
|
|
9057
|
+
_Message.addBodyLength(builder, bodyLength);
|
|
9058
|
+
_Message.addCustomMetadata(builder, customMetadataOffset);
|
|
9059
|
+
return _Message.endMessage(builder);
|
|
9153
9060
|
}
|
|
9154
9061
|
};
|
|
9155
9062
|
|
|
9156
|
-
//
|
|
9157
|
-
var Long3 = Long;
|
|
9063
|
+
// ../core/node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
9158
9064
|
var TypeAssembler = class extends Visitor {
|
|
9159
9065
|
visit(node, builder) {
|
|
9160
9066
|
return node == null || builder == null ? void 0 : super.visit(node, builder);
|
|
@@ -9237,7 +9143,7 @@ var TypeAssembler = class extends Visitor {
|
|
|
9237
9143
|
visitDictionary(node, b) {
|
|
9238
9144
|
const indexType = this.visit(node.indices, b);
|
|
9239
9145
|
DictionaryEncoding.startDictionaryEncoding(b);
|
|
9240
|
-
DictionaryEncoding.addId(b,
|
|
9146
|
+
DictionaryEncoding.addId(b, BigInt(node.id));
|
|
9241
9147
|
DictionaryEncoding.addIsOrdered(b, node.isOrdered);
|
|
9242
9148
|
if (indexType !== void 0) {
|
|
9243
9149
|
DictionaryEncoding.addIndexType(b, indexType);
|
|
@@ -9262,7 +9168,7 @@ var TypeAssembler = class extends Visitor {
|
|
|
9262
9168
|
};
|
|
9263
9169
|
var instance8 = new TypeAssembler();
|
|
9264
9170
|
|
|
9265
|
-
//
|
|
9171
|
+
// ../core/node_modules/apache-arrow/ipc/metadata/json.mjs
|
|
9266
9172
|
function schemaFromJSON(_schema, dictionaries = /* @__PURE__ */ new Map()) {
|
|
9267
9173
|
return new Schema2(schemaFieldsFromJSON(_schema, dictionaries), customMetadataFromJSON(_schema["customMetadata"]), dictionaries);
|
|
9268
9174
|
}
|
|
@@ -9396,21 +9302,13 @@ function typeFromJSON(f, children) {
|
|
|
9396
9302
|
throw new Error(`Unrecognized type: "${typeId}"`);
|
|
9397
9303
|
}
|
|
9398
9304
|
|
|
9399
|
-
//
|
|
9400
|
-
var Long4 = Long;
|
|
9305
|
+
// ../core/node_modules/apache-arrow/ipc/metadata/message.mjs
|
|
9401
9306
|
var Builder4 = Builder2;
|
|
9402
9307
|
var ByteBuffer3 = ByteBuffer;
|
|
9403
|
-
var Message2 = class {
|
|
9404
|
-
constructor(bodyLength, version, headerType, header) {
|
|
9405
|
-
this._version = version;
|
|
9406
|
-
this._headerType = headerType;
|
|
9407
|
-
this.body = new Uint8Array(0);
|
|
9408
|
-
header && (this._createHeader = () => header);
|
|
9409
|
-
this._bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
|
|
9410
|
-
}
|
|
9308
|
+
var Message2 = class _Message {
|
|
9411
9309
|
/** @nocollapse */
|
|
9412
9310
|
static fromJSON(msg, headerType) {
|
|
9413
|
-
const message = new
|
|
9311
|
+
const message = new _Message(0, MetadataVersion.V4, headerType);
|
|
9414
9312
|
message._createHeader = messageHeaderFromJSON(msg, headerType);
|
|
9415
9313
|
return message;
|
|
9416
9314
|
}
|
|
@@ -9421,7 +9319,7 @@ var Message2 = class {
|
|
|
9421
9319
|
const bodyLength = _message.bodyLength();
|
|
9422
9320
|
const version = _message.version();
|
|
9423
9321
|
const headerType = _message.headerType();
|
|
9424
|
-
const message = new
|
|
9322
|
+
const message = new _Message(bodyLength, version, headerType);
|
|
9425
9323
|
message._createHeader = decodeMessageHeader(_message, headerType);
|
|
9426
9324
|
return message;
|
|
9427
9325
|
}
|
|
@@ -9440,20 +9338,20 @@ var Message2 = class {
|
|
|
9440
9338
|
Message.addVersion(b, MetadataVersion.V4);
|
|
9441
9339
|
Message.addHeader(b, headerOffset);
|
|
9442
9340
|
Message.addHeaderType(b, message.headerType);
|
|
9443
|
-
Message.addBodyLength(b,
|
|
9341
|
+
Message.addBodyLength(b, BigInt(message.bodyLength));
|
|
9444
9342
|
Message.finishMessageBuffer(b, Message.endMessage(b));
|
|
9445
9343
|
return b.asUint8Array();
|
|
9446
9344
|
}
|
|
9447
9345
|
/** @nocollapse */
|
|
9448
9346
|
static from(header, bodyLength = 0) {
|
|
9449
9347
|
if (header instanceof Schema2) {
|
|
9450
|
-
return new
|
|
9348
|
+
return new _Message(0, MetadataVersion.V4, MessageHeader.Schema, header);
|
|
9451
9349
|
}
|
|
9452
9350
|
if (header instanceof RecordBatch3) {
|
|
9453
|
-
return new
|
|
9351
|
+
return new _Message(bodyLength, MetadataVersion.V4, MessageHeader.RecordBatch, header);
|
|
9454
9352
|
}
|
|
9455
9353
|
if (header instanceof DictionaryBatch2) {
|
|
9456
|
-
return new
|
|
9354
|
+
return new _Message(bodyLength, MetadataVersion.V4, MessageHeader.DictionaryBatch, header);
|
|
9457
9355
|
}
|
|
9458
9356
|
throw new Error(`Unrecognized Message header: ${header}`);
|
|
9459
9357
|
}
|
|
@@ -9481,13 +9379,15 @@ var Message2 = class {
|
|
|
9481
9379
|
isDictionaryBatch() {
|
|
9482
9380
|
return this.headerType === MessageHeader.DictionaryBatch;
|
|
9483
9381
|
}
|
|
9382
|
+
constructor(bodyLength, version, headerType, header) {
|
|
9383
|
+
this._version = version;
|
|
9384
|
+
this._headerType = headerType;
|
|
9385
|
+
this.body = new Uint8Array(0);
|
|
9386
|
+
header && (this._createHeader = () => header);
|
|
9387
|
+
this._bodyLength = bigIntToNumber(bodyLength);
|
|
9388
|
+
}
|
|
9484
9389
|
};
|
|
9485
9390
|
var RecordBatch3 = class {
|
|
9486
|
-
constructor(length2, nodes, buffers) {
|
|
9487
|
-
this._nodes = nodes;
|
|
9488
|
-
this._buffers = buffers;
|
|
9489
|
-
this._length = typeof length2 === "number" ? length2 : length2.low;
|
|
9490
|
-
}
|
|
9491
9391
|
get nodes() {
|
|
9492
9392
|
return this._nodes;
|
|
9493
9393
|
}
|
|
@@ -9497,13 +9397,13 @@ var RecordBatch3 = class {
|
|
|
9497
9397
|
get buffers() {
|
|
9498
9398
|
return this._buffers;
|
|
9499
9399
|
}
|
|
9400
|
+
constructor(length2, nodes, buffers) {
|
|
9401
|
+
this._nodes = nodes;
|
|
9402
|
+
this._buffers = buffers;
|
|
9403
|
+
this._length = bigIntToNumber(length2);
|
|
9404
|
+
}
|
|
9500
9405
|
};
|
|
9501
9406
|
var DictionaryBatch2 = class {
|
|
9502
|
-
constructor(data, id, isDelta = false) {
|
|
9503
|
-
this._data = data;
|
|
9504
|
-
this._isDelta = isDelta;
|
|
9505
|
-
this._id = typeof id === "number" ? id : id.low;
|
|
9506
|
-
}
|
|
9507
9407
|
get id() {
|
|
9508
9408
|
return this._id;
|
|
9509
9409
|
}
|
|
@@ -9522,17 +9422,22 @@ var DictionaryBatch2 = class {
|
|
|
9522
9422
|
get buffers() {
|
|
9523
9423
|
return this.data.buffers;
|
|
9524
9424
|
}
|
|
9425
|
+
constructor(data, id, isDelta = false) {
|
|
9426
|
+
this._data = data;
|
|
9427
|
+
this._isDelta = isDelta;
|
|
9428
|
+
this._id = bigIntToNumber(id);
|
|
9429
|
+
}
|
|
9525
9430
|
};
|
|
9526
9431
|
var BufferRegion = class {
|
|
9527
9432
|
constructor(offset, length2) {
|
|
9528
|
-
this.offset =
|
|
9529
|
-
this.length =
|
|
9433
|
+
this.offset = bigIntToNumber(offset);
|
|
9434
|
+
this.length = bigIntToNumber(length2);
|
|
9530
9435
|
}
|
|
9531
9436
|
};
|
|
9532
9437
|
var FieldNode2 = class {
|
|
9533
9438
|
constructor(length2, nullCount) {
|
|
9534
|
-
this.length =
|
|
9535
|
-
this.nullCount =
|
|
9439
|
+
this.length = bigIntToNumber(length2);
|
|
9440
|
+
this.nullCount = bigIntToNumber(nullCount);
|
|
9536
9441
|
}
|
|
9537
9442
|
};
|
|
9538
9443
|
function messageHeaderFromJSON(message, type) {
|
|
@@ -9645,7 +9550,7 @@ function decodeField(f, dictionaries) {
|
|
|
9645
9550
|
if (!dictionaries || !(dictMeta = f.dictionary())) {
|
|
9646
9551
|
type = decodeFieldType(f, decodeFieldChildren(f, dictionaries));
|
|
9647
9552
|
field = new Field2(f.name(), type, f.nullable(), decodeCustomMetadata(f));
|
|
9648
|
-
} else if (!dictionaries.has(id = dictMeta.id()
|
|
9553
|
+
} else if (!dictionaries.has(id = bigIntToNumber(dictMeta.id()))) {
|
|
9649
9554
|
keys = (keys = dictMeta.indexType()) ? decodeIndexType(keys) : new Int32();
|
|
9650
9555
|
dictionaries.set(id, type = decodeFieldType(f, decodeFieldChildren(f, dictionaries)));
|
|
9651
9556
|
dictType = new Dictionary(type, keys, id, dictMeta.isOrdered());
|
|
@@ -9811,7 +9716,7 @@ function encodeRecordBatch(b, recordBatch) {
|
|
|
9811
9716
|
BufferRegion.encode(b, b_);
|
|
9812
9717
|
const buffersVectorOffset = b.endVector();
|
|
9813
9718
|
RecordBatch2.startRecordBatch(b);
|
|
9814
|
-
RecordBatch2.addLength(b,
|
|
9719
|
+
RecordBatch2.addLength(b, BigInt(recordBatch.length));
|
|
9815
9720
|
RecordBatch2.addNodes(b, nodesVectorOffset);
|
|
9816
9721
|
RecordBatch2.addBuffers(b, buffersVectorOffset);
|
|
9817
9722
|
return RecordBatch2.endRecordBatch(b);
|
|
@@ -9819,16 +9724,16 @@ function encodeRecordBatch(b, recordBatch) {
|
|
|
9819
9724
|
function encodeDictionaryBatch(b, dictionaryBatch) {
|
|
9820
9725
|
const dataOffset = RecordBatch3.encode(b, dictionaryBatch.data);
|
|
9821
9726
|
DictionaryBatch.startDictionaryBatch(b);
|
|
9822
|
-
DictionaryBatch.addId(b,
|
|
9727
|
+
DictionaryBatch.addId(b, BigInt(dictionaryBatch.id));
|
|
9823
9728
|
DictionaryBatch.addIsDelta(b, dictionaryBatch.isDelta);
|
|
9824
9729
|
DictionaryBatch.addData(b, dataOffset);
|
|
9825
9730
|
return DictionaryBatch.endDictionaryBatch(b);
|
|
9826
9731
|
}
|
|
9827
9732
|
function encodeFieldNode(b, node) {
|
|
9828
|
-
return FieldNode.createFieldNode(b,
|
|
9733
|
+
return FieldNode.createFieldNode(b, BigInt(node.length), BigInt(node.nullCount));
|
|
9829
9734
|
}
|
|
9830
9735
|
function encodeBufferRegion(b, node) {
|
|
9831
|
-
return Buffer2.createBuffer(b,
|
|
9736
|
+
return Buffer2.createBuffer(b, BigInt(node.offset), BigInt(node.length));
|
|
9832
9737
|
}
|
|
9833
9738
|
var platformIsLittleEndian = (() => {
|
|
9834
9739
|
const buffer = new ArrayBuffer(2);
|
|
@@ -9841,7 +9746,7 @@ var platformIsLittleEndian = (() => {
|
|
|
9841
9746
|
return new Int16Array(buffer)[0] === 256;
|
|
9842
9747
|
})();
|
|
9843
9748
|
|
|
9844
|
-
//
|
|
9749
|
+
// ../core/node_modules/apache-arrow/ipc/message.mjs
|
|
9845
9750
|
var invalidMessageType = (type) => `Expected ${MessageHeader[type]} Message in stream, but was null or length 0.`;
|
|
9846
9751
|
var nullMessage = (type) => `Header pointer of flatbuffer-encoded ${MessageHeader[type]} Message is null or length 0.`;
|
|
9847
9752
|
var invalidMessageMetadata = (expected, actual) => `Expected to read ${expected} metadata bytes, but only read ${actual}.`;
|
|
@@ -10096,8 +10001,8 @@ var magicLength = MAGIC.length;
|
|
|
10096
10001
|
var magicAndPadding = magicLength + PADDING;
|
|
10097
10002
|
var magicX2AndPadding = magicLength * 2 + PADDING;
|
|
10098
10003
|
|
|
10099
|
-
//
|
|
10100
|
-
var RecordBatchReader = class extends ReadableInterop {
|
|
10004
|
+
// ../core/node_modules/apache-arrow/ipc/reader.mjs
|
|
10005
|
+
var RecordBatchReader = class _RecordBatchReader extends ReadableInterop {
|
|
10101
10006
|
constructor(impl) {
|
|
10102
10007
|
super();
|
|
10103
10008
|
this._impl = impl;
|
|
@@ -10183,7 +10088,7 @@ var RecordBatchReader = class extends ReadableInterop {
|
|
|
10183
10088
|
}
|
|
10184
10089
|
/** @nocollapse */
|
|
10185
10090
|
static from(source) {
|
|
10186
|
-
if (source instanceof
|
|
10091
|
+
if (source instanceof _RecordBatchReader) {
|
|
10187
10092
|
return source;
|
|
10188
10093
|
} else if (isArrowJSON(source)) {
|
|
10189
10094
|
return fromArrowJSON(source);
|
|
@@ -10191,7 +10096,7 @@ var RecordBatchReader = class extends ReadableInterop {
|
|
|
10191
10096
|
return fromFileHandle(source);
|
|
10192
10097
|
} else if (isPromise(source)) {
|
|
10193
10098
|
return (() => __awaiter(this, void 0, void 0, function* () {
|
|
10194
|
-
return yield
|
|
10099
|
+
return yield _RecordBatchReader.from(yield source);
|
|
10195
10100
|
}))();
|
|
10196
10101
|
} else if (isFetchResponse(source) || isReadableDOMStream(source) || isReadableNodeStream(source) || isAsyncIterable(source)) {
|
|
10197
10102
|
return fromAsyncByteStream(new AsyncByteStream(source));
|
|
@@ -10200,7 +10105,7 @@ var RecordBatchReader = class extends ReadableInterop {
|
|
|
10200
10105
|
}
|
|
10201
10106
|
/** @nocollapse */
|
|
10202
10107
|
static readAll(source) {
|
|
10203
|
-
if (source instanceof
|
|
10108
|
+
if (source instanceof _RecordBatchReader) {
|
|
10204
10109
|
return source.isSync() ? readAllSync(source) : readAllAsync(source);
|
|
10205
10110
|
} else if (isArrowJSON(source) || ArrayBuffer.isView(source) || isIterable(source) || isIteratorResult(source)) {
|
|
10206
10111
|
return readAllSync(source);
|
|
@@ -10231,20 +10136,26 @@ var AsyncRecordBatchStreamReader = class extends RecordBatchReader {
|
|
|
10231
10136
|
this._impl = _impl;
|
|
10232
10137
|
}
|
|
10233
10138
|
readAll() {
|
|
10234
|
-
var e_1,
|
|
10139
|
+
var _a5, e_1, _b2, _c2;
|
|
10235
10140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10236
10141
|
const batches = new Array();
|
|
10237
10142
|
try {
|
|
10238
|
-
for (var
|
|
10239
|
-
|
|
10240
|
-
|
|
10143
|
+
for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; ) {
|
|
10144
|
+
_c2 = _f2.value;
|
|
10145
|
+
_d2 = false;
|
|
10146
|
+
try {
|
|
10147
|
+
const batch = _c2;
|
|
10148
|
+
batches.push(batch);
|
|
10149
|
+
} finally {
|
|
10150
|
+
_d2 = true;
|
|
10151
|
+
}
|
|
10241
10152
|
}
|
|
10242
10153
|
} catch (e_1_1) {
|
|
10243
10154
|
e_1 = { error: e_1_1 };
|
|
10244
10155
|
} finally {
|
|
10245
10156
|
try {
|
|
10246
|
-
if (
|
|
10247
|
-
yield
|
|
10157
|
+
if (!_d2 && !_a5 && (_b2 = _e2.return))
|
|
10158
|
+
yield _b2.call(_e2);
|
|
10248
10159
|
} finally {
|
|
10249
10160
|
if (e_1)
|
|
10250
10161
|
throw e_1.error;
|
|
@@ -10273,6 +10184,12 @@ var AsyncRecordBatchFileReader = class extends AsyncRecordBatchStreamReader {
|
|
|
10273
10184
|
}
|
|
10274
10185
|
};
|
|
10275
10186
|
var RecordBatchReaderImpl = class {
|
|
10187
|
+
get numDictionaries() {
|
|
10188
|
+
return this._dictionaryIndex;
|
|
10189
|
+
}
|
|
10190
|
+
get numRecordBatches() {
|
|
10191
|
+
return this._recordBatchIndex;
|
|
10192
|
+
}
|
|
10276
10193
|
constructor(dictionaries = /* @__PURE__ */ new Map()) {
|
|
10277
10194
|
this.closed = false;
|
|
10278
10195
|
this.autoDestroy = true;
|
|
@@ -10280,12 +10197,6 @@ var RecordBatchReaderImpl = class {
|
|
|
10280
10197
|
this._recordBatchIndex = 0;
|
|
10281
10198
|
this.dictionaries = dictionaries;
|
|
10282
10199
|
}
|
|
10283
|
-
get numDictionaries() {
|
|
10284
|
-
return this._dictionaryIndex;
|
|
10285
|
-
}
|
|
10286
|
-
get numRecordBatches() {
|
|
10287
|
-
return this._recordBatchIndex;
|
|
10288
|
-
}
|
|
10289
10200
|
isSync() {
|
|
10290
10201
|
return false;
|
|
10291
10202
|
}
|
|
@@ -10488,9 +10399,6 @@ var AsyncRecordBatchStreamReaderImpl = class extends RecordBatchReaderImpl {
|
|
|
10488
10399
|
}
|
|
10489
10400
|
};
|
|
10490
10401
|
var RecordBatchFileReaderImpl = class extends RecordBatchStreamReaderImpl {
|
|
10491
|
-
constructor(source, dictionaries) {
|
|
10492
|
-
super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
|
|
10493
|
-
}
|
|
10494
10402
|
get footer() {
|
|
10495
10403
|
return this._footer;
|
|
10496
10404
|
}
|
|
@@ -10500,6 +10408,9 @@ var RecordBatchFileReaderImpl = class extends RecordBatchStreamReaderImpl {
|
|
|
10500
10408
|
get numRecordBatches() {
|
|
10501
10409
|
return this._footer ? this._footer.numRecordBatches : 0;
|
|
10502
10410
|
}
|
|
10411
|
+
constructor(source, dictionaries) {
|
|
10412
|
+
super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
|
|
10413
|
+
}
|
|
10503
10414
|
isSync() {
|
|
10504
10415
|
return true;
|
|
10505
10416
|
}
|
|
@@ -10570,11 +10481,6 @@ var RecordBatchFileReaderImpl = class extends RecordBatchStreamReaderImpl {
|
|
|
10570
10481
|
}
|
|
10571
10482
|
};
|
|
10572
10483
|
var AsyncRecordBatchFileReaderImpl = class extends AsyncRecordBatchStreamReaderImpl {
|
|
10573
|
-
constructor(source, ...rest) {
|
|
10574
|
-
const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
|
|
10575
|
-
const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
|
|
10576
|
-
super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
|
|
10577
|
-
}
|
|
10578
10484
|
get footer() {
|
|
10579
10485
|
return this._footer;
|
|
10580
10486
|
}
|
|
@@ -10584,6 +10490,11 @@ var AsyncRecordBatchFileReaderImpl = class extends AsyncRecordBatchStreamReaderI
|
|
|
10584
10490
|
get numRecordBatches() {
|
|
10585
10491
|
return this._footer ? this._footer.numRecordBatches : 0;
|
|
10586
10492
|
}
|
|
10493
|
+
constructor(source, ...rest) {
|
|
10494
|
+
const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
|
|
10495
|
+
const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
|
|
10496
|
+
super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
|
|
10497
|
+
}
|
|
10587
10498
|
isFile() {
|
|
10588
10499
|
return true;
|
|
10589
10500
|
}
|
|
@@ -10708,7 +10619,7 @@ function fromArrowJSON(source) {
|
|
|
10708
10619
|
}
|
|
10709
10620
|
function fromByteStream(source) {
|
|
10710
10621
|
const bytes = source.peek(magicLength + 7 & ~7);
|
|
10711
|
-
return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString(bytes) ? new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(source)) : new RecordBatchFileReader(new RecordBatchFileReaderImpl(source.read())) : new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(function* () {
|
|
10622
|
+
return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString(bytes) ? new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(source)) : new RecordBatchFileReader(new RecordBatchFileReaderImpl(source.read())) : new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(/* @__PURE__ */ function* () {
|
|
10712
10623
|
}()));
|
|
10713
10624
|
}
|
|
10714
10625
|
function fromAsyncByteStream(source) {
|
|
@@ -10731,8 +10642,15 @@ function fromFileHandle(source) {
|
|
|
10731
10642
|
});
|
|
10732
10643
|
}
|
|
10733
10644
|
|
|
10734
|
-
//
|
|
10735
|
-
var VectorAssembler = class extends Visitor {
|
|
10645
|
+
// ../core/node_modules/apache-arrow/visitor/vectorassembler.mjs
|
|
10646
|
+
var VectorAssembler = class _VectorAssembler extends Visitor {
|
|
10647
|
+
/** @nocollapse */
|
|
10648
|
+
static assemble(...args) {
|
|
10649
|
+
const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
|
|
10650
|
+
const assembler = new _VectorAssembler();
|
|
10651
|
+
assembler.visitMany(unwrap(args));
|
|
10652
|
+
return assembler;
|
|
10653
|
+
}
|
|
10736
10654
|
constructor() {
|
|
10737
10655
|
super();
|
|
10738
10656
|
this._byteLength = 0;
|
|
@@ -10740,13 +10658,6 @@ var VectorAssembler = class extends Visitor {
|
|
|
10740
10658
|
this._buffers = [];
|
|
10741
10659
|
this._bufferRegions = [];
|
|
10742
10660
|
}
|
|
10743
|
-
/** @nocollapse */
|
|
10744
|
-
static assemble(...args) {
|
|
10745
|
-
const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
|
|
10746
|
-
const assembler = new VectorAssembler();
|
|
10747
|
-
assembler.visitMany(unwrap(args));
|
|
10748
|
-
return assembler;
|
|
10749
|
-
}
|
|
10750
10661
|
visit(data) {
|
|
10751
10662
|
if (data instanceof Vector) {
|
|
10752
10663
|
this.visitMany(data.data);
|
|
@@ -10873,8 +10784,17 @@ VectorAssembler.prototype.visitInterval = assembleFlatVector;
|
|
|
10873
10784
|
VectorAssembler.prototype.visitFixedSizeList = assembleListVector;
|
|
10874
10785
|
VectorAssembler.prototype.visitMap = assembleListVector;
|
|
10875
10786
|
|
|
10876
|
-
//
|
|
10787
|
+
// ../core/node_modules/apache-arrow/ipc/writer.mjs
|
|
10877
10788
|
var RecordBatchWriter = class extends ReadableInterop {
|
|
10789
|
+
/** @nocollapse */
|
|
10790
|
+
// @ts-ignore
|
|
10791
|
+
static throughNode(options) {
|
|
10792
|
+
throw new Error(`"throughNode" not available in this environment`);
|
|
10793
|
+
}
|
|
10794
|
+
/** @nocollapse */
|
|
10795
|
+
static throughDOM(writableStrategy, readableStrategy) {
|
|
10796
|
+
throw new Error(`"throughDOM" not available in this environment`);
|
|
10797
|
+
}
|
|
10878
10798
|
constructor(options) {
|
|
10879
10799
|
super();
|
|
10880
10800
|
this._position = 0;
|
|
@@ -10888,15 +10808,6 @@ var RecordBatchWriter = class extends ReadableInterop {
|
|
|
10888
10808
|
this._autoDestroy = typeof options.autoDestroy === "boolean" ? options.autoDestroy : true;
|
|
10889
10809
|
this._writeLegacyIpcFormat = typeof options.writeLegacyIpcFormat === "boolean" ? options.writeLegacyIpcFormat : false;
|
|
10890
10810
|
}
|
|
10891
|
-
/** @nocollapse */
|
|
10892
|
-
// @ts-ignore
|
|
10893
|
-
static throughNode(options) {
|
|
10894
|
-
throw new Error(`"throughNode" not available in this environment`);
|
|
10895
|
-
}
|
|
10896
|
-
/** @nocollapse */
|
|
10897
|
-
static throughDOM(writableStrategy, readableStrategy) {
|
|
10898
|
-
throw new Error(`"throughDOM" not available in this environment`);
|
|
10899
|
-
}
|
|
10900
10811
|
toString(sync = false) {
|
|
10901
10812
|
return this._sink.toString(sync);
|
|
10902
10813
|
}
|
|
@@ -11074,10 +10985,10 @@ var RecordBatchWriter = class extends ReadableInterop {
|
|
|
11074
10985
|
return this;
|
|
11075
10986
|
}
|
|
11076
10987
|
};
|
|
11077
|
-
var RecordBatchStreamWriter = class extends RecordBatchWriter {
|
|
10988
|
+
var RecordBatchStreamWriter = class _RecordBatchStreamWriter extends RecordBatchWriter {
|
|
11078
10989
|
/** @nocollapse */
|
|
11079
10990
|
static writeAll(input2, options) {
|
|
11080
|
-
const writer = new
|
|
10991
|
+
const writer = new _RecordBatchStreamWriter(options);
|
|
11081
10992
|
if (isPromise(input2)) {
|
|
11082
10993
|
return input2.then((x) => writer.writeAll(x));
|
|
11083
10994
|
} else if (isAsyncIterable(input2)) {
|
|
@@ -11086,10 +10997,10 @@ var RecordBatchStreamWriter = class extends RecordBatchWriter {
|
|
|
11086
10997
|
return writeAll(writer, input2);
|
|
11087
10998
|
}
|
|
11088
10999
|
};
|
|
11089
|
-
var RecordBatchFileWriter = class extends RecordBatchWriter {
|
|
11000
|
+
var RecordBatchFileWriter = class _RecordBatchFileWriter extends RecordBatchWriter {
|
|
11090
11001
|
/** @nocollapse */
|
|
11091
11002
|
static writeAll(input2) {
|
|
11092
|
-
const writer = new
|
|
11003
|
+
const writer = new _RecordBatchFileWriter();
|
|
11093
11004
|
if (isPromise(input2)) {
|
|
11094
11005
|
return input2.then((x) => writer.writeAll(x));
|
|
11095
11006
|
} else if (isAsyncIterable(input2)) {
|
|
@@ -11122,20 +11033,26 @@ function writeAll(writer, input2) {
|
|
|
11122
11033
|
return writer.finish();
|
|
11123
11034
|
}
|
|
11124
11035
|
function writeAllAsync(writer, batches) {
|
|
11125
|
-
var batches_1, batches_1_1;
|
|
11126
|
-
var e_1,
|
|
11036
|
+
var _a5, batches_1, batches_1_1;
|
|
11037
|
+
var _b2, e_1, _c2, _d2;
|
|
11127
11038
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11128
11039
|
try {
|
|
11129
|
-
for (batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(),
|
|
11130
|
-
|
|
11131
|
-
|
|
11040
|
+
for (_a5 = true, batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(), _b2 = batches_1_1.done, !_b2; ) {
|
|
11041
|
+
_d2 = batches_1_1.value;
|
|
11042
|
+
_a5 = false;
|
|
11043
|
+
try {
|
|
11044
|
+
const batch = _d2;
|
|
11045
|
+
writer.write(batch);
|
|
11046
|
+
} finally {
|
|
11047
|
+
_a5 = true;
|
|
11048
|
+
}
|
|
11132
11049
|
}
|
|
11133
11050
|
} catch (e_1_1) {
|
|
11134
11051
|
e_1 = { error: e_1_1 };
|
|
11135
11052
|
} finally {
|
|
11136
11053
|
try {
|
|
11137
|
-
if (
|
|
11138
|
-
yield
|
|
11054
|
+
if (!_a5 && !_b2 && (_c2 = batches_1.return))
|
|
11055
|
+
yield _c2.call(batches_1);
|
|
11139
11056
|
} finally {
|
|
11140
11057
|
if (e_1)
|
|
11141
11058
|
throw e_1.error;
|
|
@@ -11145,7 +11062,7 @@ function writeAllAsync(writer, batches) {
|
|
|
11145
11062
|
});
|
|
11146
11063
|
}
|
|
11147
11064
|
|
|
11148
|
-
//
|
|
11065
|
+
// ../core/node_modules/apache-arrow/io/whatwg/iterable.mjs
|
|
11149
11066
|
function toDOMStream(source, options) {
|
|
11150
11067
|
if (isAsyncIterable(source)) {
|
|
11151
11068
|
return asyncIterableAsReadableDOMStream(source, options);
|
|
@@ -11228,7 +11145,7 @@ function asyncIterableAsReadableDOMStream(source, options) {
|
|
|
11228
11145
|
}
|
|
11229
11146
|
}
|
|
11230
11147
|
|
|
11231
|
-
//
|
|
11148
|
+
// ../core/node_modules/apache-arrow/io/whatwg/builder.mjs
|
|
11232
11149
|
function builderThroughDOMStream(options) {
|
|
11233
11150
|
return new BuilderTransform(options);
|
|
11234
11151
|
}
|
|
@@ -11308,7 +11225,7 @@ var chunkByteLength = (chunk) => {
|
|
|
11308
11225
|
return (_a5 = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a5 !== void 0 ? _a5 : 0;
|
|
11309
11226
|
};
|
|
11310
11227
|
|
|
11311
|
-
//
|
|
11228
|
+
// ../core/node_modules/apache-arrow/io/whatwg/reader.mjs
|
|
11312
11229
|
function recordBatchReaderThroughDOMStream(writableStrategy, readableStrategy) {
|
|
11313
11230
|
const queue = new AsyncByteQueue();
|
|
11314
11231
|
let reader = null;
|
|
@@ -11350,7 +11267,7 @@ function recordBatchReaderThroughDOMStream(writableStrategy, readableStrategy) {
|
|
|
11350
11267
|
}
|
|
11351
11268
|
}
|
|
11352
11269
|
|
|
11353
|
-
//
|
|
11270
|
+
// ../core/node_modules/apache-arrow/io/whatwg/writer.mjs
|
|
11354
11271
|
function recordBatchWriterThroughDOMStream(writableStrategy, readableStrategy) {
|
|
11355
11272
|
const writer = new this(writableStrategy);
|
|
11356
11273
|
const reader = new AsyncByteStream(writer);
|
|
@@ -11388,7 +11305,7 @@ function recordBatchWriterThroughDOMStream(writableStrategy, readableStrategy) {
|
|
|
11388
11305
|
}
|
|
11389
11306
|
}
|
|
11390
11307
|
|
|
11391
|
-
//
|
|
11308
|
+
// ../core/node_modules/apache-arrow/ipc/serialization.mjs
|
|
11392
11309
|
function tableFromIPC(input2) {
|
|
11393
11310
|
const reader = RecordBatchReader.from(input2);
|
|
11394
11311
|
if (isPromise(reader)) {
|
|
@@ -11400,14 +11317,14 @@ function tableFromIPC(input2) {
|
|
|
11400
11317
|
return new Table(reader.readAll());
|
|
11401
11318
|
}
|
|
11402
11319
|
|
|
11403
|
-
//
|
|
11320
|
+
// ../core/node_modules/apache-arrow/Arrow.mjs
|
|
11404
11321
|
var util = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, bn_exports), int_exports), bit_exports), math_exports), buffer_exports), vector_exports), {
|
|
11405
11322
|
compareSchemas,
|
|
11406
11323
|
compareFields,
|
|
11407
11324
|
compareTypes
|
|
11408
11325
|
});
|
|
11409
11326
|
|
|
11410
|
-
//
|
|
11327
|
+
// ../core/node_modules/apache-arrow/Arrow.dom.mjs
|
|
11411
11328
|
adapters_default.toDOMStream = toDOMStream;
|
|
11412
11329
|
Builder["throughDOM"] = builderThroughDOMStream;
|
|
11413
11330
|
RecordBatchReader["throughDOM"] = recordBatchReaderThroughDOMStream;
|
|
@@ -11497,44 +11414,6 @@ function socketConnector(uri = "ws://localhost:3000/") {
|
|
|
11497
11414
|
};
|
|
11498
11415
|
}
|
|
11499
11416
|
|
|
11500
|
-
// ../core/src/util/js-type.js
|
|
11501
|
-
function jsType(type) {
|
|
11502
|
-
switch (type) {
|
|
11503
|
-
case "BIGINT":
|
|
11504
|
-
case "HUGEINT":
|
|
11505
|
-
case "INTEGER":
|
|
11506
|
-
case "SMALLINT":
|
|
11507
|
-
case "TINYINT":
|
|
11508
|
-
case "UBIGINT":
|
|
11509
|
-
case "UINTEGER":
|
|
11510
|
-
case "USMALLINT":
|
|
11511
|
-
case "UTINYINT":
|
|
11512
|
-
case "DOUBLE":
|
|
11513
|
-
case "FLOAT":
|
|
11514
|
-
case "REAL":
|
|
11515
|
-
case "DECIMAL":
|
|
11516
|
-
return "number";
|
|
11517
|
-
case "DATE":
|
|
11518
|
-
case "TIMESTAMP":
|
|
11519
|
-
case "TIMESTAMPTZ":
|
|
11520
|
-
case "TIME":
|
|
11521
|
-
return "date";
|
|
11522
|
-
case "BOOLEAN":
|
|
11523
|
-
return "boolean";
|
|
11524
|
-
case "VARCHAR":
|
|
11525
|
-
case "UUID":
|
|
11526
|
-
return "string";
|
|
11527
|
-
case "LIST":
|
|
11528
|
-
return "array";
|
|
11529
|
-
case "BLOB":
|
|
11530
|
-
case "STRUCT":
|
|
11531
|
-
case "MAP":
|
|
11532
|
-
return "object";
|
|
11533
|
-
default:
|
|
11534
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
11535
|
-
}
|
|
11536
|
-
}
|
|
11537
|
-
|
|
11538
11417
|
// ../sql/src/ref.js
|
|
11539
11418
|
var Ref = class {
|
|
11540
11419
|
/**
|
|
@@ -11563,12 +11442,16 @@ var Ref = class {
|
|
|
11563
11442
|
const { table: table2, column: column2 } = this;
|
|
11564
11443
|
if (column2) {
|
|
11565
11444
|
const col = column2.startsWith("*") ? column2 : `"${column2}"`;
|
|
11566
|
-
return `${table2 ?
|
|
11445
|
+
return `${table2 ? `${quoteTableName(table2)}.` : ""}${col}`;
|
|
11567
11446
|
} else {
|
|
11568
|
-
return table2 ?
|
|
11447
|
+
return table2 ? quoteTableName(table2) : "NULL";
|
|
11569
11448
|
}
|
|
11570
11449
|
}
|
|
11571
11450
|
};
|
|
11451
|
+
function quoteTableName(table2) {
|
|
11452
|
+
const pieces = table2.split(".");
|
|
11453
|
+
return pieces.map((p) => `"${p}"`).join(".");
|
|
11454
|
+
}
|
|
11572
11455
|
function isColumnRefFor(ref, name) {
|
|
11573
11456
|
return ref instanceof Ref && ref.column === name;
|
|
11574
11457
|
}
|
|
@@ -11811,7 +11694,7 @@ var isFinite = functionCall("ISFINITE");
|
|
|
11811
11694
|
var isInfinite = functionCall("ISINF");
|
|
11812
11695
|
|
|
11813
11696
|
// ../sql/src/windows.js
|
|
11814
|
-
var WindowFunction = class extends SQLExpression {
|
|
11697
|
+
var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
11815
11698
|
constructor(op, func, type, name, group = "", order = "", frame = "") {
|
|
11816
11699
|
let expr;
|
|
11817
11700
|
const noWindowParams = !(group || order || frame);
|
|
@@ -11837,7 +11720,7 @@ var WindowFunction = class extends SQLExpression {
|
|
|
11837
11720
|
}
|
|
11838
11721
|
over(name) {
|
|
11839
11722
|
const { window: op, func, type, group, order, frame } = this;
|
|
11840
|
-
return new
|
|
11723
|
+
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
11841
11724
|
}
|
|
11842
11725
|
partitionby(...expr) {
|
|
11843
11726
|
const exprs = expr.flat().filter((x) => x).map(asColumn);
|
|
@@ -11846,7 +11729,7 @@ var WindowFunction = class extends SQLExpression {
|
|
|
11846
11729
|
...exprs
|
|
11847
11730
|
);
|
|
11848
11731
|
const { window: op, func, type, name, order, frame } = this;
|
|
11849
|
-
return new
|
|
11732
|
+
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
11850
11733
|
}
|
|
11851
11734
|
orderby(...expr) {
|
|
11852
11735
|
const exprs = expr.flat().filter((x) => x).map(asColumn);
|
|
@@ -11855,17 +11738,17 @@ var WindowFunction = class extends SQLExpression {
|
|
|
11855
11738
|
...exprs
|
|
11856
11739
|
);
|
|
11857
11740
|
const { window: op, func, type, name, group, frame } = this;
|
|
11858
|
-
return new
|
|
11741
|
+
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
11859
11742
|
}
|
|
11860
11743
|
rows(expr) {
|
|
11861
11744
|
const frame = windowFrame("ROWS", expr);
|
|
11862
11745
|
const { window: op, func, type, name, group, order } = this;
|
|
11863
|
-
return new
|
|
11746
|
+
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
11864
11747
|
}
|
|
11865
11748
|
range(expr) {
|
|
11866
11749
|
const frame = windowFrame("RANGE", expr);
|
|
11867
11750
|
const { window: op, func, type, name, group, order } = this;
|
|
11868
|
-
return new
|
|
11751
|
+
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
11869
11752
|
}
|
|
11870
11753
|
};
|
|
11871
11754
|
function windowFrame(type, frame) {
|
|
@@ -11901,7 +11784,7 @@ var last_value = winf("LAST_VALUE");
|
|
|
11901
11784
|
var nth_value = winf("NTH_VALUE");
|
|
11902
11785
|
|
|
11903
11786
|
// ../sql/src/aggregates.js
|
|
11904
|
-
var AggregateFunction = class extends SQLExpression {
|
|
11787
|
+
var AggregateFunction = class _AggregateFunction extends SQLExpression {
|
|
11905
11788
|
constructor(op, args, type, isDistinct2, filter) {
|
|
11906
11789
|
args = (args || []).map(asColumn);
|
|
11907
11790
|
const { strings, exprs } = aggExpr(op, args, type, isDistinct2, filter);
|
|
@@ -11919,15 +11802,15 @@ var AggregateFunction = class extends SQLExpression {
|
|
|
11919
11802
|
}
|
|
11920
11803
|
distinct() {
|
|
11921
11804
|
const { aggregate: op, args, type, filter } = this;
|
|
11922
|
-
return new
|
|
11805
|
+
return new _AggregateFunction(op, args, type, true, filter);
|
|
11923
11806
|
}
|
|
11924
11807
|
where(filter) {
|
|
11925
11808
|
const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
|
|
11926
|
-
return new
|
|
11809
|
+
return new _AggregateFunction(op, args, type, isDistinct2, filter);
|
|
11927
11810
|
}
|
|
11928
11811
|
window() {
|
|
11929
11812
|
const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
|
|
11930
|
-
const func = new
|
|
11813
|
+
const func = new _AggregateFunction(op, args, null, isDistinct2);
|
|
11931
11814
|
return new WindowFunction(op, func, type);
|
|
11932
11815
|
}
|
|
11933
11816
|
partitionby(...expr) {
|
|
@@ -12009,15 +11892,15 @@ var epoch_ms = (expr) => {
|
|
|
12009
11892
|
};
|
|
12010
11893
|
|
|
12011
11894
|
// ../sql/src/Query.js
|
|
12012
|
-
var Query = class {
|
|
11895
|
+
var Query = class _Query {
|
|
12013
11896
|
static select(...expr) {
|
|
12014
|
-
return new
|
|
11897
|
+
return new _Query().select(...expr);
|
|
12015
11898
|
}
|
|
12016
11899
|
static from(...expr) {
|
|
12017
|
-
return new
|
|
11900
|
+
return new _Query().from(...expr);
|
|
12018
11901
|
}
|
|
12019
11902
|
static with(...expr) {
|
|
12020
|
-
return new
|
|
11903
|
+
return new _Query().with(...expr);
|
|
12021
11904
|
}
|
|
12022
11905
|
static union(...queries) {
|
|
12023
11906
|
return new SetOperation("UNION", queries.flat());
|
|
@@ -12045,7 +11928,7 @@ var Query = class {
|
|
|
12045
11928
|
};
|
|
12046
11929
|
}
|
|
12047
11930
|
clone() {
|
|
12048
|
-
const q = new
|
|
11931
|
+
const q = new _Query();
|
|
12049
11932
|
q.query = { ...this.query };
|
|
12050
11933
|
return q;
|
|
12051
11934
|
}
|
|
@@ -12335,14 +12218,14 @@ var Query = class {
|
|
|
12335
12218
|
return sql2.join(" ");
|
|
12336
12219
|
}
|
|
12337
12220
|
};
|
|
12338
|
-
var SetOperation = class {
|
|
12221
|
+
var SetOperation = class _SetOperation {
|
|
12339
12222
|
constructor(op, queries) {
|
|
12340
12223
|
this.op = op;
|
|
12341
12224
|
this.queries = queries.map((q) => q.clone());
|
|
12342
12225
|
this.query = { orderby: [] };
|
|
12343
12226
|
}
|
|
12344
12227
|
clone() {
|
|
12345
|
-
const q = new
|
|
12228
|
+
const q = new _SetOperation(this.op, this.queries);
|
|
12346
12229
|
q.query = { ...this.query };
|
|
12347
12230
|
return q;
|
|
12348
12231
|
}
|
|
@@ -12406,6 +12289,53 @@ function isDoubleQuoted(s) {
|
|
|
12406
12289
|
return s[0] === '"' && s[s.length - 1] === '"';
|
|
12407
12290
|
}
|
|
12408
12291
|
|
|
12292
|
+
// ../sql/src/load/create.js
|
|
12293
|
+
function create(name, query, {
|
|
12294
|
+
replace = false,
|
|
12295
|
+
temp = true,
|
|
12296
|
+
view = false
|
|
12297
|
+
} = {}) {
|
|
12298
|
+
return "CREATE" + (replace ? " OR REPLACE " : " ") + (temp ? "TEMP " : "") + (view ? "VIEW" : "TABLE") + (replace ? " " : " IF NOT EXISTS ") + name + " AS " + query;
|
|
12299
|
+
}
|
|
12300
|
+
|
|
12301
|
+
// ../core/src/util/js-type.js
|
|
12302
|
+
function jsType(type) {
|
|
12303
|
+
switch (type) {
|
|
12304
|
+
case "BIGINT":
|
|
12305
|
+
case "HUGEINT":
|
|
12306
|
+
case "INTEGER":
|
|
12307
|
+
case "SMALLINT":
|
|
12308
|
+
case "TINYINT":
|
|
12309
|
+
case "UBIGINT":
|
|
12310
|
+
case "UINTEGER":
|
|
12311
|
+
case "USMALLINT":
|
|
12312
|
+
case "UTINYINT":
|
|
12313
|
+
case "DOUBLE":
|
|
12314
|
+
case "FLOAT":
|
|
12315
|
+
case "REAL":
|
|
12316
|
+
case "DECIMAL":
|
|
12317
|
+
return "number";
|
|
12318
|
+
case "DATE":
|
|
12319
|
+
case "TIMESTAMP":
|
|
12320
|
+
case "TIMESTAMPTZ":
|
|
12321
|
+
case "TIME":
|
|
12322
|
+
return "date";
|
|
12323
|
+
case "BOOLEAN":
|
|
12324
|
+
return "boolean";
|
|
12325
|
+
case "VARCHAR":
|
|
12326
|
+
case "UUID":
|
|
12327
|
+
return "string";
|
|
12328
|
+
case "LIST":
|
|
12329
|
+
return "array";
|
|
12330
|
+
case "BLOB":
|
|
12331
|
+
case "STRUCT":
|
|
12332
|
+
case "MAP":
|
|
12333
|
+
return "object";
|
|
12334
|
+
default:
|
|
12335
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
12336
|
+
}
|
|
12337
|
+
}
|
|
12338
|
+
|
|
12409
12339
|
// ../core/src/util/summarize.js
|
|
12410
12340
|
var Count = "count";
|
|
12411
12341
|
var Nulls = "nulls";
|
|
@@ -12472,7 +12402,7 @@ var Catalog = class {
|
|
|
12472
12402
|
};
|
|
12473
12403
|
async function getTableInfo(mc, table2) {
|
|
12474
12404
|
const result = await mc.query(
|
|
12475
|
-
`DESCRIBE
|
|
12405
|
+
`DESCRIBE ${asRelation(table2)}`,
|
|
12476
12406
|
{ type: "json", cache: false }
|
|
12477
12407
|
);
|
|
12478
12408
|
const columns = object();
|
|
@@ -12515,12 +12445,18 @@ function fnv_mix(a) {
|
|
|
12515
12445
|
return a & 4294967295;
|
|
12516
12446
|
}
|
|
12517
12447
|
|
|
12518
|
-
// ../core/src/
|
|
12448
|
+
// ../core/src/DataCubeIndexer.js
|
|
12519
12449
|
var identity = (x) => x;
|
|
12520
|
-
var
|
|
12521
|
-
|
|
12450
|
+
var DataCubeIndexer = class {
|
|
12451
|
+
/**
|
|
12452
|
+
*
|
|
12453
|
+
* @param {import('./Coordinator.js').Coordinator} mc a Mosaic coordinator
|
|
12454
|
+
* @param {*} options Options hash to configure the data cube indexes and pass selections to the coordinator.
|
|
12455
|
+
*/
|
|
12456
|
+
constructor(mc, { selection, temp = true }) {
|
|
12522
12457
|
this.mc = mc;
|
|
12523
12458
|
this.selection = selection;
|
|
12459
|
+
this.temp = temp;
|
|
12524
12460
|
this.reset();
|
|
12525
12461
|
}
|
|
12526
12462
|
reset() {
|
|
@@ -12556,9 +12492,10 @@ var DataTileIndexer = class {
|
|
|
12556
12492
|
const activeView = this.activeView = getActiveView(active);
|
|
12557
12493
|
if (!activeView)
|
|
12558
12494
|
return false;
|
|
12559
|
-
this.mc.logger().warn("DATA
|
|
12495
|
+
this.mc.logger().warn("DATA CUBE INDEX CONSTRUCTION");
|
|
12560
12496
|
const sel = this.selection.remove(source);
|
|
12561
12497
|
const indices = this.indices = /* @__PURE__ */ new Map();
|
|
12498
|
+
const { mc, temp } = this;
|
|
12562
12499
|
for (const client of clients) {
|
|
12563
12500
|
if (sel.skip(client, active))
|
|
12564
12501
|
continue;
|
|
@@ -12571,8 +12508,8 @@ var DataTileIndexer = class {
|
|
|
12571
12508
|
}
|
|
12572
12509
|
const sql2 = query.toString();
|
|
12573
12510
|
const id = (fnv_hash(sql2) >>> 0).toString(16);
|
|
12574
|
-
const table2 = `
|
|
12575
|
-
const result =
|
|
12511
|
+
const table2 = `cube_index_${id}`;
|
|
12512
|
+
const result = mc.exec(create(table2, sql2, { temp }));
|
|
12576
12513
|
indices.set(client, { table: table2, result, ...index });
|
|
12577
12514
|
}
|
|
12578
12515
|
}
|
|
@@ -12658,9 +12595,6 @@ function binFunction(domain, range, pixelSize, lift, toSql) {
|
|
|
12658
12595
|
const s = pixelSize === 1 ? "" : `${pixelSize}::INTEGER * `;
|
|
12659
12596
|
return (value) => sql`${s}FLOOR(${a}::DOUBLE * (${toSql(value)} - ${lo}::DOUBLE))::INTEGER`;
|
|
12660
12597
|
}
|
|
12661
|
-
function createIndex(mc, table2, query) {
|
|
12662
|
-
return mc.exec(`CREATE TEMP TABLE IF NOT EXISTS ${table2} AS ${query}`);
|
|
12663
|
-
}
|
|
12664
12598
|
var NO_INDEX = { from: NaN };
|
|
12665
12599
|
function getIndexColumns(client) {
|
|
12666
12600
|
if (!client.filterIndexable)
|
|
@@ -12738,11 +12672,17 @@ function subqueryPushdown(query, cols) {
|
|
|
12738
12672
|
|
|
12739
12673
|
// ../core/src/FilterGroup.js
|
|
12740
12674
|
var FilterGroup = class {
|
|
12675
|
+
/**
|
|
12676
|
+
* @param {import('./Coordinator.js').Coordinator} coordinator The Mosaic coordinator.
|
|
12677
|
+
* @param {*} selection The shared filter selection.
|
|
12678
|
+
* @param {*} index Boolean flag or options hash for data cube indexer.
|
|
12679
|
+
* Falsy values disable indexing.
|
|
12680
|
+
*/
|
|
12741
12681
|
constructor(coordinator2, selection, index = true) {
|
|
12742
12682
|
this.mc = coordinator2;
|
|
12743
12683
|
this.selection = selection;
|
|
12744
12684
|
this.clients = /* @__PURE__ */ new Set();
|
|
12745
|
-
this.indexer = index ? new
|
|
12685
|
+
this.indexer = index ? new DataCubeIndexer(this.mc, { ...index, selection }) : null;
|
|
12746
12686
|
const { value, activate } = this.handlers = {
|
|
12747
12687
|
value: () => this.update(),
|
|
12748
12688
|
activate: (clause) => this.indexer?.index(this.clients, clause)
|
|
@@ -13633,7 +13573,7 @@ function distinctArray(a, b) {
|
|
|
13633
13573
|
function isParam(x) {
|
|
13634
13574
|
return x instanceof Param;
|
|
13635
13575
|
}
|
|
13636
|
-
var Param = class extends AsyncDispatch {
|
|
13576
|
+
var Param = class _Param extends AsyncDispatch {
|
|
13637
13577
|
/**
|
|
13638
13578
|
* Create a new Param instance.
|
|
13639
13579
|
* @param {*} value The initial value of the Param.
|
|
@@ -13648,7 +13588,7 @@ var Param = class extends AsyncDispatch {
|
|
|
13648
13588
|
* @returns {Param} The new Param instance.
|
|
13649
13589
|
*/
|
|
13650
13590
|
static value(value) {
|
|
13651
|
-
return new
|
|
13591
|
+
return new _Param(value);
|
|
13652
13592
|
}
|
|
13653
13593
|
/**
|
|
13654
13594
|
* Create a new Param instance over an array of initial values,
|
|
@@ -13658,13 +13598,13 @@ var Param = class extends AsyncDispatch {
|
|
|
13658
13598
|
*/
|
|
13659
13599
|
static array(values) {
|
|
13660
13600
|
if (values.some((v) => isParam(v))) {
|
|
13661
|
-
const p = new
|
|
13601
|
+
const p = new _Param();
|
|
13662
13602
|
const update2 = () => p.update(values.map((v) => isParam(v) ? v.value : v));
|
|
13663
13603
|
update2();
|
|
13664
13604
|
values.forEach((v) => isParam(v) ? v.addEventListener("value", update2) : 0);
|
|
13665
13605
|
return p;
|
|
13666
13606
|
}
|
|
13667
|
-
return new
|
|
13607
|
+
return new _Param(values);
|
|
13668
13608
|
}
|
|
13669
13609
|
/**
|
|
13670
13610
|
* The current value of the Param.
|
|
@@ -13708,7 +13648,7 @@ var Param = class extends AsyncDispatch {
|
|
|
13708
13648
|
function isSelection(x) {
|
|
13709
13649
|
return x instanceof Selection;
|
|
13710
13650
|
}
|
|
13711
|
-
var Selection = class extends Param {
|
|
13651
|
+
var Selection = class _Selection extends Param {
|
|
13712
13652
|
/**
|
|
13713
13653
|
* Create a new Selection instance with an
|
|
13714
13654
|
* intersect (conjunction) resolution strategy.
|
|
@@ -13719,7 +13659,7 @@ var Selection = class extends Param {
|
|
|
13719
13659
|
* @returns {Selection} The new Selection instance.
|
|
13720
13660
|
*/
|
|
13721
13661
|
static intersect({ cross = false } = {}) {
|
|
13722
|
-
return new
|
|
13662
|
+
return new _Selection(new SelectionResolver({ cross }));
|
|
13723
13663
|
}
|
|
13724
13664
|
/**
|
|
13725
13665
|
* Create a new Selection instance with a
|
|
@@ -13731,7 +13671,7 @@ var Selection = class extends Param {
|
|
|
13731
13671
|
* @returns {Selection} The new Selection instance.
|
|
13732
13672
|
*/
|
|
13733
13673
|
static union({ cross = false } = {}) {
|
|
13734
|
-
return new
|
|
13674
|
+
return new _Selection(new SelectionResolver({ cross, union: true }));
|
|
13735
13675
|
}
|
|
13736
13676
|
/**
|
|
13737
13677
|
* Create a new Selection instance with a singular resolution strategy
|
|
@@ -13743,7 +13683,7 @@ var Selection = class extends Param {
|
|
|
13743
13683
|
* @returns {Selection} The new Selection instance.
|
|
13744
13684
|
*/
|
|
13745
13685
|
static single({ cross = false } = {}) {
|
|
13746
|
-
return new
|
|
13686
|
+
return new _Selection(new SelectionResolver({ cross, single: true }));
|
|
13747
13687
|
}
|
|
13748
13688
|
/**
|
|
13749
13689
|
* Create a new Selection instance with a
|
|
@@ -13751,7 +13691,7 @@ var Selection = class extends Param {
|
|
|
13751
13691
|
* @returns {Selection} The new Selection instance.
|
|
13752
13692
|
*/
|
|
13753
13693
|
static crossfilter() {
|
|
13754
|
-
return new
|
|
13694
|
+
return new _Selection(new SelectionResolver({ cross: true }));
|
|
13755
13695
|
}
|
|
13756
13696
|
/**
|
|
13757
13697
|
* Create a new Selection instance.
|
|
@@ -13768,13 +13708,13 @@ var Selection = class extends Param {
|
|
|
13768
13708
|
* @returns {this} A clone of this selection.
|
|
13769
13709
|
*/
|
|
13770
13710
|
clone() {
|
|
13771
|
-
const s = new
|
|
13711
|
+
const s = new _Selection(this._resolver);
|
|
13772
13712
|
s._value = s._resolved = this._value;
|
|
13773
13713
|
return s;
|
|
13774
13714
|
}
|
|
13775
13715
|
/**
|
|
13776
13716
|
* Create a clone of this Selection with clauses corresponding
|
|
13777
|
-
* to provided source removed.
|
|
13717
|
+
* to the provided source removed.
|
|
13778
13718
|
* @param {*} source The clause source to remove.
|
|
13779
13719
|
* @returns {this} A cloned and updated Selection.
|
|
13780
13720
|
*/
|
|
@@ -13865,12 +13805,16 @@ var Selection = class extends Param {
|
|
|
13865
13805
|
/**
|
|
13866
13806
|
* Return a selection query predicate for the given client.
|
|
13867
13807
|
* @param {*} client The client whose data may be filtered.
|
|
13808
|
+
* @param {boolean} [noSkip=false] Disable skipping of active
|
|
13809
|
+
* cross-filtered sources. If set true, the source of the active
|
|
13810
|
+
* clause in a cross-filtered selection will not be skipped.
|
|
13868
13811
|
* @returns {*} The query predicate for filtering client data,
|
|
13869
13812
|
* based on the current state of this selection.
|
|
13870
13813
|
*/
|
|
13871
|
-
predicate(client) {
|
|
13814
|
+
predicate(client, noSkip = false) {
|
|
13872
13815
|
const { clauses } = this;
|
|
13873
|
-
|
|
13816
|
+
const active = noSkip ? null : clauses.active;
|
|
13817
|
+
return this._resolver.predicate(clauses, active, client);
|
|
13874
13818
|
}
|
|
13875
13819
|
};
|
|
13876
13820
|
var SelectionResolver = class {
|