forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparquet_types.h
More file actions
2917 lines (2155 loc) · 78.1 KB
/
Copy pathparquet_types.h
File metadata and controls
2917 lines (2155 loc) · 78.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
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
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef parquet_TYPES_H
#define parquet_TYPES_H
#include <iosfwd>
#include <thrift/Thrift.h>
#include <thrift/TApplicationException.h>
#include <thrift/TBase.h>
#include <thrift/protocol/TProtocol.h>
#include <thrift/transport/TTransport.h>
#include <functional>
#include <memory>
#include "parquet/windows_compatibility.h"
namespace parquet { namespace format {
struct Type {
enum type {
BOOLEAN = 0,
INT32 = 1,
INT64 = 2,
INT96 = 3,
FLOAT = 4,
DOUBLE = 5,
BYTE_ARRAY = 6,
FIXED_LEN_BYTE_ARRAY = 7
};
};
extern const std::map<int, const char*> _Type_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const Type::type& val);
std::string to_string(const Type::type& val);
struct ConvertedType {
enum type {
UTF8 = 0,
MAP = 1,
MAP_KEY_VALUE = 2,
LIST = 3,
ENUM = 4,
DECIMAL = 5,
DATE = 6,
TIME_MILLIS = 7,
TIME_MICROS = 8,
TIMESTAMP_MILLIS = 9,
TIMESTAMP_MICROS = 10,
UINT_8 = 11,
UINT_16 = 12,
UINT_32 = 13,
UINT_64 = 14,
INT_8 = 15,
INT_16 = 16,
INT_32 = 17,
INT_64 = 18,
JSON = 19,
BSON = 20,
INTERVAL = 21
};
};
extern const std::map<int, const char*> _ConvertedType_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const ConvertedType::type& val);
std::string to_string(const ConvertedType::type& val);
struct FieldRepetitionType {
enum type {
REQUIRED = 0,
OPTIONAL = 1,
REPEATED = 2
};
};
extern const std::map<int, const char*> _FieldRepetitionType_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const FieldRepetitionType::type& val);
std::string to_string(const FieldRepetitionType::type& val);
struct Encoding {
enum type {
PLAIN = 0,
PLAIN_DICTIONARY = 2,
RLE = 3,
BIT_PACKED = 4,
DELTA_BINARY_PACKED = 5,
DELTA_LENGTH_BYTE_ARRAY = 6,
DELTA_BYTE_ARRAY = 7,
RLE_DICTIONARY = 8,
BYTE_STREAM_SPLIT = 9
};
};
extern const std::map<int, const char*> _Encoding_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const Encoding::type& val);
std::string to_string(const Encoding::type& val);
struct CompressionCodec {
enum type {
UNCOMPRESSED = 0,
SNAPPY = 1,
GZIP = 2,
LZO = 3,
BROTLI = 4,
LZ4 = 5,
ZSTD = 6,
LZ4_RAW = 7
};
};
extern const std::map<int, const char*> _CompressionCodec_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const CompressionCodec::type& val);
std::string to_string(const CompressionCodec::type& val);
struct PageType {
enum type {
DATA_PAGE = 0,
INDEX_PAGE = 1,
DICTIONARY_PAGE = 2,
DATA_PAGE_V2 = 3
};
};
extern const std::map<int, const char*> _PageType_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const PageType::type& val);
std::string to_string(const PageType::type& val);
struct BoundaryOrder {
enum type {
UNORDERED = 0,
ASCENDING = 1,
DESCENDING = 2
};
};
extern const std::map<int, const char*> _BoundaryOrder_VALUES_TO_NAMES;
std::ostream& operator<<(std::ostream& out, const BoundaryOrder::type& val);
std::string to_string(const BoundaryOrder::type& val);
class Statistics;
class StringType;
class UUIDType;
class MapType;
class ListType;
class EnumType;
class DateType;
class NullType;
class DecimalType;
class MilliSeconds;
class MicroSeconds;
class NanoSeconds;
class TimeUnit;
class TimestampType;
class TimeType;
class IntType;
class JsonType;
class BsonType;
class LogicalType;
class SchemaElement;
class DataPageHeader;
class IndexPageHeader;
class DictionaryPageHeader;
class DataPageHeaderV2;
class SplitBlockAlgorithm;
class BloomFilterAlgorithm;
class XxHash;
class BloomFilterHash;
class Uncompressed;
class BloomFilterCompression;
class BloomFilterHeader;
class PageHeader;
class KeyValue;
class SortingColumn;
class PageEncodingStats;
class ColumnMetaData;
class EncryptionWithFooterKey;
class EncryptionWithColumnKey;
class ColumnCryptoMetaData;
class ColumnChunk;
class RowGroup;
class TypeDefinedOrder;
class ColumnOrder;
class PageLocation;
class OffsetIndex;
class ColumnIndex;
class AesGcmV1;
class AesGcmCtrV1;
class EncryptionAlgorithm;
class FileMetaData;
class FileCryptoMetaData;
typedef struct _Statistics__isset {
_Statistics__isset() : max(false), min(false), null_count(false), distinct_count(false), max_value(false), min_value(false) {}
bool max :1;
bool min :1;
bool null_count :1;
bool distinct_count :1;
bool max_value :1;
bool min_value :1;
} _Statistics__isset;
class Statistics : public virtual ::apache::thrift::TBase {
public:
Statistics(const Statistics&);
Statistics& operator=(const Statistics&);
Statistics() : max(), min(), null_count(0), distinct_count(0), max_value(), min_value() {
}
virtual ~Statistics() noexcept;
std::string max;
std::string min;
int64_t null_count;
int64_t distinct_count;
std::string max_value;
std::string min_value;
_Statistics__isset __isset;
void __set_max(const std::string& val);
void __set_min(const std::string& val);
void __set_null_count(const int64_t val);
void __set_distinct_count(const int64_t val);
void __set_max_value(const std::string& val);
void __set_min_value(const std::string& val);
bool operator == (const Statistics & rhs) const
{
if (__isset.max != rhs.__isset.max)
return false;
else if (__isset.max && !(max == rhs.max))
return false;
if (__isset.min != rhs.__isset.min)
return false;
else if (__isset.min && !(min == rhs.min))
return false;
if (__isset.null_count != rhs.__isset.null_count)
return false;
else if (__isset.null_count && !(null_count == rhs.null_count))
return false;
if (__isset.distinct_count != rhs.__isset.distinct_count)
return false;
else if (__isset.distinct_count && !(distinct_count == rhs.distinct_count))
return false;
if (__isset.max_value != rhs.__isset.max_value)
return false;
else if (__isset.max_value && !(max_value == rhs.max_value))
return false;
if (__isset.min_value != rhs.__isset.min_value)
return false;
else if (__isset.min_value && !(min_value == rhs.min_value))
return false;
return true;
}
bool operator != (const Statistics &rhs) const {
return !(*this == rhs);
}
bool operator < (const Statistics & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(Statistics &a, Statistics &b);
std::ostream& operator<<(std::ostream& out, const Statistics& obj);
class StringType : public virtual ::apache::thrift::TBase {
public:
StringType(const StringType&);
StringType& operator=(const StringType&);
StringType() {
}
virtual ~StringType() noexcept;
bool operator == (const StringType & /* rhs */) const
{
return true;
}
bool operator != (const StringType &rhs) const {
return !(*this == rhs);
}
bool operator < (const StringType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(StringType &a, StringType &b);
std::ostream& operator<<(std::ostream& out, const StringType& obj);
class UUIDType : public virtual ::apache::thrift::TBase {
public:
UUIDType(const UUIDType&);
UUIDType& operator=(const UUIDType&);
UUIDType() {
}
virtual ~UUIDType() noexcept;
bool operator == (const UUIDType & /* rhs */) const
{
return true;
}
bool operator != (const UUIDType &rhs) const {
return !(*this == rhs);
}
bool operator < (const UUIDType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(UUIDType &a, UUIDType &b);
std::ostream& operator<<(std::ostream& out, const UUIDType& obj);
class MapType : public virtual ::apache::thrift::TBase {
public:
MapType(const MapType&);
MapType& operator=(const MapType&);
MapType() {
}
virtual ~MapType() noexcept;
bool operator == (const MapType & /* rhs */) const
{
return true;
}
bool operator != (const MapType &rhs) const {
return !(*this == rhs);
}
bool operator < (const MapType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(MapType &a, MapType &b);
std::ostream& operator<<(std::ostream& out, const MapType& obj);
class ListType : public virtual ::apache::thrift::TBase {
public:
ListType(const ListType&);
ListType& operator=(const ListType&);
ListType() {
}
virtual ~ListType() noexcept;
bool operator == (const ListType & /* rhs */) const
{
return true;
}
bool operator != (const ListType &rhs) const {
return !(*this == rhs);
}
bool operator < (const ListType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(ListType &a, ListType &b);
std::ostream& operator<<(std::ostream& out, const ListType& obj);
class EnumType : public virtual ::apache::thrift::TBase {
public:
EnumType(const EnumType&);
EnumType& operator=(const EnumType&);
EnumType() {
}
virtual ~EnumType() noexcept;
bool operator == (const EnumType & /* rhs */) const
{
return true;
}
bool operator != (const EnumType &rhs) const {
return !(*this == rhs);
}
bool operator < (const EnumType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(EnumType &a, EnumType &b);
std::ostream& operator<<(std::ostream& out, const EnumType& obj);
class DateType : public virtual ::apache::thrift::TBase {
public:
DateType(const DateType&);
DateType& operator=(const DateType&);
DateType() {
}
virtual ~DateType() noexcept;
bool operator == (const DateType & /* rhs */) const
{
return true;
}
bool operator != (const DateType &rhs) const {
return !(*this == rhs);
}
bool operator < (const DateType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(DateType &a, DateType &b);
std::ostream& operator<<(std::ostream& out, const DateType& obj);
class NullType : public virtual ::apache::thrift::TBase {
public:
NullType(const NullType&);
NullType& operator=(const NullType&);
NullType() {
}
virtual ~NullType() noexcept;
bool operator == (const NullType & /* rhs */) const
{
return true;
}
bool operator != (const NullType &rhs) const {
return !(*this == rhs);
}
bool operator < (const NullType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(NullType &a, NullType &b);
std::ostream& operator<<(std::ostream& out, const NullType& obj);
class DecimalType : public virtual ::apache::thrift::TBase {
public:
DecimalType(const DecimalType&);
DecimalType& operator=(const DecimalType&);
DecimalType() : scale(0), precision(0) {
}
virtual ~DecimalType() noexcept;
int32_t scale;
int32_t precision;
void __set_scale(const int32_t val);
void __set_precision(const int32_t val);
bool operator == (const DecimalType & rhs) const
{
if (!(scale == rhs.scale))
return false;
if (!(precision == rhs.precision))
return false;
return true;
}
bool operator != (const DecimalType &rhs) const {
return !(*this == rhs);
}
bool operator < (const DecimalType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(DecimalType &a, DecimalType &b);
std::ostream& operator<<(std::ostream& out, const DecimalType& obj);
class MilliSeconds : public virtual ::apache::thrift::TBase {
public:
MilliSeconds(const MilliSeconds&);
MilliSeconds& operator=(const MilliSeconds&);
MilliSeconds() {
}
virtual ~MilliSeconds() noexcept;
bool operator == (const MilliSeconds & /* rhs */) const
{
return true;
}
bool operator != (const MilliSeconds &rhs) const {
return !(*this == rhs);
}
bool operator < (const MilliSeconds & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(MilliSeconds &a, MilliSeconds &b);
std::ostream& operator<<(std::ostream& out, const MilliSeconds& obj);
class MicroSeconds : public virtual ::apache::thrift::TBase {
public:
MicroSeconds(const MicroSeconds&);
MicroSeconds& operator=(const MicroSeconds&);
MicroSeconds() {
}
virtual ~MicroSeconds() noexcept;
bool operator == (const MicroSeconds & /* rhs */) const
{
return true;
}
bool operator != (const MicroSeconds &rhs) const {
return !(*this == rhs);
}
bool operator < (const MicroSeconds & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(MicroSeconds &a, MicroSeconds &b);
std::ostream& operator<<(std::ostream& out, const MicroSeconds& obj);
class NanoSeconds : public virtual ::apache::thrift::TBase {
public:
NanoSeconds(const NanoSeconds&);
NanoSeconds& operator=(const NanoSeconds&);
NanoSeconds() {
}
virtual ~NanoSeconds() noexcept;
bool operator == (const NanoSeconds & /* rhs */) const
{
return true;
}
bool operator != (const NanoSeconds &rhs) const {
return !(*this == rhs);
}
bool operator < (const NanoSeconds & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(NanoSeconds &a, NanoSeconds &b);
std::ostream& operator<<(std::ostream& out, const NanoSeconds& obj);
typedef struct _TimeUnit__isset {
_TimeUnit__isset() : MILLIS(false), MICROS(false), NANOS(false) {}
bool MILLIS :1;
bool MICROS :1;
bool NANOS :1;
} _TimeUnit__isset;
class TimeUnit : public virtual ::apache::thrift::TBase {
public:
TimeUnit(const TimeUnit&);
TimeUnit& operator=(const TimeUnit&);
TimeUnit() {
}
virtual ~TimeUnit() noexcept;
MilliSeconds MILLIS;
MicroSeconds MICROS;
NanoSeconds NANOS;
_TimeUnit__isset __isset;
void __set_MILLIS(const MilliSeconds& val);
void __set_MICROS(const MicroSeconds& val);
void __set_NANOS(const NanoSeconds& val);
bool operator == (const TimeUnit & rhs) const
{
if (__isset.MILLIS != rhs.__isset.MILLIS)
return false;
else if (__isset.MILLIS && !(MILLIS == rhs.MILLIS))
return false;
if (__isset.MICROS != rhs.__isset.MICROS)
return false;
else if (__isset.MICROS && !(MICROS == rhs.MICROS))
return false;
if (__isset.NANOS != rhs.__isset.NANOS)
return false;
else if (__isset.NANOS && !(NANOS == rhs.NANOS))
return false;
return true;
}
bool operator != (const TimeUnit &rhs) const {
return !(*this == rhs);
}
bool operator < (const TimeUnit & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(TimeUnit &a, TimeUnit &b);
std::ostream& operator<<(std::ostream& out, const TimeUnit& obj);
class TimestampType : public virtual ::apache::thrift::TBase {
public:
TimestampType(const TimestampType&);
TimestampType& operator=(const TimestampType&);
TimestampType() : isAdjustedToUTC(0) {
}
virtual ~TimestampType() noexcept;
bool isAdjustedToUTC;
TimeUnit unit;
void __set_isAdjustedToUTC(const bool val);
void __set_unit(const TimeUnit& val);
bool operator == (const TimestampType & rhs) const
{
if (!(isAdjustedToUTC == rhs.isAdjustedToUTC))
return false;
if (!(unit == rhs.unit))
return false;
return true;
}
bool operator != (const TimestampType &rhs) const {
return !(*this == rhs);
}
bool operator < (const TimestampType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(TimestampType &a, TimestampType &b);
std::ostream& operator<<(std::ostream& out, const TimestampType& obj);
class TimeType : public virtual ::apache::thrift::TBase {
public:
TimeType(const TimeType&);
TimeType& operator=(const TimeType&);
TimeType() : isAdjustedToUTC(0) {
}
virtual ~TimeType() noexcept;
bool isAdjustedToUTC;
TimeUnit unit;
void __set_isAdjustedToUTC(const bool val);
void __set_unit(const TimeUnit& val);
bool operator == (const TimeType & rhs) const
{
if (!(isAdjustedToUTC == rhs.isAdjustedToUTC))
return false;
if (!(unit == rhs.unit))
return false;
return true;
}
bool operator != (const TimeType &rhs) const {
return !(*this == rhs);
}
bool operator < (const TimeType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(TimeType &a, TimeType &b);
std::ostream& operator<<(std::ostream& out, const TimeType& obj);
class IntType : public virtual ::apache::thrift::TBase {
public:
IntType(const IntType&);
IntType& operator=(const IntType&);
IntType() : bitWidth(0), isSigned(0) {
}
virtual ~IntType() noexcept;
int8_t bitWidth;
bool isSigned;
void __set_bitWidth(const int8_t val);
void __set_isSigned(const bool val);
bool operator == (const IntType & rhs) const
{
if (!(bitWidth == rhs.bitWidth))
return false;
if (!(isSigned == rhs.isSigned))
return false;
return true;
}
bool operator != (const IntType &rhs) const {
return !(*this == rhs);
}
bool operator < (const IntType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(IntType &a, IntType &b);
std::ostream& operator<<(std::ostream& out, const IntType& obj);
class JsonType : public virtual ::apache::thrift::TBase {
public:
JsonType(const JsonType&);
JsonType& operator=(const JsonType&);
JsonType() {
}
virtual ~JsonType() noexcept;
bool operator == (const JsonType & /* rhs */) const
{
return true;
}
bool operator != (const JsonType &rhs) const {
return !(*this == rhs);
}
bool operator < (const JsonType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(JsonType &a, JsonType &b);
std::ostream& operator<<(std::ostream& out, const JsonType& obj);
class BsonType : public virtual ::apache::thrift::TBase {
public:
BsonType(const BsonType&);
BsonType& operator=(const BsonType&);
BsonType() {
}
virtual ~BsonType() noexcept;
bool operator == (const BsonType & /* rhs */) const
{
return true;
}
bool operator != (const BsonType &rhs) const {
return !(*this == rhs);
}
bool operator < (const BsonType & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
virtual void printTo(std::ostream& out) const;
};
void swap(BsonType &a, BsonType &b);
std::ostream& operator<<(std::ostream& out, const BsonType& obj);
typedef struct _LogicalType__isset {
_LogicalType__isset() : STRING(false), MAP(false), LIST(false), ENUM(false), DECIMAL(false), DATE(false), TIME(false), TIMESTAMP(false), INTEGER(false), UNKNOWN(false), JSON(false), BSON(false), UUID(false) {}
bool STRING :1;
bool MAP :1;
bool LIST :1;
bool ENUM :1;
bool DECIMAL :1;
bool DATE :1;
bool TIME :1;
bool TIMESTAMP :1;
bool INTEGER :1;
bool UNKNOWN :1;
bool JSON :1;
bool BSON :1;
bool UUID :1;
} _LogicalType__isset;
class LogicalType : public virtual ::apache::thrift::TBase {
public:
LogicalType(const LogicalType&);
LogicalType& operator=(const LogicalType&);
LogicalType() {
}
virtual ~LogicalType() noexcept;
StringType STRING;
MapType MAP;
ListType LIST;
EnumType ENUM;
DecimalType DECIMAL;
DateType DATE;
TimeType TIME;
TimestampType TIMESTAMP;
IntType INTEGER;
NullType UNKNOWN;
JsonType JSON;
BsonType BSON;
UUIDType UUID;
_LogicalType__isset __isset;
void __set_STRING(const StringType& val);
void __set_MAP(const MapType& val);
void __set_LIST(const ListType& val);
void __set_ENUM(const EnumType& val);
void __set_DECIMAL(const DecimalType& val);
void __set_DATE(const DateType& val);
void __set_TIME(const TimeType& val);
void __set_TIMESTAMP(const TimestampType& val);
void __set_INTEGER(const IntType& val);