1
1
//
2
- // Autogenerated by Thrift Compiler (0.14.1 )
2
+ // Autogenerated by Thrift Compiler (0.16.0 )
3
3
//
4
4
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
//
@@ -122,14 +122,14 @@ export declare enum BoundaryOrder {
122
122
* All fields are optional.
123
123
*/
124
124
export declare class Statistics {
125
- max : string ;
126
- min : string ;
127
- null_count : Int64 ;
128
- distinct_count : Int64 ;
129
- max_value : string ;
130
- min_value : string ;
125
+ max ?: Buffer ;
126
+ min ?: Buffer ;
127
+ null_count ? : Int64 ;
128
+ distinct_count ? : Int64 ;
129
+ max_value ?: Buffer ;
130
+ min_value ?: Buffer ;
131
131
132
- constructor ( args ?: { max ?: string ; min ?: string ; null_count ?: Int64 ; distinct_count ?: Int64 ; max_value ?: string ; min_value ?: string ; } ) ;
132
+ constructor ( args ?: { max ?: Buffer ; min ?: Buffer ; null_count ?: Int64 ; distinct_count ?: Int64 ; max_value ?: Buffer ; min_value ?: Buffer ; } ) ;
133
133
}
134
134
135
135
/**
@@ -191,9 +191,9 @@ export declare class NanoSeconds {
191
191
}
192
192
193
193
export declare class TimeUnit {
194
- MILLIS : MilliSeconds ;
195
- MICROS : MicroSeconds ;
196
- NANOS : NanoSeconds ;
194
+ MILLIS ? : MilliSeconds ;
195
+ MICROS ? : MicroSeconds ;
196
+ NANOS ? : NanoSeconds ;
197
197
198
198
constructor ( args ?: { MILLIS ?: MilliSeconds ; MICROS ?: MicroSeconds ; NANOS ?: NanoSeconds ; } ) ;
199
199
}
@@ -260,19 +260,19 @@ export declare class BsonType {
260
260
* from the following table.
261
261
*/
262
262
export declare class LogicalType {
263
- STRING : StringType ;
264
- MAP : MapType ;
265
- LIST : ListType ;
266
- ENUM : EnumType ;
267
- DECIMAL : DecimalType ;
268
- DATE : DateType ;
269
- TIME : TimeType ;
270
- TIMESTAMP : TimestampType ;
271
- INTEGER : IntType ;
272
- UNKNOWN : NullType ;
273
- JSON : JsonType ;
274
- BSON : BsonType ;
275
- UUID : UUIDType ;
263
+ STRING ? : StringType ;
264
+ MAP ? : MapType ;
265
+ LIST ? : ListType ;
266
+ ENUM ? : EnumType ;
267
+ DECIMAL ? : DecimalType ;
268
+ DATE ? : DateType ;
269
+ TIME ? : TimeType ;
270
+ TIMESTAMP ? : TimestampType ;
271
+ INTEGER ? : IntType ;
272
+ UNKNOWN ? : NullType ;
273
+ JSON ? : JsonType ;
274
+ BSON ? : BsonType ;
275
+ UUID ? : UUIDType ;
276
276
277
277
constructor ( args ?: { STRING ?: StringType ; MAP ?: MapType ; LIST ?: ListType ; ENUM ?: EnumType ; DECIMAL ?: DecimalType ; DATE ?: DateType ; TIME ?: TimeType ; TIMESTAMP ?: TimestampType ; INTEGER ?: IntType ; UNKNOWN ?: NullType ; JSON ?: JsonType ; BSON ?: BsonType ; UUID ?: UUIDType ; } ) ;
278
278
}
@@ -284,16 +284,16 @@ export declare class LogicalType {
284
284
* the nodes are listed in depth first traversal order.
285
285
*/
286
286
export declare class SchemaElement {
287
- type : Type ;
288
- type_length : number ;
289
- repetition_type : FieldRepetitionType ;
287
+ type ? : Type ;
288
+ type_length ? : number ;
289
+ repetition_type ? : FieldRepetitionType ;
290
290
name : string ;
291
- num_children : number ;
292
- converted_type : ConvertedType ;
293
- scale : number ;
294
- precision : number ;
295
- field_id : number ;
296
- logicalType : LogicalType ;
291
+ num_children ? : number ;
292
+ converted_type ? : ConvertedType ;
293
+ scale ? : number ;
294
+ precision ? : number ;
295
+ field_id ? : number ;
296
+ logicalType ? : LogicalType ;
297
297
298
298
constructor ( args ?: { type ?: Type ; type_length ?: number ; repetition_type ?: FieldRepetitionType ; name : string ; num_children ?: number ; converted_type ?: ConvertedType ; scale ?: number ; precision ?: number ; field_id ?: number ; logicalType ?: LogicalType ; } ) ;
299
299
}
@@ -306,7 +306,7 @@ export declare class DataPageHeader {
306
306
encoding : Encoding ;
307
307
definition_level_encoding : Encoding ;
308
308
repetition_level_encoding : Encoding ;
309
- statistics : Statistics ;
309
+ statistics ? : Statistics ;
310
310
311
311
constructor ( args ?: { num_values : number ; encoding : Encoding ; definition_level_encoding : Encoding ; repetition_level_encoding : Encoding ; statistics ?: Statistics ; } ) ;
312
312
}
@@ -317,7 +317,7 @@ export declare class IndexPageHeader {
317
317
export declare class DictionaryPageHeader {
318
318
num_values : number ;
319
319
encoding : Encoding ;
320
- is_sorted : boolean ;
320
+ is_sorted ? : boolean ;
321
321
322
322
constructor ( args ?: { num_values : number ; encoding : Encoding ; is_sorted ?: boolean ; } ) ;
323
323
}
@@ -335,8 +335,8 @@ export declare class DataPageHeaderV2 {
335
335
encoding : Encoding ;
336
336
definition_levels_byte_length : number ;
337
337
repetition_levels_byte_length : number ;
338
- is_compressed : boolean ;
339
- statistics : Statistics ;
338
+ is_compressed ? : boolean ;
339
+ statistics ? : Statistics ;
340
340
341
341
constructor ( args ?: { num_values : number ; num_nulls : number ; num_rows : number ; encoding : Encoding ; definition_levels_byte_length : number ; repetition_levels_byte_length : number ; is_compressed ?: boolean ; statistics ?: Statistics ; } ) ;
342
342
}
@@ -351,7 +351,7 @@ export declare class SplitBlockAlgorithm {
351
351
* The algorithm used in Bloom filter. *
352
352
*/
353
353
export declare class BloomFilterAlgorithm {
354
- BLOCK : SplitBlockAlgorithm ;
354
+ BLOCK ? : SplitBlockAlgorithm ;
355
355
356
356
constructor ( args ?: { BLOCK ?: SplitBlockAlgorithm ; } ) ;
357
357
}
@@ -370,7 +370,7 @@ export declare class XxHash {
370
370
*
371
371
*/
372
372
export declare class BloomFilterHash {
373
- XXHASH : XxHash ;
373
+ XXHASH ? : XxHash ;
374
374
375
375
constructor ( args ?: { XXHASH ?: XxHash ; } ) ;
376
376
}
@@ -383,7 +383,7 @@ export declare class Uncompressed {
383
383
}
384
384
385
385
export declare class BloomFilterCompression {
386
- UNCOMPRESSED : Uncompressed ;
386
+ UNCOMPRESSED ? : Uncompressed ;
387
387
388
388
constructor ( args ?: { UNCOMPRESSED ?: Uncompressed ; } ) ;
389
389
}
@@ -406,11 +406,11 @@ export declare class PageHeader {
406
406
type : PageType ;
407
407
uncompressed_page_size : number ;
408
408
compressed_page_size : number ;
409
- crc : number ;
410
- data_page_header : DataPageHeader ;
411
- index_page_header : IndexPageHeader ;
412
- dictionary_page_header : DictionaryPageHeader ;
413
- data_page_header_v2 : DataPageHeaderV2 ;
409
+ crc ? : number ;
410
+ data_page_header ? : DataPageHeader ;
411
+ index_page_header ? : IndexPageHeader ;
412
+ dictionary_page_header ? : DictionaryPageHeader ;
413
+ data_page_header_v2 ? : DataPageHeaderV2 ;
414
414
415
415
constructor ( args ?: { type : PageType ; uncompressed_page_size : number ; compressed_page_size : number ; crc ?: number ; data_page_header ?: DataPageHeader ; index_page_header ?: IndexPageHeader ; dictionary_page_header ?: DictionaryPageHeader ; data_page_header_v2 ?: DataPageHeaderV2 ; } ) ;
416
416
}
@@ -420,7 +420,7 @@ export declare class PageHeader {
420
420
*/
421
421
export declare class KeyValue {
422
422
key : string ;
423
- value : string ;
423
+ value ? : string ;
424
424
425
425
constructor ( args ?: { key : string ; value ?: string ; } ) ;
426
426
}
@@ -458,13 +458,13 @@ export declare class ColumnMetaData {
458
458
num_values : Int64 ;
459
459
total_uncompressed_size : Int64 ;
460
460
total_compressed_size : Int64 ;
461
- key_value_metadata : KeyValue [ ] ;
461
+ key_value_metadata ? : KeyValue [ ] ;
462
462
data_page_offset : Int64 ;
463
- index_page_offset : Int64 ;
464
- dictionary_page_offset : Int64 ;
465
- statistics : Statistics ;
466
- encoding_stats : PageEncodingStats [ ] ;
467
- bloom_filter_offset : Int64 ;
463
+ index_page_offset ? : Int64 ;
464
+ dictionary_page_offset ? : Int64 ;
465
+ statistics ? : Statistics ;
466
+ encoding_stats ? : PageEncodingStats [ ] ;
467
+ bloom_filter_offset ? : Int64 ;
468
468
469
469
constructor ( args ?: { type : Type ; encodings : Encoding [ ] ; path_in_schema : string [ ] ; codec : CompressionCodec ; num_values : Int64 ; total_uncompressed_size : Int64 ; total_compressed_size : Int64 ; key_value_metadata ?: KeyValue [ ] ; data_page_offset : Int64 ; index_page_offset ?: Int64 ; dictionary_page_offset ?: Int64 ; statistics ?: Statistics ; encoding_stats ?: PageEncodingStats [ ] ; bloom_filter_offset ?: Int64 ; } ) ;
470
470
}
@@ -474,40 +474,40 @@ export declare class EncryptionWithFooterKey {
474
474
475
475
export declare class EncryptionWithColumnKey {
476
476
path_in_schema : string [ ] ;
477
- key_metadata : string ;
477
+ key_metadata ?: Buffer ;
478
478
479
- constructor ( args ?: { path_in_schema : string [ ] ; key_metadata ?: string ; } ) ;
479
+ constructor ( args ?: { path_in_schema : string [ ] ; key_metadata ?: Buffer ; } ) ;
480
480
}
481
481
482
482
export declare class ColumnCryptoMetaData {
483
- ENCRYPTION_WITH_FOOTER_KEY : EncryptionWithFooterKey ;
484
- ENCRYPTION_WITH_COLUMN_KEY : EncryptionWithColumnKey ;
483
+ ENCRYPTION_WITH_FOOTER_KEY ? : EncryptionWithFooterKey ;
484
+ ENCRYPTION_WITH_COLUMN_KEY ? : EncryptionWithColumnKey ;
485
485
486
486
constructor ( args ?: { ENCRYPTION_WITH_FOOTER_KEY ?: EncryptionWithFooterKey ; ENCRYPTION_WITH_COLUMN_KEY ?: EncryptionWithColumnKey ; } ) ;
487
487
}
488
488
489
489
export declare class ColumnChunk {
490
- file_path : string ;
490
+ file_path ? : string ;
491
491
file_offset : Int64 ;
492
- meta_data : ColumnMetaData ;
493
- offset_index_offset : Int64 ;
494
- offset_index_length : number ;
495
- column_index_offset : Int64 ;
496
- column_index_length : number ;
497
- crypto_metadata : ColumnCryptoMetaData ;
498
- encrypted_column_metadata : string ;
492
+ meta_data ? : ColumnMetaData ;
493
+ offset_index_offset ? : Int64 ;
494
+ offset_index_length ? : number ;
495
+ column_index_offset ? : Int64 ;
496
+ column_index_length ? : number ;
497
+ crypto_metadata ? : ColumnCryptoMetaData ;
498
+ encrypted_column_metadata ?: Buffer ;
499
499
500
- constructor ( args ?: { file_path ?: string ; file_offset : Int64 ; meta_data ?: ColumnMetaData ; offset_index_offset ?: Int64 ; offset_index_length ?: number ; column_index_offset ?: Int64 ; column_index_length ?: number ; crypto_metadata ?: ColumnCryptoMetaData ; encrypted_column_metadata ?: string ; } ) ;
500
+ constructor ( args ?: { file_path ?: string ; file_offset : Int64 ; meta_data ?: ColumnMetaData ; offset_index_offset ?: Int64 ; offset_index_length ?: number ; column_index_offset ?: Int64 ; column_index_length ?: number ; crypto_metadata ?: ColumnCryptoMetaData ; encrypted_column_metadata ?: Buffer ; } ) ;
501
501
}
502
502
503
503
export declare class RowGroup {
504
504
columns : ColumnChunk [ ] ;
505
505
total_byte_size : Int64 ;
506
506
num_rows : Int64 ;
507
- sorting_columns : SortingColumn [ ] ;
508
- file_offset : Int64 ;
509
- total_compressed_size : Int64 ;
510
- ordinal : number ;
507
+ sorting_columns ? : SortingColumn [ ] ;
508
+ file_offset ? : Int64 ;
509
+ total_compressed_size ? : Int64 ;
510
+ ordinal ? : number ;
511
511
512
512
constructor ( args ?: { columns : ColumnChunk [ ] ; total_byte_size : Int64 ; num_rows : Int64 ; sorting_columns ?: SortingColumn [ ] ; file_offset ?: Int64 ; total_compressed_size ?: Int64 ; ordinal ?: number ; } ) ;
513
513
}
@@ -531,7 +531,7 @@ export declare class TypeDefinedOrder {
531
531
* for this column should be ignored.
532
532
*/
533
533
export declare class ColumnOrder {
534
- TYPE_ORDER : TypeDefinedOrder ;
534
+ TYPE_ORDER ? : TypeDefinedOrder ;
535
535
536
536
constructor ( args ?: { TYPE_ORDER ?: TypeDefinedOrder ; } ) ;
537
537
}
@@ -556,33 +556,33 @@ export declare class OffsetIndex {
556
556
*/
557
557
export declare class ColumnIndex {
558
558
null_pages : boolean [ ] ;
559
- min_values : string [ ] ;
560
- max_values : string [ ] ;
559
+ min_values : Buffer [ ] ;
560
+ max_values : Buffer [ ] ;
561
561
boundary_order : BoundaryOrder ;
562
- null_counts : Int64 [ ] ;
562
+ null_counts ? : Int64 [ ] ;
563
563
564
- constructor ( args ?: { null_pages : boolean [ ] ; min_values : string [ ] ; max_values : string [ ] ; boundary_order : BoundaryOrder ; null_counts ?: Int64 [ ] ; } ) ;
564
+ constructor ( args ?: { null_pages : boolean [ ] ; min_values : Buffer [ ] ; max_values : Buffer [ ] ; boundary_order : BoundaryOrder ; null_counts ?: Int64 [ ] ; } ) ;
565
565
}
566
566
567
567
export declare class AesGcmV1 {
568
- aad_prefix : string ;
569
- aad_file_unique : string ;
570
- supply_aad_prefix : boolean ;
568
+ aad_prefix ?: Buffer ;
569
+ aad_file_unique ?: Buffer ;
570
+ supply_aad_prefix ? : boolean ;
571
571
572
- constructor ( args ?: { aad_prefix ?: string ; aad_file_unique ?: string ; supply_aad_prefix ?: boolean ; } ) ;
572
+ constructor ( args ?: { aad_prefix ?: Buffer ; aad_file_unique ?: Buffer ; supply_aad_prefix ?: boolean ; } ) ;
573
573
}
574
574
575
575
export declare class AesGcmCtrV1 {
576
- aad_prefix : string ;
577
- aad_file_unique : string ;
578
- supply_aad_prefix : boolean ;
576
+ aad_prefix ?: Buffer ;
577
+ aad_file_unique ?: Buffer ;
578
+ supply_aad_prefix ? : boolean ;
579
579
580
- constructor ( args ?: { aad_prefix ?: string ; aad_file_unique ?: string ; supply_aad_prefix ?: boolean ; } ) ;
580
+ constructor ( args ?: { aad_prefix ?: Buffer ; aad_file_unique ?: Buffer ; supply_aad_prefix ?: boolean ; } ) ;
581
581
}
582
582
583
583
export declare class EncryptionAlgorithm {
584
- AES_GCM_V1 : AesGcmV1 ;
585
- AES_GCM_CTR_V1 : AesGcmCtrV1 ;
584
+ AES_GCM_V1 ? : AesGcmV1 ;
585
+ AES_GCM_CTR_V1 ? : AesGcmCtrV1 ;
586
586
587
587
constructor ( args ?: { AES_GCM_V1 ?: AesGcmV1 ; AES_GCM_CTR_V1 ?: AesGcmCtrV1 ; } ) ;
588
588
}
@@ -595,21 +595,21 @@ export declare class FileMetaData {
595
595
schema : SchemaElement [ ] ;
596
596
num_rows : Int64 ;
597
597
row_groups : RowGroup [ ] ;
598
- key_value_metadata : KeyValue [ ] ;
599
- created_by : string ;
600
- column_orders : ColumnOrder [ ] ;
601
- encryption_algorithm : EncryptionAlgorithm ;
602
- footer_signing_key_metadata : string ;
598
+ key_value_metadata ? : KeyValue [ ] ;
599
+ created_by ? : string ;
600
+ column_orders ? : ColumnOrder [ ] ;
601
+ encryption_algorithm ? : EncryptionAlgorithm ;
602
+ footer_signing_key_metadata ?: Buffer ;
603
603
604
- constructor ( args ?: { version : number ; schema : SchemaElement [ ] ; num_rows : Int64 ; row_groups : RowGroup [ ] ; key_value_metadata ?: KeyValue [ ] ; created_by ?: string ; column_orders ?: ColumnOrder [ ] ; encryption_algorithm ?: EncryptionAlgorithm ; footer_signing_key_metadata ?: string ; } ) ;
604
+ constructor ( args ?: { version : number ; schema : SchemaElement [ ] ; num_rows : Int64 ; row_groups : RowGroup [ ] ; key_value_metadata ?: KeyValue [ ] ; created_by ?: string ; column_orders ?: ColumnOrder [ ] ; encryption_algorithm ?: EncryptionAlgorithm ; footer_signing_key_metadata ?: Buffer ; } ) ;
605
605
}
606
606
607
607
/**
608
608
* Crypto metadata for files with encrypted footer *
609
609
*/
610
610
export declare class FileCryptoMetaData {
611
611
encryption_algorithm : EncryptionAlgorithm ;
612
- key_metadata : string ;
612
+ key_metadata ?: Buffer ;
613
613
614
- constructor ( args ?: { encryption_algorithm : EncryptionAlgorithm ; key_metadata ?: string ; } ) ;
614
+ constructor ( args ?: { encryption_algorithm : EncryptionAlgorithm ; key_metadata ?: Buffer ; } ) ;
615
615
}
0 commit comments