@loaders.gl/parquet 4.2.0-alpha.4 → 4.2.0-alpha.5
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/index.cjs +269 -616
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js +1 -2
- package/dist/lib/arrow/convert-row-group-to-columns.js +8 -6
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -3
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js +71 -82
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js +65 -35
- package/dist/lib/constants.js +14 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts +1 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
- package/dist/lib/parsers/get-parquet-schema.js +9 -7
- package/dist/lib/parsers/parse-geoparquet.d.ts +1 -1
- package/dist/lib/parsers/parse-geoparquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-geoparquet.js +47 -45
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js +36 -25
- package/dist/lib/parsers/parse-parquet.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet.js +62 -50
- package/dist/lib/wasm/encode-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.js +49 -12
- package/dist/lib/wasm/load-wasm.js +13 -10
- package/dist/lib/wasm/parse-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.js +19 -15
- package/dist/parquet-loader.d.ts +1 -1
- package/dist/parquet-loader.d.ts.map +1 -1
- package/dist/parquet-loader.js +77 -64
- package/dist/parquet-wasm-loader.js +25 -28
- package/dist/parquet-wasm-writer.js +19 -23
- package/dist/parquet-writer.js +16 -12
- package/dist/parquetjs/codecs/declare.d.ts +1 -1
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
- package/dist/parquetjs/codecs/declare.js +0 -1
- package/dist/parquetjs/codecs/dictionary.js +4 -8
- package/dist/parquetjs/codecs/index.d.ts +3 -3
- package/dist/parquetjs/codecs/index.d.ts.map +1 -1
- package/dist/parquetjs/codecs/index.js +20 -17
- package/dist/parquetjs/codecs/plain.d.ts +2 -2
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
- package/dist/parquetjs/codecs/plain.js +166 -162
- package/dist/parquetjs/codecs/rle.d.ts +2 -2
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
- package/dist/parquetjs/codecs/rle.js +124 -105
- package/dist/parquetjs/compression.d.ts +1 -1
- package/dist/parquetjs/compression.d.ts.map +1 -1
- package/dist/parquetjs/compression.js +157 -43
- package/dist/parquetjs/encoder/parquet-encoder.d.ts +3 -3
- package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
- package/dist/parquetjs/encoder/parquet-encoder.js +406 -275
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +12 -7
- package/dist/parquetjs/parquet-thrift/BsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +175 -166
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +178 -166
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +6 -6
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +359 -333
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js +73 -68
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js +17 -12
- package/dist/parquetjs/parquet-thrift/ConvertedType.js +31 -26
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +136 -124
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +198 -181
- package/dist/parquetjs/parquet-thrift/DateType.js +31 -27
- package/dist/parquetjs/parquet-thrift/DecimalType.js +76 -69
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +93 -86
- package/dist/parquetjs/parquet-thrift/Encoding.js +17 -12
- package/dist/parquetjs/parquet-thrift/EnumType.js +31 -27
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +12 -7
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +217 -205
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +31 -27
- package/dist/parquetjs/parquet-thrift/IntType.js +76 -69
- package/dist/parquetjs/parquet-thrift/JsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/KeyValue.js +73 -67
- package/dist/parquetjs/parquet-thrift/ListType.js +31 -27
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +13 -13
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js +325 -344
- package/dist/parquetjs/parquet-thrift/MapType.js +31 -27
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/NullType.js +31 -27
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js +66 -60
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +98 -88
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +5 -5
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js +185 -175
- package/dist/parquetjs/parquet-thrift/PageLocation.js +108 -96
- package/dist/parquetjs/parquet-thrift/PageType.js +13 -8
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js +145 -133
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +211 -205
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +98 -88
- package/dist/parquetjs/parquet-thrift/Statistics.js +143 -137
- package/dist/parquetjs/parquet-thrift/StringType.js +31 -27
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js +76 -69
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +94 -91
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js +76 -69
- package/dist/parquetjs/parquet-thrift/Type.js +17 -12
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +31 -27
- package/dist/parquetjs/parquet-thrift/UUIDType.js +31 -27
- package/dist/parquetjs/parquet-thrift/index.d.ts +44 -44
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/index.js +6 -1
- package/dist/parquetjs/parser/decoders.d.ts +3 -3
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
- package/dist/parquetjs/parser/decoders.js +306 -242
- package/dist/parquetjs/parser/parquet-reader.d.ts +3 -3
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
- package/dist/parquetjs/parser/parquet-reader.js +179 -157
- package/dist/parquetjs/schema/declare.d.ts +1 -1
- package/dist/parquetjs/schema/declare.d.ts.map +1 -1
- package/dist/parquetjs/schema/declare.js +6 -9
- package/dist/parquetjs/schema/schema.d.ts +1 -1
- package/dist/parquetjs/schema/schema.d.ts.map +1 -1
- package/dist/parquetjs/schema/schema.js +139 -120
- package/dist/parquetjs/schema/shred.d.ts +2 -2
- package/dist/parquetjs/schema/shred.d.ts.map +1 -1
- package/dist/parquetjs/schema/shred.js +301 -204
- package/dist/parquetjs/schema/types.d.ts +1 -1
- package/dist/parquetjs/schema/types.d.ts.map +1 -1
- package/dist/parquetjs/schema/types.js +328 -314
- package/dist/parquetjs/utils/file-utils.js +24 -23
- package/dist/parquetjs/utils/read-utils.d.ts +1 -1
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/read-utils.js +79 -69
- package/dist/polyfills/buffer/buffer-polyfill.browser.js +8 -3
- package/dist/polyfills/buffer/buffer-polyfill.node.js +13 -8
- package/dist/polyfills/buffer/buffer.js +1750 -1367
- package/dist/polyfills/buffer/index.d.ts +3 -3
- package/dist/polyfills/buffer/index.d.ts.map +1 -1
- package/dist/polyfills/buffer/index.js +5 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js +2 -1
- package/dist/polyfills/util.js +4 -1
- package/dist/workers/parquet-worker.js +3 -1
- package/package.json +15 -13
- package/src/index.ts +1 -1
- package/src/lib/parsers/parse-parquet-to-columns.ts +1 -1
- package/src/lib/parsers/parse-parquet.ts +1 -1
- package/src/parquetjs/encoder/parquet-encoder.ts +2 -2
- package/src/parquetjs/parser/decoders.ts +2 -2
- package/src/parquetjs/parser/parquet-reader.ts +1 -1
- package/src/parquetjs/schema/schema.ts +1 -1
- package/src/parquetjs/utils/read-utils.ts +2 -2
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js.map +0 -1
- package/dist/lib/arrow/convert-row-group-to-columns.js.map +0 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js.map +0 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/parsers/get-parquet-schema.js.map +0 -1
- package/dist/lib/parsers/parse-geoparquet.js.map +0 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js.map +0 -1
- package/dist/lib/parsers/parse-parquet.js.map +0 -1
- package/dist/lib/wasm/encode-parquet-wasm.js.map +0 -1
- package/dist/lib/wasm/load-wasm.js.map +0 -1
- package/dist/lib/wasm/parse-parquet-wasm.js.map +0 -1
- package/dist/lib/wip/convert-schema-deep.java.disabled +0 -910
- package/dist/lib/wip/convert-schema-deep.rs.disabled +0 -976
- package/dist/parquet-loader.js.map +0 -1
- package/dist/parquet-wasm-loader.js.map +0 -1
- package/dist/parquet-wasm-writer.js.map +0 -1
- package/dist/parquet-writer.js.map +0 -1
- package/dist/parquetjs/LICENSE +0 -20
- package/dist/parquetjs/codecs/declare.js.map +0 -1
- package/dist/parquetjs/codecs/dictionary.js.map +0 -1
- package/dist/parquetjs/codecs/index.js.map +0 -1
- package/dist/parquetjs/codecs/plain.js.map +0 -1
- package/dist/parquetjs/codecs/rle.js.map +0 -1
- package/dist/parquetjs/compression.js.map +0 -1
- package/dist/parquetjs/encoder/parquet-encoder.js.map +0 -1
- package/dist/parquetjs/modules.d.ts +0 -21
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ConvertedType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DateType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Encoding.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IntType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ListType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MapType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/NullType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Statistics.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/StringType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Type.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/index.js.map +0 -1
- package/dist/parquetjs/parser/decoders.js.map +0 -1
- package/dist/parquetjs/parser/parquet-reader.js.map +0 -1
- package/dist/parquetjs/schema/declare.js.map +0 -1
- package/dist/parquetjs/schema/schema.js.map +0 -1
- package/dist/parquetjs/schema/shred.js.map +0 -1
- package/dist/parquetjs/schema/types.js.map +0 -1
- package/dist/parquetjs/utils/file-utils.js.map +0 -1
- package/dist/parquetjs/utils/read-utils.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
- package/dist/polyfills/buffer/buffer.js.map +0 -1
- package/dist/polyfills/buffer/index.js.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
- package/dist/polyfills/util.js.map +0 -1
- package/dist/workers/parquet-worker.js.map +0 -1
|
@@ -1,210 +1,216 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/*
|
|
4
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
5
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
6
|
+
*/
|
|
1
7
|
import * as thrift from 'thrift';
|
|
2
8
|
import * as LogicalType from "./LogicalType.js";
|
|
3
9
|
export class SchemaElement {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
constructor(args) {
|
|
11
|
+
if (args != null && args.type != null) {
|
|
12
|
+
this.type = args.type;
|
|
13
|
+
}
|
|
14
|
+
if (args != null && args.type_length != null) {
|
|
15
|
+
this.type_length = args.type_length;
|
|
16
|
+
}
|
|
17
|
+
if (args != null && args.repetition_type != null) {
|
|
18
|
+
this.repetition_type = args.repetition_type;
|
|
19
|
+
}
|
|
20
|
+
if (args != null && args.name != null) {
|
|
21
|
+
this.name = args.name;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[name] is unset!');
|
|
25
|
+
}
|
|
26
|
+
if (args != null && args.num_children != null) {
|
|
27
|
+
this.num_children = args.num_children;
|
|
28
|
+
}
|
|
29
|
+
if (args != null && args.converted_type != null) {
|
|
30
|
+
this.converted_type = args.converted_type;
|
|
31
|
+
}
|
|
32
|
+
if (args != null && args.scale != null) {
|
|
33
|
+
this.scale = args.scale;
|
|
34
|
+
}
|
|
35
|
+
if (args != null && args.precision != null) {
|
|
36
|
+
this.precision = args.precision;
|
|
37
|
+
}
|
|
38
|
+
if (args != null && args.field_id != null) {
|
|
39
|
+
this.field_id = args.field_id;
|
|
40
|
+
}
|
|
41
|
+
if (args != null && args.logicalType != null) {
|
|
42
|
+
this.logicalType = args.logicalType;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
write(output) {
|
|
46
|
+
output.writeStructBegin('SchemaElement');
|
|
47
|
+
if (this.type != null) {
|
|
48
|
+
output.writeFieldBegin('type', thrift.Thrift.Type.I32, 1);
|
|
49
|
+
output.writeI32(this.type);
|
|
50
|
+
output.writeFieldEnd();
|
|
51
|
+
}
|
|
52
|
+
if (this.type_length != null) {
|
|
53
|
+
output.writeFieldBegin('type_length', thrift.Thrift.Type.I32, 2);
|
|
54
|
+
output.writeI32(this.type_length);
|
|
55
|
+
output.writeFieldEnd();
|
|
56
|
+
}
|
|
57
|
+
if (this.repetition_type != null) {
|
|
58
|
+
output.writeFieldBegin('repetition_type', thrift.Thrift.Type.I32, 3);
|
|
59
|
+
output.writeI32(this.repetition_type);
|
|
60
|
+
output.writeFieldEnd();
|
|
61
|
+
}
|
|
62
|
+
if (this.name != null) {
|
|
63
|
+
output.writeFieldBegin('name', thrift.Thrift.Type.STRING, 4);
|
|
64
|
+
output.writeString(this.name);
|
|
65
|
+
output.writeFieldEnd();
|
|
66
|
+
}
|
|
67
|
+
if (this.num_children != null) {
|
|
68
|
+
output.writeFieldBegin('num_children', thrift.Thrift.Type.I32, 5);
|
|
69
|
+
output.writeI32(this.num_children);
|
|
70
|
+
output.writeFieldEnd();
|
|
71
|
+
}
|
|
72
|
+
if (this.converted_type != null) {
|
|
73
|
+
output.writeFieldBegin('converted_type', thrift.Thrift.Type.I32, 6);
|
|
74
|
+
output.writeI32(this.converted_type);
|
|
75
|
+
output.writeFieldEnd();
|
|
76
|
+
}
|
|
77
|
+
if (this.scale != null) {
|
|
78
|
+
output.writeFieldBegin('scale', thrift.Thrift.Type.I32, 7);
|
|
79
|
+
output.writeI32(this.scale);
|
|
80
|
+
output.writeFieldEnd();
|
|
81
|
+
}
|
|
82
|
+
if (this.precision != null) {
|
|
83
|
+
output.writeFieldBegin('precision', thrift.Thrift.Type.I32, 8);
|
|
84
|
+
output.writeI32(this.precision);
|
|
85
|
+
output.writeFieldEnd();
|
|
86
|
+
}
|
|
87
|
+
if (this.field_id != null) {
|
|
88
|
+
output.writeFieldBegin('field_id', thrift.Thrift.Type.I32, 9);
|
|
89
|
+
output.writeI32(this.field_id);
|
|
90
|
+
output.writeFieldEnd();
|
|
91
|
+
}
|
|
92
|
+
if (this.logicalType != null) {
|
|
93
|
+
output.writeFieldBegin('logicalType', thrift.Thrift.Type.STRUCT, 10);
|
|
94
|
+
this.logicalType.write(output);
|
|
95
|
+
output.writeFieldEnd();
|
|
96
|
+
}
|
|
97
|
+
output.writeFieldStop();
|
|
98
|
+
output.writeStructEnd();
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
static read(input) {
|
|
102
|
+
input.readStructBegin();
|
|
103
|
+
let _args = {};
|
|
104
|
+
while (true) {
|
|
105
|
+
const ret = input.readFieldBegin();
|
|
106
|
+
const fieldType = ret.ftype;
|
|
107
|
+
const fieldId = ret.fid;
|
|
108
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
switch (fieldId) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
114
|
+
const value_1 = input.readI32();
|
|
115
|
+
_args.type = value_1;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
input.skip(fieldType);
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
case 2:
|
|
122
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
123
|
+
const value_2 = input.readI32();
|
|
124
|
+
_args.type_length = value_2;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
input.skip(fieldType);
|
|
128
|
+
}
|
|
129
|
+
break;
|
|
130
|
+
case 3:
|
|
131
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
132
|
+
const value_3 = input.readI32();
|
|
133
|
+
_args.repetition_type = value_3;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
input.skip(fieldType);
|
|
137
|
+
}
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
141
|
+
const value_4 = input.readString();
|
|
142
|
+
_args.name = value_4;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
input.skip(fieldType);
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case 5:
|
|
149
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
150
|
+
const value_5 = input.readI32();
|
|
151
|
+
_args.num_children = value_5;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
input.skip(fieldType);
|
|
155
|
+
}
|
|
156
|
+
break;
|
|
157
|
+
case 6:
|
|
158
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
159
|
+
const value_6 = input.readI32();
|
|
160
|
+
_args.converted_type = value_6;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
input.skip(fieldType);
|
|
164
|
+
}
|
|
165
|
+
break;
|
|
166
|
+
case 7:
|
|
167
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
168
|
+
const value_7 = input.readI32();
|
|
169
|
+
_args.scale = value_7;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
input.skip(fieldType);
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
case 8:
|
|
176
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
177
|
+
const value_8 = input.readI32();
|
|
178
|
+
_args.precision = value_8;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
input.skip(fieldType);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
case 9:
|
|
185
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
186
|
+
const value_9 = input.readI32();
|
|
187
|
+
_args.field_id = value_9;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
input.skip(fieldType);
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
case 10:
|
|
194
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
195
|
+
const value_10 = LogicalType.LogicalType.read(input);
|
|
196
|
+
_args.logicalType = value_10;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
input.skip(fieldType);
|
|
200
|
+
}
|
|
201
|
+
break;
|
|
202
|
+
default: {
|
|
203
|
+
input.skip(fieldType);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
input.readFieldEnd();
|
|
207
|
+
}
|
|
208
|
+
input.readStructEnd();
|
|
209
|
+
if (_args.name !== undefined) {
|
|
210
|
+
return new SchemaElement(_args);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read SchemaElement from input');
|
|
214
|
+
}
|
|
17
215
|
}
|
|
18
|
-
if (args != null && args.type_length != null) {
|
|
19
|
-
this.type_length = args.type_length;
|
|
20
|
-
}
|
|
21
|
-
if (args != null && args.repetition_type != null) {
|
|
22
|
-
this.repetition_type = args.repetition_type;
|
|
23
|
-
}
|
|
24
|
-
if (args != null && args.name != null) {
|
|
25
|
-
this.name = args.name;
|
|
26
|
-
} else {
|
|
27
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[name] is unset!');
|
|
28
|
-
}
|
|
29
|
-
if (args != null && args.num_children != null) {
|
|
30
|
-
this.num_children = args.num_children;
|
|
31
|
-
}
|
|
32
|
-
if (args != null && args.converted_type != null) {
|
|
33
|
-
this.converted_type = args.converted_type;
|
|
34
|
-
}
|
|
35
|
-
if (args != null && args.scale != null) {
|
|
36
|
-
this.scale = args.scale;
|
|
37
|
-
}
|
|
38
|
-
if (args != null && args.precision != null) {
|
|
39
|
-
this.precision = args.precision;
|
|
40
|
-
}
|
|
41
|
-
if (args != null && args.field_id != null) {
|
|
42
|
-
this.field_id = args.field_id;
|
|
43
|
-
}
|
|
44
|
-
if (args != null && args.logicalType != null) {
|
|
45
|
-
this.logicalType = args.logicalType;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
write(output) {
|
|
49
|
-
output.writeStructBegin('SchemaElement');
|
|
50
|
-
if (this.type != null) {
|
|
51
|
-
output.writeFieldBegin('type', thrift.Thrift.Type.I32, 1);
|
|
52
|
-
output.writeI32(this.type);
|
|
53
|
-
output.writeFieldEnd();
|
|
54
|
-
}
|
|
55
|
-
if (this.type_length != null) {
|
|
56
|
-
output.writeFieldBegin('type_length', thrift.Thrift.Type.I32, 2);
|
|
57
|
-
output.writeI32(this.type_length);
|
|
58
|
-
output.writeFieldEnd();
|
|
59
|
-
}
|
|
60
|
-
if (this.repetition_type != null) {
|
|
61
|
-
output.writeFieldBegin('repetition_type', thrift.Thrift.Type.I32, 3);
|
|
62
|
-
output.writeI32(this.repetition_type);
|
|
63
|
-
output.writeFieldEnd();
|
|
64
|
-
}
|
|
65
|
-
if (this.name != null) {
|
|
66
|
-
output.writeFieldBegin('name', thrift.Thrift.Type.STRING, 4);
|
|
67
|
-
output.writeString(this.name);
|
|
68
|
-
output.writeFieldEnd();
|
|
69
|
-
}
|
|
70
|
-
if (this.num_children != null) {
|
|
71
|
-
output.writeFieldBegin('num_children', thrift.Thrift.Type.I32, 5);
|
|
72
|
-
output.writeI32(this.num_children);
|
|
73
|
-
output.writeFieldEnd();
|
|
74
|
-
}
|
|
75
|
-
if (this.converted_type != null) {
|
|
76
|
-
output.writeFieldBegin('converted_type', thrift.Thrift.Type.I32, 6);
|
|
77
|
-
output.writeI32(this.converted_type);
|
|
78
|
-
output.writeFieldEnd();
|
|
79
|
-
}
|
|
80
|
-
if (this.scale != null) {
|
|
81
|
-
output.writeFieldBegin('scale', thrift.Thrift.Type.I32, 7);
|
|
82
|
-
output.writeI32(this.scale);
|
|
83
|
-
output.writeFieldEnd();
|
|
84
|
-
}
|
|
85
|
-
if (this.precision != null) {
|
|
86
|
-
output.writeFieldBegin('precision', thrift.Thrift.Type.I32, 8);
|
|
87
|
-
output.writeI32(this.precision);
|
|
88
|
-
output.writeFieldEnd();
|
|
89
|
-
}
|
|
90
|
-
if (this.field_id != null) {
|
|
91
|
-
output.writeFieldBegin('field_id', thrift.Thrift.Type.I32, 9);
|
|
92
|
-
output.writeI32(this.field_id);
|
|
93
|
-
output.writeFieldEnd();
|
|
94
|
-
}
|
|
95
|
-
if (this.logicalType != null) {
|
|
96
|
-
output.writeFieldBegin('logicalType', thrift.Thrift.Type.STRUCT, 10);
|
|
97
|
-
this.logicalType.write(output);
|
|
98
|
-
output.writeFieldEnd();
|
|
99
|
-
}
|
|
100
|
-
output.writeFieldStop();
|
|
101
|
-
output.writeStructEnd();
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
static read(input) {
|
|
105
|
-
input.readStructBegin();
|
|
106
|
-
let _args = {};
|
|
107
|
-
while (true) {
|
|
108
|
-
const ret = input.readFieldBegin();
|
|
109
|
-
const fieldType = ret.ftype;
|
|
110
|
-
const fieldId = ret.fid;
|
|
111
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
switch (fieldId) {
|
|
115
|
-
case 1:
|
|
116
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
117
|
-
const value_1 = input.readI32();
|
|
118
|
-
_args.type = value_1;
|
|
119
|
-
} else {
|
|
120
|
-
input.skip(fieldType);
|
|
121
|
-
}
|
|
122
|
-
break;
|
|
123
|
-
case 2:
|
|
124
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
125
|
-
const value_2 = input.readI32();
|
|
126
|
-
_args.type_length = value_2;
|
|
127
|
-
} else {
|
|
128
|
-
input.skip(fieldType);
|
|
129
|
-
}
|
|
130
|
-
break;
|
|
131
|
-
case 3:
|
|
132
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
133
|
-
const value_3 = input.readI32();
|
|
134
|
-
_args.repetition_type = value_3;
|
|
135
|
-
} else {
|
|
136
|
-
input.skip(fieldType);
|
|
137
|
-
}
|
|
138
|
-
break;
|
|
139
|
-
case 4:
|
|
140
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
141
|
-
const value_4 = input.readString();
|
|
142
|
-
_args.name = value_4;
|
|
143
|
-
} else {
|
|
144
|
-
input.skip(fieldType);
|
|
145
|
-
}
|
|
146
|
-
break;
|
|
147
|
-
case 5:
|
|
148
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
149
|
-
const value_5 = input.readI32();
|
|
150
|
-
_args.num_children = value_5;
|
|
151
|
-
} else {
|
|
152
|
-
input.skip(fieldType);
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
|
-
case 6:
|
|
156
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
157
|
-
const value_6 = input.readI32();
|
|
158
|
-
_args.converted_type = value_6;
|
|
159
|
-
} else {
|
|
160
|
-
input.skip(fieldType);
|
|
161
|
-
}
|
|
162
|
-
break;
|
|
163
|
-
case 7:
|
|
164
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
165
|
-
const value_7 = input.readI32();
|
|
166
|
-
_args.scale = value_7;
|
|
167
|
-
} else {
|
|
168
|
-
input.skip(fieldType);
|
|
169
|
-
}
|
|
170
|
-
break;
|
|
171
|
-
case 8:
|
|
172
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
173
|
-
const value_8 = input.readI32();
|
|
174
|
-
_args.precision = value_8;
|
|
175
|
-
} else {
|
|
176
|
-
input.skip(fieldType);
|
|
177
|
-
}
|
|
178
|
-
break;
|
|
179
|
-
case 9:
|
|
180
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
181
|
-
const value_9 = input.readI32();
|
|
182
|
-
_args.field_id = value_9;
|
|
183
|
-
} else {
|
|
184
|
-
input.skip(fieldType);
|
|
185
|
-
}
|
|
186
|
-
break;
|
|
187
|
-
case 10:
|
|
188
|
-
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
189
|
-
const value_10 = LogicalType.LogicalType.read(input);
|
|
190
|
-
_args.logicalType = value_10;
|
|
191
|
-
} else {
|
|
192
|
-
input.skip(fieldType);
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
default:
|
|
196
|
-
{
|
|
197
|
-
input.skip(fieldType);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
input.readFieldEnd();
|
|
201
|
-
}
|
|
202
|
-
input.readStructEnd();
|
|
203
|
-
if (_args.name !== undefined) {
|
|
204
|
-
return new SchemaElement(_args);
|
|
205
|
-
} else {
|
|
206
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read SchemaElement from input');
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
216
|
}
|
|
210
|
-
//# sourceMappingURL=SchemaElement.js.map
|
|
@@ -1,94 +1,104 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/*
|
|
4
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
5
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
6
|
+
*/
|
|
1
7
|
import * as thrift from 'thrift';
|
|
2
8
|
export class SortingColumn {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
constructor(args) {
|
|
10
|
+
if (args != null && args.column_idx != null) {
|
|
11
|
+
this.column_idx = args.column_idx;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[column_idx] is unset!');
|
|
15
|
+
}
|
|
16
|
+
if (args != null && args.descending != null) {
|
|
17
|
+
this.descending = args.descending;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[descending] is unset!');
|
|
21
|
+
}
|
|
22
|
+
if (args != null && args.nulls_first != null) {
|
|
23
|
+
this.nulls_first = args.nulls_first;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[nulls_first] is unset!');
|
|
27
|
+
}
|
|
11
28
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
29
|
+
write(output) {
|
|
30
|
+
output.writeStructBegin('SortingColumn');
|
|
31
|
+
if (this.column_idx != null) {
|
|
32
|
+
output.writeFieldBegin('column_idx', thrift.Thrift.Type.I32, 1);
|
|
33
|
+
output.writeI32(this.column_idx);
|
|
34
|
+
output.writeFieldEnd();
|
|
35
|
+
}
|
|
36
|
+
if (this.descending != null) {
|
|
37
|
+
output.writeFieldBegin('descending', thrift.Thrift.Type.BOOL, 2);
|
|
38
|
+
output.writeBool(this.descending);
|
|
39
|
+
output.writeFieldEnd();
|
|
40
|
+
}
|
|
41
|
+
if (this.nulls_first != null) {
|
|
42
|
+
output.writeFieldBegin('nulls_first', thrift.Thrift.Type.BOOL, 3);
|
|
43
|
+
output.writeBool(this.nulls_first);
|
|
44
|
+
output.writeFieldEnd();
|
|
45
|
+
}
|
|
46
|
+
output.writeFieldStop();
|
|
47
|
+
output.writeStructEnd();
|
|
48
|
+
return;
|
|
16
49
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
50
|
+
static read(input) {
|
|
51
|
+
input.readStructBegin();
|
|
52
|
+
let _args = {};
|
|
53
|
+
while (true) {
|
|
54
|
+
const ret = input.readFieldBegin();
|
|
55
|
+
const fieldType = ret.ftype;
|
|
56
|
+
const fieldId = ret.fid;
|
|
57
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
switch (fieldId) {
|
|
61
|
+
case 1:
|
|
62
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
63
|
+
const value_1 = input.readI32();
|
|
64
|
+
_args.column_idx = value_1;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
input.skip(fieldType);
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case 2:
|
|
71
|
+
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
72
|
+
const value_2 = input.readBool();
|
|
73
|
+
_args.descending = value_2;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
input.skip(fieldType);
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
case 3:
|
|
80
|
+
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
81
|
+
const value_3 = input.readBool();
|
|
82
|
+
_args.nulls_first = value_3;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
input.skip(fieldType);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
default: {
|
|
89
|
+
input.skip(fieldType);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
input.readFieldEnd();
|
|
93
|
+
}
|
|
94
|
+
input.readStructEnd();
|
|
95
|
+
if (_args.column_idx !== undefined &&
|
|
96
|
+
_args.descending !== undefined &&
|
|
97
|
+
_args.nulls_first !== undefined) {
|
|
98
|
+
return new SortingColumn(_args);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read SortingColumn from input');
|
|
102
|
+
}
|
|
21
103
|
}
|
|
22
|
-
}
|
|
23
|
-
write(output) {
|
|
24
|
-
output.writeStructBegin('SortingColumn');
|
|
25
|
-
if (this.column_idx != null) {
|
|
26
|
-
output.writeFieldBegin('column_idx', thrift.Thrift.Type.I32, 1);
|
|
27
|
-
output.writeI32(this.column_idx);
|
|
28
|
-
output.writeFieldEnd();
|
|
29
|
-
}
|
|
30
|
-
if (this.descending != null) {
|
|
31
|
-
output.writeFieldBegin('descending', thrift.Thrift.Type.BOOL, 2);
|
|
32
|
-
output.writeBool(this.descending);
|
|
33
|
-
output.writeFieldEnd();
|
|
34
|
-
}
|
|
35
|
-
if (this.nulls_first != null) {
|
|
36
|
-
output.writeFieldBegin('nulls_first', thrift.Thrift.Type.BOOL, 3);
|
|
37
|
-
output.writeBool(this.nulls_first);
|
|
38
|
-
output.writeFieldEnd();
|
|
39
|
-
}
|
|
40
|
-
output.writeFieldStop();
|
|
41
|
-
output.writeStructEnd();
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
static read(input) {
|
|
45
|
-
input.readStructBegin();
|
|
46
|
-
let _args = {};
|
|
47
|
-
while (true) {
|
|
48
|
-
const ret = input.readFieldBegin();
|
|
49
|
-
const fieldType = ret.ftype;
|
|
50
|
-
const fieldId = ret.fid;
|
|
51
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
switch (fieldId) {
|
|
55
|
-
case 1:
|
|
56
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
57
|
-
const value_1 = input.readI32();
|
|
58
|
-
_args.column_idx = value_1;
|
|
59
|
-
} else {
|
|
60
|
-
input.skip(fieldType);
|
|
61
|
-
}
|
|
62
|
-
break;
|
|
63
|
-
case 2:
|
|
64
|
-
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
65
|
-
const value_2 = input.readBool();
|
|
66
|
-
_args.descending = value_2;
|
|
67
|
-
} else {
|
|
68
|
-
input.skip(fieldType);
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
case 3:
|
|
72
|
-
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
73
|
-
const value_3 = input.readBool();
|
|
74
|
-
_args.nulls_first = value_3;
|
|
75
|
-
} else {
|
|
76
|
-
input.skip(fieldType);
|
|
77
|
-
}
|
|
78
|
-
break;
|
|
79
|
-
default:
|
|
80
|
-
{
|
|
81
|
-
input.skip(fieldType);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
input.readFieldEnd();
|
|
85
|
-
}
|
|
86
|
-
input.readStructEnd();
|
|
87
|
-
if (_args.column_idx !== undefined && _args.descending !== undefined && _args.nulls_first !== undefined) {
|
|
88
|
-
return new SortingColumn(_args);
|
|
89
|
-
} else {
|
|
90
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read SortingColumn from input');
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
104
|
}
|
|
94
|
-
//# sourceMappingURL=SortingColumn.js.map
|