@loaders.gl/schema 3.4.14 → 3.4.15
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/es5/bundle.js +1 -1
- package/dist/es5/bundle.js.map +1 -1
- package/dist/es5/category/mesh/convert-mesh.js +2 -7
- package/dist/es5/category/mesh/convert-mesh.js.map +1 -1
- package/dist/es5/category/mesh/deduce-mesh-schema.js +8 -8
- package/dist/es5/category/mesh/deduce-mesh-schema.js.map +1 -1
- package/dist/es5/category/mesh/mesh-to-arrow-table.js +17 -16
- package/dist/es5/category/mesh/mesh-to-arrow-table.js.map +1 -1
- package/dist/es5/category/mesh/mesh-utils.js +15 -15
- package/dist/es5/category/mesh/mesh-utils.js.map +1 -1
- package/dist/es5/category/table/deduce-table-schema.js +9 -9
- package/dist/es5/category/table/deduce-table-schema.js.map +1 -1
- package/dist/es5/index.js +51 -51
- package/dist/es5/lib/arrow/get-type-info.js +3 -3
- package/dist/es5/lib/arrow/get-type-info.js.map +1 -1
- package/dist/es5/lib/batches/base-table-batch-aggregator.js +38 -51
- package/dist/es5/lib/batches/base-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/columnar-table-batch-aggregator.js +60 -81
- package/dist/es5/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/row-table-batch-aggregator.js +53 -66
- package/dist/es5/lib/batches/row-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/table-batch-builder.js +101 -127
- package/dist/es5/lib/batches/table-batch-builder.js.map +1 -1
- package/dist/es5/lib/schema/impl/enum.js +1 -1
- package/dist/es5/lib/schema/impl/field.js +17 -30
- package/dist/es5/lib/schema/impl/field.js.map +1 -1
- package/dist/es5/lib/schema/impl/schema.js +55 -105
- package/dist/es5/lib/schema/impl/schema.js.map +1 -1
- package/dist/es5/lib/schema/impl/type.js +375 -675
- package/dist/es5/lib/schema/impl/type.js.map +1 -1
- package/dist/es5/lib/schema/schema.js +37 -37
- package/dist/es5/lib/utils/async-queue.js +72 -138
- package/dist/es5/lib/utils/async-queue.js.map +1 -1
- package/dist/es5/lib/utils/row-utils.js +4 -4
- package/dist/es5/lib/utils/row-utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,734 +7,434 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TimestampSecond = exports.TimestampNanosecond = exports.TimestampMillisecond = exports.TimestampMicrosecond = exports.Timestamp = exports.TimeSecond = exports.TimeMillisecond = exports.Time = exports.Struct = exports.Null = exports.IntervalYearMonth = exports.IntervalDayTime = exports.Interval = exports.Int8 = exports.Int64 = exports.Int32 = exports.Int16 = exports.Int = exports.Float64 = exports.Float32 = exports.Float16 = exports.Float = exports.FixedSizeList = exports.DateMillisecond = exports.DateDay = exports.Date = exports.DataType = exports.Bool = exports.Binary = void 0;
|
|
8
8
|
Object.defineProperty(exports, "Type", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function
|
|
10
|
+
get: function () {
|
|
11
11
|
return _enum.Type;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
exports.Utf8 = exports.Uint8 = exports.Uint64 = exports.Uint32 = exports.Uint16 = void 0;
|
|
15
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
16
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
18
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
20
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
21
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
22
16
|
var _enum = require("./enum");
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
key: "isTimestamp",
|
|
87
|
-
value: function isTimestamp(x) {
|
|
88
|
-
return x && x.typeId === _enum.Type.Timestamp;
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
91
|
-
key: "isInterval",
|
|
92
|
-
value: function isInterval(x) {
|
|
93
|
-
return x && x.typeId === _enum.Type.Interval;
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
key: "isList",
|
|
97
|
-
value: function isList(x) {
|
|
98
|
-
return x && x.typeId === _enum.Type.List;
|
|
99
|
-
}
|
|
100
|
-
}, {
|
|
101
|
-
key: "isStruct",
|
|
102
|
-
value: function isStruct(x) {
|
|
103
|
-
return x && x.typeId === _enum.Type.Struct;
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "isUnion",
|
|
107
|
-
value: function isUnion(x) {
|
|
108
|
-
return x && x.typeId === _enum.Type.Union;
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
key: "isFixedSizeBinary",
|
|
112
|
-
value: function isFixedSizeBinary(x) {
|
|
113
|
-
return x && x.typeId === _enum.Type.FixedSizeBinary;
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
key: "isFixedSizeList",
|
|
117
|
-
value: function isFixedSizeList(x) {
|
|
118
|
-
return x && x.typeId === _enum.Type.FixedSizeList;
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "isMap",
|
|
122
|
-
value: function isMap(x) {
|
|
123
|
-
return x && x.typeId === _enum.Type.Map;
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
key: "isDictionary",
|
|
127
|
-
value: function isDictionary(x) {
|
|
128
|
-
return x && x.typeId === _enum.Type.Dictionary;
|
|
129
|
-
}
|
|
130
|
-
}]);
|
|
131
|
-
return DataType;
|
|
132
|
-
}();
|
|
17
|
+
let _Symbol$toStringTag, _Symbol$toStringTag2, _Symbol$toStringTag3, _Symbol$toStringTag4, _Symbol$toStringTag5, _Symbol$toStringTag6, _Symbol$toStringTag7, _Symbol$toStringTag8;
|
|
18
|
+
class DataType {
|
|
19
|
+
static isNull(x) {
|
|
20
|
+
return x && x.typeId === _enum.Type.Null;
|
|
21
|
+
}
|
|
22
|
+
static isInt(x) {
|
|
23
|
+
return x && x.typeId === _enum.Type.Int;
|
|
24
|
+
}
|
|
25
|
+
static isFloat(x) {
|
|
26
|
+
return x && x.typeId === _enum.Type.Float;
|
|
27
|
+
}
|
|
28
|
+
static isBinary(x) {
|
|
29
|
+
return x && x.typeId === _enum.Type.Binary;
|
|
30
|
+
}
|
|
31
|
+
static isUtf8(x) {
|
|
32
|
+
return x && x.typeId === _enum.Type.Utf8;
|
|
33
|
+
}
|
|
34
|
+
static isBool(x) {
|
|
35
|
+
return x && x.typeId === _enum.Type.Bool;
|
|
36
|
+
}
|
|
37
|
+
static isDecimal(x) {
|
|
38
|
+
return x && x.typeId === _enum.Type.Decimal;
|
|
39
|
+
}
|
|
40
|
+
static isDate(x) {
|
|
41
|
+
return x && x.typeId === _enum.Type.Date;
|
|
42
|
+
}
|
|
43
|
+
static isTime(x) {
|
|
44
|
+
return x && x.typeId === _enum.Type.Time;
|
|
45
|
+
}
|
|
46
|
+
static isTimestamp(x) {
|
|
47
|
+
return x && x.typeId === _enum.Type.Timestamp;
|
|
48
|
+
}
|
|
49
|
+
static isInterval(x) {
|
|
50
|
+
return x && x.typeId === _enum.Type.Interval;
|
|
51
|
+
}
|
|
52
|
+
static isList(x) {
|
|
53
|
+
return x && x.typeId === _enum.Type.List;
|
|
54
|
+
}
|
|
55
|
+
static isStruct(x) {
|
|
56
|
+
return x && x.typeId === _enum.Type.Struct;
|
|
57
|
+
}
|
|
58
|
+
static isUnion(x) {
|
|
59
|
+
return x && x.typeId === _enum.Type.Union;
|
|
60
|
+
}
|
|
61
|
+
static isFixedSizeBinary(x) {
|
|
62
|
+
return x && x.typeId === _enum.Type.FixedSizeBinary;
|
|
63
|
+
}
|
|
64
|
+
static isFixedSizeList(x) {
|
|
65
|
+
return x && x.typeId === _enum.Type.FixedSizeList;
|
|
66
|
+
}
|
|
67
|
+
static isMap(x) {
|
|
68
|
+
return x && x.typeId === _enum.Type.Map;
|
|
69
|
+
}
|
|
70
|
+
static isDictionary(x) {
|
|
71
|
+
return x && x.typeId === _enum.Type.Dictionary;
|
|
72
|
+
}
|
|
73
|
+
get typeId() {
|
|
74
|
+
return _enum.Type.NONE;
|
|
75
|
+
}
|
|
76
|
+
compareTo(other) {
|
|
77
|
+
return this === other;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
133
80
|
exports.DataType = DataType;
|
|
134
|
-
|
|
135
|
-
(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return
|
|
140
|
-
}
|
|
141
|
-
(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
}, {
|
|
147
|
-
key: _Symbol$toStringTag,
|
|
148
|
-
get: function get() {
|
|
149
|
-
return 'Null';
|
|
150
|
-
}
|
|
151
|
-
}, {
|
|
152
|
-
key: "toString",
|
|
153
|
-
value: function toString() {
|
|
154
|
-
return 'Null';
|
|
155
|
-
}
|
|
156
|
-
}]);
|
|
157
|
-
return Null;
|
|
158
|
-
}(DataType, Symbol.toStringTag);
|
|
81
|
+
class Null extends DataType {
|
|
82
|
+
get typeId() {
|
|
83
|
+
return _enum.Type.Null;
|
|
84
|
+
}
|
|
85
|
+
get [Symbol.toStringTag]() {
|
|
86
|
+
return 'Null';
|
|
87
|
+
}
|
|
88
|
+
toString() {
|
|
89
|
+
return 'Null';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
159
92
|
exports.Null = Null;
|
|
160
|
-
|
|
161
|
-
(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return
|
|
166
|
-
}
|
|
167
|
-
(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
}, {
|
|
173
|
-
key: _Symbol$toStringTag2,
|
|
174
|
-
get: function get() {
|
|
175
|
-
return 'Bool';
|
|
176
|
-
}
|
|
177
|
-
}, {
|
|
178
|
-
key: "toString",
|
|
179
|
-
value: function toString() {
|
|
180
|
-
return 'Bool';
|
|
181
|
-
}
|
|
182
|
-
}]);
|
|
183
|
-
return Bool;
|
|
184
|
-
}(DataType, Symbol.toStringTag);
|
|
93
|
+
class Bool extends DataType {
|
|
94
|
+
get typeId() {
|
|
95
|
+
return _enum.Type.Bool;
|
|
96
|
+
}
|
|
97
|
+
get [Symbol.toStringTag]() {
|
|
98
|
+
return 'Bool';
|
|
99
|
+
}
|
|
100
|
+
toString() {
|
|
101
|
+
return 'Bool';
|
|
102
|
+
}
|
|
103
|
+
}
|
|
185
104
|
exports.Bool = Bool;
|
|
186
|
-
_Symbol$
|
|
187
|
-
|
|
188
|
-
(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}, {
|
|
206
|
-
key: _Symbol$toStringTag3,
|
|
207
|
-
get: function get() {
|
|
208
|
-
return 'Int';
|
|
209
|
-
}
|
|
210
|
-
}, {
|
|
211
|
-
key: "toString",
|
|
212
|
-
value: function toString() {
|
|
213
|
-
return "".concat(this.isSigned ? 'I' : 'Ui', "nt").concat(this.bitWidth);
|
|
214
|
-
}
|
|
215
|
-
}]);
|
|
216
|
-
return Int;
|
|
217
|
-
}(DataType);
|
|
105
|
+
_Symbol$toStringTag = Symbol.toStringTag;
|
|
106
|
+
class Int extends DataType {
|
|
107
|
+
constructor(isSigned, bitWidth) {
|
|
108
|
+
super();
|
|
109
|
+
(0, _defineProperty2.default)(this, "isSigned", void 0);
|
|
110
|
+
(0, _defineProperty2.default)(this, "bitWidth", void 0);
|
|
111
|
+
this.isSigned = isSigned;
|
|
112
|
+
this.bitWidth = bitWidth;
|
|
113
|
+
}
|
|
114
|
+
get typeId() {
|
|
115
|
+
return _enum.Type.Int;
|
|
116
|
+
}
|
|
117
|
+
get [_Symbol$toStringTag]() {
|
|
118
|
+
return 'Int';
|
|
119
|
+
}
|
|
120
|
+
toString() {
|
|
121
|
+
return "".concat(this.isSigned ? 'I' : 'Ui', "nt").concat(this.bitWidth);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
218
124
|
exports.Int = Int;
|
|
219
|
-
|
|
220
|
-
(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return _super4.call(this, true, 8);
|
|
225
|
-
}
|
|
226
|
-
return (0, _createClass2.default)(Int8);
|
|
227
|
-
}(Int);
|
|
125
|
+
class Int8 extends Int {
|
|
126
|
+
constructor() {
|
|
127
|
+
super(true, 8);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
228
130
|
exports.Int8 = Int8;
|
|
229
|
-
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return _super5.call(this, true, 16);
|
|
235
|
-
}
|
|
236
|
-
return (0, _createClass2.default)(Int16);
|
|
237
|
-
}(Int);
|
|
131
|
+
class Int16 extends Int {
|
|
132
|
+
constructor() {
|
|
133
|
+
super(true, 16);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
238
136
|
exports.Int16 = Int16;
|
|
239
|
-
|
|
240
|
-
(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return _super6.call(this, true, 32);
|
|
245
|
-
}
|
|
246
|
-
return (0, _createClass2.default)(Int32);
|
|
247
|
-
}(Int);
|
|
137
|
+
class Int32 extends Int {
|
|
138
|
+
constructor() {
|
|
139
|
+
super(true, 32);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
248
142
|
exports.Int32 = Int32;
|
|
249
|
-
|
|
250
|
-
(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
return _super7.call(this, true, 64);
|
|
255
|
-
}
|
|
256
|
-
return (0, _createClass2.default)(Int64);
|
|
257
|
-
}(Int);
|
|
143
|
+
class Int64 extends Int {
|
|
144
|
+
constructor() {
|
|
145
|
+
super(true, 64);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
258
148
|
exports.Int64 = Int64;
|
|
259
|
-
|
|
260
|
-
(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
return _super8.call(this, false, 8);
|
|
265
|
-
}
|
|
266
|
-
return (0, _createClass2.default)(Uint8);
|
|
267
|
-
}(Int);
|
|
149
|
+
class Uint8 extends Int {
|
|
150
|
+
constructor() {
|
|
151
|
+
super(false, 8);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
268
154
|
exports.Uint8 = Uint8;
|
|
269
|
-
|
|
270
|
-
(
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
return _super9.call(this, false, 16);
|
|
275
|
-
}
|
|
276
|
-
return (0, _createClass2.default)(Uint16);
|
|
277
|
-
}(Int);
|
|
155
|
+
class Uint16 extends Int {
|
|
156
|
+
constructor() {
|
|
157
|
+
super(false, 16);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
278
160
|
exports.Uint16 = Uint16;
|
|
279
|
-
|
|
280
|
-
(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return _super10.call(this, false, 32);
|
|
285
|
-
}
|
|
286
|
-
return (0, _createClass2.default)(Uint32);
|
|
287
|
-
}(Int);
|
|
161
|
+
class Uint32 extends Int {
|
|
162
|
+
constructor() {
|
|
163
|
+
super(false, 32);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
288
166
|
exports.Uint32 = Uint32;
|
|
289
|
-
|
|
290
|
-
(
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
return _super11.call(this, false, 64);
|
|
295
|
-
}
|
|
296
|
-
return (0, _createClass2.default)(Uint64);
|
|
297
|
-
}(Int);
|
|
167
|
+
class Uint64 extends Int {
|
|
168
|
+
constructor() {
|
|
169
|
+
super(false, 64);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
298
172
|
exports.Uint64 = Uint64;
|
|
299
|
-
|
|
173
|
+
const Precision = {
|
|
300
174
|
HALF: 16,
|
|
301
175
|
SINGLE: 32,
|
|
302
176
|
DOUBLE: 64
|
|
303
177
|
};
|
|
304
|
-
_Symbol$
|
|
305
|
-
|
|
306
|
-
(
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}, {
|
|
322
|
-
key: _Symbol$toStringTag4,
|
|
323
|
-
get: function get() {
|
|
324
|
-
return 'Float';
|
|
325
|
-
}
|
|
326
|
-
}, {
|
|
327
|
-
key: "toString",
|
|
328
|
-
value: function toString() {
|
|
329
|
-
return "Float".concat(this.precision);
|
|
330
|
-
}
|
|
331
|
-
}]);
|
|
332
|
-
return Float;
|
|
333
|
-
}(DataType);
|
|
178
|
+
_Symbol$toStringTag2 = Symbol.toStringTag;
|
|
179
|
+
class Float extends DataType {
|
|
180
|
+
constructor(precision) {
|
|
181
|
+
super();
|
|
182
|
+
(0, _defineProperty2.default)(this, "precision", void 0);
|
|
183
|
+
this.precision = precision;
|
|
184
|
+
}
|
|
185
|
+
get typeId() {
|
|
186
|
+
return _enum.Type.Float;
|
|
187
|
+
}
|
|
188
|
+
get [_Symbol$toStringTag2]() {
|
|
189
|
+
return 'Float';
|
|
190
|
+
}
|
|
191
|
+
toString() {
|
|
192
|
+
return "Float".concat(this.precision);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
334
195
|
exports.Float = Float;
|
|
335
|
-
|
|
336
|
-
(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return _super13.call(this, Precision.HALF);
|
|
341
|
-
}
|
|
342
|
-
return (0, _createClass2.default)(Float16);
|
|
343
|
-
}(Float);
|
|
196
|
+
class Float16 extends Float {
|
|
197
|
+
constructor() {
|
|
198
|
+
super(Precision.HALF);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
344
201
|
exports.Float16 = Float16;
|
|
345
|
-
|
|
346
|
-
(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return _super14.call(this, Precision.SINGLE);
|
|
351
|
-
}
|
|
352
|
-
return (0, _createClass2.default)(Float32);
|
|
353
|
-
}(Float);
|
|
202
|
+
class Float32 extends Float {
|
|
203
|
+
constructor() {
|
|
204
|
+
super(Precision.SINGLE);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
354
207
|
exports.Float32 = Float32;
|
|
355
|
-
|
|
356
|
-
(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return _super15.call(this, Precision.DOUBLE);
|
|
361
|
-
}
|
|
362
|
-
return (0, _createClass2.default)(Float64);
|
|
363
|
-
}(Float);
|
|
208
|
+
class Float64 extends Float {
|
|
209
|
+
constructor() {
|
|
210
|
+
super(Precision.DOUBLE);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
364
213
|
exports.Float64 = Float64;
|
|
365
|
-
|
|
366
|
-
(
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return
|
|
371
|
-
}
|
|
372
|
-
(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
value: function toString() {
|
|
380
|
-
return 'Binary';
|
|
381
|
-
}
|
|
382
|
-
}, {
|
|
383
|
-
key: _Symbol$toStringTag5,
|
|
384
|
-
get: function get() {
|
|
385
|
-
return 'Binary';
|
|
386
|
-
}
|
|
387
|
-
}]);
|
|
388
|
-
return Binary;
|
|
389
|
-
}(DataType, Symbol.toStringTag);
|
|
214
|
+
class Binary extends DataType {
|
|
215
|
+
constructor() {
|
|
216
|
+
super();
|
|
217
|
+
}
|
|
218
|
+
get typeId() {
|
|
219
|
+
return _enum.Type.Binary;
|
|
220
|
+
}
|
|
221
|
+
toString() {
|
|
222
|
+
return 'Binary';
|
|
223
|
+
}
|
|
224
|
+
get [Symbol.toStringTag]() {
|
|
225
|
+
return 'Binary';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
390
228
|
exports.Binary = Binary;
|
|
391
|
-
|
|
392
|
-
(
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
return
|
|
397
|
-
}
|
|
398
|
-
(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
}, {
|
|
404
|
-
key: _Symbol$toStringTag6,
|
|
405
|
-
get: function get() {
|
|
406
|
-
return 'Utf8';
|
|
407
|
-
}
|
|
408
|
-
}, {
|
|
409
|
-
key: "toString",
|
|
410
|
-
value: function toString() {
|
|
411
|
-
return 'Utf8';
|
|
412
|
-
}
|
|
413
|
-
}]);
|
|
414
|
-
return Utf8;
|
|
415
|
-
}(DataType, Symbol.toStringTag);
|
|
229
|
+
class Utf8 extends DataType {
|
|
230
|
+
get typeId() {
|
|
231
|
+
return _enum.Type.Utf8;
|
|
232
|
+
}
|
|
233
|
+
get [Symbol.toStringTag]() {
|
|
234
|
+
return 'Utf8';
|
|
235
|
+
}
|
|
236
|
+
toString() {
|
|
237
|
+
return 'Utf8';
|
|
238
|
+
}
|
|
239
|
+
}
|
|
416
240
|
exports.Utf8 = Utf8;
|
|
417
|
-
|
|
241
|
+
const DateUnit = {
|
|
418
242
|
DAY: 0,
|
|
419
243
|
MILLISECOND: 1
|
|
420
244
|
};
|
|
421
|
-
_Symbol$
|
|
422
|
-
|
|
423
|
-
(
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}, {
|
|
439
|
-
key: _Symbol$toStringTag7,
|
|
440
|
-
get: function get() {
|
|
441
|
-
return 'Date';
|
|
442
|
-
}
|
|
443
|
-
}, {
|
|
444
|
-
key: "toString",
|
|
445
|
-
value: function toString() {
|
|
446
|
-
return "Date".concat((this.unit + 1) * 32, "<").concat(DateUnit[this.unit], ">");
|
|
447
|
-
}
|
|
448
|
-
}]);
|
|
449
|
-
return Date;
|
|
450
|
-
}(DataType);
|
|
245
|
+
_Symbol$toStringTag3 = Symbol.toStringTag;
|
|
246
|
+
class Date extends DataType {
|
|
247
|
+
constructor(unit) {
|
|
248
|
+
super();
|
|
249
|
+
(0, _defineProperty2.default)(this, "unit", void 0);
|
|
250
|
+
this.unit = unit;
|
|
251
|
+
}
|
|
252
|
+
get typeId() {
|
|
253
|
+
return _enum.Type.Date;
|
|
254
|
+
}
|
|
255
|
+
get [_Symbol$toStringTag3]() {
|
|
256
|
+
return 'Date';
|
|
257
|
+
}
|
|
258
|
+
toString() {
|
|
259
|
+
return "Date".concat((this.unit + 1) * 32, "<").concat(DateUnit[this.unit], ">");
|
|
260
|
+
}
|
|
261
|
+
}
|
|
451
262
|
exports.Date = Date;
|
|
452
|
-
|
|
453
|
-
(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
return _super19.call(this, DateUnit.DAY);
|
|
458
|
-
}
|
|
459
|
-
return (0, _createClass2.default)(DateDay);
|
|
460
|
-
}(Date);
|
|
263
|
+
class DateDay extends Date {
|
|
264
|
+
constructor() {
|
|
265
|
+
super(DateUnit.DAY);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
461
268
|
exports.DateDay = DateDay;
|
|
462
|
-
|
|
463
|
-
(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return _super20.call(this, DateUnit.MILLISECOND);
|
|
468
|
-
}
|
|
469
|
-
return (0, _createClass2.default)(DateMillisecond);
|
|
470
|
-
}(Date);
|
|
269
|
+
class DateMillisecond extends Date {
|
|
270
|
+
constructor() {
|
|
271
|
+
super(DateUnit.MILLISECOND);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
471
274
|
exports.DateMillisecond = DateMillisecond;
|
|
472
|
-
|
|
275
|
+
const TimeUnit = {
|
|
473
276
|
SECOND: 1,
|
|
474
277
|
MILLISECOND: 1e3,
|
|
475
278
|
MICROSECOND: 1e6,
|
|
476
279
|
NANOSECOND: 1e9
|
|
477
280
|
};
|
|
478
|
-
_Symbol$
|
|
479
|
-
|
|
480
|
-
(
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}, {
|
|
498
|
-
key: "toString",
|
|
499
|
-
value: function toString() {
|
|
500
|
-
return "Time".concat(this.bitWidth, "<").concat(TimeUnit[this.unit], ">");
|
|
501
|
-
}
|
|
502
|
-
}, {
|
|
503
|
-
key: _Symbol$toStringTag8,
|
|
504
|
-
get: function get() {
|
|
505
|
-
return 'Time';
|
|
506
|
-
}
|
|
507
|
-
}]);
|
|
508
|
-
return Time;
|
|
509
|
-
}(DataType);
|
|
281
|
+
_Symbol$toStringTag4 = Symbol.toStringTag;
|
|
282
|
+
class Time extends DataType {
|
|
283
|
+
constructor(unit, bitWidth) {
|
|
284
|
+
super();
|
|
285
|
+
(0, _defineProperty2.default)(this, "unit", void 0);
|
|
286
|
+
(0, _defineProperty2.default)(this, "bitWidth", void 0);
|
|
287
|
+
this.unit = unit;
|
|
288
|
+
this.bitWidth = bitWidth;
|
|
289
|
+
}
|
|
290
|
+
get typeId() {
|
|
291
|
+
return _enum.Type.Time;
|
|
292
|
+
}
|
|
293
|
+
toString() {
|
|
294
|
+
return "Time".concat(this.bitWidth, "<").concat(TimeUnit[this.unit], ">");
|
|
295
|
+
}
|
|
296
|
+
get [_Symbol$toStringTag4]() {
|
|
297
|
+
return 'Time';
|
|
298
|
+
}
|
|
299
|
+
}
|
|
510
300
|
exports.Time = Time;
|
|
511
|
-
|
|
512
|
-
(
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
return _super22.call(this, TimeUnit.SECOND, 32);
|
|
517
|
-
}
|
|
518
|
-
return (0, _createClass2.default)(TimeSecond);
|
|
519
|
-
}(Time);
|
|
301
|
+
class TimeSecond extends Time {
|
|
302
|
+
constructor() {
|
|
303
|
+
super(TimeUnit.SECOND, 32);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
520
306
|
exports.TimeSecond = TimeSecond;
|
|
521
|
-
|
|
522
|
-
(
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
return _super23.call(this, TimeUnit.MILLISECOND, 32);
|
|
527
|
-
}
|
|
528
|
-
return (0, _createClass2.default)(TimeMillisecond);
|
|
529
|
-
}(Time);
|
|
307
|
+
class TimeMillisecond extends Time {
|
|
308
|
+
constructor() {
|
|
309
|
+
super(TimeUnit.MILLISECOND, 32);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
530
312
|
exports.TimeMillisecond = TimeMillisecond;
|
|
531
|
-
_Symbol$
|
|
532
|
-
|
|
533
|
-
(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}, {
|
|
552
|
-
key: _Symbol$toStringTag9,
|
|
553
|
-
get: function get() {
|
|
554
|
-
return 'Timestamp';
|
|
555
|
-
}
|
|
556
|
-
}, {
|
|
557
|
-
key: "toString",
|
|
558
|
-
value: function toString() {
|
|
559
|
-
return "Timestamp<".concat(TimeUnit[this.unit]).concat(this.timezone ? ", ".concat(this.timezone) : '', ">");
|
|
560
|
-
}
|
|
561
|
-
}]);
|
|
562
|
-
return Timestamp;
|
|
563
|
-
}(DataType);
|
|
313
|
+
_Symbol$toStringTag5 = Symbol.toStringTag;
|
|
314
|
+
class Timestamp extends DataType {
|
|
315
|
+
constructor(unit) {
|
|
316
|
+
let timezone = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
317
|
+
super();
|
|
318
|
+
(0, _defineProperty2.default)(this, "unit", void 0);
|
|
319
|
+
(0, _defineProperty2.default)(this, "timezone", void 0);
|
|
320
|
+
this.unit = unit;
|
|
321
|
+
this.timezone = timezone;
|
|
322
|
+
}
|
|
323
|
+
get typeId() {
|
|
324
|
+
return _enum.Type.Timestamp;
|
|
325
|
+
}
|
|
326
|
+
get [_Symbol$toStringTag5]() {
|
|
327
|
+
return 'Timestamp';
|
|
328
|
+
}
|
|
329
|
+
toString() {
|
|
330
|
+
return "Timestamp<".concat(TimeUnit[this.unit]).concat(this.timezone ? ", ".concat(this.timezone) : '', ">");
|
|
331
|
+
}
|
|
332
|
+
}
|
|
564
333
|
exports.Timestamp = Timestamp;
|
|
565
|
-
|
|
566
|
-
(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
return _super25.call(this, TimeUnit.SECOND, timezone);
|
|
572
|
-
}
|
|
573
|
-
return (0, _createClass2.default)(TimestampSecond);
|
|
574
|
-
}(Timestamp);
|
|
334
|
+
class TimestampSecond extends Timestamp {
|
|
335
|
+
constructor() {
|
|
336
|
+
let timezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
337
|
+
super(TimeUnit.SECOND, timezone);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
575
340
|
exports.TimestampSecond = TimestampSecond;
|
|
576
|
-
|
|
577
|
-
(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
return _super26.call(this, TimeUnit.MILLISECOND, timezone);
|
|
583
|
-
}
|
|
584
|
-
return (0, _createClass2.default)(TimestampMillisecond);
|
|
585
|
-
}(Timestamp);
|
|
341
|
+
class TimestampMillisecond extends Timestamp {
|
|
342
|
+
constructor() {
|
|
343
|
+
let timezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
344
|
+
super(TimeUnit.MILLISECOND, timezone);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
586
347
|
exports.TimestampMillisecond = TimestampMillisecond;
|
|
587
|
-
|
|
588
|
-
(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
return _super27.call(this, TimeUnit.MICROSECOND, timezone);
|
|
594
|
-
}
|
|
595
|
-
return (0, _createClass2.default)(TimestampMicrosecond);
|
|
596
|
-
}(Timestamp);
|
|
348
|
+
class TimestampMicrosecond extends Timestamp {
|
|
349
|
+
constructor() {
|
|
350
|
+
let timezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
351
|
+
super(TimeUnit.MICROSECOND, timezone);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
597
354
|
exports.TimestampMicrosecond = TimestampMicrosecond;
|
|
598
|
-
|
|
599
|
-
(
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
return _super28.call(this, TimeUnit.NANOSECOND, timezone);
|
|
605
|
-
}
|
|
606
|
-
return (0, _createClass2.default)(TimestampNanosecond);
|
|
607
|
-
}(Timestamp);
|
|
355
|
+
class TimestampNanosecond extends Timestamp {
|
|
356
|
+
constructor() {
|
|
357
|
+
let timezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
358
|
+
super(TimeUnit.NANOSECOND, timezone);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
608
361
|
exports.TimestampNanosecond = TimestampNanosecond;
|
|
609
|
-
|
|
362
|
+
const IntervalUnit = {
|
|
610
363
|
DAY_TIME: 0,
|
|
611
364
|
YEAR_MONTH: 1
|
|
612
365
|
};
|
|
613
|
-
_Symbol$
|
|
614
|
-
|
|
615
|
-
(
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}, {
|
|
631
|
-
key: _Symbol$toStringTag10,
|
|
632
|
-
get: function get() {
|
|
633
|
-
return 'Interval';
|
|
634
|
-
}
|
|
635
|
-
}, {
|
|
636
|
-
key: "toString",
|
|
637
|
-
value: function toString() {
|
|
638
|
-
return "Interval<".concat(IntervalUnit[this.unit], ">");
|
|
639
|
-
}
|
|
640
|
-
}]);
|
|
641
|
-
return Interval;
|
|
642
|
-
}(DataType);
|
|
366
|
+
_Symbol$toStringTag6 = Symbol.toStringTag;
|
|
367
|
+
class Interval extends DataType {
|
|
368
|
+
constructor(unit) {
|
|
369
|
+
super();
|
|
370
|
+
(0, _defineProperty2.default)(this, "unit", void 0);
|
|
371
|
+
this.unit = unit;
|
|
372
|
+
}
|
|
373
|
+
get typeId() {
|
|
374
|
+
return _enum.Type.Interval;
|
|
375
|
+
}
|
|
376
|
+
get [_Symbol$toStringTag6]() {
|
|
377
|
+
return 'Interval';
|
|
378
|
+
}
|
|
379
|
+
toString() {
|
|
380
|
+
return "Interval<".concat(IntervalUnit[this.unit], ">");
|
|
381
|
+
}
|
|
382
|
+
}
|
|
643
383
|
exports.Interval = Interval;
|
|
644
|
-
|
|
645
|
-
(
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
return _super30.call(this, IntervalUnit.DAY_TIME);
|
|
650
|
-
}
|
|
651
|
-
return (0, _createClass2.default)(IntervalDayTime);
|
|
652
|
-
}(Interval);
|
|
384
|
+
class IntervalDayTime extends Interval {
|
|
385
|
+
constructor() {
|
|
386
|
+
super(IntervalUnit.DAY_TIME);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
653
389
|
exports.IntervalDayTime = IntervalDayTime;
|
|
654
|
-
|
|
655
|
-
(
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
return _super31.call(this, IntervalUnit.YEAR_MONTH);
|
|
660
|
-
}
|
|
661
|
-
return (0, _createClass2.default)(IntervalYearMonth);
|
|
662
|
-
}(Interval);
|
|
390
|
+
class IntervalYearMonth extends Interval {
|
|
391
|
+
constructor() {
|
|
392
|
+
super(IntervalUnit.YEAR_MONTH);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
663
395
|
exports.IntervalYearMonth = IntervalYearMonth;
|
|
664
|
-
_Symbol$
|
|
665
|
-
|
|
666
|
-
(
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
key: "valueField",
|
|
690
|
-
get: function get() {
|
|
691
|
-
return this.children[0];
|
|
692
|
-
}
|
|
693
|
-
}, {
|
|
694
|
-
key: _Symbol$toStringTag11,
|
|
695
|
-
get: function get() {
|
|
696
|
-
return 'FixedSizeList';
|
|
697
|
-
}
|
|
698
|
-
}, {
|
|
699
|
-
key: "toString",
|
|
700
|
-
value: function toString() {
|
|
701
|
-
return "FixedSizeList[".concat(this.listSize, "]<").concat(this.valueType, ">");
|
|
702
|
-
}
|
|
703
|
-
}]);
|
|
704
|
-
return FixedSizeList;
|
|
705
|
-
}(DataType);
|
|
396
|
+
_Symbol$toStringTag7 = Symbol.toStringTag;
|
|
397
|
+
class FixedSizeList extends DataType {
|
|
398
|
+
constructor(listSize, child) {
|
|
399
|
+
super();
|
|
400
|
+
(0, _defineProperty2.default)(this, "listSize", void 0);
|
|
401
|
+
(0, _defineProperty2.default)(this, "children", void 0);
|
|
402
|
+
this.listSize = listSize;
|
|
403
|
+
this.children = [child];
|
|
404
|
+
}
|
|
405
|
+
get typeId() {
|
|
406
|
+
return _enum.Type.FixedSizeList;
|
|
407
|
+
}
|
|
408
|
+
get valueType() {
|
|
409
|
+
return this.children[0].type;
|
|
410
|
+
}
|
|
411
|
+
get valueField() {
|
|
412
|
+
return this.children[0];
|
|
413
|
+
}
|
|
414
|
+
get [_Symbol$toStringTag7]() {
|
|
415
|
+
return 'FixedSizeList';
|
|
416
|
+
}
|
|
417
|
+
toString() {
|
|
418
|
+
return "FixedSizeList[".concat(this.listSize, "]<").concat(this.valueType, ">");
|
|
419
|
+
}
|
|
420
|
+
}
|
|
706
421
|
exports.FixedSizeList = FixedSizeList;
|
|
707
|
-
_Symbol$
|
|
708
|
-
|
|
709
|
-
(
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}, {
|
|
725
|
-
key: "toString",
|
|
726
|
-
value: function toString() {
|
|
727
|
-
return "Struct<{".concat(this.children.map(function (f) {
|
|
728
|
-
return "".concat(f.name, ":").concat(f.type);
|
|
729
|
-
}).join(', '), "}>");
|
|
730
|
-
}
|
|
731
|
-
}, {
|
|
732
|
-
key: _Symbol$toStringTag12,
|
|
733
|
-
get: function get() {
|
|
734
|
-
return 'Struct';
|
|
735
|
-
}
|
|
736
|
-
}]);
|
|
737
|
-
return Struct;
|
|
738
|
-
}(DataType);
|
|
422
|
+
_Symbol$toStringTag8 = Symbol.toStringTag;
|
|
423
|
+
class Struct extends DataType {
|
|
424
|
+
constructor(children) {
|
|
425
|
+
super();
|
|
426
|
+
(0, _defineProperty2.default)(this, "children", void 0);
|
|
427
|
+
this.children = children;
|
|
428
|
+
}
|
|
429
|
+
get typeId() {
|
|
430
|
+
return _enum.Type.Struct;
|
|
431
|
+
}
|
|
432
|
+
toString() {
|
|
433
|
+
return "Struct<{".concat(this.children.map(f => "".concat(f.name, ":").concat(f.type)).join(', '), "}>");
|
|
434
|
+
}
|
|
435
|
+
get [_Symbol$toStringTag8]() {
|
|
436
|
+
return 'Struct';
|
|
437
|
+
}
|
|
438
|
+
}
|
|
739
439
|
exports.Struct = Struct;
|
|
740
440
|
//# sourceMappingURL=type.js.map
|