1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: orc_proto.proto
3
4#include "orc_proto.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/stubs/port.h>
10#include <google/protobuf/io/coded_stream.h>
11#include <google/protobuf/wire_format_lite_inl.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// This is a temporary google only hack
17#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18#include "third_party/protobuf/version.h"
19#endif
20// @@protoc_insertion_point(includes)
21
22namespace protobuf_orc_5fproto_2eproto {
23extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BinaryStatistics;
24extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BloomFilter;
25extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BucketStatistics;
26extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ColumnEncoding;
27extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DateStatistics;
28extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DecimalStatistics;
29extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DoubleStatistics;
30extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerStatistics;
31extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PostScript;
32extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Stream;
33extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StringStatistics;
34extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StripeInformation;
35extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TimestampStatistics;
36extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Type;
37extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UserMetadataItem;
38extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RowIndexEntry;
39extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StripeStatistics;
40extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Footer;
41extern PROTOBUF_INTERNAL_EXPORT_protobuf_orc_5fproto_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_ColumnStatistics;
42} // namespace protobuf_orc_5fproto_2eproto
43namespace orc {
44namespace proto {
45class IntegerStatisticsDefaultTypeInternal {
46 public:
47 ::google::protobuf::internal::ExplicitlyConstructed<IntegerStatistics>
48 _instance;
49} _IntegerStatistics_default_instance_;
50class DoubleStatisticsDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<DoubleStatistics>
53 _instance;
54} _DoubleStatistics_default_instance_;
55class StringStatisticsDefaultTypeInternal {
56 public:
57 ::google::protobuf::internal::ExplicitlyConstructed<StringStatistics>
58 _instance;
59} _StringStatistics_default_instance_;
60class BucketStatisticsDefaultTypeInternal {
61 public:
62 ::google::protobuf::internal::ExplicitlyConstructed<BucketStatistics>
63 _instance;
64} _BucketStatistics_default_instance_;
65class DecimalStatisticsDefaultTypeInternal {
66 public:
67 ::google::protobuf::internal::ExplicitlyConstructed<DecimalStatistics>
68 _instance;
69} _DecimalStatistics_default_instance_;
70class DateStatisticsDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<DateStatistics>
73 _instance;
74} _DateStatistics_default_instance_;
75class TimestampStatisticsDefaultTypeInternal {
76 public:
77 ::google::protobuf::internal::ExplicitlyConstructed<TimestampStatistics>
78 _instance;
79} _TimestampStatistics_default_instance_;
80class BinaryStatisticsDefaultTypeInternal {
81 public:
82 ::google::protobuf::internal::ExplicitlyConstructed<BinaryStatistics>
83 _instance;
84} _BinaryStatistics_default_instance_;
85class ColumnStatisticsDefaultTypeInternal {
86 public:
87 ::google::protobuf::internal::ExplicitlyConstructed<ColumnStatistics>
88 _instance;
89} _ColumnStatistics_default_instance_;
90class RowIndexEntryDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<RowIndexEntry>
93 _instance;
94} _RowIndexEntry_default_instance_;
95class RowIndexDefaultTypeInternal {
96 public:
97 ::google::protobuf::internal::ExplicitlyConstructed<RowIndex>
98 _instance;
99} _RowIndex_default_instance_;
100class BloomFilterDefaultTypeInternal {
101 public:
102 ::google::protobuf::internal::ExplicitlyConstructed<BloomFilter>
103 _instance;
104} _BloomFilter_default_instance_;
105class BloomFilterIndexDefaultTypeInternal {
106 public:
107 ::google::protobuf::internal::ExplicitlyConstructed<BloomFilterIndex>
108 _instance;
109} _BloomFilterIndex_default_instance_;
110class StreamDefaultTypeInternal {
111 public:
112 ::google::protobuf::internal::ExplicitlyConstructed<Stream>
113 _instance;
114} _Stream_default_instance_;
115class ColumnEncodingDefaultTypeInternal {
116 public:
117 ::google::protobuf::internal::ExplicitlyConstructed<ColumnEncoding>
118 _instance;
119} _ColumnEncoding_default_instance_;
120class StripeFooterDefaultTypeInternal {
121 public:
122 ::google::protobuf::internal::ExplicitlyConstructed<StripeFooter>
123 _instance;
124} _StripeFooter_default_instance_;
125class TypeDefaultTypeInternal {
126 public:
127 ::google::protobuf::internal::ExplicitlyConstructed<Type>
128 _instance;
129} _Type_default_instance_;
130class StripeInformationDefaultTypeInternal {
131 public:
132 ::google::protobuf::internal::ExplicitlyConstructed<StripeInformation>
133 _instance;
134} _StripeInformation_default_instance_;
135class UserMetadataItemDefaultTypeInternal {
136 public:
137 ::google::protobuf::internal::ExplicitlyConstructed<UserMetadataItem>
138 _instance;
139} _UserMetadataItem_default_instance_;
140class StripeStatisticsDefaultTypeInternal {
141 public:
142 ::google::protobuf::internal::ExplicitlyConstructed<StripeStatistics>
143 _instance;
144} _StripeStatistics_default_instance_;
145class MetadataDefaultTypeInternal {
146 public:
147 ::google::protobuf::internal::ExplicitlyConstructed<Metadata>
148 _instance;
149} _Metadata_default_instance_;
150class FooterDefaultTypeInternal {
151 public:
152 ::google::protobuf::internal::ExplicitlyConstructed<Footer>
153 _instance;
154} _Footer_default_instance_;
155class PostScriptDefaultTypeInternal {
156 public:
157 ::google::protobuf::internal::ExplicitlyConstructed<PostScript>
158 _instance;
159} _PostScript_default_instance_;
160class FileTailDefaultTypeInternal {
161 public:
162 ::google::protobuf::internal::ExplicitlyConstructed<FileTail>
163 _instance;
164} _FileTail_default_instance_;
165} // namespace proto
166} // namespace orc
167namespace protobuf_orc_5fproto_2eproto {
168static void InitDefaultsIntegerStatistics() {
169 GOOGLE_PROTOBUF_VERIFY_VERSION;
170
171 {
172 void* ptr = &::orc::proto::_IntegerStatistics_default_instance_;
173 new (ptr) ::orc::proto::IntegerStatistics();
174 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
175 }
176 ::orc::proto::IntegerStatistics::InitAsDefaultInstance();
177}
178
179::google::protobuf::internal::SCCInfo<0> scc_info_IntegerStatistics =
180 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerStatistics}, {}};
181
182static void InitDefaultsDoubleStatistics() {
183 GOOGLE_PROTOBUF_VERIFY_VERSION;
184
185 {
186 void* ptr = &::orc::proto::_DoubleStatistics_default_instance_;
187 new (ptr) ::orc::proto::DoubleStatistics();
188 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
189 }
190 ::orc::proto::DoubleStatistics::InitAsDefaultInstance();
191}
192
193::google::protobuf::internal::SCCInfo<0> scc_info_DoubleStatistics =
194 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDoubleStatistics}, {}};
195
196static void InitDefaultsStringStatistics() {
197 GOOGLE_PROTOBUF_VERIFY_VERSION;
198
199 {
200 void* ptr = &::orc::proto::_StringStatistics_default_instance_;
201 new (ptr) ::orc::proto::StringStatistics();
202 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
203 }
204 ::orc::proto::StringStatistics::InitAsDefaultInstance();
205}
206
207::google::protobuf::internal::SCCInfo<0> scc_info_StringStatistics =
208 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStringStatistics}, {}};
209
210static void InitDefaultsBucketStatistics() {
211 GOOGLE_PROTOBUF_VERIFY_VERSION;
212
213 {
214 void* ptr = &::orc::proto::_BucketStatistics_default_instance_;
215 new (ptr) ::orc::proto::BucketStatistics();
216 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
217 }
218 ::orc::proto::BucketStatistics::InitAsDefaultInstance();
219}
220
221::google::protobuf::internal::SCCInfo<0> scc_info_BucketStatistics =
222 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBucketStatistics}, {}};
223
224static void InitDefaultsDecimalStatistics() {
225 GOOGLE_PROTOBUF_VERIFY_VERSION;
226
227 {
228 void* ptr = &::orc::proto::_DecimalStatistics_default_instance_;
229 new (ptr) ::orc::proto::DecimalStatistics();
230 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
231 }
232 ::orc::proto::DecimalStatistics::InitAsDefaultInstance();
233}
234
235::google::protobuf::internal::SCCInfo<0> scc_info_DecimalStatistics =
236 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDecimalStatistics}, {}};
237
238static void InitDefaultsDateStatistics() {
239 GOOGLE_PROTOBUF_VERIFY_VERSION;
240
241 {
242 void* ptr = &::orc::proto::_DateStatistics_default_instance_;
243 new (ptr) ::orc::proto::DateStatistics();
244 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
245 }
246 ::orc::proto::DateStatistics::InitAsDefaultInstance();
247}
248
249::google::protobuf::internal::SCCInfo<0> scc_info_DateStatistics =
250 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDateStatistics}, {}};
251
252static void InitDefaultsTimestampStatistics() {
253 GOOGLE_PROTOBUF_VERIFY_VERSION;
254
255 {
256 void* ptr = &::orc::proto::_TimestampStatistics_default_instance_;
257 new (ptr) ::orc::proto::TimestampStatistics();
258 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
259 }
260 ::orc::proto::TimestampStatistics::InitAsDefaultInstance();
261}
262
263::google::protobuf::internal::SCCInfo<0> scc_info_TimestampStatistics =
264 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTimestampStatistics}, {}};
265
266static void InitDefaultsBinaryStatistics() {
267 GOOGLE_PROTOBUF_VERIFY_VERSION;
268
269 {
270 void* ptr = &::orc::proto::_BinaryStatistics_default_instance_;
271 new (ptr) ::orc::proto::BinaryStatistics();
272 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
273 }
274 ::orc::proto::BinaryStatistics::InitAsDefaultInstance();
275}
276
277::google::protobuf::internal::SCCInfo<0> scc_info_BinaryStatistics =
278 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBinaryStatistics}, {}};
279
280static void InitDefaultsColumnStatistics() {
281 GOOGLE_PROTOBUF_VERIFY_VERSION;
282
283 {
284 void* ptr = &::orc::proto::_ColumnStatistics_default_instance_;
285 new (ptr) ::orc::proto::ColumnStatistics();
286 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
287 }
288 ::orc::proto::ColumnStatistics::InitAsDefaultInstance();
289}
290
291::google::protobuf::internal::SCCInfo<8> scc_info_ColumnStatistics =
292 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsColumnStatistics}, {
293 &protobuf_orc_5fproto_2eproto::scc_info_IntegerStatistics.base,
294 &protobuf_orc_5fproto_2eproto::scc_info_DoubleStatistics.base,
295 &protobuf_orc_5fproto_2eproto::scc_info_StringStatistics.base,
296 &protobuf_orc_5fproto_2eproto::scc_info_BucketStatistics.base,
297 &protobuf_orc_5fproto_2eproto::scc_info_DecimalStatistics.base,
298 &protobuf_orc_5fproto_2eproto::scc_info_DateStatistics.base,
299 &protobuf_orc_5fproto_2eproto::scc_info_BinaryStatistics.base,
300 &protobuf_orc_5fproto_2eproto::scc_info_TimestampStatistics.base,}};
301
302static void InitDefaultsRowIndexEntry() {
303 GOOGLE_PROTOBUF_VERIFY_VERSION;
304
305 {
306 void* ptr = &::orc::proto::_RowIndexEntry_default_instance_;
307 new (ptr) ::orc::proto::RowIndexEntry();
308 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
309 }
310 ::orc::proto::RowIndexEntry::InitAsDefaultInstance();
311}
312
313::google::protobuf::internal::SCCInfo<1> scc_info_RowIndexEntry =
314 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRowIndexEntry}, {
315 &protobuf_orc_5fproto_2eproto::scc_info_ColumnStatistics.base,}};
316
317static void InitDefaultsRowIndex() {
318 GOOGLE_PROTOBUF_VERIFY_VERSION;
319
320 {
321 void* ptr = &::orc::proto::_RowIndex_default_instance_;
322 new (ptr) ::orc::proto::RowIndex();
323 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
324 }
325 ::orc::proto::RowIndex::InitAsDefaultInstance();
326}
327
328::google::protobuf::internal::SCCInfo<1> scc_info_RowIndex =
329 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRowIndex}, {
330 &protobuf_orc_5fproto_2eproto::scc_info_RowIndexEntry.base,}};
331
332static void InitDefaultsBloomFilter() {
333 GOOGLE_PROTOBUF_VERIFY_VERSION;
334
335 {
336 void* ptr = &::orc::proto::_BloomFilter_default_instance_;
337 new (ptr) ::orc::proto::BloomFilter();
338 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
339 }
340 ::orc::proto::BloomFilter::InitAsDefaultInstance();
341}
342
343::google::protobuf::internal::SCCInfo<0> scc_info_BloomFilter =
344 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBloomFilter}, {}};
345
346static void InitDefaultsBloomFilterIndex() {
347 GOOGLE_PROTOBUF_VERIFY_VERSION;
348
349 {
350 void* ptr = &::orc::proto::_BloomFilterIndex_default_instance_;
351 new (ptr) ::orc::proto::BloomFilterIndex();
352 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
353 }
354 ::orc::proto::BloomFilterIndex::InitAsDefaultInstance();
355}
356
357::google::protobuf::internal::SCCInfo<1> scc_info_BloomFilterIndex =
358 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBloomFilterIndex}, {
359 &protobuf_orc_5fproto_2eproto::scc_info_BloomFilter.base,}};
360
361static void InitDefaultsStream() {
362 GOOGLE_PROTOBUF_VERIFY_VERSION;
363
364 {
365 void* ptr = &::orc::proto::_Stream_default_instance_;
366 new (ptr) ::orc::proto::Stream();
367 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
368 }
369 ::orc::proto::Stream::InitAsDefaultInstance();
370}
371
372::google::protobuf::internal::SCCInfo<0> scc_info_Stream =
373 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStream}, {}};
374
375static void InitDefaultsColumnEncoding() {
376 GOOGLE_PROTOBUF_VERIFY_VERSION;
377
378 {
379 void* ptr = &::orc::proto::_ColumnEncoding_default_instance_;
380 new (ptr) ::orc::proto::ColumnEncoding();
381 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
382 }
383 ::orc::proto::ColumnEncoding::InitAsDefaultInstance();
384}
385
386::google::protobuf::internal::SCCInfo<0> scc_info_ColumnEncoding =
387 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsColumnEncoding}, {}};
388
389static void InitDefaultsStripeFooter() {
390 GOOGLE_PROTOBUF_VERIFY_VERSION;
391
392 {
393 void* ptr = &::orc::proto::_StripeFooter_default_instance_;
394 new (ptr) ::orc::proto::StripeFooter();
395 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
396 }
397 ::orc::proto::StripeFooter::InitAsDefaultInstance();
398}
399
400::google::protobuf::internal::SCCInfo<2> scc_info_StripeFooter =
401 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsStripeFooter}, {
402 &protobuf_orc_5fproto_2eproto::scc_info_Stream.base,
403 &protobuf_orc_5fproto_2eproto::scc_info_ColumnEncoding.base,}};
404
405static void InitDefaultsType() {
406 GOOGLE_PROTOBUF_VERIFY_VERSION;
407
408 {
409 void* ptr = &::orc::proto::_Type_default_instance_;
410 new (ptr) ::orc::proto::Type();
411 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
412 }
413 ::orc::proto::Type::InitAsDefaultInstance();
414}
415
416::google::protobuf::internal::SCCInfo<0> scc_info_Type =
417 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsType}, {}};
418
419static void InitDefaultsStripeInformation() {
420 GOOGLE_PROTOBUF_VERIFY_VERSION;
421
422 {
423 void* ptr = &::orc::proto::_StripeInformation_default_instance_;
424 new (ptr) ::orc::proto::StripeInformation();
425 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
426 }
427 ::orc::proto::StripeInformation::InitAsDefaultInstance();
428}
429
430::google::protobuf::internal::SCCInfo<0> scc_info_StripeInformation =
431 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStripeInformation}, {}};
432
433static void InitDefaultsUserMetadataItem() {
434 GOOGLE_PROTOBUF_VERIFY_VERSION;
435
436 {
437 void* ptr = &::orc::proto::_UserMetadataItem_default_instance_;
438 new (ptr) ::orc::proto::UserMetadataItem();
439 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
440 }
441 ::orc::proto::UserMetadataItem::InitAsDefaultInstance();
442}
443
444::google::protobuf::internal::SCCInfo<0> scc_info_UserMetadataItem =
445 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUserMetadataItem}, {}};
446
447static void InitDefaultsStripeStatistics() {
448 GOOGLE_PROTOBUF_VERIFY_VERSION;
449
450 {
451 void* ptr = &::orc::proto::_StripeStatistics_default_instance_;
452 new (ptr) ::orc::proto::StripeStatistics();
453 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
454 }
455 ::orc::proto::StripeStatistics::InitAsDefaultInstance();
456}
457
458::google::protobuf::internal::SCCInfo<1> scc_info_StripeStatistics =
459 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStripeStatistics}, {
460 &protobuf_orc_5fproto_2eproto::scc_info_ColumnStatistics.base,}};
461
462static void InitDefaultsMetadata() {
463 GOOGLE_PROTOBUF_VERIFY_VERSION;
464
465 {
466 void* ptr = &::orc::proto::_Metadata_default_instance_;
467 new (ptr) ::orc::proto::Metadata();
468 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
469 }
470 ::orc::proto::Metadata::InitAsDefaultInstance();
471}
472
473::google::protobuf::internal::SCCInfo<1> scc_info_Metadata =
474 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMetadata}, {
475 &protobuf_orc_5fproto_2eproto::scc_info_StripeStatistics.base,}};
476
477static void InitDefaultsFooter() {
478 GOOGLE_PROTOBUF_VERIFY_VERSION;
479
480 {
481 void* ptr = &::orc::proto::_Footer_default_instance_;
482 new (ptr) ::orc::proto::Footer();
483 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
484 }
485 ::orc::proto::Footer::InitAsDefaultInstance();
486}
487
488::google::protobuf::internal::SCCInfo<4> scc_info_Footer =
489 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsFooter}, {
490 &protobuf_orc_5fproto_2eproto::scc_info_StripeInformation.base,
491 &protobuf_orc_5fproto_2eproto::scc_info_Type.base,
492 &protobuf_orc_5fproto_2eproto::scc_info_UserMetadataItem.base,
493 &protobuf_orc_5fproto_2eproto::scc_info_ColumnStatistics.base,}};
494
495static void InitDefaultsPostScript() {
496 GOOGLE_PROTOBUF_VERIFY_VERSION;
497
498 {
499 void* ptr = &::orc::proto::_PostScript_default_instance_;
500 new (ptr) ::orc::proto::PostScript();
501 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
502 }
503 ::orc::proto::PostScript::InitAsDefaultInstance();
504}
505
506::google::protobuf::internal::SCCInfo<0> scc_info_PostScript =
507 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPostScript}, {}};
508
509static void InitDefaultsFileTail() {
510 GOOGLE_PROTOBUF_VERIFY_VERSION;
511
512 {
513 void* ptr = &::orc::proto::_FileTail_default_instance_;
514 new (ptr) ::orc::proto::FileTail();
515 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
516 }
517 ::orc::proto::FileTail::InitAsDefaultInstance();
518}
519
520::google::protobuf::internal::SCCInfo<2> scc_info_FileTail =
521 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsFileTail}, {
522 &protobuf_orc_5fproto_2eproto::scc_info_PostScript.base,
523 &protobuf_orc_5fproto_2eproto::scc_info_Footer.base,}};
524
525void InitDefaults() {
526 ::google::protobuf::internal::InitSCC(&scc_info_IntegerStatistics.base);
527 ::google::protobuf::internal::InitSCC(&scc_info_DoubleStatistics.base);
528 ::google::protobuf::internal::InitSCC(&scc_info_StringStatistics.base);
529 ::google::protobuf::internal::InitSCC(&scc_info_BucketStatistics.base);
530 ::google::protobuf::internal::InitSCC(&scc_info_DecimalStatistics.base);
531 ::google::protobuf::internal::InitSCC(&scc_info_DateStatistics.base);
532 ::google::protobuf::internal::InitSCC(&scc_info_TimestampStatistics.base);
533 ::google::protobuf::internal::InitSCC(&scc_info_BinaryStatistics.base);
534 ::google::protobuf::internal::InitSCC(&scc_info_ColumnStatistics.base);
535 ::google::protobuf::internal::InitSCC(&scc_info_RowIndexEntry.base);
536 ::google::protobuf::internal::InitSCC(&scc_info_RowIndex.base);
537 ::google::protobuf::internal::InitSCC(&scc_info_BloomFilter.base);
538 ::google::protobuf::internal::InitSCC(&scc_info_BloomFilterIndex.base);
539 ::google::protobuf::internal::InitSCC(&scc_info_Stream.base);
540 ::google::protobuf::internal::InitSCC(&scc_info_ColumnEncoding.base);
541 ::google::protobuf::internal::InitSCC(&scc_info_StripeFooter.base);
542 ::google::protobuf::internal::InitSCC(&scc_info_Type.base);
543 ::google::protobuf::internal::InitSCC(&scc_info_StripeInformation.base);
544 ::google::protobuf::internal::InitSCC(&scc_info_UserMetadataItem.base);
545 ::google::protobuf::internal::InitSCC(&scc_info_StripeStatistics.base);
546 ::google::protobuf::internal::InitSCC(&scc_info_Metadata.base);
547 ::google::protobuf::internal::InitSCC(&scc_info_Footer.base);
548 ::google::protobuf::internal::InitSCC(&scc_info_PostScript.base);
549 ::google::protobuf::internal::InitSCC(&scc_info_FileTail.base);
550}
551
552::google::protobuf::Metadata file_level_metadata[24];
553const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4];
554
555const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
556 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::IntegerStatistics, _has_bits_),
557 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::IntegerStatistics, _internal_metadata_),
558 ~0u, // no _extensions_
559 ~0u, // no _oneof_case_
560 ~0u, // no _weak_field_map_
561 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::IntegerStatistics, minimum_),
562 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::IntegerStatistics, maximum_),
563 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::IntegerStatistics, sum_),
564 0,
565 1,
566 2,
567 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DoubleStatistics, _has_bits_),
568 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DoubleStatistics, _internal_metadata_),
569 ~0u, // no _extensions_
570 ~0u, // no _oneof_case_
571 ~0u, // no _weak_field_map_
572 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DoubleStatistics, minimum_),
573 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DoubleStatistics, maximum_),
574 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DoubleStatistics, sum_),
575 0,
576 1,
577 2,
578 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StringStatistics, _has_bits_),
579 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StringStatistics, _internal_metadata_),
580 ~0u, // no _extensions_
581 ~0u, // no _oneof_case_
582 ~0u, // no _weak_field_map_
583 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StringStatistics, minimum_),
584 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StringStatistics, maximum_),
585 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StringStatistics, sum_),
586 0,
587 1,
588 2,
589 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BucketStatistics, _has_bits_),
590 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BucketStatistics, _internal_metadata_),
591 ~0u, // no _extensions_
592 ~0u, // no _oneof_case_
593 ~0u, // no _weak_field_map_
594 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BucketStatistics, count_),
595 ~0u,
596 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DecimalStatistics, _has_bits_),
597 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DecimalStatistics, _internal_metadata_),
598 ~0u, // no _extensions_
599 ~0u, // no _oneof_case_
600 ~0u, // no _weak_field_map_
601 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DecimalStatistics, minimum_),
602 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DecimalStatistics, maximum_),
603 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DecimalStatistics, sum_),
604 0,
605 1,
606 2,
607 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DateStatistics, _has_bits_),
608 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DateStatistics, _internal_metadata_),
609 ~0u, // no _extensions_
610 ~0u, // no _oneof_case_
611 ~0u, // no _weak_field_map_
612 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DateStatistics, minimum_),
613 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::DateStatistics, maximum_),
614 0,
615 1,
616 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, _has_bits_),
617 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, _internal_metadata_),
618 ~0u, // no _extensions_
619 ~0u, // no _oneof_case_
620 ~0u, // no _weak_field_map_
621 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, minimum_),
622 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, maximum_),
623 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, minimumutc_),
624 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::TimestampStatistics, maximumutc_),
625 0,
626 1,
627 2,
628 3,
629 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BinaryStatistics, _has_bits_),
630 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BinaryStatistics, _internal_metadata_),
631 ~0u, // no _extensions_
632 ~0u, // no _oneof_case_
633 ~0u, // no _weak_field_map_
634 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BinaryStatistics, sum_),
635 0,
636 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, _has_bits_),
637 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, _internal_metadata_),
638 ~0u, // no _extensions_
639 ~0u, // no _oneof_case_
640 ~0u, // no _weak_field_map_
641 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, numberofvalues_),
642 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, intstatistics_),
643 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, doublestatistics_),
644 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, stringstatistics_),
645 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, bucketstatistics_),
646 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, decimalstatistics_),
647 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, datestatistics_),
648 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, binarystatistics_),
649 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, timestampstatistics_),
650 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, hasnull_),
651 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnStatistics, bytesondisk_),
652 8,
653 0,
654 1,
655 2,
656 3,
657 4,
658 5,
659 6,
660 7,
661 10,
662 9,
663 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndexEntry, _has_bits_),
664 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndexEntry, _internal_metadata_),
665 ~0u, // no _extensions_
666 ~0u, // no _oneof_case_
667 ~0u, // no _weak_field_map_
668 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndexEntry, positions_),
669 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndexEntry, statistics_),
670 ~0u,
671 0,
672 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndex, _has_bits_),
673 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndex, _internal_metadata_),
674 ~0u, // no _extensions_
675 ~0u, // no _oneof_case_
676 ~0u, // no _weak_field_map_
677 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::RowIndex, entry_),
678 ~0u,
679 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilter, _has_bits_),
680 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilter, _internal_metadata_),
681 ~0u, // no _extensions_
682 ~0u, // no _oneof_case_
683 ~0u, // no _weak_field_map_
684 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilter, numhashfunctions_),
685 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilter, bitset_),
686 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilter, utf8bitset_),
687 1,
688 ~0u,
689 0,
690 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilterIndex, _has_bits_),
691 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilterIndex, _internal_metadata_),
692 ~0u, // no _extensions_
693 ~0u, // no _oneof_case_
694 ~0u, // no _weak_field_map_
695 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::BloomFilterIndex, bloomfilter_),
696 ~0u,
697 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Stream, _has_bits_),
698 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Stream, _internal_metadata_),
699 ~0u, // no _extensions_
700 ~0u, // no _oneof_case_
701 ~0u, // no _weak_field_map_
702 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Stream, kind_),
703 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Stream, column_),
704 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Stream, length_),
705 0,
706 1,
707 2,
708 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnEncoding, _has_bits_),
709 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnEncoding, _internal_metadata_),
710 ~0u, // no _extensions_
711 ~0u, // no _oneof_case_
712 ~0u, // no _weak_field_map_
713 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnEncoding, kind_),
714 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnEncoding, dictionarysize_),
715 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::ColumnEncoding, bloomencoding_),
716 0,
717 1,
718 2,
719 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeFooter, _has_bits_),
720 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeFooter, _internal_metadata_),
721 ~0u, // no _extensions_
722 ~0u, // no _oneof_case_
723 ~0u, // no _weak_field_map_
724 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeFooter, streams_),
725 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeFooter, columns_),
726 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeFooter, writertimezone_),
727 ~0u,
728 ~0u,
729 0,
730 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, _has_bits_),
731 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, _internal_metadata_),
732 ~0u, // no _extensions_
733 ~0u, // no _oneof_case_
734 ~0u, // no _weak_field_map_
735 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, kind_),
736 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, subtypes_),
737 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, fieldnames_),
738 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, maximumlength_),
739 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, precision_),
740 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Type, scale_),
741 0,
742 ~0u,
743 ~0u,
744 1,
745 2,
746 3,
747 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, _has_bits_),
748 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, _internal_metadata_),
749 ~0u, // no _extensions_
750 ~0u, // no _oneof_case_
751 ~0u, // no _weak_field_map_
752 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, offset_),
753 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, indexlength_),
754 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, datalength_),
755 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, footerlength_),
756 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeInformation, numberofrows_),
757 0,
758 1,
759 2,
760 3,
761 4,
762 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::UserMetadataItem, _has_bits_),
763 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::UserMetadataItem, _internal_metadata_),
764 ~0u, // no _extensions_
765 ~0u, // no _oneof_case_
766 ~0u, // no _weak_field_map_
767 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::UserMetadataItem, name_),
768 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::UserMetadataItem, value_),
769 0,
770 1,
771 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeStatistics, _has_bits_),
772 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeStatistics, _internal_metadata_),
773 ~0u, // no _extensions_
774 ~0u, // no _oneof_case_
775 ~0u, // no _weak_field_map_
776 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::StripeStatistics, colstats_),
777 ~0u,
778 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Metadata, _has_bits_),
779 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Metadata, _internal_metadata_),
780 ~0u, // no _extensions_
781 ~0u, // no _oneof_case_
782 ~0u, // no _weak_field_map_
783 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Metadata, stripestats_),
784 ~0u,
785 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, _has_bits_),
786 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, _internal_metadata_),
787 ~0u, // no _extensions_
788 ~0u, // no _oneof_case_
789 ~0u, // no _weak_field_map_
790 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, headerlength_),
791 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, contentlength_),
792 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, stripes_),
793 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, types_),
794 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, metadata_),
795 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, numberofrows_),
796 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, statistics_),
797 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, rowindexstride_),
798 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::Footer, writer_),
799 0,
800 1,
801 ~0u,
802 ~0u,
803 ~0u,
804 2,
805 ~0u,
806 3,
807 4,
808 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, _has_bits_),
809 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, _internal_metadata_),
810 ~0u, // no _extensions_
811 ~0u, // no _oneof_case_
812 ~0u, // no _weak_field_map_
813 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, footerlength_),
814 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, compression_),
815 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, compressionblocksize_),
816 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, version_),
817 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, metadatalength_),
818 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, writerversion_),
819 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::PostScript, magic_),
820 1,
821 3,
822 2,
823 ~0u,
824 5,
825 4,
826 0,
827 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, _has_bits_),
828 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, _internal_metadata_),
829 ~0u, // no _extensions_
830 ~0u, // no _oneof_case_
831 ~0u, // no _weak_field_map_
832 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, postscript_),
833 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, footer_),
834 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, filelength_),
835 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::orc::proto::FileTail, postscriptlength_),
836 0,
837 1,
838 2,
839 3,
840};
841static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
842 { 0, 8, sizeof(::orc::proto::IntegerStatistics)},
843 { 11, 19, sizeof(::orc::proto::DoubleStatistics)},
844 { 22, 30, sizeof(::orc::proto::StringStatistics)},
845 { 33, 39, sizeof(::orc::proto::BucketStatistics)},
846 { 40, 48, sizeof(::orc::proto::DecimalStatistics)},
847 { 51, 58, sizeof(::orc::proto::DateStatistics)},
848 { 60, 69, sizeof(::orc::proto::TimestampStatistics)},
849 { 73, 79, sizeof(::orc::proto::BinaryStatistics)},
850 { 80, 96, sizeof(::orc::proto::ColumnStatistics)},
851 { 107, 114, sizeof(::orc::proto::RowIndexEntry)},
852 { 116, 122, sizeof(::orc::proto::RowIndex)},
853 { 123, 131, sizeof(::orc::proto::BloomFilter)},
854 { 134, 140, sizeof(::orc::proto::BloomFilterIndex)},
855 { 141, 149, sizeof(::orc::proto::Stream)},
856 { 152, 160, sizeof(::orc::proto::ColumnEncoding)},
857 { 163, 171, sizeof(::orc::proto::StripeFooter)},
858 { 174, 185, sizeof(::orc::proto::Type)},
859 { 191, 201, sizeof(::orc::proto::StripeInformation)},
860 { 206, 213, sizeof(::orc::proto::UserMetadataItem)},
861 { 215, 221, sizeof(::orc::proto::StripeStatistics)},
862 { 222, 228, sizeof(::orc::proto::Metadata)},
863 { 229, 243, sizeof(::orc::proto::Footer)},
864 { 252, 264, sizeof(::orc::proto::PostScript)},
865 { 271, 280, sizeof(::orc::proto::FileTail)},
866};
867
868static ::google::protobuf::Message const * const file_default_instances[] = {
869 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_IntegerStatistics_default_instance_),
870 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_DoubleStatistics_default_instance_),
871 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_StringStatistics_default_instance_),
872 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_BucketStatistics_default_instance_),
873 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_DecimalStatistics_default_instance_),
874 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_DateStatistics_default_instance_),
875 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_TimestampStatistics_default_instance_),
876 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_BinaryStatistics_default_instance_),
877 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_ColumnStatistics_default_instance_),
878 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_RowIndexEntry_default_instance_),
879 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_RowIndex_default_instance_),
880 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_BloomFilter_default_instance_),
881 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_BloomFilterIndex_default_instance_),
882 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_Stream_default_instance_),
883 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_ColumnEncoding_default_instance_),
884 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_StripeFooter_default_instance_),
885 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_Type_default_instance_),
886 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_StripeInformation_default_instance_),
887 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_UserMetadataItem_default_instance_),
888 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_StripeStatistics_default_instance_),
889 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_Metadata_default_instance_),
890 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_Footer_default_instance_),
891 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_PostScript_default_instance_),
892 reinterpret_cast<const ::google::protobuf::Message*>(&::orc::proto::_FileTail_default_instance_),
893};
894
895void protobuf_AssignDescriptors() {
896 AddDescriptors();
897 AssignDescriptors(
898 "orc_proto.proto", schemas, file_default_instances, TableStruct::offsets,
899 file_level_metadata, file_level_enum_descriptors, NULL);
900}
901
902void protobuf_AssignDescriptorsOnce() {
903 static ::google::protobuf::internal::once_flag once;
904 ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
905}
906
907void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
908void protobuf_RegisterTypes(const ::std::string&) {
909 protobuf_AssignDescriptorsOnce();
910 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 24);
911}
912
913void AddDescriptorsImpl() {
914 InitDefaults();
915 static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
916 "\n\017orc_proto.proto\022\torc.proto\"B\n\021IntegerS"
917 "tatistics\022\017\n\007minimum\030\001 \001(\022\022\017\n\007maximum\030\002 "
918 "\001(\022\022\013\n\003sum\030\003 \001(\022\"A\n\020DoubleStatistics\022\017\n\007"
919 "minimum\030\001 \001(\001\022\017\n\007maximum\030\002 \001(\001\022\013\n\003sum\030\003 "
920 "\001(\001\"A\n\020StringStatistics\022\017\n\007minimum\030\001 \001(\t"
921 "\022\017\n\007maximum\030\002 \001(\t\022\013\n\003sum\030\003 \001(\022\"%\n\020Bucket"
922 "Statistics\022\021\n\005count\030\001 \003(\004B\002\020\001\"B\n\021Decimal"
923 "Statistics\022\017\n\007minimum\030\001 \001(\t\022\017\n\007maximum\030\002"
924 " \001(\t\022\013\n\003sum\030\003 \001(\t\"2\n\016DateStatistics\022\017\n\007m"
925 "inimum\030\001 \001(\021\022\017\n\007maximum\030\002 \001(\021\"_\n\023Timesta"
926 "mpStatistics\022\017\n\007minimum\030\001 \001(\022\022\017\n\007maximum"
927 "\030\002 \001(\022\022\022\n\nminimumUtc\030\003 \001(\022\022\022\n\nmaximumUtc"
928 "\030\004 \001(\022\"\037\n\020BinaryStatistics\022\013\n\003sum\030\001 \001(\022\""
929 "\212\004\n\020ColumnStatistics\022\026\n\016numberOfValues\030\001"
930 " \001(\004\0223\n\rintStatistics\030\002 \001(\0132\034.orc.proto."
931 "IntegerStatistics\0225\n\020doubleStatistics\030\003 "
932 "\001(\0132\033.orc.proto.DoubleStatistics\0225\n\020stri"
933 "ngStatistics\030\004 \001(\0132\033.orc.proto.StringSta"
934 "tistics\0225\n\020bucketStatistics\030\005 \001(\0132\033.orc."
935 "proto.BucketStatistics\0227\n\021decimalStatist"
936 "ics\030\006 \001(\0132\034.orc.proto.DecimalStatistics\022"
937 "1\n\016dateStatistics\030\007 \001(\0132\031.orc.proto.Date"
938 "Statistics\0225\n\020binaryStatistics\030\010 \001(\0132\033.o"
939 "rc.proto.BinaryStatistics\022;\n\023timestampSt"
940 "atistics\030\t \001(\0132\036.orc.proto.TimestampStat"
941 "istics\022\017\n\007hasNull\030\n \001(\010\022\023\n\013bytesOnDisk\030\013"
942 " \001(\004\"W\n\rRowIndexEntry\022\025\n\tpositions\030\001 \003(\004"
943 "B\002\020\001\022/\n\nstatistics\030\002 \001(\0132\033.orc.proto.Col"
944 "umnStatistics\"3\n\010RowIndex\022\'\n\005entry\030\001 \003(\013"
945 "2\030.orc.proto.RowIndexEntry\"K\n\013BloomFilte"
946 "r\022\030\n\020numHashFunctions\030\001 \001(\r\022\016\n\006bitset\030\002 "
947 "\003(\006\022\022\n\nutf8bitset\030\003 \001(\014\"\?\n\020BloomFilterIn"
948 "dex\022+\n\013bloomFilter\030\001 \003(\0132\026.orc.proto.Blo"
949 "omFilter\"\354\001\n\006Stream\022$\n\004kind\030\001 \001(\0162\026.orc."
950 "proto.Stream.Kind\022\016\n\006column\030\002 \001(\r\022\016\n\006len"
951 "gth\030\003 \001(\004\"\233\001\n\004Kind\022\013\n\007PRESENT\020\000\022\010\n\004DATA\020"
952 "\001\022\n\n\006LENGTH\020\002\022\023\n\017DICTIONARY_DATA\020\003\022\024\n\020DI"
953 "CTIONARY_COUNT\020\004\022\r\n\tSECONDARY\020\005\022\r\n\tROW_I"
954 "NDEX\020\006\022\020\n\014BLOOM_FILTER\020\007\022\025\n\021BLOOM_FILTER"
955 "_UTF8\020\010\"\263\001\n\016ColumnEncoding\022,\n\004kind\030\001 \001(\016"
956 "2\036.orc.proto.ColumnEncoding.Kind\022\026\n\016dict"
957 "ionarySize\030\002 \001(\r\022\025\n\rbloomEncoding\030\003 \001(\r\""
958 "D\n\004Kind\022\n\n\006DIRECT\020\000\022\016\n\nDICTIONARY\020\001\022\r\n\tD"
959 "IRECT_V2\020\002\022\021\n\rDICTIONARY_V2\020\003\"v\n\014StripeF"
960 "ooter\022\"\n\007streams\030\001 \003(\0132\021.orc.proto.Strea"
961 "m\022*\n\007columns\030\002 \003(\0132\031.orc.proto.ColumnEnc"
962 "oding\022\026\n\016writerTimezone\030\003 \001(\t\"\341\002\n\004Type\022\""
963 "\n\004kind\030\001 \001(\0162\024.orc.proto.Type.Kind\022\024\n\010su"
964 "btypes\030\002 \003(\rB\002\020\001\022\022\n\nfieldNames\030\003 \003(\t\022\025\n\r"
965 "maximumLength\030\004 \001(\r\022\021\n\tprecision\030\005 \001(\r\022\r"
966 "\n\005scale\030\006 \001(\r\"\321\001\n\004Kind\022\013\n\007BOOLEAN\020\000\022\010\n\004B"
967 "YTE\020\001\022\t\n\005SHORT\020\002\022\007\n\003INT\020\003\022\010\n\004LONG\020\004\022\t\n\005F"
968 "LOAT\020\005\022\n\n\006DOUBLE\020\006\022\n\n\006STRING\020\007\022\n\n\006BINARY"
969 "\020\010\022\r\n\tTIMESTAMP\020\t\022\010\n\004LIST\020\n\022\007\n\003MAP\020\013\022\n\n\006"
970 "STRUCT\020\014\022\t\n\005UNION\020\r\022\013\n\007DECIMAL\020\016\022\010\n\004DATE"
971 "\020\017\022\013\n\007VARCHAR\020\020\022\010\n\004CHAR\020\021\"x\n\021StripeInfor"
972 "mation\022\016\n\006offset\030\001 \001(\004\022\023\n\013indexLength\030\002 "
973 "\001(\004\022\022\n\ndataLength\030\003 \001(\004\022\024\n\014footerLength\030"
974 "\004 \001(\004\022\024\n\014numberOfRows\030\005 \001(\004\"/\n\020UserMetad"
975 "ataItem\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\014\"A\n\020"
976 "StripeStatistics\022-\n\010colStats\030\001 \003(\0132\033.orc"
977 ".proto.ColumnStatistics\"<\n\010Metadata\0220\n\013s"
978 "tripeStats\030\001 \003(\0132\033.orc.proto.StripeStati"
979 "stics\"\242\002\n\006Footer\022\024\n\014headerLength\030\001 \001(\004\022\025"
980 "\n\rcontentLength\030\002 \001(\004\022-\n\007stripes\030\003 \003(\0132\034"
981 ".orc.proto.StripeInformation\022\036\n\005types\030\004 "
982 "\003(\0132\017.orc.proto.Type\022-\n\010metadata\030\005 \003(\0132\033"
983 ".orc.proto.UserMetadataItem\022\024\n\014numberOfR"
984 "ows\030\006 \001(\004\022/\n\nstatistics\030\007 \003(\0132\033.orc.prot"
985 "o.ColumnStatistics\022\026\n\016rowIndexStride\030\010 \001"
986 "(\r\022\016\n\006writer\030\t \001(\r\"\305\001\n\nPostScript\022\024\n\014foo"
987 "terLength\030\001 \001(\004\022/\n\013compression\030\002 \001(\0162\032.o"
988 "rc.proto.CompressionKind\022\034\n\024compressionB"
989 "lockSize\030\003 \001(\004\022\023\n\007version\030\004 \003(\rB\002\020\001\022\026\n\016m"
990 "etadataLength\030\005 \001(\004\022\025\n\rwriterVersion\030\006 \001"
991 "(\r\022\016\n\005magic\030\300> \001(\t\"\206\001\n\010FileTail\022)\n\nposts"
992 "cript\030\001 \001(\0132\025.orc.proto.PostScript\022!\n\006fo"
993 "oter\030\002 \001(\0132\021.orc.proto.Footer\022\022\n\nfileLen"
994 "gth\030\003 \001(\004\022\030\n\020postscriptLength\030\004 \001(\004*M\n\017C"
995 "ompressionKind\022\010\n\004NONE\020\000\022\010\n\004ZLIB\020\001\022\n\n\006SN"
996 "APPY\020\002\022\007\n\003LZO\020\003\022\007\n\003LZ4\020\004\022\010\n\004ZSTD\020\005B\020\n\016or"
997 "g.apache.orc"
998 };
999 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1000 descriptor, 3252);
1001 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1002 "orc_proto.proto", &protobuf_RegisterTypes);
1003}
1004
1005void AddDescriptors() {
1006 static ::google::protobuf::internal::once_flag once;
1007 ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
1008}
1009// Force AddDescriptors() to be called at dynamic initialization time.
1010struct StaticDescriptorInitializer {
1011 StaticDescriptorInitializer() {
1012 AddDescriptors();
1013 }
1014} static_descriptor_initializer;
1015} // namespace protobuf_orc_5fproto_2eproto
1016namespace orc {
1017namespace proto {
1018const ::google::protobuf::EnumDescriptor* Stream_Kind_descriptor() {
1019 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1020 return protobuf_orc_5fproto_2eproto::file_level_enum_descriptors[0];
1021}
1022bool Stream_Kind_IsValid(int value) {
1023 switch (value) {
1024 case 0:
1025 case 1:
1026 case 2:
1027 case 3:
1028 case 4:
1029 case 5:
1030 case 6:
1031 case 7:
1032 case 8:
1033 return true;
1034 default:
1035 return false;
1036 }
1037}
1038
1039#if !defined(_MSC_VER) || _MSC_VER >= 1900
1040const Stream_Kind Stream::PRESENT;
1041const Stream_Kind Stream::DATA;
1042const Stream_Kind Stream::LENGTH;
1043const Stream_Kind Stream::DICTIONARY_DATA;
1044const Stream_Kind Stream::DICTIONARY_COUNT;
1045const Stream_Kind Stream::SECONDARY;
1046const Stream_Kind Stream::ROW_INDEX;
1047const Stream_Kind Stream::BLOOM_FILTER;
1048const Stream_Kind Stream::BLOOM_FILTER_UTF8;
1049const Stream_Kind Stream::Kind_MIN;
1050const Stream_Kind Stream::Kind_MAX;
1051const int Stream::Kind_ARRAYSIZE;
1052#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1053const ::google::protobuf::EnumDescriptor* ColumnEncoding_Kind_descriptor() {
1054 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1055 return protobuf_orc_5fproto_2eproto::file_level_enum_descriptors[1];
1056}
1057bool ColumnEncoding_Kind_IsValid(int value) {
1058 switch (value) {
1059 case 0:
1060 case 1:
1061 case 2:
1062 case 3:
1063 return true;
1064 default:
1065 return false;
1066 }
1067}
1068
1069#if !defined(_MSC_VER) || _MSC_VER >= 1900
1070const ColumnEncoding_Kind ColumnEncoding::DIRECT;
1071const ColumnEncoding_Kind ColumnEncoding::DICTIONARY;
1072const ColumnEncoding_Kind ColumnEncoding::DIRECT_V2;
1073const ColumnEncoding_Kind ColumnEncoding::DICTIONARY_V2;
1074const ColumnEncoding_Kind ColumnEncoding::Kind_MIN;
1075const ColumnEncoding_Kind ColumnEncoding::Kind_MAX;
1076const int ColumnEncoding::Kind_ARRAYSIZE;
1077#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1078const ::google::protobuf::EnumDescriptor* Type_Kind_descriptor() {
1079 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1080 return protobuf_orc_5fproto_2eproto::file_level_enum_descriptors[2];
1081}
1082bool Type_Kind_IsValid(int value) {
1083 switch (value) {
1084 case 0:
1085 case 1:
1086 case 2:
1087 case 3:
1088 case 4:
1089 case 5:
1090 case 6:
1091 case 7:
1092 case 8:
1093 case 9:
1094 case 10:
1095 case 11:
1096 case 12:
1097 case 13:
1098 case 14:
1099 case 15:
1100 case 16:
1101 case 17:
1102 return true;
1103 default:
1104 return false;
1105 }
1106}
1107
1108#if !defined(_MSC_VER) || _MSC_VER >= 1900
1109const Type_Kind Type::BOOLEAN;
1110const Type_Kind Type::BYTE;
1111const Type_Kind Type::SHORT;
1112const Type_Kind Type::INT;
1113const Type_Kind Type::LONG;
1114const Type_Kind Type::FLOAT;
1115const Type_Kind Type::DOUBLE;
1116const Type_Kind Type::STRING;
1117const Type_Kind Type::BINARY;
1118const Type_Kind Type::TIMESTAMP;
1119const Type_Kind Type::LIST;
1120const Type_Kind Type::MAP;
1121const Type_Kind Type::STRUCT;
1122const Type_Kind Type::UNION;
1123const Type_Kind Type::DECIMAL;
1124const Type_Kind Type::DATE;
1125const Type_Kind Type::VARCHAR;
1126const Type_Kind Type::CHAR;
1127const Type_Kind Type::Kind_MIN;
1128const Type_Kind Type::Kind_MAX;
1129const int Type::Kind_ARRAYSIZE;
1130#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1131const ::google::protobuf::EnumDescriptor* CompressionKind_descriptor() {
1132 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1133 return protobuf_orc_5fproto_2eproto::file_level_enum_descriptors[3];
1134}
1135bool CompressionKind_IsValid(int value) {
1136 switch (value) {
1137 case 0:
1138 case 1:
1139 case 2:
1140 case 3:
1141 case 4:
1142 case 5:
1143 return true;
1144 default:
1145 return false;
1146 }
1147}
1148
1149
1150// ===================================================================
1151
1152void IntegerStatistics::InitAsDefaultInstance() {
1153}
1154#if !defined(_MSC_VER) || _MSC_VER >= 1900
1155const int IntegerStatistics::kMinimumFieldNumber;
1156const int IntegerStatistics::kMaximumFieldNumber;
1157const int IntegerStatistics::kSumFieldNumber;
1158#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1159
1160IntegerStatistics::IntegerStatistics()
1161 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1162 ::google::protobuf::internal::InitSCC(
1163 &protobuf_orc_5fproto_2eproto::scc_info_IntegerStatistics.base);
1164 SharedCtor();
1165 // @@protoc_insertion_point(constructor:orc.proto.IntegerStatistics)
1166}
1167IntegerStatistics::IntegerStatistics(const IntegerStatistics& from)
1168 : ::google::protobuf::Message(),
1169 _internal_metadata_(NULL),
1170 _has_bits_(from._has_bits_) {
1171 _internal_metadata_.MergeFrom(from._internal_metadata_);
1172 ::memcpy(&minimum_, &from.minimum_,
1173 static_cast<size_t>(reinterpret_cast<char*>(&sum_) -
1174 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1175 // @@protoc_insertion_point(copy_constructor:orc.proto.IntegerStatistics)
1176}
1177
1178void IntegerStatistics::SharedCtor() {
1179 ::memset(&minimum_, 0, static_cast<size_t>(
1180 reinterpret_cast<char*>(&sum_) -
1181 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1182}
1183
1184IntegerStatistics::~IntegerStatistics() {
1185 // @@protoc_insertion_point(destructor:orc.proto.IntegerStatistics)
1186 SharedDtor();
1187}
1188
1189void IntegerStatistics::SharedDtor() {
1190}
1191
1192void IntegerStatistics::SetCachedSize(int size) const {
1193 _cached_size_.Set(size);
1194}
1195const ::google::protobuf::Descriptor* IntegerStatistics::descriptor() {
1196 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1197 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1198}
1199
1200const IntegerStatistics& IntegerStatistics::default_instance() {
1201 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_IntegerStatistics.base);
1202 return *internal_default_instance();
1203}
1204
1205
1206void IntegerStatistics::Clear() {
1207// @@protoc_insertion_point(message_clear_start:orc.proto.IntegerStatistics)
1208 ::google::protobuf::uint32 cached_has_bits = 0;
1209 // Prevent compiler warnings about cached_has_bits being unused
1210 (void) cached_has_bits;
1211
1212 cached_has_bits = _has_bits_[0];
1213 if (cached_has_bits & 7u) {
1214 ::memset(&minimum_, 0, static_cast<size_t>(
1215 reinterpret_cast<char*>(&sum_) -
1216 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1217 }
1218 _has_bits_.Clear();
1219 _internal_metadata_.Clear();
1220}
1221
1222bool IntegerStatistics::MergePartialFromCodedStream(
1223 ::google::protobuf::io::CodedInputStream* input) {
1224#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1225 ::google::protobuf::uint32 tag;
1226 // @@protoc_insertion_point(parse_start:orc.proto.IntegerStatistics)
1227 for (;;) {
1228 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1229 tag = p.first;
1230 if (!p.second) goto handle_unusual;
1231 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1232 // optional sint64 minimum = 1;
1233 case 1: {
1234 if (static_cast< ::google::protobuf::uint8>(tag) ==
1235 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1236 set_has_minimum();
1237 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1238 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1239 input, &minimum_)));
1240 } else {
1241 goto handle_unusual;
1242 }
1243 break;
1244 }
1245
1246 // optional sint64 maximum = 2;
1247 case 2: {
1248 if (static_cast< ::google::protobuf::uint8>(tag) ==
1249 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1250 set_has_maximum();
1251 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1252 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1253 input, &maximum_)));
1254 } else {
1255 goto handle_unusual;
1256 }
1257 break;
1258 }
1259
1260 // optional sint64 sum = 3;
1261 case 3: {
1262 if (static_cast< ::google::protobuf::uint8>(tag) ==
1263 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1264 set_has_sum();
1265 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1266 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1267 input, &sum_)));
1268 } else {
1269 goto handle_unusual;
1270 }
1271 break;
1272 }
1273
1274 default: {
1275 handle_unusual:
1276 if (tag == 0) {
1277 goto success;
1278 }
1279 DO_(::google::protobuf::internal::WireFormat::SkipField(
1280 input, tag, _internal_metadata_.mutable_unknown_fields()));
1281 break;
1282 }
1283 }
1284 }
1285success:
1286 // @@protoc_insertion_point(parse_success:orc.proto.IntegerStatistics)
1287 return true;
1288failure:
1289 // @@protoc_insertion_point(parse_failure:orc.proto.IntegerStatistics)
1290 return false;
1291#undef DO_
1292}
1293
1294void IntegerStatistics::SerializeWithCachedSizes(
1295 ::google::protobuf::io::CodedOutputStream* output) const {
1296 // @@protoc_insertion_point(serialize_start:orc.proto.IntegerStatistics)
1297 ::google::protobuf::uint32 cached_has_bits = 0;
1298 (void) cached_has_bits;
1299
1300 cached_has_bits = _has_bits_[0];
1301 // optional sint64 minimum = 1;
1302 if (cached_has_bits & 0x00000001u) {
1303 ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->minimum(), output);
1304 }
1305
1306 // optional sint64 maximum = 2;
1307 if (cached_has_bits & 0x00000002u) {
1308 ::google::protobuf::internal::WireFormatLite::WriteSInt64(2, this->maximum(), output);
1309 }
1310
1311 // optional sint64 sum = 3;
1312 if (cached_has_bits & 0x00000004u) {
1313 ::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->sum(), output);
1314 }
1315
1316 if (_internal_metadata_.have_unknown_fields()) {
1317 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1318 _internal_metadata_.unknown_fields(), output);
1319 }
1320 // @@protoc_insertion_point(serialize_end:orc.proto.IntegerStatistics)
1321}
1322
1323::google::protobuf::uint8* IntegerStatistics::InternalSerializeWithCachedSizesToArray(
1324 bool deterministic, ::google::protobuf::uint8* target) const {
1325 (void)deterministic; // Unused
1326 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.IntegerStatistics)
1327 ::google::protobuf::uint32 cached_has_bits = 0;
1328 (void) cached_has_bits;
1329
1330 cached_has_bits = _has_bits_[0];
1331 // optional sint64 minimum = 1;
1332 if (cached_has_bits & 0x00000001u) {
1333 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->minimum(), target);
1334 }
1335
1336 // optional sint64 maximum = 2;
1337 if (cached_has_bits & 0x00000002u) {
1338 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(2, this->maximum(), target);
1339 }
1340
1341 // optional sint64 sum = 3;
1342 if (cached_has_bits & 0x00000004u) {
1343 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->sum(), target);
1344 }
1345
1346 if (_internal_metadata_.have_unknown_fields()) {
1347 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1348 _internal_metadata_.unknown_fields(), target);
1349 }
1350 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.IntegerStatistics)
1351 return target;
1352}
1353
1354size_t IntegerStatistics::ByteSizeLong() const {
1355// @@protoc_insertion_point(message_byte_size_start:orc.proto.IntegerStatistics)
1356 size_t total_size = 0;
1357
1358 if (_internal_metadata_.have_unknown_fields()) {
1359 total_size +=
1360 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1361 _internal_metadata_.unknown_fields());
1362 }
1363 if (_has_bits_[0 / 32] & 7u) {
1364 // optional sint64 minimum = 1;
1365 if (has_minimum()) {
1366 total_size += 1 +
1367 ::google::protobuf::internal::WireFormatLite::SInt64Size(
1368 this->minimum());
1369 }
1370
1371 // optional sint64 maximum = 2;
1372 if (has_maximum()) {
1373 total_size += 1 +
1374 ::google::protobuf::internal::WireFormatLite::SInt64Size(
1375 this->maximum());
1376 }
1377
1378 // optional sint64 sum = 3;
1379 if (has_sum()) {
1380 total_size += 1 +
1381 ::google::protobuf::internal::WireFormatLite::SInt64Size(
1382 this->sum());
1383 }
1384
1385 }
1386 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1387 SetCachedSize(cached_size);
1388 return total_size;
1389}
1390
1391void IntegerStatistics::MergeFrom(const ::google::protobuf::Message& from) {
1392// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.IntegerStatistics)
1393 GOOGLE_DCHECK_NE(&from, this);
1394 const IntegerStatistics* source =
1395 ::google::protobuf::internal::DynamicCastToGenerated<const IntegerStatistics>(
1396 &from);
1397 if (source == NULL) {
1398 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.IntegerStatistics)
1399 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1400 } else {
1401 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.IntegerStatistics)
1402 MergeFrom(*source);
1403 }
1404}
1405
1406void IntegerStatistics::MergeFrom(const IntegerStatistics& from) {
1407// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.IntegerStatistics)
1408 GOOGLE_DCHECK_NE(&from, this);
1409 _internal_metadata_.MergeFrom(from._internal_metadata_);
1410 ::google::protobuf::uint32 cached_has_bits = 0;
1411 (void) cached_has_bits;
1412
1413 cached_has_bits = from._has_bits_[0];
1414 if (cached_has_bits & 7u) {
1415 if (cached_has_bits & 0x00000001u) {
1416 minimum_ = from.minimum_;
1417 }
1418 if (cached_has_bits & 0x00000002u) {
1419 maximum_ = from.maximum_;
1420 }
1421 if (cached_has_bits & 0x00000004u) {
1422 sum_ = from.sum_;
1423 }
1424 _has_bits_[0] |= cached_has_bits;
1425 }
1426}
1427
1428void IntegerStatistics::CopyFrom(const ::google::protobuf::Message& from) {
1429// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.IntegerStatistics)
1430 if (&from == this) return;
1431 Clear();
1432 MergeFrom(from);
1433}
1434
1435void IntegerStatistics::CopyFrom(const IntegerStatistics& from) {
1436// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.IntegerStatistics)
1437 if (&from == this) return;
1438 Clear();
1439 MergeFrom(from);
1440}
1441
1442bool IntegerStatistics::IsInitialized() const {
1443 return true;
1444}
1445
1446void IntegerStatistics::Swap(IntegerStatistics* other) {
1447 if (other == this) return;
1448 InternalSwap(other);
1449}
1450void IntegerStatistics::InternalSwap(IntegerStatistics* other) {
1451 using std::swap;
1452 swap(minimum_, other->minimum_);
1453 swap(maximum_, other->maximum_);
1454 swap(sum_, other->sum_);
1455 swap(_has_bits_[0], other->_has_bits_[0]);
1456 _internal_metadata_.Swap(&other->_internal_metadata_);
1457}
1458
1459::google::protobuf::Metadata IntegerStatistics::GetMetadata() const {
1460 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1461 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
1462}
1463
1464
1465// ===================================================================
1466
1467void DoubleStatistics::InitAsDefaultInstance() {
1468}
1469#if !defined(_MSC_VER) || _MSC_VER >= 1900
1470const int DoubleStatistics::kMinimumFieldNumber;
1471const int DoubleStatistics::kMaximumFieldNumber;
1472const int DoubleStatistics::kSumFieldNumber;
1473#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1474
1475DoubleStatistics::DoubleStatistics()
1476 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1477 ::google::protobuf::internal::InitSCC(
1478 &protobuf_orc_5fproto_2eproto::scc_info_DoubleStatistics.base);
1479 SharedCtor();
1480 // @@protoc_insertion_point(constructor:orc.proto.DoubleStatistics)
1481}
1482DoubleStatistics::DoubleStatistics(const DoubleStatistics& from)
1483 : ::google::protobuf::Message(),
1484 _internal_metadata_(NULL),
1485 _has_bits_(from._has_bits_) {
1486 _internal_metadata_.MergeFrom(from._internal_metadata_);
1487 ::memcpy(&minimum_, &from.minimum_,
1488 static_cast<size_t>(reinterpret_cast<char*>(&sum_) -
1489 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1490 // @@protoc_insertion_point(copy_constructor:orc.proto.DoubleStatistics)
1491}
1492
1493void DoubleStatistics::SharedCtor() {
1494 ::memset(&minimum_, 0, static_cast<size_t>(
1495 reinterpret_cast<char*>(&sum_) -
1496 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1497}
1498
1499DoubleStatistics::~DoubleStatistics() {
1500 // @@protoc_insertion_point(destructor:orc.proto.DoubleStatistics)
1501 SharedDtor();
1502}
1503
1504void DoubleStatistics::SharedDtor() {
1505}
1506
1507void DoubleStatistics::SetCachedSize(int size) const {
1508 _cached_size_.Set(size);
1509}
1510const ::google::protobuf::Descriptor* DoubleStatistics::descriptor() {
1511 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1512 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1513}
1514
1515const DoubleStatistics& DoubleStatistics::default_instance() {
1516 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_DoubleStatistics.base);
1517 return *internal_default_instance();
1518}
1519
1520
1521void DoubleStatistics::Clear() {
1522// @@protoc_insertion_point(message_clear_start:orc.proto.DoubleStatistics)
1523 ::google::protobuf::uint32 cached_has_bits = 0;
1524 // Prevent compiler warnings about cached_has_bits being unused
1525 (void) cached_has_bits;
1526
1527 cached_has_bits = _has_bits_[0];
1528 if (cached_has_bits & 7u) {
1529 ::memset(&minimum_, 0, static_cast<size_t>(
1530 reinterpret_cast<char*>(&sum_) -
1531 reinterpret_cast<char*>(&minimum_)) + sizeof(sum_));
1532 }
1533 _has_bits_.Clear();
1534 _internal_metadata_.Clear();
1535}
1536
1537bool DoubleStatistics::MergePartialFromCodedStream(
1538 ::google::protobuf::io::CodedInputStream* input) {
1539#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1540 ::google::protobuf::uint32 tag;
1541 // @@protoc_insertion_point(parse_start:orc.proto.DoubleStatistics)
1542 for (;;) {
1543 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1544 tag = p.first;
1545 if (!p.second) goto handle_unusual;
1546 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1547 // optional double minimum = 1;
1548 case 1: {
1549 if (static_cast< ::google::protobuf::uint8>(tag) ==
1550 static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
1551 set_has_minimum();
1552 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1553 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1554 input, &minimum_)));
1555 } else {
1556 goto handle_unusual;
1557 }
1558 break;
1559 }
1560
1561 // optional double maximum = 2;
1562 case 2: {
1563 if (static_cast< ::google::protobuf::uint8>(tag) ==
1564 static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
1565 set_has_maximum();
1566 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1567 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1568 input, &maximum_)));
1569 } else {
1570 goto handle_unusual;
1571 }
1572 break;
1573 }
1574
1575 // optional double sum = 3;
1576 case 3: {
1577 if (static_cast< ::google::protobuf::uint8>(tag) ==
1578 static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
1579 set_has_sum();
1580 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1581 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1582 input, &sum_)));
1583 } else {
1584 goto handle_unusual;
1585 }
1586 break;
1587 }
1588
1589 default: {
1590 handle_unusual:
1591 if (tag == 0) {
1592 goto success;
1593 }
1594 DO_(::google::protobuf::internal::WireFormat::SkipField(
1595 input, tag, _internal_metadata_.mutable_unknown_fields()));
1596 break;
1597 }
1598 }
1599 }
1600success:
1601 // @@protoc_insertion_point(parse_success:orc.proto.DoubleStatistics)
1602 return true;
1603failure:
1604 // @@protoc_insertion_point(parse_failure:orc.proto.DoubleStatistics)
1605 return false;
1606#undef DO_
1607}
1608
1609void DoubleStatistics::SerializeWithCachedSizes(
1610 ::google::protobuf::io::CodedOutputStream* output) const {
1611 // @@protoc_insertion_point(serialize_start:orc.proto.DoubleStatistics)
1612 ::google::protobuf::uint32 cached_has_bits = 0;
1613 (void) cached_has_bits;
1614
1615 cached_has_bits = _has_bits_[0];
1616 // optional double minimum = 1;
1617 if (cached_has_bits & 0x00000001u) {
1618 ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->minimum(), output);
1619 }
1620
1621 // optional double maximum = 2;
1622 if (cached_has_bits & 0x00000002u) {
1623 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->maximum(), output);
1624 }
1625
1626 // optional double sum = 3;
1627 if (cached_has_bits & 0x00000004u) {
1628 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->sum(), output);
1629 }
1630
1631 if (_internal_metadata_.have_unknown_fields()) {
1632 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1633 _internal_metadata_.unknown_fields(), output);
1634 }
1635 // @@protoc_insertion_point(serialize_end:orc.proto.DoubleStatistics)
1636}
1637
1638::google::protobuf::uint8* DoubleStatistics::InternalSerializeWithCachedSizesToArray(
1639 bool deterministic, ::google::protobuf::uint8* target) const {
1640 (void)deterministic; // Unused
1641 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.DoubleStatistics)
1642 ::google::protobuf::uint32 cached_has_bits = 0;
1643 (void) cached_has_bits;
1644
1645 cached_has_bits = _has_bits_[0];
1646 // optional double minimum = 1;
1647 if (cached_has_bits & 0x00000001u) {
1648 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->minimum(), target);
1649 }
1650
1651 // optional double maximum = 2;
1652 if (cached_has_bits & 0x00000002u) {
1653 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->maximum(), target);
1654 }
1655
1656 // optional double sum = 3;
1657 if (cached_has_bits & 0x00000004u) {
1658 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->sum(), target);
1659 }
1660
1661 if (_internal_metadata_.have_unknown_fields()) {
1662 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1663 _internal_metadata_.unknown_fields(), target);
1664 }
1665 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.DoubleStatistics)
1666 return target;
1667}
1668
1669size_t DoubleStatistics::ByteSizeLong() const {
1670// @@protoc_insertion_point(message_byte_size_start:orc.proto.DoubleStatistics)
1671 size_t total_size = 0;
1672
1673 if (_internal_metadata_.have_unknown_fields()) {
1674 total_size +=
1675 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1676 _internal_metadata_.unknown_fields());
1677 }
1678 if (_has_bits_[0 / 32] & 7u) {
1679 // optional double minimum = 1;
1680 if (has_minimum()) {
1681 total_size += 1 + 8;
1682 }
1683
1684 // optional double maximum = 2;
1685 if (has_maximum()) {
1686 total_size += 1 + 8;
1687 }
1688
1689 // optional double sum = 3;
1690 if (has_sum()) {
1691 total_size += 1 + 8;
1692 }
1693
1694 }
1695 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1696 SetCachedSize(cached_size);
1697 return total_size;
1698}
1699
1700void DoubleStatistics::MergeFrom(const ::google::protobuf::Message& from) {
1701// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.DoubleStatistics)
1702 GOOGLE_DCHECK_NE(&from, this);
1703 const DoubleStatistics* source =
1704 ::google::protobuf::internal::DynamicCastToGenerated<const DoubleStatistics>(
1705 &from);
1706 if (source == NULL) {
1707 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.DoubleStatistics)
1708 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1709 } else {
1710 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.DoubleStatistics)
1711 MergeFrom(*source);
1712 }
1713}
1714
1715void DoubleStatistics::MergeFrom(const DoubleStatistics& from) {
1716// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.DoubleStatistics)
1717 GOOGLE_DCHECK_NE(&from, this);
1718 _internal_metadata_.MergeFrom(from._internal_metadata_);
1719 ::google::protobuf::uint32 cached_has_bits = 0;
1720 (void) cached_has_bits;
1721
1722 cached_has_bits = from._has_bits_[0];
1723 if (cached_has_bits & 7u) {
1724 if (cached_has_bits & 0x00000001u) {
1725 minimum_ = from.minimum_;
1726 }
1727 if (cached_has_bits & 0x00000002u) {
1728 maximum_ = from.maximum_;
1729 }
1730 if (cached_has_bits & 0x00000004u) {
1731 sum_ = from.sum_;
1732 }
1733 _has_bits_[0] |= cached_has_bits;
1734 }
1735}
1736
1737void DoubleStatistics::CopyFrom(const ::google::protobuf::Message& from) {
1738// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.DoubleStatistics)
1739 if (&from == this) return;
1740 Clear();
1741 MergeFrom(from);
1742}
1743
1744void DoubleStatistics::CopyFrom(const DoubleStatistics& from) {
1745// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.DoubleStatistics)
1746 if (&from == this) return;
1747 Clear();
1748 MergeFrom(from);
1749}
1750
1751bool DoubleStatistics::IsInitialized() const {
1752 return true;
1753}
1754
1755void DoubleStatistics::Swap(DoubleStatistics* other) {
1756 if (other == this) return;
1757 InternalSwap(other);
1758}
1759void DoubleStatistics::InternalSwap(DoubleStatistics* other) {
1760 using std::swap;
1761 swap(minimum_, other->minimum_);
1762 swap(maximum_, other->maximum_);
1763 swap(sum_, other->sum_);
1764 swap(_has_bits_[0], other->_has_bits_[0]);
1765 _internal_metadata_.Swap(&other->_internal_metadata_);
1766}
1767
1768::google::protobuf::Metadata DoubleStatistics::GetMetadata() const {
1769 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1770 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
1771}
1772
1773
1774// ===================================================================
1775
1776void StringStatistics::InitAsDefaultInstance() {
1777}
1778#if !defined(_MSC_VER) || _MSC_VER >= 1900
1779const int StringStatistics::kMinimumFieldNumber;
1780const int StringStatistics::kMaximumFieldNumber;
1781const int StringStatistics::kSumFieldNumber;
1782#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1783
1784StringStatistics::StringStatistics()
1785 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1786 ::google::protobuf::internal::InitSCC(
1787 &protobuf_orc_5fproto_2eproto::scc_info_StringStatistics.base);
1788 SharedCtor();
1789 // @@protoc_insertion_point(constructor:orc.proto.StringStatistics)
1790}
1791StringStatistics::StringStatistics(const StringStatistics& from)
1792 : ::google::protobuf::Message(),
1793 _internal_metadata_(NULL),
1794 _has_bits_(from._has_bits_) {
1795 _internal_metadata_.MergeFrom(from._internal_metadata_);
1796 minimum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1797 if (from.has_minimum()) {
1798 minimum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minimum_);
1799 }
1800 maximum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1801 if (from.has_maximum()) {
1802 maximum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maximum_);
1803 }
1804 sum_ = from.sum_;
1805 // @@protoc_insertion_point(copy_constructor:orc.proto.StringStatistics)
1806}
1807
1808void StringStatistics::SharedCtor() {
1809 minimum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1810 maximum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1811 sum_ = GOOGLE_LONGLONG(0);
1812}
1813
1814StringStatistics::~StringStatistics() {
1815 // @@protoc_insertion_point(destructor:orc.proto.StringStatistics)
1816 SharedDtor();
1817}
1818
1819void StringStatistics::SharedDtor() {
1820 minimum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1821 maximum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1822}
1823
1824void StringStatistics::SetCachedSize(int size) const {
1825 _cached_size_.Set(size);
1826}
1827const ::google::protobuf::Descriptor* StringStatistics::descriptor() {
1828 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
1829 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1830}
1831
1832const StringStatistics& StringStatistics::default_instance() {
1833 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_StringStatistics.base);
1834 return *internal_default_instance();
1835}
1836
1837
1838void StringStatistics::Clear() {
1839// @@protoc_insertion_point(message_clear_start:orc.proto.StringStatistics)
1840 ::google::protobuf::uint32 cached_has_bits = 0;
1841 // Prevent compiler warnings about cached_has_bits being unused
1842 (void) cached_has_bits;
1843
1844 cached_has_bits = _has_bits_[0];
1845 if (cached_has_bits & 3u) {
1846 if (cached_has_bits & 0x00000001u) {
1847 minimum_.ClearNonDefaultToEmptyNoArena();
1848 }
1849 if (cached_has_bits & 0x00000002u) {
1850 maximum_.ClearNonDefaultToEmptyNoArena();
1851 }
1852 }
1853 sum_ = GOOGLE_LONGLONG(0);
1854 _has_bits_.Clear();
1855 _internal_metadata_.Clear();
1856}
1857
1858bool StringStatistics::MergePartialFromCodedStream(
1859 ::google::protobuf::io::CodedInputStream* input) {
1860#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1861 ::google::protobuf::uint32 tag;
1862 // @@protoc_insertion_point(parse_start:orc.proto.StringStatistics)
1863 for (;;) {
1864 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1865 tag = p.first;
1866 if (!p.second) goto handle_unusual;
1867 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1868 // optional string minimum = 1;
1869 case 1: {
1870 if (static_cast< ::google::protobuf::uint8>(tag) ==
1871 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1872 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1873 input, this->mutable_minimum()));
1874 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1875 this->minimum().data(), static_cast<int>(this->minimum().length()),
1876 ::google::protobuf::internal::WireFormat::PARSE,
1877 "orc.proto.StringStatistics.minimum");
1878 } else {
1879 goto handle_unusual;
1880 }
1881 break;
1882 }
1883
1884 // optional string maximum = 2;
1885 case 2: {
1886 if (static_cast< ::google::protobuf::uint8>(tag) ==
1887 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1888 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1889 input, this->mutable_maximum()));
1890 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1891 this->maximum().data(), static_cast<int>(this->maximum().length()),
1892 ::google::protobuf::internal::WireFormat::PARSE,
1893 "orc.proto.StringStatistics.maximum");
1894 } else {
1895 goto handle_unusual;
1896 }
1897 break;
1898 }
1899
1900 // optional sint64 sum = 3;
1901 case 3: {
1902 if (static_cast< ::google::protobuf::uint8>(tag) ==
1903 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1904 set_has_sum();
1905 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1906 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
1907 input, &sum_)));
1908 } else {
1909 goto handle_unusual;
1910 }
1911 break;
1912 }
1913
1914 default: {
1915 handle_unusual:
1916 if (tag == 0) {
1917 goto success;
1918 }
1919 DO_(::google::protobuf::internal::WireFormat::SkipField(
1920 input, tag, _internal_metadata_.mutable_unknown_fields()));
1921 break;
1922 }
1923 }
1924 }
1925success:
1926 // @@protoc_insertion_point(parse_success:orc.proto.StringStatistics)
1927 return true;
1928failure:
1929 // @@protoc_insertion_point(parse_failure:orc.proto.StringStatistics)
1930 return false;
1931#undef DO_
1932}
1933
1934void StringStatistics::SerializeWithCachedSizes(
1935 ::google::protobuf::io::CodedOutputStream* output) const {
1936 // @@protoc_insertion_point(serialize_start:orc.proto.StringStatistics)
1937 ::google::protobuf::uint32 cached_has_bits = 0;
1938 (void) cached_has_bits;
1939
1940 cached_has_bits = _has_bits_[0];
1941 // optional string minimum = 1;
1942 if (cached_has_bits & 0x00000001u) {
1943 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1944 this->minimum().data(), static_cast<int>(this->minimum().length()),
1945 ::google::protobuf::internal::WireFormat::SERIALIZE,
1946 "orc.proto.StringStatistics.minimum");
1947 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1948 1, this->minimum(), output);
1949 }
1950
1951 // optional string maximum = 2;
1952 if (cached_has_bits & 0x00000002u) {
1953 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1954 this->maximum().data(), static_cast<int>(this->maximum().length()),
1955 ::google::protobuf::internal::WireFormat::SERIALIZE,
1956 "orc.proto.StringStatistics.maximum");
1957 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1958 2, this->maximum(), output);
1959 }
1960
1961 // optional sint64 sum = 3;
1962 if (cached_has_bits & 0x00000004u) {
1963 ::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->sum(), output);
1964 }
1965
1966 if (_internal_metadata_.have_unknown_fields()) {
1967 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1968 _internal_metadata_.unknown_fields(), output);
1969 }
1970 // @@protoc_insertion_point(serialize_end:orc.proto.StringStatistics)
1971}
1972
1973::google::protobuf::uint8* StringStatistics::InternalSerializeWithCachedSizesToArray(
1974 bool deterministic, ::google::protobuf::uint8* target) const {
1975 (void)deterministic; // Unused
1976 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.StringStatistics)
1977 ::google::protobuf::uint32 cached_has_bits = 0;
1978 (void) cached_has_bits;
1979
1980 cached_has_bits = _has_bits_[0];
1981 // optional string minimum = 1;
1982 if (cached_has_bits & 0x00000001u) {
1983 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1984 this->minimum().data(), static_cast<int>(this->minimum().length()),
1985 ::google::protobuf::internal::WireFormat::SERIALIZE,
1986 "orc.proto.StringStatistics.minimum");
1987 target =
1988 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1989 1, this->minimum(), target);
1990 }
1991
1992 // optional string maximum = 2;
1993 if (cached_has_bits & 0x00000002u) {
1994 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1995 this->maximum().data(), static_cast<int>(this->maximum().length()),
1996 ::google::protobuf::internal::WireFormat::SERIALIZE,
1997 "orc.proto.StringStatistics.maximum");
1998 target =
1999 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2000 2, this->maximum(), target);
2001 }
2002
2003 // optional sint64 sum = 3;
2004 if (cached_has_bits & 0x00000004u) {
2005 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->sum(), target);
2006 }
2007
2008 if (_internal_metadata_.have_unknown_fields()) {
2009 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2010 _internal_metadata_.unknown_fields(), target);
2011 }
2012 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.StringStatistics)
2013 return target;
2014}
2015
2016size_t StringStatistics::ByteSizeLong() const {
2017// @@protoc_insertion_point(message_byte_size_start:orc.proto.StringStatistics)
2018 size_t total_size = 0;
2019
2020 if (_internal_metadata_.have_unknown_fields()) {
2021 total_size +=
2022 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2023 _internal_metadata_.unknown_fields());
2024 }
2025 if (_has_bits_[0 / 32] & 7u) {
2026 // optional string minimum = 1;
2027 if (has_minimum()) {
2028 total_size += 1 +
2029 ::google::protobuf::internal::WireFormatLite::StringSize(
2030 this->minimum());
2031 }
2032
2033 // optional string maximum = 2;
2034 if (has_maximum()) {
2035 total_size += 1 +
2036 ::google::protobuf::internal::WireFormatLite::StringSize(
2037 this->maximum());
2038 }
2039
2040 // optional sint64 sum = 3;
2041 if (has_sum()) {
2042 total_size += 1 +
2043 ::google::protobuf::internal::WireFormatLite::SInt64Size(
2044 this->sum());
2045 }
2046
2047 }
2048 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2049 SetCachedSize(cached_size);
2050 return total_size;
2051}
2052
2053void StringStatistics::MergeFrom(const ::google::protobuf::Message& from) {
2054// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.StringStatistics)
2055 GOOGLE_DCHECK_NE(&from, this);
2056 const StringStatistics* source =
2057 ::google::protobuf::internal::DynamicCastToGenerated<const StringStatistics>(
2058 &from);
2059 if (source == NULL) {
2060 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.StringStatistics)
2061 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2062 } else {
2063 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.StringStatistics)
2064 MergeFrom(*source);
2065 }
2066}
2067
2068void StringStatistics::MergeFrom(const StringStatistics& from) {
2069// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.StringStatistics)
2070 GOOGLE_DCHECK_NE(&from, this);
2071 _internal_metadata_.MergeFrom(from._internal_metadata_);
2072 ::google::protobuf::uint32 cached_has_bits = 0;
2073 (void) cached_has_bits;
2074
2075 cached_has_bits = from._has_bits_[0];
2076 if (cached_has_bits & 7u) {
2077 if (cached_has_bits & 0x00000001u) {
2078 set_has_minimum();
2079 minimum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minimum_);
2080 }
2081 if (cached_has_bits & 0x00000002u) {
2082 set_has_maximum();
2083 maximum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maximum_);
2084 }
2085 if (cached_has_bits & 0x00000004u) {
2086 sum_ = from.sum_;
2087 }
2088 _has_bits_[0] |= cached_has_bits;
2089 }
2090}
2091
2092void StringStatistics::CopyFrom(const ::google::protobuf::Message& from) {
2093// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.StringStatistics)
2094 if (&from == this) return;
2095 Clear();
2096 MergeFrom(from);
2097}
2098
2099void StringStatistics::CopyFrom(const StringStatistics& from) {
2100// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.StringStatistics)
2101 if (&from == this) return;
2102 Clear();
2103 MergeFrom(from);
2104}
2105
2106bool StringStatistics::IsInitialized() const {
2107 return true;
2108}
2109
2110void StringStatistics::Swap(StringStatistics* other) {
2111 if (other == this) return;
2112 InternalSwap(other);
2113}
2114void StringStatistics::InternalSwap(StringStatistics* other) {
2115 using std::swap;
2116 minimum_.Swap(&other->minimum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2117 GetArenaNoVirtual());
2118 maximum_.Swap(&other->maximum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2119 GetArenaNoVirtual());
2120 swap(sum_, other->sum_);
2121 swap(_has_bits_[0], other->_has_bits_[0]);
2122 _internal_metadata_.Swap(&other->_internal_metadata_);
2123}
2124
2125::google::protobuf::Metadata StringStatistics::GetMetadata() const {
2126 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2127 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
2128}
2129
2130
2131// ===================================================================
2132
2133void BucketStatistics::InitAsDefaultInstance() {
2134}
2135#if !defined(_MSC_VER) || _MSC_VER >= 1900
2136const int BucketStatistics::kCountFieldNumber;
2137#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2138
2139BucketStatistics::BucketStatistics()
2140 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2141 ::google::protobuf::internal::InitSCC(
2142 &protobuf_orc_5fproto_2eproto::scc_info_BucketStatistics.base);
2143 SharedCtor();
2144 // @@protoc_insertion_point(constructor:orc.proto.BucketStatistics)
2145}
2146BucketStatistics::BucketStatistics(const BucketStatistics& from)
2147 : ::google::protobuf::Message(),
2148 _internal_metadata_(NULL),
2149 _has_bits_(from._has_bits_),
2150 count_(from.count_) {
2151 _internal_metadata_.MergeFrom(from._internal_metadata_);
2152 // @@protoc_insertion_point(copy_constructor:orc.proto.BucketStatistics)
2153}
2154
2155void BucketStatistics::SharedCtor() {
2156}
2157
2158BucketStatistics::~BucketStatistics() {
2159 // @@protoc_insertion_point(destructor:orc.proto.BucketStatistics)
2160 SharedDtor();
2161}
2162
2163void BucketStatistics::SharedDtor() {
2164}
2165
2166void BucketStatistics::SetCachedSize(int size) const {
2167 _cached_size_.Set(size);
2168}
2169const ::google::protobuf::Descriptor* BucketStatistics::descriptor() {
2170 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2171 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2172}
2173
2174const BucketStatistics& BucketStatistics::default_instance() {
2175 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_BucketStatistics.base);
2176 return *internal_default_instance();
2177}
2178
2179
2180void BucketStatistics::Clear() {
2181// @@protoc_insertion_point(message_clear_start:orc.proto.BucketStatistics)
2182 ::google::protobuf::uint32 cached_has_bits = 0;
2183 // Prevent compiler warnings about cached_has_bits being unused
2184 (void) cached_has_bits;
2185
2186 count_.Clear();
2187 _has_bits_.Clear();
2188 _internal_metadata_.Clear();
2189}
2190
2191bool BucketStatistics::MergePartialFromCodedStream(
2192 ::google::protobuf::io::CodedInputStream* input) {
2193#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2194 ::google::protobuf::uint32 tag;
2195 // @@protoc_insertion_point(parse_start:orc.proto.BucketStatistics)
2196 for (;;) {
2197 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2198 tag = p.first;
2199 if (!p.second) goto handle_unusual;
2200 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2201 // repeated uint64 count = 1 [packed = true];
2202 case 1: {
2203 if (static_cast< ::google::protobuf::uint8>(tag) ==
2204 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2205 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
2206 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2207 input, this->mutable_count())));
2208 } else if (
2209 static_cast< ::google::protobuf::uint8>(tag) ==
2210 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2211 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
2212 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2213 1, 10u, input, this->mutable_count())));
2214 } else {
2215 goto handle_unusual;
2216 }
2217 break;
2218 }
2219
2220 default: {
2221 handle_unusual:
2222 if (tag == 0) {
2223 goto success;
2224 }
2225 DO_(::google::protobuf::internal::WireFormat::SkipField(
2226 input, tag, _internal_metadata_.mutable_unknown_fields()));
2227 break;
2228 }
2229 }
2230 }
2231success:
2232 // @@protoc_insertion_point(parse_success:orc.proto.BucketStatistics)
2233 return true;
2234failure:
2235 // @@protoc_insertion_point(parse_failure:orc.proto.BucketStatistics)
2236 return false;
2237#undef DO_
2238}
2239
2240void BucketStatistics::SerializeWithCachedSizes(
2241 ::google::protobuf::io::CodedOutputStream* output) const {
2242 // @@protoc_insertion_point(serialize_start:orc.proto.BucketStatistics)
2243 ::google::protobuf::uint32 cached_has_bits = 0;
2244 (void) cached_has_bits;
2245
2246 // repeated uint64 count = 1 [packed = true];
2247 if (this->count_size() > 0) {
2248 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
2249 output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
2250 _count_cached_byte_size_));
2251 }
2252 for (int i = 0, n = this->count_size(); i < n; i++) {
2253 ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
2254 this->count(i), output);
2255 }
2256
2257 if (_internal_metadata_.have_unknown_fields()) {
2258 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2259 _internal_metadata_.unknown_fields(), output);
2260 }
2261 // @@protoc_insertion_point(serialize_end:orc.proto.BucketStatistics)
2262}
2263
2264::google::protobuf::uint8* BucketStatistics::InternalSerializeWithCachedSizesToArray(
2265 bool deterministic, ::google::protobuf::uint8* target) const {
2266 (void)deterministic; // Unused
2267 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.BucketStatistics)
2268 ::google::protobuf::uint32 cached_has_bits = 0;
2269 (void) cached_has_bits;
2270
2271 // repeated uint64 count = 1 [packed = true];
2272 if (this->count_size() > 0) {
2273 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2274 1,
2275 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
2276 target);
2277 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
2278 static_cast< ::google::protobuf::int32>(
2279 _count_cached_byte_size_), target);
2280 target = ::google::protobuf::internal::WireFormatLite::
2281 WriteUInt64NoTagToArray(this->count_, target);
2282 }
2283
2284 if (_internal_metadata_.have_unknown_fields()) {
2285 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2286 _internal_metadata_.unknown_fields(), target);
2287 }
2288 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.BucketStatistics)
2289 return target;
2290}
2291
2292size_t BucketStatistics::ByteSizeLong() const {
2293// @@protoc_insertion_point(message_byte_size_start:orc.proto.BucketStatistics)
2294 size_t total_size = 0;
2295
2296 if (_internal_metadata_.have_unknown_fields()) {
2297 total_size +=
2298 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2299 _internal_metadata_.unknown_fields());
2300 }
2301 // repeated uint64 count = 1 [packed = true];
2302 {
2303 size_t data_size = ::google::protobuf::internal::WireFormatLite::
2304 UInt64Size(this->count_);
2305 if (data_size > 0) {
2306 total_size += 1 +
2307 ::google::protobuf::internal::WireFormatLite::Int32Size(
2308 static_cast< ::google::protobuf::int32>(data_size));
2309 }
2310 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
2311 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2312 _count_cached_byte_size_ = cached_size;
2313 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2314 total_size += data_size;
2315 }
2316
2317 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2318 SetCachedSize(cached_size);
2319 return total_size;
2320}
2321
2322void BucketStatistics::MergeFrom(const ::google::protobuf::Message& from) {
2323// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.BucketStatistics)
2324 GOOGLE_DCHECK_NE(&from, this);
2325 const BucketStatistics* source =
2326 ::google::protobuf::internal::DynamicCastToGenerated<const BucketStatistics>(
2327 &from);
2328 if (source == NULL) {
2329 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.BucketStatistics)
2330 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2331 } else {
2332 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.BucketStatistics)
2333 MergeFrom(*source);
2334 }
2335}
2336
2337void BucketStatistics::MergeFrom(const BucketStatistics& from) {
2338// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.BucketStatistics)
2339 GOOGLE_DCHECK_NE(&from, this);
2340 _internal_metadata_.MergeFrom(from._internal_metadata_);
2341 ::google::protobuf::uint32 cached_has_bits = 0;
2342 (void) cached_has_bits;
2343
2344 count_.MergeFrom(from.count_);
2345}
2346
2347void BucketStatistics::CopyFrom(const ::google::protobuf::Message& from) {
2348// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.BucketStatistics)
2349 if (&from == this) return;
2350 Clear();
2351 MergeFrom(from);
2352}
2353
2354void BucketStatistics::CopyFrom(const BucketStatistics& from) {
2355// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.BucketStatistics)
2356 if (&from == this) return;
2357 Clear();
2358 MergeFrom(from);
2359}
2360
2361bool BucketStatistics::IsInitialized() const {
2362 return true;
2363}
2364
2365void BucketStatistics::Swap(BucketStatistics* other) {
2366 if (other == this) return;
2367 InternalSwap(other);
2368}
2369void BucketStatistics::InternalSwap(BucketStatistics* other) {
2370 using std::swap;
2371 count_.InternalSwap(&other->count_);
2372 swap(_has_bits_[0], other->_has_bits_[0]);
2373 _internal_metadata_.Swap(&other->_internal_metadata_);
2374}
2375
2376::google::protobuf::Metadata BucketStatistics::GetMetadata() const {
2377 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2378 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
2379}
2380
2381
2382// ===================================================================
2383
2384void DecimalStatistics::InitAsDefaultInstance() {
2385}
2386#if !defined(_MSC_VER) || _MSC_VER >= 1900
2387const int DecimalStatistics::kMinimumFieldNumber;
2388const int DecimalStatistics::kMaximumFieldNumber;
2389const int DecimalStatistics::kSumFieldNumber;
2390#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2391
2392DecimalStatistics::DecimalStatistics()
2393 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2394 ::google::protobuf::internal::InitSCC(
2395 &protobuf_orc_5fproto_2eproto::scc_info_DecimalStatistics.base);
2396 SharedCtor();
2397 // @@protoc_insertion_point(constructor:orc.proto.DecimalStatistics)
2398}
2399DecimalStatistics::DecimalStatistics(const DecimalStatistics& from)
2400 : ::google::protobuf::Message(),
2401 _internal_metadata_(NULL),
2402 _has_bits_(from._has_bits_) {
2403 _internal_metadata_.MergeFrom(from._internal_metadata_);
2404 minimum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2405 if (from.has_minimum()) {
2406 minimum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minimum_);
2407 }
2408 maximum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2409 if (from.has_maximum()) {
2410 maximum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maximum_);
2411 }
2412 sum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2413 if (from.has_sum()) {
2414 sum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sum_);
2415 }
2416 // @@protoc_insertion_point(copy_constructor:orc.proto.DecimalStatistics)
2417}
2418
2419void DecimalStatistics::SharedCtor() {
2420 minimum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2421 maximum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2422 sum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2423}
2424
2425DecimalStatistics::~DecimalStatistics() {
2426 // @@protoc_insertion_point(destructor:orc.proto.DecimalStatistics)
2427 SharedDtor();
2428}
2429
2430void DecimalStatistics::SharedDtor() {
2431 minimum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2432 maximum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2433 sum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2434}
2435
2436void DecimalStatistics::SetCachedSize(int size) const {
2437 _cached_size_.Set(size);
2438}
2439const ::google::protobuf::Descriptor* DecimalStatistics::descriptor() {
2440 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2441 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2442}
2443
2444const DecimalStatistics& DecimalStatistics::default_instance() {
2445 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_DecimalStatistics.base);
2446 return *internal_default_instance();
2447}
2448
2449
2450void DecimalStatistics::Clear() {
2451// @@protoc_insertion_point(message_clear_start:orc.proto.DecimalStatistics)
2452 ::google::protobuf::uint32 cached_has_bits = 0;
2453 // Prevent compiler warnings about cached_has_bits being unused
2454 (void) cached_has_bits;
2455
2456 cached_has_bits = _has_bits_[0];
2457 if (cached_has_bits & 7u) {
2458 if (cached_has_bits & 0x00000001u) {
2459 minimum_.ClearNonDefaultToEmptyNoArena();
2460 }
2461 if (cached_has_bits & 0x00000002u) {
2462 maximum_.ClearNonDefaultToEmptyNoArena();
2463 }
2464 if (cached_has_bits & 0x00000004u) {
2465 sum_.ClearNonDefaultToEmptyNoArena();
2466 }
2467 }
2468 _has_bits_.Clear();
2469 _internal_metadata_.Clear();
2470}
2471
2472bool DecimalStatistics::MergePartialFromCodedStream(
2473 ::google::protobuf::io::CodedInputStream* input) {
2474#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2475 ::google::protobuf::uint32 tag;
2476 // @@protoc_insertion_point(parse_start:orc.proto.DecimalStatistics)
2477 for (;;) {
2478 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2479 tag = p.first;
2480 if (!p.second) goto handle_unusual;
2481 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2482 // optional string minimum = 1;
2483 case 1: {
2484 if (static_cast< ::google::protobuf::uint8>(tag) ==
2485 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2486 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2487 input, this->mutable_minimum()));
2488 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2489 this->minimum().data(), static_cast<int>(this->minimum().length()),
2490 ::google::protobuf::internal::WireFormat::PARSE,
2491 "orc.proto.DecimalStatistics.minimum");
2492 } else {
2493 goto handle_unusual;
2494 }
2495 break;
2496 }
2497
2498 // optional string maximum = 2;
2499 case 2: {
2500 if (static_cast< ::google::protobuf::uint8>(tag) ==
2501 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2502 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2503 input, this->mutable_maximum()));
2504 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2505 this->maximum().data(), static_cast<int>(this->maximum().length()),
2506 ::google::protobuf::internal::WireFormat::PARSE,
2507 "orc.proto.DecimalStatistics.maximum");
2508 } else {
2509 goto handle_unusual;
2510 }
2511 break;
2512 }
2513
2514 // optional string sum = 3;
2515 case 3: {
2516 if (static_cast< ::google::protobuf::uint8>(tag) ==
2517 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2518 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2519 input, this->mutable_sum()));
2520 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2521 this->sum().data(), static_cast<int>(this->sum().length()),
2522 ::google::protobuf::internal::WireFormat::PARSE,
2523 "orc.proto.DecimalStatistics.sum");
2524 } else {
2525 goto handle_unusual;
2526 }
2527 break;
2528 }
2529
2530 default: {
2531 handle_unusual:
2532 if (tag == 0) {
2533 goto success;
2534 }
2535 DO_(::google::protobuf::internal::WireFormat::SkipField(
2536 input, tag, _internal_metadata_.mutable_unknown_fields()));
2537 break;
2538 }
2539 }
2540 }
2541success:
2542 // @@protoc_insertion_point(parse_success:orc.proto.DecimalStatistics)
2543 return true;
2544failure:
2545 // @@protoc_insertion_point(parse_failure:orc.proto.DecimalStatistics)
2546 return false;
2547#undef DO_
2548}
2549
2550void DecimalStatistics::SerializeWithCachedSizes(
2551 ::google::protobuf::io::CodedOutputStream* output) const {
2552 // @@protoc_insertion_point(serialize_start:orc.proto.DecimalStatistics)
2553 ::google::protobuf::uint32 cached_has_bits = 0;
2554 (void) cached_has_bits;
2555
2556 cached_has_bits = _has_bits_[0];
2557 // optional string minimum = 1;
2558 if (cached_has_bits & 0x00000001u) {
2559 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2560 this->minimum().data(), static_cast<int>(this->minimum().length()),
2561 ::google::protobuf::internal::WireFormat::SERIALIZE,
2562 "orc.proto.DecimalStatistics.minimum");
2563 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2564 1, this->minimum(), output);
2565 }
2566
2567 // optional string maximum = 2;
2568 if (cached_has_bits & 0x00000002u) {
2569 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2570 this->maximum().data(), static_cast<int>(this->maximum().length()),
2571 ::google::protobuf::internal::WireFormat::SERIALIZE,
2572 "orc.proto.DecimalStatistics.maximum");
2573 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2574 2, this->maximum(), output);
2575 }
2576
2577 // optional string sum = 3;
2578 if (cached_has_bits & 0x00000004u) {
2579 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2580 this->sum().data(), static_cast<int>(this->sum().length()),
2581 ::google::protobuf::internal::WireFormat::SERIALIZE,
2582 "orc.proto.DecimalStatistics.sum");
2583 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2584 3, this->sum(), output);
2585 }
2586
2587 if (_internal_metadata_.have_unknown_fields()) {
2588 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2589 _internal_metadata_.unknown_fields(), output);
2590 }
2591 // @@protoc_insertion_point(serialize_end:orc.proto.DecimalStatistics)
2592}
2593
2594::google::protobuf::uint8* DecimalStatistics::InternalSerializeWithCachedSizesToArray(
2595 bool deterministic, ::google::protobuf::uint8* target) const {
2596 (void)deterministic; // Unused
2597 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.DecimalStatistics)
2598 ::google::protobuf::uint32 cached_has_bits = 0;
2599 (void) cached_has_bits;
2600
2601 cached_has_bits = _has_bits_[0];
2602 // optional string minimum = 1;
2603 if (cached_has_bits & 0x00000001u) {
2604 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2605 this->minimum().data(), static_cast<int>(this->minimum().length()),
2606 ::google::protobuf::internal::WireFormat::SERIALIZE,
2607 "orc.proto.DecimalStatistics.minimum");
2608 target =
2609 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2610 1, this->minimum(), target);
2611 }
2612
2613 // optional string maximum = 2;
2614 if (cached_has_bits & 0x00000002u) {
2615 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2616 this->maximum().data(), static_cast<int>(this->maximum().length()),
2617 ::google::protobuf::internal::WireFormat::SERIALIZE,
2618 "orc.proto.DecimalStatistics.maximum");
2619 target =
2620 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2621 2, this->maximum(), target);
2622 }
2623
2624 // optional string sum = 3;
2625 if (cached_has_bits & 0x00000004u) {
2626 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2627 this->sum().data(), static_cast<int>(this->sum().length()),
2628 ::google::protobuf::internal::WireFormat::SERIALIZE,
2629 "orc.proto.DecimalStatistics.sum");
2630 target =
2631 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2632 3, this->sum(), target);
2633 }
2634
2635 if (_internal_metadata_.have_unknown_fields()) {
2636 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2637 _internal_metadata_.unknown_fields(), target);
2638 }
2639 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.DecimalStatistics)
2640 return target;
2641}
2642
2643size_t DecimalStatistics::ByteSizeLong() const {
2644// @@protoc_insertion_point(message_byte_size_start:orc.proto.DecimalStatistics)
2645 size_t total_size = 0;
2646
2647 if (_internal_metadata_.have_unknown_fields()) {
2648 total_size +=
2649 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2650 _internal_metadata_.unknown_fields());
2651 }
2652 if (_has_bits_[0 / 32] & 7u) {
2653 // optional string minimum = 1;
2654 if (has_minimum()) {
2655 total_size += 1 +
2656 ::google::protobuf::internal::WireFormatLite::StringSize(
2657 this->minimum());
2658 }
2659
2660 // optional string maximum = 2;
2661 if (has_maximum()) {
2662 total_size += 1 +
2663 ::google::protobuf::internal::WireFormatLite::StringSize(
2664 this->maximum());
2665 }
2666
2667 // optional string sum = 3;
2668 if (has_sum()) {
2669 total_size += 1 +
2670 ::google::protobuf::internal::WireFormatLite::StringSize(
2671 this->sum());
2672 }
2673
2674 }
2675 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2676 SetCachedSize(cached_size);
2677 return total_size;
2678}
2679
2680void DecimalStatistics::MergeFrom(const ::google::protobuf::Message& from) {
2681// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.DecimalStatistics)
2682 GOOGLE_DCHECK_NE(&from, this);
2683 const DecimalStatistics* source =
2684 ::google::protobuf::internal::DynamicCastToGenerated<const DecimalStatistics>(
2685 &from);
2686 if (source == NULL) {
2687 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.DecimalStatistics)
2688 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2689 } else {
2690 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.DecimalStatistics)
2691 MergeFrom(*source);
2692 }
2693}
2694
2695void DecimalStatistics::MergeFrom(const DecimalStatistics& from) {
2696// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.DecimalStatistics)
2697 GOOGLE_DCHECK_NE(&from, this);
2698 _internal_metadata_.MergeFrom(from._internal_metadata_);
2699 ::google::protobuf::uint32 cached_has_bits = 0;
2700 (void) cached_has_bits;
2701
2702 cached_has_bits = from._has_bits_[0];
2703 if (cached_has_bits & 7u) {
2704 if (cached_has_bits & 0x00000001u) {
2705 set_has_minimum();
2706 minimum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minimum_);
2707 }
2708 if (cached_has_bits & 0x00000002u) {
2709 set_has_maximum();
2710 maximum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maximum_);
2711 }
2712 if (cached_has_bits & 0x00000004u) {
2713 set_has_sum();
2714 sum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sum_);
2715 }
2716 }
2717}
2718
2719void DecimalStatistics::CopyFrom(const ::google::protobuf::Message& from) {
2720// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.DecimalStatistics)
2721 if (&from == this) return;
2722 Clear();
2723 MergeFrom(from);
2724}
2725
2726void DecimalStatistics::CopyFrom(const DecimalStatistics& from) {
2727// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.DecimalStatistics)
2728 if (&from == this) return;
2729 Clear();
2730 MergeFrom(from);
2731}
2732
2733bool DecimalStatistics::IsInitialized() const {
2734 return true;
2735}
2736
2737void DecimalStatistics::Swap(DecimalStatistics* other) {
2738 if (other == this) return;
2739 InternalSwap(other);
2740}
2741void DecimalStatistics::InternalSwap(DecimalStatistics* other) {
2742 using std::swap;
2743 minimum_.Swap(&other->minimum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2744 GetArenaNoVirtual());
2745 maximum_.Swap(&other->maximum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2746 GetArenaNoVirtual());
2747 sum_.Swap(&other->sum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2748 GetArenaNoVirtual());
2749 swap(_has_bits_[0], other->_has_bits_[0]);
2750 _internal_metadata_.Swap(&other->_internal_metadata_);
2751}
2752
2753::google::protobuf::Metadata DecimalStatistics::GetMetadata() const {
2754 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2755 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
2756}
2757
2758
2759// ===================================================================
2760
2761void DateStatistics::InitAsDefaultInstance() {
2762}
2763#if !defined(_MSC_VER) || _MSC_VER >= 1900
2764const int DateStatistics::kMinimumFieldNumber;
2765const int DateStatistics::kMaximumFieldNumber;
2766#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2767
2768DateStatistics::DateStatistics()
2769 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2770 ::google::protobuf::internal::InitSCC(
2771 &protobuf_orc_5fproto_2eproto::scc_info_DateStatistics.base);
2772 SharedCtor();
2773 // @@protoc_insertion_point(constructor:orc.proto.DateStatistics)
2774}
2775DateStatistics::DateStatistics(const DateStatistics& from)
2776 : ::google::protobuf::Message(),
2777 _internal_metadata_(NULL),
2778 _has_bits_(from._has_bits_) {
2779 _internal_metadata_.MergeFrom(from._internal_metadata_);
2780 ::memcpy(&minimum_, &from.minimum_,
2781 static_cast<size_t>(reinterpret_cast<char*>(&maximum_) -
2782 reinterpret_cast<char*>(&minimum_)) + sizeof(maximum_));
2783 // @@protoc_insertion_point(copy_constructor:orc.proto.DateStatistics)
2784}
2785
2786void DateStatistics::SharedCtor() {
2787 ::memset(&minimum_, 0, static_cast<size_t>(
2788 reinterpret_cast<char*>(&maximum_) -
2789 reinterpret_cast<char*>(&minimum_)) + sizeof(maximum_));
2790}
2791
2792DateStatistics::~DateStatistics() {
2793 // @@protoc_insertion_point(destructor:orc.proto.DateStatistics)
2794 SharedDtor();
2795}
2796
2797void DateStatistics::SharedDtor() {
2798}
2799
2800void DateStatistics::SetCachedSize(int size) const {
2801 _cached_size_.Set(size);
2802}
2803const ::google::protobuf::Descriptor* DateStatistics::descriptor() {
2804 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
2805 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2806}
2807
2808const DateStatistics& DateStatistics::default_instance() {
2809 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_DateStatistics.base);
2810 return *internal_default_instance();
2811}
2812
2813
2814void DateStatistics::Clear() {
2815// @@protoc_insertion_point(message_clear_start:orc.proto.DateStatistics)
2816 ::google::protobuf::uint32 cached_has_bits = 0;
2817 // Prevent compiler warnings about cached_has_bits being unused
2818 (void) cached_has_bits;
2819
2820 cached_has_bits = _has_bits_[0];
2821 if (cached_has_bits & 3u) {
2822 ::memset(&minimum_, 0, static_cast<size_t>(
2823 reinterpret_cast<char*>(&maximum_) -
2824 reinterpret_cast<char*>(&minimum_)) + sizeof(maximum_));
2825 }
2826 _has_bits_.Clear();
2827 _internal_metadata_.Clear();
2828}
2829
2830bool DateStatistics::MergePartialFromCodedStream(
2831 ::google::protobuf::io::CodedInputStream* input) {
2832#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2833 ::google::protobuf::uint32 tag;
2834 // @@protoc_insertion_point(parse_start:orc.proto.DateStatistics)
2835 for (;;) {
2836 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2837 tag = p.first;
2838 if (!p.second) goto handle_unusual;
2839 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2840 // optional sint32 minimum = 1;
2841 case 1: {
2842 if (static_cast< ::google::protobuf::uint8>(tag) ==
2843 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2844 set_has_minimum();
2845 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2846 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
2847 input, &minimum_)));
2848 } else {
2849 goto handle_unusual;
2850 }
2851 break;
2852 }
2853
2854 // optional sint32 maximum = 2;
2855 case 2: {
2856 if (static_cast< ::google::protobuf::uint8>(tag) ==
2857 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2858 set_has_maximum();
2859 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2860 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
2861 input, &maximum_)));
2862 } else {
2863 goto handle_unusual;
2864 }
2865 break;
2866 }
2867
2868 default: {
2869 handle_unusual:
2870 if (tag == 0) {
2871 goto success;
2872 }
2873 DO_(::google::protobuf::internal::WireFormat::SkipField(
2874 input, tag, _internal_metadata_.mutable_unknown_fields()));
2875 break;
2876 }
2877 }
2878 }
2879success:
2880 // @@protoc_insertion_point(parse_success:orc.proto.DateStatistics)
2881 return true;
2882failure:
2883 // @@protoc_insertion_point(parse_failure:orc.proto.DateStatistics)
2884 return false;
2885#undef DO_
2886}
2887
2888void DateStatistics::SerializeWithCachedSizes(
2889 ::google::protobuf::io::CodedOutputStream* output) const {
2890 // @@protoc_insertion_point(serialize_start:orc.proto.DateStatistics)
2891 ::google::protobuf::uint32 cached_has_bits = 0;
2892 (void) cached_has_bits;
2893
2894 cached_has_bits = _has_bits_[0];
2895 // optional sint32 minimum = 1;
2896 if (cached_has_bits & 0x00000001u) {
2897 ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->minimum(), output);
2898 }
2899
2900 // optional sint32 maximum = 2;
2901 if (cached_has_bits & 0x00000002u) {
2902 ::google::protobuf::internal::WireFormatLite::WriteSInt32(2, this->maximum(), output);
2903 }
2904
2905 if (_internal_metadata_.have_unknown_fields()) {
2906 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2907 _internal_metadata_.unknown_fields(), output);
2908 }
2909 // @@protoc_insertion_point(serialize_end:orc.proto.DateStatistics)
2910}
2911
2912::google::protobuf::uint8* DateStatistics::InternalSerializeWithCachedSizesToArray(
2913 bool deterministic, ::google::protobuf::uint8* target) const {
2914 (void)deterministic; // Unused
2915 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.DateStatistics)
2916 ::google::protobuf::uint32 cached_has_bits = 0;
2917 (void) cached_has_bits;
2918
2919 cached_has_bits = _has_bits_[0];
2920 // optional sint32 minimum = 1;
2921 if (cached_has_bits & 0x00000001u) {
2922 target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->minimum(), target);
2923 }
2924
2925 // optional sint32 maximum = 2;
2926 if (cached_has_bits & 0x00000002u) {
2927 target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(2, this->maximum(), target);
2928 }
2929
2930 if (_internal_metadata_.have_unknown_fields()) {
2931 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2932 _internal_metadata_.unknown_fields(), target);
2933 }
2934 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.DateStatistics)
2935 return target;
2936}
2937
2938size_t DateStatistics::ByteSizeLong() const {
2939// @@protoc_insertion_point(message_byte_size_start:orc.proto.DateStatistics)
2940 size_t total_size = 0;
2941
2942 if (_internal_metadata_.have_unknown_fields()) {
2943 total_size +=
2944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2945 _internal_metadata_.unknown_fields());
2946 }
2947 if (_has_bits_[0 / 32] & 3u) {
2948 // optional sint32 minimum = 1;
2949 if (has_minimum()) {
2950 total_size += 1 +
2951 ::google::protobuf::internal::WireFormatLite::SInt32Size(
2952 this->minimum());
2953 }
2954
2955 // optional sint32 maximum = 2;
2956 if (has_maximum()) {
2957 total_size += 1 +
2958 ::google::protobuf::internal::WireFormatLite::SInt32Size(
2959 this->maximum());
2960 }
2961
2962 }
2963 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2964 SetCachedSize(cached_size);
2965 return total_size;
2966}
2967
2968void DateStatistics::MergeFrom(const ::google::protobuf::Message& from) {
2969// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.DateStatistics)
2970 GOOGLE_DCHECK_NE(&from, this);
2971 const DateStatistics* source =
2972 ::google::protobuf::internal::DynamicCastToGenerated<const DateStatistics>(
2973 &from);
2974 if (source == NULL) {
2975 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.DateStatistics)
2976 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2977 } else {
2978 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.DateStatistics)
2979 MergeFrom(*source);
2980 }
2981}
2982
2983void DateStatistics::MergeFrom(const DateStatistics& from) {
2984// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.DateStatistics)
2985 GOOGLE_DCHECK_NE(&from, this);
2986 _internal_metadata_.MergeFrom(from._internal_metadata_);
2987 ::google::protobuf::uint32 cached_has_bits = 0;
2988 (void) cached_has_bits;
2989
2990 cached_has_bits = from._has_bits_[0];
2991 if (cached_has_bits & 3u) {
2992 if (cached_has_bits & 0x00000001u) {
2993 minimum_ = from.minimum_;
2994 }
2995 if (cached_has_bits & 0x00000002u) {
2996 maximum_ = from.maximum_;
2997 }
2998 _has_bits_[0] |= cached_has_bits;
2999 }
3000}
3001
3002void DateStatistics::CopyFrom(const ::google::protobuf::Message& from) {
3003// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.DateStatistics)
3004 if (&from == this) return;
3005 Clear();
3006 MergeFrom(from);
3007}
3008
3009void DateStatistics::CopyFrom(const DateStatistics& from) {
3010// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.DateStatistics)
3011 if (&from == this) return;
3012 Clear();
3013 MergeFrom(from);
3014}
3015
3016bool DateStatistics::IsInitialized() const {
3017 return true;
3018}
3019
3020void DateStatistics::Swap(DateStatistics* other) {
3021 if (other == this) return;
3022 InternalSwap(other);
3023}
3024void DateStatistics::InternalSwap(DateStatistics* other) {
3025 using std::swap;
3026 swap(minimum_, other->minimum_);
3027 swap(maximum_, other->maximum_);
3028 swap(_has_bits_[0], other->_has_bits_[0]);
3029 _internal_metadata_.Swap(&other->_internal_metadata_);
3030}
3031
3032::google::protobuf::Metadata DateStatistics::GetMetadata() const {
3033 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3034 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
3035}
3036
3037
3038// ===================================================================
3039
3040void TimestampStatistics::InitAsDefaultInstance() {
3041}
3042#if !defined(_MSC_VER) || _MSC_VER >= 1900
3043const int TimestampStatistics::kMinimumFieldNumber;
3044const int TimestampStatistics::kMaximumFieldNumber;
3045const int TimestampStatistics::kMinimumUtcFieldNumber;
3046const int TimestampStatistics::kMaximumUtcFieldNumber;
3047#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3048
3049TimestampStatistics::TimestampStatistics()
3050 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3051 ::google::protobuf::internal::InitSCC(
3052 &protobuf_orc_5fproto_2eproto::scc_info_TimestampStatistics.base);
3053 SharedCtor();
3054 // @@protoc_insertion_point(constructor:orc.proto.TimestampStatistics)
3055}
3056TimestampStatistics::TimestampStatistics(const TimestampStatistics& from)
3057 : ::google::protobuf::Message(),
3058 _internal_metadata_(NULL),
3059 _has_bits_(from._has_bits_) {
3060 _internal_metadata_.MergeFrom(from._internal_metadata_);
3061 ::memcpy(&minimum_, &from.minimum_,
3062 static_cast<size_t>(reinterpret_cast<char*>(&maximumutc_) -
3063 reinterpret_cast<char*>(&minimum_)) + sizeof(maximumutc_));
3064 // @@protoc_insertion_point(copy_constructor:orc.proto.TimestampStatistics)
3065}
3066
3067void TimestampStatistics::SharedCtor() {
3068 ::memset(&minimum_, 0, static_cast<size_t>(
3069 reinterpret_cast<char*>(&maximumutc_) -
3070 reinterpret_cast<char*>(&minimum_)) + sizeof(maximumutc_));
3071}
3072
3073TimestampStatistics::~TimestampStatistics() {
3074 // @@protoc_insertion_point(destructor:orc.proto.TimestampStatistics)
3075 SharedDtor();
3076}
3077
3078void TimestampStatistics::SharedDtor() {
3079}
3080
3081void TimestampStatistics::SetCachedSize(int size) const {
3082 _cached_size_.Set(size);
3083}
3084const ::google::protobuf::Descriptor* TimestampStatistics::descriptor() {
3085 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3086 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3087}
3088
3089const TimestampStatistics& TimestampStatistics::default_instance() {
3090 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_TimestampStatistics.base);
3091 return *internal_default_instance();
3092}
3093
3094
3095void TimestampStatistics::Clear() {
3096// @@protoc_insertion_point(message_clear_start:orc.proto.TimestampStatistics)
3097 ::google::protobuf::uint32 cached_has_bits = 0;
3098 // Prevent compiler warnings about cached_has_bits being unused
3099 (void) cached_has_bits;
3100
3101 cached_has_bits = _has_bits_[0];
3102 if (cached_has_bits & 15u) {
3103 ::memset(&minimum_, 0, static_cast<size_t>(
3104 reinterpret_cast<char*>(&maximumutc_) -
3105 reinterpret_cast<char*>(&minimum_)) + sizeof(maximumutc_));
3106 }
3107 _has_bits_.Clear();
3108 _internal_metadata_.Clear();
3109}
3110
3111bool TimestampStatistics::MergePartialFromCodedStream(
3112 ::google::protobuf::io::CodedInputStream* input) {
3113#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3114 ::google::protobuf::uint32 tag;
3115 // @@protoc_insertion_point(parse_start:orc.proto.TimestampStatistics)
3116 for (;;) {
3117 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3118 tag = p.first;
3119 if (!p.second) goto handle_unusual;
3120 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3121 // optional sint64 minimum = 1;
3122 case 1: {
3123 if (static_cast< ::google::protobuf::uint8>(tag) ==
3124 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3125 set_has_minimum();
3126 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3127 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
3128 input, &minimum_)));
3129 } else {
3130 goto handle_unusual;
3131 }
3132 break;
3133 }
3134
3135 // optional sint64 maximum = 2;
3136 case 2: {
3137 if (static_cast< ::google::protobuf::uint8>(tag) ==
3138 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3139 set_has_maximum();
3140 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3141 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
3142 input, &maximum_)));
3143 } else {
3144 goto handle_unusual;
3145 }
3146 break;
3147 }
3148
3149 // optional sint64 minimumUtc = 3;
3150 case 3: {
3151 if (static_cast< ::google::protobuf::uint8>(tag) ==
3152 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3153 set_has_minimumutc();
3154 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3155 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
3156 input, &minimumutc_)));
3157 } else {
3158 goto handle_unusual;
3159 }
3160 break;
3161 }
3162
3163 // optional sint64 maximumUtc = 4;
3164 case 4: {
3165 if (static_cast< ::google::protobuf::uint8>(tag) ==
3166 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3167 set_has_maximumutc();
3168 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3169 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
3170 input, &maximumutc_)));
3171 } else {
3172 goto handle_unusual;
3173 }
3174 break;
3175 }
3176
3177 default: {
3178 handle_unusual:
3179 if (tag == 0) {
3180 goto success;
3181 }
3182 DO_(::google::protobuf::internal::WireFormat::SkipField(
3183 input, tag, _internal_metadata_.mutable_unknown_fields()));
3184 break;
3185 }
3186 }
3187 }
3188success:
3189 // @@protoc_insertion_point(parse_success:orc.proto.TimestampStatistics)
3190 return true;
3191failure:
3192 // @@protoc_insertion_point(parse_failure:orc.proto.TimestampStatistics)
3193 return false;
3194#undef DO_
3195}
3196
3197void TimestampStatistics::SerializeWithCachedSizes(
3198 ::google::protobuf::io::CodedOutputStream* output) const {
3199 // @@protoc_insertion_point(serialize_start:orc.proto.TimestampStatistics)
3200 ::google::protobuf::uint32 cached_has_bits = 0;
3201 (void) cached_has_bits;
3202
3203 cached_has_bits = _has_bits_[0];
3204 // optional sint64 minimum = 1;
3205 if (cached_has_bits & 0x00000001u) {
3206 ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->minimum(), output);
3207 }
3208
3209 // optional sint64 maximum = 2;
3210 if (cached_has_bits & 0x00000002u) {
3211 ::google::protobuf::internal::WireFormatLite::WriteSInt64(2, this->maximum(), output);
3212 }
3213
3214 // optional sint64 minimumUtc = 3;
3215 if (cached_has_bits & 0x00000004u) {
3216 ::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->minimumutc(), output);
3217 }
3218
3219 // optional sint64 maximumUtc = 4;
3220 if (cached_has_bits & 0x00000008u) {
3221 ::google::protobuf::internal::WireFormatLite::WriteSInt64(4, this->maximumutc(), output);
3222 }
3223
3224 if (_internal_metadata_.have_unknown_fields()) {
3225 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3226 _internal_metadata_.unknown_fields(), output);
3227 }
3228 // @@protoc_insertion_point(serialize_end:orc.proto.TimestampStatistics)
3229}
3230
3231::google::protobuf::uint8* TimestampStatistics::InternalSerializeWithCachedSizesToArray(
3232 bool deterministic, ::google::protobuf::uint8* target) const {
3233 (void)deterministic; // Unused
3234 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.TimestampStatistics)
3235 ::google::protobuf::uint32 cached_has_bits = 0;
3236 (void) cached_has_bits;
3237
3238 cached_has_bits = _has_bits_[0];
3239 // optional sint64 minimum = 1;
3240 if (cached_has_bits & 0x00000001u) {
3241 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->minimum(), target);
3242 }
3243
3244 // optional sint64 maximum = 2;
3245 if (cached_has_bits & 0x00000002u) {
3246 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(2, this->maximum(), target);
3247 }
3248
3249 // optional sint64 minimumUtc = 3;
3250 if (cached_has_bits & 0x00000004u) {
3251 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->minimumutc(), target);
3252 }
3253
3254 // optional sint64 maximumUtc = 4;
3255 if (cached_has_bits & 0x00000008u) {
3256 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(4, this->maximumutc(), target);
3257 }
3258
3259 if (_internal_metadata_.have_unknown_fields()) {
3260 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3261 _internal_metadata_.unknown_fields(), target);
3262 }
3263 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.TimestampStatistics)
3264 return target;
3265}
3266
3267size_t TimestampStatistics::ByteSizeLong() const {
3268// @@protoc_insertion_point(message_byte_size_start:orc.proto.TimestampStatistics)
3269 size_t total_size = 0;
3270
3271 if (_internal_metadata_.have_unknown_fields()) {
3272 total_size +=
3273 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3274 _internal_metadata_.unknown_fields());
3275 }
3276 if (_has_bits_[0 / 32] & 15u) {
3277 // optional sint64 minimum = 1;
3278 if (has_minimum()) {
3279 total_size += 1 +
3280 ::google::protobuf::internal::WireFormatLite::SInt64Size(
3281 this->minimum());
3282 }
3283
3284 // optional sint64 maximum = 2;
3285 if (has_maximum()) {
3286 total_size += 1 +
3287 ::google::protobuf::internal::WireFormatLite::SInt64Size(
3288 this->maximum());
3289 }
3290
3291 // optional sint64 minimumUtc = 3;
3292 if (has_minimumutc()) {
3293 total_size += 1 +
3294 ::google::protobuf::internal::WireFormatLite::SInt64Size(
3295 this->minimumutc());
3296 }
3297
3298 // optional sint64 maximumUtc = 4;
3299 if (has_maximumutc()) {
3300 total_size += 1 +
3301 ::google::protobuf::internal::WireFormatLite::SInt64Size(
3302 this->maximumutc());
3303 }
3304
3305 }
3306 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3307 SetCachedSize(cached_size);
3308 return total_size;
3309}
3310
3311void TimestampStatistics::MergeFrom(const ::google::protobuf::Message& from) {
3312// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.TimestampStatistics)
3313 GOOGLE_DCHECK_NE(&from, this);
3314 const TimestampStatistics* source =
3315 ::google::protobuf::internal::DynamicCastToGenerated<const TimestampStatistics>(
3316 &from);
3317 if (source == NULL) {
3318 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.TimestampStatistics)
3319 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3320 } else {
3321 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.TimestampStatistics)
3322 MergeFrom(*source);
3323 }
3324}
3325
3326void TimestampStatistics::MergeFrom(const TimestampStatistics& from) {
3327// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.TimestampStatistics)
3328 GOOGLE_DCHECK_NE(&from, this);
3329 _internal_metadata_.MergeFrom(from._internal_metadata_);
3330 ::google::protobuf::uint32 cached_has_bits = 0;
3331 (void) cached_has_bits;
3332
3333 cached_has_bits = from._has_bits_[0];
3334 if (cached_has_bits & 15u) {
3335 if (cached_has_bits & 0x00000001u) {
3336 minimum_ = from.minimum_;
3337 }
3338 if (cached_has_bits & 0x00000002u) {
3339 maximum_ = from.maximum_;
3340 }
3341 if (cached_has_bits & 0x00000004u) {
3342 minimumutc_ = from.minimumutc_;
3343 }
3344 if (cached_has_bits & 0x00000008u) {
3345 maximumutc_ = from.maximumutc_;
3346 }
3347 _has_bits_[0] |= cached_has_bits;
3348 }
3349}
3350
3351void TimestampStatistics::CopyFrom(const ::google::protobuf::Message& from) {
3352// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.TimestampStatistics)
3353 if (&from == this) return;
3354 Clear();
3355 MergeFrom(from);
3356}
3357
3358void TimestampStatistics::CopyFrom(const TimestampStatistics& from) {
3359// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.TimestampStatistics)
3360 if (&from == this) return;
3361 Clear();
3362 MergeFrom(from);
3363}
3364
3365bool TimestampStatistics::IsInitialized() const {
3366 return true;
3367}
3368
3369void TimestampStatistics::Swap(TimestampStatistics* other) {
3370 if (other == this) return;
3371 InternalSwap(other);
3372}
3373void TimestampStatistics::InternalSwap(TimestampStatistics* other) {
3374 using std::swap;
3375 swap(minimum_, other->minimum_);
3376 swap(maximum_, other->maximum_);
3377 swap(minimumutc_, other->minimumutc_);
3378 swap(maximumutc_, other->maximumutc_);
3379 swap(_has_bits_[0], other->_has_bits_[0]);
3380 _internal_metadata_.Swap(&other->_internal_metadata_);
3381}
3382
3383::google::protobuf::Metadata TimestampStatistics::GetMetadata() const {
3384 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3385 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
3386}
3387
3388
3389// ===================================================================
3390
3391void BinaryStatistics::InitAsDefaultInstance() {
3392}
3393#if !defined(_MSC_VER) || _MSC_VER >= 1900
3394const int BinaryStatistics::kSumFieldNumber;
3395#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3396
3397BinaryStatistics::BinaryStatistics()
3398 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3399 ::google::protobuf::internal::InitSCC(
3400 &protobuf_orc_5fproto_2eproto::scc_info_BinaryStatistics.base);
3401 SharedCtor();
3402 // @@protoc_insertion_point(constructor:orc.proto.BinaryStatistics)
3403}
3404BinaryStatistics::BinaryStatistics(const BinaryStatistics& from)
3405 : ::google::protobuf::Message(),
3406 _internal_metadata_(NULL),
3407 _has_bits_(from._has_bits_) {
3408 _internal_metadata_.MergeFrom(from._internal_metadata_);
3409 sum_ = from.sum_;
3410 // @@protoc_insertion_point(copy_constructor:orc.proto.BinaryStatistics)
3411}
3412
3413void BinaryStatistics::SharedCtor() {
3414 sum_ = GOOGLE_LONGLONG(0);
3415}
3416
3417BinaryStatistics::~BinaryStatistics() {
3418 // @@protoc_insertion_point(destructor:orc.proto.BinaryStatistics)
3419 SharedDtor();
3420}
3421
3422void BinaryStatistics::SharedDtor() {
3423}
3424
3425void BinaryStatistics::SetCachedSize(int size) const {
3426 _cached_size_.Set(size);
3427}
3428const ::google::protobuf::Descriptor* BinaryStatistics::descriptor() {
3429 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3430 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3431}
3432
3433const BinaryStatistics& BinaryStatistics::default_instance() {
3434 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_BinaryStatistics.base);
3435 return *internal_default_instance();
3436}
3437
3438
3439void BinaryStatistics::Clear() {
3440// @@protoc_insertion_point(message_clear_start:orc.proto.BinaryStatistics)
3441 ::google::protobuf::uint32 cached_has_bits = 0;
3442 // Prevent compiler warnings about cached_has_bits being unused
3443 (void) cached_has_bits;
3444
3445 sum_ = GOOGLE_LONGLONG(0);
3446 _has_bits_.Clear();
3447 _internal_metadata_.Clear();
3448}
3449
3450bool BinaryStatistics::MergePartialFromCodedStream(
3451 ::google::protobuf::io::CodedInputStream* input) {
3452#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3453 ::google::protobuf::uint32 tag;
3454 // @@protoc_insertion_point(parse_start:orc.proto.BinaryStatistics)
3455 for (;;) {
3456 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3457 tag = p.first;
3458 if (!p.second) goto handle_unusual;
3459 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3460 // optional sint64 sum = 1;
3461 case 1: {
3462 if (static_cast< ::google::protobuf::uint8>(tag) ==
3463 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3464 set_has_sum();
3465 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3466 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
3467 input, &sum_)));
3468 } else {
3469 goto handle_unusual;
3470 }
3471 break;
3472 }
3473
3474 default: {
3475 handle_unusual:
3476 if (tag == 0) {
3477 goto success;
3478 }
3479 DO_(::google::protobuf::internal::WireFormat::SkipField(
3480 input, tag, _internal_metadata_.mutable_unknown_fields()));
3481 break;
3482 }
3483 }
3484 }
3485success:
3486 // @@protoc_insertion_point(parse_success:orc.proto.BinaryStatistics)
3487 return true;
3488failure:
3489 // @@protoc_insertion_point(parse_failure:orc.proto.BinaryStatistics)
3490 return false;
3491#undef DO_
3492}
3493
3494void BinaryStatistics::SerializeWithCachedSizes(
3495 ::google::protobuf::io::CodedOutputStream* output) const {
3496 // @@protoc_insertion_point(serialize_start:orc.proto.BinaryStatistics)
3497 ::google::protobuf::uint32 cached_has_bits = 0;
3498 (void) cached_has_bits;
3499
3500 cached_has_bits = _has_bits_[0];
3501 // optional sint64 sum = 1;
3502 if (cached_has_bits & 0x00000001u) {
3503 ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->sum(), output);
3504 }
3505
3506 if (_internal_metadata_.have_unknown_fields()) {
3507 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3508 _internal_metadata_.unknown_fields(), output);
3509 }
3510 // @@protoc_insertion_point(serialize_end:orc.proto.BinaryStatistics)
3511}
3512
3513::google::protobuf::uint8* BinaryStatistics::InternalSerializeWithCachedSizesToArray(
3514 bool deterministic, ::google::protobuf::uint8* target) const {
3515 (void)deterministic; // Unused
3516 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.BinaryStatistics)
3517 ::google::protobuf::uint32 cached_has_bits = 0;
3518 (void) cached_has_bits;
3519
3520 cached_has_bits = _has_bits_[0];
3521 // optional sint64 sum = 1;
3522 if (cached_has_bits & 0x00000001u) {
3523 target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->sum(), target);
3524 }
3525
3526 if (_internal_metadata_.have_unknown_fields()) {
3527 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3528 _internal_metadata_.unknown_fields(), target);
3529 }
3530 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.BinaryStatistics)
3531 return target;
3532}
3533
3534size_t BinaryStatistics::ByteSizeLong() const {
3535// @@protoc_insertion_point(message_byte_size_start:orc.proto.BinaryStatistics)
3536 size_t total_size = 0;
3537
3538 if (_internal_metadata_.have_unknown_fields()) {
3539 total_size +=
3540 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3541 _internal_metadata_.unknown_fields());
3542 }
3543 // optional sint64 sum = 1;
3544 if (has_sum()) {
3545 total_size += 1 +
3546 ::google::protobuf::internal::WireFormatLite::SInt64Size(
3547 this->sum());
3548 }
3549
3550 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3551 SetCachedSize(cached_size);
3552 return total_size;
3553}
3554
3555void BinaryStatistics::MergeFrom(const ::google::protobuf::Message& from) {
3556// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.BinaryStatistics)
3557 GOOGLE_DCHECK_NE(&from, this);
3558 const BinaryStatistics* source =
3559 ::google::protobuf::internal::DynamicCastToGenerated<const BinaryStatistics>(
3560 &from);
3561 if (source == NULL) {
3562 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.BinaryStatistics)
3563 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3564 } else {
3565 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.BinaryStatistics)
3566 MergeFrom(*source);
3567 }
3568}
3569
3570void BinaryStatistics::MergeFrom(const BinaryStatistics& from) {
3571// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.BinaryStatistics)
3572 GOOGLE_DCHECK_NE(&from, this);
3573 _internal_metadata_.MergeFrom(from._internal_metadata_);
3574 ::google::protobuf::uint32 cached_has_bits = 0;
3575 (void) cached_has_bits;
3576
3577 if (from.has_sum()) {
3578 set_sum(from.sum());
3579 }
3580}
3581
3582void BinaryStatistics::CopyFrom(const ::google::protobuf::Message& from) {
3583// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.BinaryStatistics)
3584 if (&from == this) return;
3585 Clear();
3586 MergeFrom(from);
3587}
3588
3589void BinaryStatistics::CopyFrom(const BinaryStatistics& from) {
3590// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.BinaryStatistics)
3591 if (&from == this) return;
3592 Clear();
3593 MergeFrom(from);
3594}
3595
3596bool BinaryStatistics::IsInitialized() const {
3597 return true;
3598}
3599
3600void BinaryStatistics::Swap(BinaryStatistics* other) {
3601 if (other == this) return;
3602 InternalSwap(other);
3603}
3604void BinaryStatistics::InternalSwap(BinaryStatistics* other) {
3605 using std::swap;
3606 swap(sum_, other->sum_);
3607 swap(_has_bits_[0], other->_has_bits_[0]);
3608 _internal_metadata_.Swap(&other->_internal_metadata_);
3609}
3610
3611::google::protobuf::Metadata BinaryStatistics::GetMetadata() const {
3612 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3613 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
3614}
3615
3616
3617// ===================================================================
3618
3619void ColumnStatistics::InitAsDefaultInstance() {
3620 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->intstatistics_ = const_cast< ::orc::proto::IntegerStatistics*>(
3621 ::orc::proto::IntegerStatistics::internal_default_instance());
3622 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->doublestatistics_ = const_cast< ::orc::proto::DoubleStatistics*>(
3623 ::orc::proto::DoubleStatistics::internal_default_instance());
3624 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->stringstatistics_ = const_cast< ::orc::proto::StringStatistics*>(
3625 ::orc::proto::StringStatistics::internal_default_instance());
3626 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->bucketstatistics_ = const_cast< ::orc::proto::BucketStatistics*>(
3627 ::orc::proto::BucketStatistics::internal_default_instance());
3628 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->decimalstatistics_ = const_cast< ::orc::proto::DecimalStatistics*>(
3629 ::orc::proto::DecimalStatistics::internal_default_instance());
3630 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->datestatistics_ = const_cast< ::orc::proto::DateStatistics*>(
3631 ::orc::proto::DateStatistics::internal_default_instance());
3632 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->binarystatistics_ = const_cast< ::orc::proto::BinaryStatistics*>(
3633 ::orc::proto::BinaryStatistics::internal_default_instance());
3634 ::orc::proto::_ColumnStatistics_default_instance_._instance.get_mutable()->timestampstatistics_ = const_cast< ::orc::proto::TimestampStatistics*>(
3635 ::orc::proto::TimestampStatistics::internal_default_instance());
3636}
3637#if !defined(_MSC_VER) || _MSC_VER >= 1900
3638const int ColumnStatistics::kNumberOfValuesFieldNumber;
3639const int ColumnStatistics::kIntStatisticsFieldNumber;
3640const int ColumnStatistics::kDoubleStatisticsFieldNumber;
3641const int ColumnStatistics::kStringStatisticsFieldNumber;
3642const int ColumnStatistics::kBucketStatisticsFieldNumber;
3643const int ColumnStatistics::kDecimalStatisticsFieldNumber;
3644const int ColumnStatistics::kDateStatisticsFieldNumber;
3645const int ColumnStatistics::kBinaryStatisticsFieldNumber;
3646const int ColumnStatistics::kTimestampStatisticsFieldNumber;
3647const int ColumnStatistics::kHasNullFieldNumber;
3648const int ColumnStatistics::kBytesOnDiskFieldNumber;
3649#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3650
3651ColumnStatistics::ColumnStatistics()
3652 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3653 ::google::protobuf::internal::InitSCC(
3654 &protobuf_orc_5fproto_2eproto::scc_info_ColumnStatistics.base);
3655 SharedCtor();
3656 // @@protoc_insertion_point(constructor:orc.proto.ColumnStatistics)
3657}
3658ColumnStatistics::ColumnStatistics(const ColumnStatistics& from)
3659 : ::google::protobuf::Message(),
3660 _internal_metadata_(NULL),
3661 _has_bits_(from._has_bits_) {
3662 _internal_metadata_.MergeFrom(from._internal_metadata_);
3663 if (from.has_intstatistics()) {
3664 intstatistics_ = new ::orc::proto::IntegerStatistics(*from.intstatistics_);
3665 } else {
3666 intstatistics_ = NULL;
3667 }
3668 if (from.has_doublestatistics()) {
3669 doublestatistics_ = new ::orc::proto::DoubleStatistics(*from.doublestatistics_);
3670 } else {
3671 doublestatistics_ = NULL;
3672 }
3673 if (from.has_stringstatistics()) {
3674 stringstatistics_ = new ::orc::proto::StringStatistics(*from.stringstatistics_);
3675 } else {
3676 stringstatistics_ = NULL;
3677 }
3678 if (from.has_bucketstatistics()) {
3679 bucketstatistics_ = new ::orc::proto::BucketStatistics(*from.bucketstatistics_);
3680 } else {
3681 bucketstatistics_ = NULL;
3682 }
3683 if (from.has_decimalstatistics()) {
3684 decimalstatistics_ = new ::orc::proto::DecimalStatistics(*from.decimalstatistics_);
3685 } else {
3686 decimalstatistics_ = NULL;
3687 }
3688 if (from.has_datestatistics()) {
3689 datestatistics_ = new ::orc::proto::DateStatistics(*from.datestatistics_);
3690 } else {
3691 datestatistics_ = NULL;
3692 }
3693 if (from.has_binarystatistics()) {
3694 binarystatistics_ = new ::orc::proto::BinaryStatistics(*from.binarystatistics_);
3695 } else {
3696 binarystatistics_ = NULL;
3697 }
3698 if (from.has_timestampstatistics()) {
3699 timestampstatistics_ = new ::orc::proto::TimestampStatistics(*from.timestampstatistics_);
3700 } else {
3701 timestampstatistics_ = NULL;
3702 }
3703 ::memcpy(&numberofvalues_, &from.numberofvalues_,
3704 static_cast<size_t>(reinterpret_cast<char*>(&hasnull_) -
3705 reinterpret_cast<char*>(&numberofvalues_)) + sizeof(hasnull_));
3706 // @@protoc_insertion_point(copy_constructor:orc.proto.ColumnStatistics)
3707}
3708
3709void ColumnStatistics::SharedCtor() {
3710 ::memset(&intstatistics_, 0, static_cast<size_t>(
3711 reinterpret_cast<char*>(&hasnull_) -
3712 reinterpret_cast<char*>(&intstatistics_)) + sizeof(hasnull_));
3713}
3714
3715ColumnStatistics::~ColumnStatistics() {
3716 // @@protoc_insertion_point(destructor:orc.proto.ColumnStatistics)
3717 SharedDtor();
3718}
3719
3720void ColumnStatistics::SharedDtor() {
3721 if (this != internal_default_instance()) delete intstatistics_;
3722 if (this != internal_default_instance()) delete doublestatistics_;
3723 if (this != internal_default_instance()) delete stringstatistics_;
3724 if (this != internal_default_instance()) delete bucketstatistics_;
3725 if (this != internal_default_instance()) delete decimalstatistics_;
3726 if (this != internal_default_instance()) delete datestatistics_;
3727 if (this != internal_default_instance()) delete binarystatistics_;
3728 if (this != internal_default_instance()) delete timestampstatistics_;
3729}
3730
3731void ColumnStatistics::SetCachedSize(int size) const {
3732 _cached_size_.Set(size);
3733}
3734const ::google::protobuf::Descriptor* ColumnStatistics::descriptor() {
3735 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
3736 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3737}
3738
3739const ColumnStatistics& ColumnStatistics::default_instance() {
3740 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_ColumnStatistics.base);
3741 return *internal_default_instance();
3742}
3743
3744
3745void ColumnStatistics::Clear() {
3746// @@protoc_insertion_point(message_clear_start:orc.proto.ColumnStatistics)
3747 ::google::protobuf::uint32 cached_has_bits = 0;
3748 // Prevent compiler warnings about cached_has_bits being unused
3749 (void) cached_has_bits;
3750
3751 cached_has_bits = _has_bits_[0];
3752 if (cached_has_bits & 255u) {
3753 if (cached_has_bits & 0x00000001u) {
3754 GOOGLE_DCHECK(intstatistics_ != NULL);
3755 intstatistics_->Clear();
3756 }
3757 if (cached_has_bits & 0x00000002u) {
3758 GOOGLE_DCHECK(doublestatistics_ != NULL);
3759 doublestatistics_->Clear();
3760 }
3761 if (cached_has_bits & 0x00000004u) {
3762 GOOGLE_DCHECK(stringstatistics_ != NULL);
3763 stringstatistics_->Clear();
3764 }
3765 if (cached_has_bits & 0x00000008u) {
3766 GOOGLE_DCHECK(bucketstatistics_ != NULL);
3767 bucketstatistics_->Clear();
3768 }
3769 if (cached_has_bits & 0x00000010u) {
3770 GOOGLE_DCHECK(decimalstatistics_ != NULL);
3771 decimalstatistics_->Clear();
3772 }
3773 if (cached_has_bits & 0x00000020u) {
3774 GOOGLE_DCHECK(datestatistics_ != NULL);
3775 datestatistics_->Clear();
3776 }
3777 if (cached_has_bits & 0x00000040u) {
3778 GOOGLE_DCHECK(binarystatistics_ != NULL);
3779 binarystatistics_->Clear();
3780 }
3781 if (cached_has_bits & 0x00000080u) {
3782 GOOGLE_DCHECK(timestampstatistics_ != NULL);
3783 timestampstatistics_->Clear();
3784 }
3785 }
3786 if (cached_has_bits & 1792u) {
3787 ::memset(&numberofvalues_, 0, static_cast<size_t>(
3788 reinterpret_cast<char*>(&hasnull_) -
3789 reinterpret_cast<char*>(&numberofvalues_)) + sizeof(hasnull_));
3790 }
3791 _has_bits_.Clear();
3792 _internal_metadata_.Clear();
3793}
3794
3795bool ColumnStatistics::MergePartialFromCodedStream(
3796 ::google::protobuf::io::CodedInputStream* input) {
3797#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3798 ::google::protobuf::uint32 tag;
3799 // @@protoc_insertion_point(parse_start:orc.proto.ColumnStatistics)
3800 for (;;) {
3801 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3802 tag = p.first;
3803 if (!p.second) goto handle_unusual;
3804 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3805 // optional uint64 numberOfValues = 1;
3806 case 1: {
3807 if (static_cast< ::google::protobuf::uint8>(tag) ==
3808 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3809 set_has_numberofvalues();
3810 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3811 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3812 input, &numberofvalues_)));
3813 } else {
3814 goto handle_unusual;
3815 }
3816 break;
3817 }
3818
3819 // optional .orc.proto.IntegerStatistics intStatistics = 2;
3820 case 2: {
3821 if (static_cast< ::google::protobuf::uint8>(tag) ==
3822 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3823 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3824 input, mutable_intstatistics()));
3825 } else {
3826 goto handle_unusual;
3827 }
3828 break;
3829 }
3830
3831 // optional .orc.proto.DoubleStatistics doubleStatistics = 3;
3832 case 3: {
3833 if (static_cast< ::google::protobuf::uint8>(tag) ==
3834 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3835 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3836 input, mutable_doublestatistics()));
3837 } else {
3838 goto handle_unusual;
3839 }
3840 break;
3841 }
3842
3843 // optional .orc.proto.StringStatistics stringStatistics = 4;
3844 case 4: {
3845 if (static_cast< ::google::protobuf::uint8>(tag) ==
3846 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3847 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3848 input, mutable_stringstatistics()));
3849 } else {
3850 goto handle_unusual;
3851 }
3852 break;
3853 }
3854
3855 // optional .orc.proto.BucketStatistics bucketStatistics = 5;
3856 case 5: {
3857 if (static_cast< ::google::protobuf::uint8>(tag) ==
3858 static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
3859 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3860 input, mutable_bucketstatistics()));
3861 } else {
3862 goto handle_unusual;
3863 }
3864 break;
3865 }
3866
3867 // optional .orc.proto.DecimalStatistics decimalStatistics = 6;
3868 case 6: {
3869 if (static_cast< ::google::protobuf::uint8>(tag) ==
3870 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
3871 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3872 input, mutable_decimalstatistics()));
3873 } else {
3874 goto handle_unusual;
3875 }
3876 break;
3877 }
3878
3879 // optional .orc.proto.DateStatistics dateStatistics = 7;
3880 case 7: {
3881 if (static_cast< ::google::protobuf::uint8>(tag) ==
3882 static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
3883 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3884 input, mutable_datestatistics()));
3885 } else {
3886 goto handle_unusual;
3887 }
3888 break;
3889 }
3890
3891 // optional .orc.proto.BinaryStatistics binaryStatistics = 8;
3892 case 8: {
3893 if (static_cast< ::google::protobuf::uint8>(tag) ==
3894 static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
3895 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3896 input, mutable_binarystatistics()));
3897 } else {
3898 goto handle_unusual;
3899 }
3900 break;
3901 }
3902
3903 // optional .orc.proto.TimestampStatistics timestampStatistics = 9;
3904 case 9: {
3905 if (static_cast< ::google::protobuf::uint8>(tag) ==
3906 static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
3907 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3908 input, mutable_timestampstatistics()));
3909 } else {
3910 goto handle_unusual;
3911 }
3912 break;
3913 }
3914
3915 // optional bool hasNull = 10;
3916 case 10: {
3917 if (static_cast< ::google::protobuf::uint8>(tag) ==
3918 static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
3919 set_has_hasnull();
3920 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3921 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3922 input, &hasnull_)));
3923 } else {
3924 goto handle_unusual;
3925 }
3926 break;
3927 }
3928
3929 // optional uint64 bytesOnDisk = 11;
3930 case 11: {
3931 if (static_cast< ::google::protobuf::uint8>(tag) ==
3932 static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
3933 set_has_bytesondisk();
3934 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3935 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3936 input, &bytesondisk_)));
3937 } else {
3938 goto handle_unusual;
3939 }
3940 break;
3941 }
3942
3943 default: {
3944 handle_unusual:
3945 if (tag == 0) {
3946 goto success;
3947 }
3948 DO_(::google::protobuf::internal::WireFormat::SkipField(
3949 input, tag, _internal_metadata_.mutable_unknown_fields()));
3950 break;
3951 }
3952 }
3953 }
3954success:
3955 // @@protoc_insertion_point(parse_success:orc.proto.ColumnStatistics)
3956 return true;
3957failure:
3958 // @@protoc_insertion_point(parse_failure:orc.proto.ColumnStatistics)
3959 return false;
3960#undef DO_
3961}
3962
3963void ColumnStatistics::SerializeWithCachedSizes(
3964 ::google::protobuf::io::CodedOutputStream* output) const {
3965 // @@protoc_insertion_point(serialize_start:orc.proto.ColumnStatistics)
3966 ::google::protobuf::uint32 cached_has_bits = 0;
3967 (void) cached_has_bits;
3968
3969 cached_has_bits = _has_bits_[0];
3970 // optional uint64 numberOfValues = 1;
3971 if (cached_has_bits & 0x00000100u) {
3972 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->numberofvalues(), output);
3973 }
3974
3975 // optional .orc.proto.IntegerStatistics intStatistics = 2;
3976 if (cached_has_bits & 0x00000001u) {
3977 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3978 2, this->_internal_intstatistics(), output);
3979 }
3980
3981 // optional .orc.proto.DoubleStatistics doubleStatistics = 3;
3982 if (cached_has_bits & 0x00000002u) {
3983 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3984 3, this->_internal_doublestatistics(), output);
3985 }
3986
3987 // optional .orc.proto.StringStatistics stringStatistics = 4;
3988 if (cached_has_bits & 0x00000004u) {
3989 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3990 4, this->_internal_stringstatistics(), output);
3991 }
3992
3993 // optional .orc.proto.BucketStatistics bucketStatistics = 5;
3994 if (cached_has_bits & 0x00000008u) {
3995 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3996 5, this->_internal_bucketstatistics(), output);
3997 }
3998
3999 // optional .orc.proto.DecimalStatistics decimalStatistics = 6;
4000 if (cached_has_bits & 0x00000010u) {
4001 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4002 6, this->_internal_decimalstatistics(), output);
4003 }
4004
4005 // optional .orc.proto.DateStatistics dateStatistics = 7;
4006 if (cached_has_bits & 0x00000020u) {
4007 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4008 7, this->_internal_datestatistics(), output);
4009 }
4010
4011 // optional .orc.proto.BinaryStatistics binaryStatistics = 8;
4012 if (cached_has_bits & 0x00000040u) {
4013 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4014 8, this->_internal_binarystatistics(), output);
4015 }
4016
4017 // optional .orc.proto.TimestampStatistics timestampStatistics = 9;
4018 if (cached_has_bits & 0x00000080u) {
4019 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4020 9, this->_internal_timestampstatistics(), output);
4021 }
4022
4023 // optional bool hasNull = 10;
4024 if (cached_has_bits & 0x00000400u) {
4025 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->hasnull(), output);
4026 }
4027
4028 // optional uint64 bytesOnDisk = 11;
4029 if (cached_has_bits & 0x00000200u) {
4030 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->bytesondisk(), output);
4031 }
4032
4033 if (_internal_metadata_.have_unknown_fields()) {
4034 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4035 _internal_metadata_.unknown_fields(), output);
4036 }
4037 // @@protoc_insertion_point(serialize_end:orc.proto.ColumnStatistics)
4038}
4039
4040::google::protobuf::uint8* ColumnStatistics::InternalSerializeWithCachedSizesToArray(
4041 bool deterministic, ::google::protobuf::uint8* target) const {
4042 (void)deterministic; // Unused
4043 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.ColumnStatistics)
4044 ::google::protobuf::uint32 cached_has_bits = 0;
4045 (void) cached_has_bits;
4046
4047 cached_has_bits = _has_bits_[0];
4048 // optional uint64 numberOfValues = 1;
4049 if (cached_has_bits & 0x00000100u) {
4050 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->numberofvalues(), target);
4051 }
4052
4053 // optional .orc.proto.IntegerStatistics intStatistics = 2;
4054 if (cached_has_bits & 0x00000001u) {
4055 target = ::google::protobuf::internal::WireFormatLite::
4056 InternalWriteMessageToArray(
4057 2, this->_internal_intstatistics(), deterministic, target);
4058 }
4059
4060 // optional .orc.proto.DoubleStatistics doubleStatistics = 3;
4061 if (cached_has_bits & 0x00000002u) {
4062 target = ::google::protobuf::internal::WireFormatLite::
4063 InternalWriteMessageToArray(
4064 3, this->_internal_doublestatistics(), deterministic, target);
4065 }
4066
4067 // optional .orc.proto.StringStatistics stringStatistics = 4;
4068 if (cached_has_bits & 0x00000004u) {
4069 target = ::google::protobuf::internal::WireFormatLite::
4070 InternalWriteMessageToArray(
4071 4, this->_internal_stringstatistics(), deterministic, target);
4072 }
4073
4074 // optional .orc.proto.BucketStatistics bucketStatistics = 5;
4075 if (cached_has_bits & 0x00000008u) {
4076 target = ::google::protobuf::internal::WireFormatLite::
4077 InternalWriteMessageToArray(
4078 5, this->_internal_bucketstatistics(), deterministic, target);
4079 }
4080
4081 // optional .orc.proto.DecimalStatistics decimalStatistics = 6;
4082 if (cached_has_bits & 0x00000010u) {
4083 target = ::google::protobuf::internal::WireFormatLite::
4084 InternalWriteMessageToArray(
4085 6, this->_internal_decimalstatistics(), deterministic, target);
4086 }
4087
4088 // optional .orc.proto.DateStatistics dateStatistics = 7;
4089 if (cached_has_bits & 0x00000020u) {
4090 target = ::google::protobuf::internal::WireFormatLite::
4091 InternalWriteMessageToArray(
4092 7, this->_internal_datestatistics(), deterministic, target);
4093 }
4094
4095 // optional .orc.proto.BinaryStatistics binaryStatistics = 8;
4096 if (cached_has_bits & 0x00000040u) {
4097 target = ::google::protobuf::internal::WireFormatLite::
4098 InternalWriteMessageToArray(
4099 8, this->_internal_binarystatistics(), deterministic, target);
4100 }
4101
4102 // optional .orc.proto.TimestampStatistics timestampStatistics = 9;
4103 if (cached_has_bits & 0x00000080u) {
4104 target = ::google::protobuf::internal::WireFormatLite::
4105 InternalWriteMessageToArray(
4106 9, this->_internal_timestampstatistics(), deterministic, target);
4107 }
4108
4109 // optional bool hasNull = 10;
4110 if (cached_has_bits & 0x00000400u) {
4111 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->hasnull(), target);
4112 }
4113
4114 // optional uint64 bytesOnDisk = 11;
4115 if (cached_has_bits & 0x00000200u) {
4116 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->bytesondisk(), target);
4117 }
4118
4119 if (_internal_metadata_.have_unknown_fields()) {
4120 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4121 _internal_metadata_.unknown_fields(), target);
4122 }
4123 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.ColumnStatistics)
4124 return target;
4125}
4126
4127size_t ColumnStatistics::ByteSizeLong() const {
4128// @@protoc_insertion_point(message_byte_size_start:orc.proto.ColumnStatistics)
4129 size_t total_size = 0;
4130
4131 if (_internal_metadata_.have_unknown_fields()) {
4132 total_size +=
4133 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4134 _internal_metadata_.unknown_fields());
4135 }
4136 if (_has_bits_[0 / 32] & 255u) {
4137 // optional .orc.proto.IntegerStatistics intStatistics = 2;
4138 if (has_intstatistics()) {
4139 total_size += 1 +
4140 ::google::protobuf::internal::WireFormatLite::MessageSize(
4141 *intstatistics_);
4142 }
4143
4144 // optional .orc.proto.DoubleStatistics doubleStatistics = 3;
4145 if (has_doublestatistics()) {
4146 total_size += 1 +
4147 ::google::protobuf::internal::WireFormatLite::MessageSize(
4148 *doublestatistics_);
4149 }
4150
4151 // optional .orc.proto.StringStatistics stringStatistics = 4;
4152 if (has_stringstatistics()) {
4153 total_size += 1 +
4154 ::google::protobuf::internal::WireFormatLite::MessageSize(
4155 *stringstatistics_);
4156 }
4157
4158 // optional .orc.proto.BucketStatistics bucketStatistics = 5;
4159 if (has_bucketstatistics()) {
4160 total_size += 1 +
4161 ::google::protobuf::internal::WireFormatLite::MessageSize(
4162 *bucketstatistics_);
4163 }
4164
4165 // optional .orc.proto.DecimalStatistics decimalStatistics = 6;
4166 if (has_decimalstatistics()) {
4167 total_size += 1 +
4168 ::google::protobuf::internal::WireFormatLite::MessageSize(
4169 *decimalstatistics_);
4170 }
4171
4172 // optional .orc.proto.DateStatistics dateStatistics = 7;
4173 if (has_datestatistics()) {
4174 total_size += 1 +
4175 ::google::protobuf::internal::WireFormatLite::MessageSize(
4176 *datestatistics_);
4177 }
4178
4179 // optional .orc.proto.BinaryStatistics binaryStatistics = 8;
4180 if (has_binarystatistics()) {
4181 total_size += 1 +
4182 ::google::protobuf::internal::WireFormatLite::MessageSize(
4183 *binarystatistics_);
4184 }
4185
4186 // optional .orc.proto.TimestampStatistics timestampStatistics = 9;
4187 if (has_timestampstatistics()) {
4188 total_size += 1 +
4189 ::google::protobuf::internal::WireFormatLite::MessageSize(
4190 *timestampstatistics_);
4191 }
4192
4193 }
4194 if (_has_bits_[8 / 32] & 1792u) {
4195 // optional uint64 numberOfValues = 1;
4196 if (has_numberofvalues()) {
4197 total_size += 1 +
4198 ::google::protobuf::internal::WireFormatLite::UInt64Size(
4199 this->numberofvalues());
4200 }
4201
4202 // optional uint64 bytesOnDisk = 11;
4203 if (has_bytesondisk()) {
4204 total_size += 1 +
4205 ::google::protobuf::internal::WireFormatLite::UInt64Size(
4206 this->bytesondisk());
4207 }
4208
4209 // optional bool hasNull = 10;
4210 if (has_hasnull()) {
4211 total_size += 1 + 1;
4212 }
4213
4214 }
4215 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4216 SetCachedSize(cached_size);
4217 return total_size;
4218}
4219
4220void ColumnStatistics::MergeFrom(const ::google::protobuf::Message& from) {
4221// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.ColumnStatistics)
4222 GOOGLE_DCHECK_NE(&from, this);
4223 const ColumnStatistics* source =
4224 ::google::protobuf::internal::DynamicCastToGenerated<const ColumnStatistics>(
4225 &from);
4226 if (source == NULL) {
4227 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.ColumnStatistics)
4228 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4229 } else {
4230 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.ColumnStatistics)
4231 MergeFrom(*source);
4232 }
4233}
4234
4235void ColumnStatistics::MergeFrom(const ColumnStatistics& from) {
4236// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.ColumnStatistics)
4237 GOOGLE_DCHECK_NE(&from, this);
4238 _internal_metadata_.MergeFrom(from._internal_metadata_);
4239 ::google::protobuf::uint32 cached_has_bits = 0;
4240 (void) cached_has_bits;
4241
4242 cached_has_bits = from._has_bits_[0];
4243 if (cached_has_bits & 255u) {
4244 if (cached_has_bits & 0x00000001u) {
4245 mutable_intstatistics()->::orc::proto::IntegerStatistics::MergeFrom(from.intstatistics());
4246 }
4247 if (cached_has_bits & 0x00000002u) {
4248 mutable_doublestatistics()->::orc::proto::DoubleStatistics::MergeFrom(from.doublestatistics());
4249 }
4250 if (cached_has_bits & 0x00000004u) {
4251 mutable_stringstatistics()->::orc::proto::StringStatistics::MergeFrom(from.stringstatistics());
4252 }
4253 if (cached_has_bits & 0x00000008u) {
4254 mutable_bucketstatistics()->::orc::proto::BucketStatistics::MergeFrom(from.bucketstatistics());
4255 }
4256 if (cached_has_bits & 0x00000010u) {
4257 mutable_decimalstatistics()->::orc::proto::DecimalStatistics::MergeFrom(from.decimalstatistics());
4258 }
4259 if (cached_has_bits & 0x00000020u) {
4260 mutable_datestatistics()->::orc::proto::DateStatistics::MergeFrom(from.datestatistics());
4261 }
4262 if (cached_has_bits & 0x00000040u) {
4263 mutable_binarystatistics()->::orc::proto::BinaryStatistics::MergeFrom(from.binarystatistics());
4264 }
4265 if (cached_has_bits & 0x00000080u) {
4266 mutable_timestampstatistics()->::orc::proto::TimestampStatistics::MergeFrom(from.timestampstatistics());
4267 }
4268 }
4269 if (cached_has_bits & 1792u) {
4270 if (cached_has_bits & 0x00000100u) {
4271 numberofvalues_ = from.numberofvalues_;
4272 }
4273 if (cached_has_bits & 0x00000200u) {
4274 bytesondisk_ = from.bytesondisk_;
4275 }
4276 if (cached_has_bits & 0x00000400u) {
4277 hasnull_ = from.hasnull_;
4278 }
4279 _has_bits_[0] |= cached_has_bits;
4280 }
4281}
4282
4283void ColumnStatistics::CopyFrom(const ::google::protobuf::Message& from) {
4284// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.ColumnStatistics)
4285 if (&from == this) return;
4286 Clear();
4287 MergeFrom(from);
4288}
4289
4290void ColumnStatistics::CopyFrom(const ColumnStatistics& from) {
4291// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.ColumnStatistics)
4292 if (&from == this) return;
4293 Clear();
4294 MergeFrom(from);
4295}
4296
4297bool ColumnStatistics::IsInitialized() const {
4298 return true;
4299}
4300
4301void ColumnStatistics::Swap(ColumnStatistics* other) {
4302 if (other == this) return;
4303 InternalSwap(other);
4304}
4305void ColumnStatistics::InternalSwap(ColumnStatistics* other) {
4306 using std::swap;
4307 swap(intstatistics_, other->intstatistics_);
4308 swap(doublestatistics_, other->doublestatistics_);
4309 swap(stringstatistics_, other->stringstatistics_);
4310 swap(bucketstatistics_, other->bucketstatistics_);
4311 swap(decimalstatistics_, other->decimalstatistics_);
4312 swap(datestatistics_, other->datestatistics_);
4313 swap(binarystatistics_, other->binarystatistics_);
4314 swap(timestampstatistics_, other->timestampstatistics_);
4315 swap(numberofvalues_, other->numberofvalues_);
4316 swap(bytesondisk_, other->bytesondisk_);
4317 swap(hasnull_, other->hasnull_);
4318 swap(_has_bits_[0], other->_has_bits_[0]);
4319 _internal_metadata_.Swap(&other->_internal_metadata_);
4320}
4321
4322::google::protobuf::Metadata ColumnStatistics::GetMetadata() const {
4323 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4324 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
4325}
4326
4327
4328// ===================================================================
4329
4330void RowIndexEntry::InitAsDefaultInstance() {
4331 ::orc::proto::_RowIndexEntry_default_instance_._instance.get_mutable()->statistics_ = const_cast< ::orc::proto::ColumnStatistics*>(
4332 ::orc::proto::ColumnStatistics::internal_default_instance());
4333}
4334#if !defined(_MSC_VER) || _MSC_VER >= 1900
4335const int RowIndexEntry::kPositionsFieldNumber;
4336const int RowIndexEntry::kStatisticsFieldNumber;
4337#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4338
4339RowIndexEntry::RowIndexEntry()
4340 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4341 ::google::protobuf::internal::InitSCC(
4342 &protobuf_orc_5fproto_2eproto::scc_info_RowIndexEntry.base);
4343 SharedCtor();
4344 // @@protoc_insertion_point(constructor:orc.proto.RowIndexEntry)
4345}
4346RowIndexEntry::RowIndexEntry(const RowIndexEntry& from)
4347 : ::google::protobuf::Message(),
4348 _internal_metadata_(NULL),
4349 _has_bits_(from._has_bits_),
4350 positions_(from.positions_) {
4351 _internal_metadata_.MergeFrom(from._internal_metadata_);
4352 if (from.has_statistics()) {
4353 statistics_ = new ::orc::proto::ColumnStatistics(*from.statistics_);
4354 } else {
4355 statistics_ = NULL;
4356 }
4357 // @@protoc_insertion_point(copy_constructor:orc.proto.RowIndexEntry)
4358}
4359
4360void RowIndexEntry::SharedCtor() {
4361 statistics_ = NULL;
4362}
4363
4364RowIndexEntry::~RowIndexEntry() {
4365 // @@protoc_insertion_point(destructor:orc.proto.RowIndexEntry)
4366 SharedDtor();
4367}
4368
4369void RowIndexEntry::SharedDtor() {
4370 if (this != internal_default_instance()) delete statistics_;
4371}
4372
4373void RowIndexEntry::SetCachedSize(int size) const {
4374 _cached_size_.Set(size);
4375}
4376const ::google::protobuf::Descriptor* RowIndexEntry::descriptor() {
4377 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4378 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4379}
4380
4381const RowIndexEntry& RowIndexEntry::default_instance() {
4382 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_RowIndexEntry.base);
4383 return *internal_default_instance();
4384}
4385
4386
4387void RowIndexEntry::Clear() {
4388// @@protoc_insertion_point(message_clear_start:orc.proto.RowIndexEntry)
4389 ::google::protobuf::uint32 cached_has_bits = 0;
4390 // Prevent compiler warnings about cached_has_bits being unused
4391 (void) cached_has_bits;
4392
4393 positions_.Clear();
4394 cached_has_bits = _has_bits_[0];
4395 if (cached_has_bits & 0x00000001u) {
4396 GOOGLE_DCHECK(statistics_ != NULL);
4397 statistics_->Clear();
4398 }
4399 _has_bits_.Clear();
4400 _internal_metadata_.Clear();
4401}
4402
4403bool RowIndexEntry::MergePartialFromCodedStream(
4404 ::google::protobuf::io::CodedInputStream* input) {
4405#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4406 ::google::protobuf::uint32 tag;
4407 // @@protoc_insertion_point(parse_start:orc.proto.RowIndexEntry)
4408 for (;;) {
4409 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4410 tag = p.first;
4411 if (!p.second) goto handle_unusual;
4412 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4413 // repeated uint64 positions = 1 [packed = true];
4414 case 1: {
4415 if (static_cast< ::google::protobuf::uint8>(tag) ==
4416 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4417 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
4418 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4419 input, this->mutable_positions())));
4420 } else if (
4421 static_cast< ::google::protobuf::uint8>(tag) ==
4422 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4423 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
4424 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4425 1, 10u, input, this->mutable_positions())));
4426 } else {
4427 goto handle_unusual;
4428 }
4429 break;
4430 }
4431
4432 // optional .orc.proto.ColumnStatistics statistics = 2;
4433 case 2: {
4434 if (static_cast< ::google::protobuf::uint8>(tag) ==
4435 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4436 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4437 input, mutable_statistics()));
4438 } else {
4439 goto handle_unusual;
4440 }
4441 break;
4442 }
4443
4444 default: {
4445 handle_unusual:
4446 if (tag == 0) {
4447 goto success;
4448 }
4449 DO_(::google::protobuf::internal::WireFormat::SkipField(
4450 input, tag, _internal_metadata_.mutable_unknown_fields()));
4451 break;
4452 }
4453 }
4454 }
4455success:
4456 // @@protoc_insertion_point(parse_success:orc.proto.RowIndexEntry)
4457 return true;
4458failure:
4459 // @@protoc_insertion_point(parse_failure:orc.proto.RowIndexEntry)
4460 return false;
4461#undef DO_
4462}
4463
4464void RowIndexEntry::SerializeWithCachedSizes(
4465 ::google::protobuf::io::CodedOutputStream* output) const {
4466 // @@protoc_insertion_point(serialize_start:orc.proto.RowIndexEntry)
4467 ::google::protobuf::uint32 cached_has_bits = 0;
4468 (void) cached_has_bits;
4469
4470 // repeated uint64 positions = 1 [packed = true];
4471 if (this->positions_size() > 0) {
4472 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
4473 output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
4474 _positions_cached_byte_size_));
4475 }
4476 for (int i = 0, n = this->positions_size(); i < n; i++) {
4477 ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
4478 this->positions(i), output);
4479 }
4480
4481 cached_has_bits = _has_bits_[0];
4482 // optional .orc.proto.ColumnStatistics statistics = 2;
4483 if (cached_has_bits & 0x00000001u) {
4484 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4485 2, this->_internal_statistics(), output);
4486 }
4487
4488 if (_internal_metadata_.have_unknown_fields()) {
4489 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4490 _internal_metadata_.unknown_fields(), output);
4491 }
4492 // @@protoc_insertion_point(serialize_end:orc.proto.RowIndexEntry)
4493}
4494
4495::google::protobuf::uint8* RowIndexEntry::InternalSerializeWithCachedSizesToArray(
4496 bool deterministic, ::google::protobuf::uint8* target) const {
4497 (void)deterministic; // Unused
4498 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.RowIndexEntry)
4499 ::google::protobuf::uint32 cached_has_bits = 0;
4500 (void) cached_has_bits;
4501
4502 // repeated uint64 positions = 1 [packed = true];
4503 if (this->positions_size() > 0) {
4504 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
4505 1,
4506 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
4507 target);
4508 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
4509 static_cast< ::google::protobuf::int32>(
4510 _positions_cached_byte_size_), target);
4511 target = ::google::protobuf::internal::WireFormatLite::
4512 WriteUInt64NoTagToArray(this->positions_, target);
4513 }
4514
4515 cached_has_bits = _has_bits_[0];
4516 // optional .orc.proto.ColumnStatistics statistics = 2;
4517 if (cached_has_bits & 0x00000001u) {
4518 target = ::google::protobuf::internal::WireFormatLite::
4519 InternalWriteMessageToArray(
4520 2, this->_internal_statistics(), deterministic, target);
4521 }
4522
4523 if (_internal_metadata_.have_unknown_fields()) {
4524 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4525 _internal_metadata_.unknown_fields(), target);
4526 }
4527 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.RowIndexEntry)
4528 return target;
4529}
4530
4531size_t RowIndexEntry::ByteSizeLong() const {
4532// @@protoc_insertion_point(message_byte_size_start:orc.proto.RowIndexEntry)
4533 size_t total_size = 0;
4534
4535 if (_internal_metadata_.have_unknown_fields()) {
4536 total_size +=
4537 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4538 _internal_metadata_.unknown_fields());
4539 }
4540 // repeated uint64 positions = 1 [packed = true];
4541 {
4542 size_t data_size = ::google::protobuf::internal::WireFormatLite::
4543 UInt64Size(this->positions_);
4544 if (data_size > 0) {
4545 total_size += 1 +
4546 ::google::protobuf::internal::WireFormatLite::Int32Size(
4547 static_cast< ::google::protobuf::int32>(data_size));
4548 }
4549 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
4550 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4551 _positions_cached_byte_size_ = cached_size;
4552 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4553 total_size += data_size;
4554 }
4555
4556 // optional .orc.proto.ColumnStatistics statistics = 2;
4557 if (has_statistics()) {
4558 total_size += 1 +
4559 ::google::protobuf::internal::WireFormatLite::MessageSize(
4560 *statistics_);
4561 }
4562
4563 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4564 SetCachedSize(cached_size);
4565 return total_size;
4566}
4567
4568void RowIndexEntry::MergeFrom(const ::google::protobuf::Message& from) {
4569// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.RowIndexEntry)
4570 GOOGLE_DCHECK_NE(&from, this);
4571 const RowIndexEntry* source =
4572 ::google::protobuf::internal::DynamicCastToGenerated<const RowIndexEntry>(
4573 &from);
4574 if (source == NULL) {
4575 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.RowIndexEntry)
4576 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4577 } else {
4578 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.RowIndexEntry)
4579 MergeFrom(*source);
4580 }
4581}
4582
4583void RowIndexEntry::MergeFrom(const RowIndexEntry& from) {
4584// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.RowIndexEntry)
4585 GOOGLE_DCHECK_NE(&from, this);
4586 _internal_metadata_.MergeFrom(from._internal_metadata_);
4587 ::google::protobuf::uint32 cached_has_bits = 0;
4588 (void) cached_has_bits;
4589
4590 positions_.MergeFrom(from.positions_);
4591 if (from.has_statistics()) {
4592 mutable_statistics()->::orc::proto::ColumnStatistics::MergeFrom(from.statistics());
4593 }
4594}
4595
4596void RowIndexEntry::CopyFrom(const ::google::protobuf::Message& from) {
4597// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.RowIndexEntry)
4598 if (&from == this) return;
4599 Clear();
4600 MergeFrom(from);
4601}
4602
4603void RowIndexEntry::CopyFrom(const RowIndexEntry& from) {
4604// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.RowIndexEntry)
4605 if (&from == this) return;
4606 Clear();
4607 MergeFrom(from);
4608}
4609
4610bool RowIndexEntry::IsInitialized() const {
4611 return true;
4612}
4613
4614void RowIndexEntry::Swap(RowIndexEntry* other) {
4615 if (other == this) return;
4616 InternalSwap(other);
4617}
4618void RowIndexEntry::InternalSwap(RowIndexEntry* other) {
4619 using std::swap;
4620 positions_.InternalSwap(&other->positions_);
4621 swap(statistics_, other->statistics_);
4622 swap(_has_bits_[0], other->_has_bits_[0]);
4623 _internal_metadata_.Swap(&other->_internal_metadata_);
4624}
4625
4626::google::protobuf::Metadata RowIndexEntry::GetMetadata() const {
4627 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4628 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
4629}
4630
4631
4632// ===================================================================
4633
4634void RowIndex::InitAsDefaultInstance() {
4635}
4636#if !defined(_MSC_VER) || _MSC_VER >= 1900
4637const int RowIndex::kEntryFieldNumber;
4638#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4639
4640RowIndex::RowIndex()
4641 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4642 ::google::protobuf::internal::InitSCC(
4643 &protobuf_orc_5fproto_2eproto::scc_info_RowIndex.base);
4644 SharedCtor();
4645 // @@protoc_insertion_point(constructor:orc.proto.RowIndex)
4646}
4647RowIndex::RowIndex(const RowIndex& from)
4648 : ::google::protobuf::Message(),
4649 _internal_metadata_(NULL),
4650 _has_bits_(from._has_bits_),
4651 entry_(from.entry_) {
4652 _internal_metadata_.MergeFrom(from._internal_metadata_);
4653 // @@protoc_insertion_point(copy_constructor:orc.proto.RowIndex)
4654}
4655
4656void RowIndex::SharedCtor() {
4657}
4658
4659RowIndex::~RowIndex() {
4660 // @@protoc_insertion_point(destructor:orc.proto.RowIndex)
4661 SharedDtor();
4662}
4663
4664void RowIndex::SharedDtor() {
4665}
4666
4667void RowIndex::SetCachedSize(int size) const {
4668 _cached_size_.Set(size);
4669}
4670const ::google::protobuf::Descriptor* RowIndex::descriptor() {
4671 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4672 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4673}
4674
4675const RowIndex& RowIndex::default_instance() {
4676 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_RowIndex.base);
4677 return *internal_default_instance();
4678}
4679
4680
4681void RowIndex::Clear() {
4682// @@protoc_insertion_point(message_clear_start:orc.proto.RowIndex)
4683 ::google::protobuf::uint32 cached_has_bits = 0;
4684 // Prevent compiler warnings about cached_has_bits being unused
4685 (void) cached_has_bits;
4686
4687 entry_.Clear();
4688 _has_bits_.Clear();
4689 _internal_metadata_.Clear();
4690}
4691
4692bool RowIndex::MergePartialFromCodedStream(
4693 ::google::protobuf::io::CodedInputStream* input) {
4694#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4695 ::google::protobuf::uint32 tag;
4696 // @@protoc_insertion_point(parse_start:orc.proto.RowIndex)
4697 for (;;) {
4698 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4699 tag = p.first;
4700 if (!p.second) goto handle_unusual;
4701 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4702 // repeated .orc.proto.RowIndexEntry entry = 1;
4703 case 1: {
4704 if (static_cast< ::google::protobuf::uint8>(tag) ==
4705 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4706 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4707 input, add_entry()));
4708 } else {
4709 goto handle_unusual;
4710 }
4711 break;
4712 }
4713
4714 default: {
4715 handle_unusual:
4716 if (tag == 0) {
4717 goto success;
4718 }
4719 DO_(::google::protobuf::internal::WireFormat::SkipField(
4720 input, tag, _internal_metadata_.mutable_unknown_fields()));
4721 break;
4722 }
4723 }
4724 }
4725success:
4726 // @@protoc_insertion_point(parse_success:orc.proto.RowIndex)
4727 return true;
4728failure:
4729 // @@protoc_insertion_point(parse_failure:orc.proto.RowIndex)
4730 return false;
4731#undef DO_
4732}
4733
4734void RowIndex::SerializeWithCachedSizes(
4735 ::google::protobuf::io::CodedOutputStream* output) const {
4736 // @@protoc_insertion_point(serialize_start:orc.proto.RowIndex)
4737 ::google::protobuf::uint32 cached_has_bits = 0;
4738 (void) cached_has_bits;
4739
4740 // repeated .orc.proto.RowIndexEntry entry = 1;
4741 for (unsigned int i = 0,
4742 n = static_cast<unsigned int>(this->entry_size()); i < n; i++) {
4743 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4744 1,
4745 this->entry(static_cast<int>(i)),
4746 output);
4747 }
4748
4749 if (_internal_metadata_.have_unknown_fields()) {
4750 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4751 _internal_metadata_.unknown_fields(), output);
4752 }
4753 // @@protoc_insertion_point(serialize_end:orc.proto.RowIndex)
4754}
4755
4756::google::protobuf::uint8* RowIndex::InternalSerializeWithCachedSizesToArray(
4757 bool deterministic, ::google::protobuf::uint8* target) const {
4758 (void)deterministic; // Unused
4759 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.RowIndex)
4760 ::google::protobuf::uint32 cached_has_bits = 0;
4761 (void) cached_has_bits;
4762
4763 // repeated .orc.proto.RowIndexEntry entry = 1;
4764 for (unsigned int i = 0,
4765 n = static_cast<unsigned int>(this->entry_size()); i < n; i++) {
4766 target = ::google::protobuf::internal::WireFormatLite::
4767 InternalWriteMessageToArray(
4768 1, this->entry(static_cast<int>(i)), deterministic, target);
4769 }
4770
4771 if (_internal_metadata_.have_unknown_fields()) {
4772 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4773 _internal_metadata_.unknown_fields(), target);
4774 }
4775 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.RowIndex)
4776 return target;
4777}
4778
4779size_t RowIndex::ByteSizeLong() const {
4780// @@protoc_insertion_point(message_byte_size_start:orc.proto.RowIndex)
4781 size_t total_size = 0;
4782
4783 if (_internal_metadata_.have_unknown_fields()) {
4784 total_size +=
4785 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4786 _internal_metadata_.unknown_fields());
4787 }
4788 // repeated .orc.proto.RowIndexEntry entry = 1;
4789 {
4790 unsigned int count = static_cast<unsigned int>(this->entry_size());
4791 total_size += 1UL * count;
4792 for (unsigned int i = 0; i < count; i++) {
4793 total_size +=
4794 ::google::protobuf::internal::WireFormatLite::MessageSize(
4795 this->entry(static_cast<int>(i)));
4796 }
4797 }
4798
4799 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4800 SetCachedSize(cached_size);
4801 return total_size;
4802}
4803
4804void RowIndex::MergeFrom(const ::google::protobuf::Message& from) {
4805// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.RowIndex)
4806 GOOGLE_DCHECK_NE(&from, this);
4807 const RowIndex* source =
4808 ::google::protobuf::internal::DynamicCastToGenerated<const RowIndex>(
4809 &from);
4810 if (source == NULL) {
4811 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.RowIndex)
4812 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4813 } else {
4814 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.RowIndex)
4815 MergeFrom(*source);
4816 }
4817}
4818
4819void RowIndex::MergeFrom(const RowIndex& from) {
4820// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.RowIndex)
4821 GOOGLE_DCHECK_NE(&from, this);
4822 _internal_metadata_.MergeFrom(from._internal_metadata_);
4823 ::google::protobuf::uint32 cached_has_bits = 0;
4824 (void) cached_has_bits;
4825
4826 entry_.MergeFrom(from.entry_);
4827}
4828
4829void RowIndex::CopyFrom(const ::google::protobuf::Message& from) {
4830// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.RowIndex)
4831 if (&from == this) return;
4832 Clear();
4833 MergeFrom(from);
4834}
4835
4836void RowIndex::CopyFrom(const RowIndex& from) {
4837// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.RowIndex)
4838 if (&from == this) return;
4839 Clear();
4840 MergeFrom(from);
4841}
4842
4843bool RowIndex::IsInitialized() const {
4844 return true;
4845}
4846
4847void RowIndex::Swap(RowIndex* other) {
4848 if (other == this) return;
4849 InternalSwap(other);
4850}
4851void RowIndex::InternalSwap(RowIndex* other) {
4852 using std::swap;
4853 CastToBase(&entry_)->InternalSwap(CastToBase(&other->entry_));
4854 swap(_has_bits_[0], other->_has_bits_[0]);
4855 _internal_metadata_.Swap(&other->_internal_metadata_);
4856}
4857
4858::google::protobuf::Metadata RowIndex::GetMetadata() const {
4859 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4860 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
4861}
4862
4863
4864// ===================================================================
4865
4866void BloomFilter::InitAsDefaultInstance() {
4867}
4868#if !defined(_MSC_VER) || _MSC_VER >= 1900
4869const int BloomFilter::kNumHashFunctionsFieldNumber;
4870const int BloomFilter::kBitsetFieldNumber;
4871const int BloomFilter::kUtf8BitsetFieldNumber;
4872#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4873
4874BloomFilter::BloomFilter()
4875 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4876 ::google::protobuf::internal::InitSCC(
4877 &protobuf_orc_5fproto_2eproto::scc_info_BloomFilter.base);
4878 SharedCtor();
4879 // @@protoc_insertion_point(constructor:orc.proto.BloomFilter)
4880}
4881BloomFilter::BloomFilter(const BloomFilter& from)
4882 : ::google::protobuf::Message(),
4883 _internal_metadata_(NULL),
4884 _has_bits_(from._has_bits_),
4885 bitset_(from.bitset_) {
4886 _internal_metadata_.MergeFrom(from._internal_metadata_);
4887 utf8bitset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4888 if (from.has_utf8bitset()) {
4889 utf8bitset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.utf8bitset_);
4890 }
4891 numhashfunctions_ = from.numhashfunctions_;
4892 // @@protoc_insertion_point(copy_constructor:orc.proto.BloomFilter)
4893}
4894
4895void BloomFilter::SharedCtor() {
4896 utf8bitset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4897 numhashfunctions_ = 0u;
4898}
4899
4900BloomFilter::~BloomFilter() {
4901 // @@protoc_insertion_point(destructor:orc.proto.BloomFilter)
4902 SharedDtor();
4903}
4904
4905void BloomFilter::SharedDtor() {
4906 utf8bitset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4907}
4908
4909void BloomFilter::SetCachedSize(int size) const {
4910 _cached_size_.Set(size);
4911}
4912const ::google::protobuf::Descriptor* BloomFilter::descriptor() {
4913 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
4914 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4915}
4916
4917const BloomFilter& BloomFilter::default_instance() {
4918 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_BloomFilter.base);
4919 return *internal_default_instance();
4920}
4921
4922
4923void BloomFilter::Clear() {
4924// @@protoc_insertion_point(message_clear_start:orc.proto.BloomFilter)
4925 ::google::protobuf::uint32 cached_has_bits = 0;
4926 // Prevent compiler warnings about cached_has_bits being unused
4927 (void) cached_has_bits;
4928
4929 bitset_.Clear();
4930 cached_has_bits = _has_bits_[0];
4931 if (cached_has_bits & 0x00000001u) {
4932 utf8bitset_.ClearNonDefaultToEmptyNoArena();
4933 }
4934 numhashfunctions_ = 0u;
4935 _has_bits_.Clear();
4936 _internal_metadata_.Clear();
4937}
4938
4939bool BloomFilter::MergePartialFromCodedStream(
4940 ::google::protobuf::io::CodedInputStream* input) {
4941#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4942 ::google::protobuf::uint32 tag;
4943 // @@protoc_insertion_point(parse_start:orc.proto.BloomFilter)
4944 for (;;) {
4945 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4946 tag = p.first;
4947 if (!p.second) goto handle_unusual;
4948 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4949 // optional uint32 numHashFunctions = 1;
4950 case 1: {
4951 if (static_cast< ::google::protobuf::uint8>(tag) ==
4952 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4953 set_has_numhashfunctions();
4954 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4955 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4956 input, &numhashfunctions_)));
4957 } else {
4958 goto handle_unusual;
4959 }
4960 break;
4961 }
4962
4963 // repeated fixed64 bitset = 2;
4964 case 2: {
4965 if (static_cast< ::google::protobuf::uint8>(tag) ==
4966 static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
4967 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
4968 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
4969 1, 17u, input, this->mutable_bitset())));
4970 } else if (
4971 static_cast< ::google::protobuf::uint8>(tag) ==
4972 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4973 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
4974 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
4975 input, this->mutable_bitset())));
4976 } else {
4977 goto handle_unusual;
4978 }
4979 break;
4980 }
4981
4982 // optional bytes utf8bitset = 3;
4983 case 3: {
4984 if (static_cast< ::google::protobuf::uint8>(tag) ==
4985 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4986 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4987 input, this->mutable_utf8bitset()));
4988 } else {
4989 goto handle_unusual;
4990 }
4991 break;
4992 }
4993
4994 default: {
4995 handle_unusual:
4996 if (tag == 0) {
4997 goto success;
4998 }
4999 DO_(::google::protobuf::internal::WireFormat::SkipField(
5000 input, tag, _internal_metadata_.mutable_unknown_fields()));
5001 break;
5002 }
5003 }
5004 }
5005success:
5006 // @@protoc_insertion_point(parse_success:orc.proto.BloomFilter)
5007 return true;
5008failure:
5009 // @@protoc_insertion_point(parse_failure:orc.proto.BloomFilter)
5010 return false;
5011#undef DO_
5012}
5013
5014void BloomFilter::SerializeWithCachedSizes(
5015 ::google::protobuf::io::CodedOutputStream* output) const {
5016 // @@protoc_insertion_point(serialize_start:orc.proto.BloomFilter)
5017 ::google::protobuf::uint32 cached_has_bits = 0;
5018 (void) cached_has_bits;
5019
5020 cached_has_bits = _has_bits_[0];
5021 // optional uint32 numHashFunctions = 1;
5022 if (cached_has_bits & 0x00000002u) {
5023 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->numhashfunctions(), output);
5024 }
5025
5026 // repeated fixed64 bitset = 2;
5027 for (int i = 0, n = this->bitset_size(); i < n; i++) {
5028 ::google::protobuf::internal::WireFormatLite::WriteFixed64(
5029 2, this->bitset(i), output);
5030 }
5031
5032 // optional bytes utf8bitset = 3;
5033 if (cached_has_bits & 0x00000001u) {
5034 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5035 3, this->utf8bitset(), output);
5036 }
5037
5038 if (_internal_metadata_.have_unknown_fields()) {
5039 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5040 _internal_metadata_.unknown_fields(), output);
5041 }
5042 // @@protoc_insertion_point(serialize_end:orc.proto.BloomFilter)
5043}
5044
5045::google::protobuf::uint8* BloomFilter::InternalSerializeWithCachedSizesToArray(
5046 bool deterministic, ::google::protobuf::uint8* target) const {
5047 (void)deterministic; // Unused
5048 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.BloomFilter)
5049 ::google::protobuf::uint32 cached_has_bits = 0;
5050 (void) cached_has_bits;
5051
5052 cached_has_bits = _has_bits_[0];
5053 // optional uint32 numHashFunctions = 1;
5054 if (cached_has_bits & 0x00000002u) {
5055 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->numhashfunctions(), target);
5056 }
5057
5058 // repeated fixed64 bitset = 2;
5059 target = ::google::protobuf::internal::WireFormatLite::
5060 WriteFixed64ToArray(2, this->bitset_, target);
5061
5062 // optional bytes utf8bitset = 3;
5063 if (cached_has_bits & 0x00000001u) {
5064 target =
5065 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5066 3, this->utf8bitset(), target);
5067 }
5068
5069 if (_internal_metadata_.have_unknown_fields()) {
5070 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5071 _internal_metadata_.unknown_fields(), target);
5072 }
5073 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.BloomFilter)
5074 return target;
5075}
5076
5077size_t BloomFilter::ByteSizeLong() const {
5078// @@protoc_insertion_point(message_byte_size_start:orc.proto.BloomFilter)
5079 size_t total_size = 0;
5080
5081 if (_internal_metadata_.have_unknown_fields()) {
5082 total_size +=
5083 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5084 _internal_metadata_.unknown_fields());
5085 }
5086 // repeated fixed64 bitset = 2;
5087 {
5088 unsigned int count = static_cast<unsigned int>(this->bitset_size());
5089 size_t data_size = 8UL * count;
5090 total_size += 1 *
5091 ::google::protobuf::internal::FromIntSize(this->bitset_size());
5092 total_size += data_size;
5093 }
5094
5095 if (_has_bits_[0 / 32] & 3u) {
5096 // optional bytes utf8bitset = 3;
5097 if (has_utf8bitset()) {
5098 total_size += 1 +
5099 ::google::protobuf::internal::WireFormatLite::BytesSize(
5100 this->utf8bitset());
5101 }
5102
5103 // optional uint32 numHashFunctions = 1;
5104 if (has_numhashfunctions()) {
5105 total_size += 1 +
5106 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5107 this->numhashfunctions());
5108 }
5109
5110 }
5111 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5112 SetCachedSize(cached_size);
5113 return total_size;
5114}
5115
5116void BloomFilter::MergeFrom(const ::google::protobuf::Message& from) {
5117// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.BloomFilter)
5118 GOOGLE_DCHECK_NE(&from, this);
5119 const BloomFilter* source =
5120 ::google::protobuf::internal::DynamicCastToGenerated<const BloomFilter>(
5121 &from);
5122 if (source == NULL) {
5123 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.BloomFilter)
5124 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5125 } else {
5126 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.BloomFilter)
5127 MergeFrom(*source);
5128 }
5129}
5130
5131void BloomFilter::MergeFrom(const BloomFilter& from) {
5132// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.BloomFilter)
5133 GOOGLE_DCHECK_NE(&from, this);
5134 _internal_metadata_.MergeFrom(from._internal_metadata_);
5135 ::google::protobuf::uint32 cached_has_bits = 0;
5136 (void) cached_has_bits;
5137
5138 bitset_.MergeFrom(from.bitset_);
5139 cached_has_bits = from._has_bits_[0];
5140 if (cached_has_bits & 3u) {
5141 if (cached_has_bits & 0x00000001u) {
5142 set_has_utf8bitset();
5143 utf8bitset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.utf8bitset_);
5144 }
5145 if (cached_has_bits & 0x00000002u) {
5146 numhashfunctions_ = from.numhashfunctions_;
5147 }
5148 _has_bits_[0] |= cached_has_bits;
5149 }
5150}
5151
5152void BloomFilter::CopyFrom(const ::google::protobuf::Message& from) {
5153// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.BloomFilter)
5154 if (&from == this) return;
5155 Clear();
5156 MergeFrom(from);
5157}
5158
5159void BloomFilter::CopyFrom(const BloomFilter& from) {
5160// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.BloomFilter)
5161 if (&from == this) return;
5162 Clear();
5163 MergeFrom(from);
5164}
5165
5166bool BloomFilter::IsInitialized() const {
5167 return true;
5168}
5169
5170void BloomFilter::Swap(BloomFilter* other) {
5171 if (other == this) return;
5172 InternalSwap(other);
5173}
5174void BloomFilter::InternalSwap(BloomFilter* other) {
5175 using std::swap;
5176 bitset_.InternalSwap(&other->bitset_);
5177 utf8bitset_.Swap(&other->utf8bitset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5178 GetArenaNoVirtual());
5179 swap(numhashfunctions_, other->numhashfunctions_);
5180 swap(_has_bits_[0], other->_has_bits_[0]);
5181 _internal_metadata_.Swap(&other->_internal_metadata_);
5182}
5183
5184::google::protobuf::Metadata BloomFilter::GetMetadata() const {
5185 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5186 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
5187}
5188
5189
5190// ===================================================================
5191
5192void BloomFilterIndex::InitAsDefaultInstance() {
5193}
5194#if !defined(_MSC_VER) || _MSC_VER >= 1900
5195const int BloomFilterIndex::kBloomFilterFieldNumber;
5196#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5197
5198BloomFilterIndex::BloomFilterIndex()
5199 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5200 ::google::protobuf::internal::InitSCC(
5201 &protobuf_orc_5fproto_2eproto::scc_info_BloomFilterIndex.base);
5202 SharedCtor();
5203 // @@protoc_insertion_point(constructor:orc.proto.BloomFilterIndex)
5204}
5205BloomFilterIndex::BloomFilterIndex(const BloomFilterIndex& from)
5206 : ::google::protobuf::Message(),
5207 _internal_metadata_(NULL),
5208 _has_bits_(from._has_bits_),
5209 bloomfilter_(from.bloomfilter_) {
5210 _internal_metadata_.MergeFrom(from._internal_metadata_);
5211 // @@protoc_insertion_point(copy_constructor:orc.proto.BloomFilterIndex)
5212}
5213
5214void BloomFilterIndex::SharedCtor() {
5215}
5216
5217BloomFilterIndex::~BloomFilterIndex() {
5218 // @@protoc_insertion_point(destructor:orc.proto.BloomFilterIndex)
5219 SharedDtor();
5220}
5221
5222void BloomFilterIndex::SharedDtor() {
5223}
5224
5225void BloomFilterIndex::SetCachedSize(int size) const {
5226 _cached_size_.Set(size);
5227}
5228const ::google::protobuf::Descriptor* BloomFilterIndex::descriptor() {
5229 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5230 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5231}
5232
5233const BloomFilterIndex& BloomFilterIndex::default_instance() {
5234 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_BloomFilterIndex.base);
5235 return *internal_default_instance();
5236}
5237
5238
5239void BloomFilterIndex::Clear() {
5240// @@protoc_insertion_point(message_clear_start:orc.proto.BloomFilterIndex)
5241 ::google::protobuf::uint32 cached_has_bits = 0;
5242 // Prevent compiler warnings about cached_has_bits being unused
5243 (void) cached_has_bits;
5244
5245 bloomfilter_.Clear();
5246 _has_bits_.Clear();
5247 _internal_metadata_.Clear();
5248}
5249
5250bool BloomFilterIndex::MergePartialFromCodedStream(
5251 ::google::protobuf::io::CodedInputStream* input) {
5252#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5253 ::google::protobuf::uint32 tag;
5254 // @@protoc_insertion_point(parse_start:orc.proto.BloomFilterIndex)
5255 for (;;) {
5256 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5257 tag = p.first;
5258 if (!p.second) goto handle_unusual;
5259 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5260 // repeated .orc.proto.BloomFilter bloomFilter = 1;
5261 case 1: {
5262 if (static_cast< ::google::protobuf::uint8>(tag) ==
5263 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5264 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5265 input, add_bloomfilter()));
5266 } else {
5267 goto handle_unusual;
5268 }
5269 break;
5270 }
5271
5272 default: {
5273 handle_unusual:
5274 if (tag == 0) {
5275 goto success;
5276 }
5277 DO_(::google::protobuf::internal::WireFormat::SkipField(
5278 input, tag, _internal_metadata_.mutable_unknown_fields()));
5279 break;
5280 }
5281 }
5282 }
5283success:
5284 // @@protoc_insertion_point(parse_success:orc.proto.BloomFilterIndex)
5285 return true;
5286failure:
5287 // @@protoc_insertion_point(parse_failure:orc.proto.BloomFilterIndex)
5288 return false;
5289#undef DO_
5290}
5291
5292void BloomFilterIndex::SerializeWithCachedSizes(
5293 ::google::protobuf::io::CodedOutputStream* output) const {
5294 // @@protoc_insertion_point(serialize_start:orc.proto.BloomFilterIndex)
5295 ::google::protobuf::uint32 cached_has_bits = 0;
5296 (void) cached_has_bits;
5297
5298 // repeated .orc.proto.BloomFilter bloomFilter = 1;
5299 for (unsigned int i = 0,
5300 n = static_cast<unsigned int>(this->bloomfilter_size()); i < n; i++) {
5301 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5302 1,
5303 this->bloomfilter(static_cast<int>(i)),
5304 output);
5305 }
5306
5307 if (_internal_metadata_.have_unknown_fields()) {
5308 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5309 _internal_metadata_.unknown_fields(), output);
5310 }
5311 // @@protoc_insertion_point(serialize_end:orc.proto.BloomFilterIndex)
5312}
5313
5314::google::protobuf::uint8* BloomFilterIndex::InternalSerializeWithCachedSizesToArray(
5315 bool deterministic, ::google::protobuf::uint8* target) const {
5316 (void)deterministic; // Unused
5317 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.BloomFilterIndex)
5318 ::google::protobuf::uint32 cached_has_bits = 0;
5319 (void) cached_has_bits;
5320
5321 // repeated .orc.proto.BloomFilter bloomFilter = 1;
5322 for (unsigned int i = 0,
5323 n = static_cast<unsigned int>(this->bloomfilter_size()); i < n; i++) {
5324 target = ::google::protobuf::internal::WireFormatLite::
5325 InternalWriteMessageToArray(
5326 1, this->bloomfilter(static_cast<int>(i)), deterministic, target);
5327 }
5328
5329 if (_internal_metadata_.have_unknown_fields()) {
5330 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5331 _internal_metadata_.unknown_fields(), target);
5332 }
5333 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.BloomFilterIndex)
5334 return target;
5335}
5336
5337size_t BloomFilterIndex::ByteSizeLong() const {
5338// @@protoc_insertion_point(message_byte_size_start:orc.proto.BloomFilterIndex)
5339 size_t total_size = 0;
5340
5341 if (_internal_metadata_.have_unknown_fields()) {
5342 total_size +=
5343 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5344 _internal_metadata_.unknown_fields());
5345 }
5346 // repeated .orc.proto.BloomFilter bloomFilter = 1;
5347 {
5348 unsigned int count = static_cast<unsigned int>(this->bloomfilter_size());
5349 total_size += 1UL * count;
5350 for (unsigned int i = 0; i < count; i++) {
5351 total_size +=
5352 ::google::protobuf::internal::WireFormatLite::MessageSize(
5353 this->bloomfilter(static_cast<int>(i)));
5354 }
5355 }
5356
5357 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5358 SetCachedSize(cached_size);
5359 return total_size;
5360}
5361
5362void BloomFilterIndex::MergeFrom(const ::google::protobuf::Message& from) {
5363// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.BloomFilterIndex)
5364 GOOGLE_DCHECK_NE(&from, this);
5365 const BloomFilterIndex* source =
5366 ::google::protobuf::internal::DynamicCastToGenerated<const BloomFilterIndex>(
5367 &from);
5368 if (source == NULL) {
5369 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.BloomFilterIndex)
5370 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5371 } else {
5372 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.BloomFilterIndex)
5373 MergeFrom(*source);
5374 }
5375}
5376
5377void BloomFilterIndex::MergeFrom(const BloomFilterIndex& from) {
5378// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.BloomFilterIndex)
5379 GOOGLE_DCHECK_NE(&from, this);
5380 _internal_metadata_.MergeFrom(from._internal_metadata_);
5381 ::google::protobuf::uint32 cached_has_bits = 0;
5382 (void) cached_has_bits;
5383
5384 bloomfilter_.MergeFrom(from.bloomfilter_);
5385}
5386
5387void BloomFilterIndex::CopyFrom(const ::google::protobuf::Message& from) {
5388// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.BloomFilterIndex)
5389 if (&from == this) return;
5390 Clear();
5391 MergeFrom(from);
5392}
5393
5394void BloomFilterIndex::CopyFrom(const BloomFilterIndex& from) {
5395// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.BloomFilterIndex)
5396 if (&from == this) return;
5397 Clear();
5398 MergeFrom(from);
5399}
5400
5401bool BloomFilterIndex::IsInitialized() const {
5402 return true;
5403}
5404
5405void BloomFilterIndex::Swap(BloomFilterIndex* other) {
5406 if (other == this) return;
5407 InternalSwap(other);
5408}
5409void BloomFilterIndex::InternalSwap(BloomFilterIndex* other) {
5410 using std::swap;
5411 CastToBase(&bloomfilter_)->InternalSwap(CastToBase(&other->bloomfilter_));
5412 swap(_has_bits_[0], other->_has_bits_[0]);
5413 _internal_metadata_.Swap(&other->_internal_metadata_);
5414}
5415
5416::google::protobuf::Metadata BloomFilterIndex::GetMetadata() const {
5417 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5418 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
5419}
5420
5421
5422// ===================================================================
5423
5424void Stream::InitAsDefaultInstance() {
5425}
5426#if !defined(_MSC_VER) || _MSC_VER >= 1900
5427const int Stream::kKindFieldNumber;
5428const int Stream::kColumnFieldNumber;
5429const int Stream::kLengthFieldNumber;
5430#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5431
5432Stream::Stream()
5433 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5434 ::google::protobuf::internal::InitSCC(
5435 &protobuf_orc_5fproto_2eproto::scc_info_Stream.base);
5436 SharedCtor();
5437 // @@protoc_insertion_point(constructor:orc.proto.Stream)
5438}
5439Stream::Stream(const Stream& from)
5440 : ::google::protobuf::Message(),
5441 _internal_metadata_(NULL),
5442 _has_bits_(from._has_bits_) {
5443 _internal_metadata_.MergeFrom(from._internal_metadata_);
5444 ::memcpy(&kind_, &from.kind_,
5445 static_cast<size_t>(reinterpret_cast<char*>(&length_) -
5446 reinterpret_cast<char*>(&kind_)) + sizeof(length_));
5447 // @@protoc_insertion_point(copy_constructor:orc.proto.Stream)
5448}
5449
5450void Stream::SharedCtor() {
5451 ::memset(&kind_, 0, static_cast<size_t>(
5452 reinterpret_cast<char*>(&length_) -
5453 reinterpret_cast<char*>(&kind_)) + sizeof(length_));
5454}
5455
5456Stream::~Stream() {
5457 // @@protoc_insertion_point(destructor:orc.proto.Stream)
5458 SharedDtor();
5459}
5460
5461void Stream::SharedDtor() {
5462}
5463
5464void Stream::SetCachedSize(int size) const {
5465 _cached_size_.Set(size);
5466}
5467const ::google::protobuf::Descriptor* Stream::descriptor() {
5468 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5469 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5470}
5471
5472const Stream& Stream::default_instance() {
5473 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_Stream.base);
5474 return *internal_default_instance();
5475}
5476
5477
5478void Stream::Clear() {
5479// @@protoc_insertion_point(message_clear_start:orc.proto.Stream)
5480 ::google::protobuf::uint32 cached_has_bits = 0;
5481 // Prevent compiler warnings about cached_has_bits being unused
5482 (void) cached_has_bits;
5483
5484 cached_has_bits = _has_bits_[0];
5485 if (cached_has_bits & 7u) {
5486 ::memset(&kind_, 0, static_cast<size_t>(
5487 reinterpret_cast<char*>(&length_) -
5488 reinterpret_cast<char*>(&kind_)) + sizeof(length_));
5489 }
5490 _has_bits_.Clear();
5491 _internal_metadata_.Clear();
5492}
5493
5494bool Stream::MergePartialFromCodedStream(
5495 ::google::protobuf::io::CodedInputStream* input) {
5496#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5497 ::google::protobuf::uint32 tag;
5498 // @@protoc_insertion_point(parse_start:orc.proto.Stream)
5499 for (;;) {
5500 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5501 tag = p.first;
5502 if (!p.second) goto handle_unusual;
5503 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5504 // optional .orc.proto.Stream.Kind kind = 1;
5505 case 1: {
5506 if (static_cast< ::google::protobuf::uint8>(tag) ==
5507 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5508 int value;
5509 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5510 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5511 input, &value)));
5512 if (::orc::proto::Stream_Kind_IsValid(value)) {
5513 set_kind(static_cast< ::orc::proto::Stream_Kind >(value));
5514 } else {
5515 mutable_unknown_fields()->AddVarint(
5516 1, static_cast< ::google::protobuf::uint64>(value));
5517 }
5518 } else {
5519 goto handle_unusual;
5520 }
5521 break;
5522 }
5523
5524 // optional uint32 column = 2;
5525 case 2: {
5526 if (static_cast< ::google::protobuf::uint8>(tag) ==
5527 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5528 set_has_column();
5529 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5530 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5531 input, &column_)));
5532 } else {
5533 goto handle_unusual;
5534 }
5535 break;
5536 }
5537
5538 // optional uint64 length = 3;
5539 case 3: {
5540 if (static_cast< ::google::protobuf::uint8>(tag) ==
5541 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5542 set_has_length();
5543 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5544 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5545 input, &length_)));
5546 } else {
5547 goto handle_unusual;
5548 }
5549 break;
5550 }
5551
5552 default: {
5553 handle_unusual:
5554 if (tag == 0) {
5555 goto success;
5556 }
5557 DO_(::google::protobuf::internal::WireFormat::SkipField(
5558 input, tag, _internal_metadata_.mutable_unknown_fields()));
5559 break;
5560 }
5561 }
5562 }
5563success:
5564 // @@protoc_insertion_point(parse_success:orc.proto.Stream)
5565 return true;
5566failure:
5567 // @@protoc_insertion_point(parse_failure:orc.proto.Stream)
5568 return false;
5569#undef DO_
5570}
5571
5572void Stream::SerializeWithCachedSizes(
5573 ::google::protobuf::io::CodedOutputStream* output) const {
5574 // @@protoc_insertion_point(serialize_start:orc.proto.Stream)
5575 ::google::protobuf::uint32 cached_has_bits = 0;
5576 (void) cached_has_bits;
5577
5578 cached_has_bits = _has_bits_[0];
5579 // optional .orc.proto.Stream.Kind kind = 1;
5580 if (cached_has_bits & 0x00000001u) {
5581 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5582 1, this->kind(), output);
5583 }
5584
5585 // optional uint32 column = 2;
5586 if (cached_has_bits & 0x00000002u) {
5587 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->column(), output);
5588 }
5589
5590 // optional uint64 length = 3;
5591 if (cached_has_bits & 0x00000004u) {
5592 ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->length(), output);
5593 }
5594
5595 if (_internal_metadata_.have_unknown_fields()) {
5596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5597 _internal_metadata_.unknown_fields(), output);
5598 }
5599 // @@protoc_insertion_point(serialize_end:orc.proto.Stream)
5600}
5601
5602::google::protobuf::uint8* Stream::InternalSerializeWithCachedSizesToArray(
5603 bool deterministic, ::google::protobuf::uint8* target) const {
5604 (void)deterministic; // Unused
5605 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.Stream)
5606 ::google::protobuf::uint32 cached_has_bits = 0;
5607 (void) cached_has_bits;
5608
5609 cached_has_bits = _has_bits_[0];
5610 // optional .orc.proto.Stream.Kind kind = 1;
5611 if (cached_has_bits & 0x00000001u) {
5612 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5613 1, this->kind(), target);
5614 }
5615
5616 // optional uint32 column = 2;
5617 if (cached_has_bits & 0x00000002u) {
5618 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->column(), target);
5619 }
5620
5621 // optional uint64 length = 3;
5622 if (cached_has_bits & 0x00000004u) {
5623 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->length(), target);
5624 }
5625
5626 if (_internal_metadata_.have_unknown_fields()) {
5627 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5628 _internal_metadata_.unknown_fields(), target);
5629 }
5630 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.Stream)
5631 return target;
5632}
5633
5634size_t Stream::ByteSizeLong() const {
5635// @@protoc_insertion_point(message_byte_size_start:orc.proto.Stream)
5636 size_t total_size = 0;
5637
5638 if (_internal_metadata_.have_unknown_fields()) {
5639 total_size +=
5640 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5641 _internal_metadata_.unknown_fields());
5642 }
5643 if (_has_bits_[0 / 32] & 7u) {
5644 // optional .orc.proto.Stream.Kind kind = 1;
5645 if (has_kind()) {
5646 total_size += 1 +
5647 ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
5648 }
5649
5650 // optional uint32 column = 2;
5651 if (has_column()) {
5652 total_size += 1 +
5653 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5654 this->column());
5655 }
5656
5657 // optional uint64 length = 3;
5658 if (has_length()) {
5659 total_size += 1 +
5660 ::google::protobuf::internal::WireFormatLite::UInt64Size(
5661 this->length());
5662 }
5663
5664 }
5665 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5666 SetCachedSize(cached_size);
5667 return total_size;
5668}
5669
5670void Stream::MergeFrom(const ::google::protobuf::Message& from) {
5671// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.Stream)
5672 GOOGLE_DCHECK_NE(&from, this);
5673 const Stream* source =
5674 ::google::protobuf::internal::DynamicCastToGenerated<const Stream>(
5675 &from);
5676 if (source == NULL) {
5677 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.Stream)
5678 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5679 } else {
5680 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.Stream)
5681 MergeFrom(*source);
5682 }
5683}
5684
5685void Stream::MergeFrom(const Stream& from) {
5686// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.Stream)
5687 GOOGLE_DCHECK_NE(&from, this);
5688 _internal_metadata_.MergeFrom(from._internal_metadata_);
5689 ::google::protobuf::uint32 cached_has_bits = 0;
5690 (void) cached_has_bits;
5691
5692 cached_has_bits = from._has_bits_[0];
5693 if (cached_has_bits & 7u) {
5694 if (cached_has_bits & 0x00000001u) {
5695 kind_ = from.kind_;
5696 }
5697 if (cached_has_bits & 0x00000002u) {
5698 column_ = from.column_;
5699 }
5700 if (cached_has_bits & 0x00000004u) {
5701 length_ = from.length_;
5702 }
5703 _has_bits_[0] |= cached_has_bits;
5704 }
5705}
5706
5707void Stream::CopyFrom(const ::google::protobuf::Message& from) {
5708// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.Stream)
5709 if (&from == this) return;
5710 Clear();
5711 MergeFrom(from);
5712}
5713
5714void Stream::CopyFrom(const Stream& from) {
5715// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.Stream)
5716 if (&from == this) return;
5717 Clear();
5718 MergeFrom(from);
5719}
5720
5721bool Stream::IsInitialized() const {
5722 return true;
5723}
5724
5725void Stream::Swap(Stream* other) {
5726 if (other == this) return;
5727 InternalSwap(other);
5728}
5729void Stream::InternalSwap(Stream* other) {
5730 using std::swap;
5731 swap(kind_, other->kind_);
5732 swap(column_, other->column_);
5733 swap(length_, other->length_);
5734 swap(_has_bits_[0], other->_has_bits_[0]);
5735 _internal_metadata_.Swap(&other->_internal_metadata_);
5736}
5737
5738::google::protobuf::Metadata Stream::GetMetadata() const {
5739 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5740 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
5741}
5742
5743
5744// ===================================================================
5745
5746void ColumnEncoding::InitAsDefaultInstance() {
5747}
5748#if !defined(_MSC_VER) || _MSC_VER >= 1900
5749const int ColumnEncoding::kKindFieldNumber;
5750const int ColumnEncoding::kDictionarySizeFieldNumber;
5751const int ColumnEncoding::kBloomEncodingFieldNumber;
5752#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5753
5754ColumnEncoding::ColumnEncoding()
5755 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5756 ::google::protobuf::internal::InitSCC(
5757 &protobuf_orc_5fproto_2eproto::scc_info_ColumnEncoding.base);
5758 SharedCtor();
5759 // @@protoc_insertion_point(constructor:orc.proto.ColumnEncoding)
5760}
5761ColumnEncoding::ColumnEncoding(const ColumnEncoding& from)
5762 : ::google::protobuf::Message(),
5763 _internal_metadata_(NULL),
5764 _has_bits_(from._has_bits_) {
5765 _internal_metadata_.MergeFrom(from._internal_metadata_);
5766 ::memcpy(&kind_, &from.kind_,
5767 static_cast<size_t>(reinterpret_cast<char*>(&bloomencoding_) -
5768 reinterpret_cast<char*>(&kind_)) + sizeof(bloomencoding_));
5769 // @@protoc_insertion_point(copy_constructor:orc.proto.ColumnEncoding)
5770}
5771
5772void ColumnEncoding::SharedCtor() {
5773 ::memset(&kind_, 0, static_cast<size_t>(
5774 reinterpret_cast<char*>(&bloomencoding_) -
5775 reinterpret_cast<char*>(&kind_)) + sizeof(bloomencoding_));
5776}
5777
5778ColumnEncoding::~ColumnEncoding() {
5779 // @@protoc_insertion_point(destructor:orc.proto.ColumnEncoding)
5780 SharedDtor();
5781}
5782
5783void ColumnEncoding::SharedDtor() {
5784}
5785
5786void ColumnEncoding::SetCachedSize(int size) const {
5787 _cached_size_.Set(size);
5788}
5789const ::google::protobuf::Descriptor* ColumnEncoding::descriptor() {
5790 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
5791 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5792}
5793
5794const ColumnEncoding& ColumnEncoding::default_instance() {
5795 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_ColumnEncoding.base);
5796 return *internal_default_instance();
5797}
5798
5799
5800void ColumnEncoding::Clear() {
5801// @@protoc_insertion_point(message_clear_start:orc.proto.ColumnEncoding)
5802 ::google::protobuf::uint32 cached_has_bits = 0;
5803 // Prevent compiler warnings about cached_has_bits being unused
5804 (void) cached_has_bits;
5805
5806 cached_has_bits = _has_bits_[0];
5807 if (cached_has_bits & 7u) {
5808 ::memset(&kind_, 0, static_cast<size_t>(
5809 reinterpret_cast<char*>(&bloomencoding_) -
5810 reinterpret_cast<char*>(&kind_)) + sizeof(bloomencoding_));
5811 }
5812 _has_bits_.Clear();
5813 _internal_metadata_.Clear();
5814}
5815
5816bool ColumnEncoding::MergePartialFromCodedStream(
5817 ::google::protobuf::io::CodedInputStream* input) {
5818#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5819 ::google::protobuf::uint32 tag;
5820 // @@protoc_insertion_point(parse_start:orc.proto.ColumnEncoding)
5821 for (;;) {
5822 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5823 tag = p.first;
5824 if (!p.second) goto handle_unusual;
5825 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5826 // optional .orc.proto.ColumnEncoding.Kind kind = 1;
5827 case 1: {
5828 if (static_cast< ::google::protobuf::uint8>(tag) ==
5829 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5830 int value;
5831 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5832 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5833 input, &value)));
5834 if (::orc::proto::ColumnEncoding_Kind_IsValid(value)) {
5835 set_kind(static_cast< ::orc::proto::ColumnEncoding_Kind >(value));
5836 } else {
5837 mutable_unknown_fields()->AddVarint(
5838 1, static_cast< ::google::protobuf::uint64>(value));
5839 }
5840 } else {
5841 goto handle_unusual;
5842 }
5843 break;
5844 }
5845
5846 // optional uint32 dictionarySize = 2;
5847 case 2: {
5848 if (static_cast< ::google::protobuf::uint8>(tag) ==
5849 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5850 set_has_dictionarysize();
5851 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5852 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5853 input, &dictionarysize_)));
5854 } else {
5855 goto handle_unusual;
5856 }
5857 break;
5858 }
5859
5860 // optional uint32 bloomEncoding = 3;
5861 case 3: {
5862 if (static_cast< ::google::protobuf::uint8>(tag) ==
5863 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5864 set_has_bloomencoding();
5865 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5866 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5867 input, &bloomencoding_)));
5868 } else {
5869 goto handle_unusual;
5870 }
5871 break;
5872 }
5873
5874 default: {
5875 handle_unusual:
5876 if (tag == 0) {
5877 goto success;
5878 }
5879 DO_(::google::protobuf::internal::WireFormat::SkipField(
5880 input, tag, _internal_metadata_.mutable_unknown_fields()));
5881 break;
5882 }
5883 }
5884 }
5885success:
5886 // @@protoc_insertion_point(parse_success:orc.proto.ColumnEncoding)
5887 return true;
5888failure:
5889 // @@protoc_insertion_point(parse_failure:orc.proto.ColumnEncoding)
5890 return false;
5891#undef DO_
5892}
5893
5894void ColumnEncoding::SerializeWithCachedSizes(
5895 ::google::protobuf::io::CodedOutputStream* output) const {
5896 // @@protoc_insertion_point(serialize_start:orc.proto.ColumnEncoding)
5897 ::google::protobuf::uint32 cached_has_bits = 0;
5898 (void) cached_has_bits;
5899
5900 cached_has_bits = _has_bits_[0];
5901 // optional .orc.proto.ColumnEncoding.Kind kind = 1;
5902 if (cached_has_bits & 0x00000001u) {
5903 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5904 1, this->kind(), output);
5905 }
5906
5907 // optional uint32 dictionarySize = 2;
5908 if (cached_has_bits & 0x00000002u) {
5909 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dictionarysize(), output);
5910 }
5911
5912 // optional uint32 bloomEncoding = 3;
5913 if (cached_has_bits & 0x00000004u) {
5914 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->bloomencoding(), output);
5915 }
5916
5917 if (_internal_metadata_.have_unknown_fields()) {
5918 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5919 _internal_metadata_.unknown_fields(), output);
5920 }
5921 // @@protoc_insertion_point(serialize_end:orc.proto.ColumnEncoding)
5922}
5923
5924::google::protobuf::uint8* ColumnEncoding::InternalSerializeWithCachedSizesToArray(
5925 bool deterministic, ::google::protobuf::uint8* target) const {
5926 (void)deterministic; // Unused
5927 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.ColumnEncoding)
5928 ::google::protobuf::uint32 cached_has_bits = 0;
5929 (void) cached_has_bits;
5930
5931 cached_has_bits = _has_bits_[0];
5932 // optional .orc.proto.ColumnEncoding.Kind kind = 1;
5933 if (cached_has_bits & 0x00000001u) {
5934 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5935 1, this->kind(), target);
5936 }
5937
5938 // optional uint32 dictionarySize = 2;
5939 if (cached_has_bits & 0x00000002u) {
5940 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dictionarysize(), target);
5941 }
5942
5943 // optional uint32 bloomEncoding = 3;
5944 if (cached_has_bits & 0x00000004u) {
5945 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->bloomencoding(), target);
5946 }
5947
5948 if (_internal_metadata_.have_unknown_fields()) {
5949 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5950 _internal_metadata_.unknown_fields(), target);
5951 }
5952 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.ColumnEncoding)
5953 return target;
5954}
5955
5956size_t ColumnEncoding::ByteSizeLong() const {
5957// @@protoc_insertion_point(message_byte_size_start:orc.proto.ColumnEncoding)
5958 size_t total_size = 0;
5959
5960 if (_internal_metadata_.have_unknown_fields()) {
5961 total_size +=
5962 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5963 _internal_metadata_.unknown_fields());
5964 }
5965 if (_has_bits_[0 / 32] & 7u) {
5966 // optional .orc.proto.ColumnEncoding.Kind kind = 1;
5967 if (has_kind()) {
5968 total_size += 1 +
5969 ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
5970 }
5971
5972 // optional uint32 dictionarySize = 2;
5973 if (has_dictionarysize()) {
5974 total_size += 1 +
5975 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5976 this->dictionarysize());
5977 }
5978
5979 // optional uint32 bloomEncoding = 3;
5980 if (has_bloomencoding()) {
5981 total_size += 1 +
5982 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5983 this->bloomencoding());
5984 }
5985
5986 }
5987 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5988 SetCachedSize(cached_size);
5989 return total_size;
5990}
5991
5992void ColumnEncoding::MergeFrom(const ::google::protobuf::Message& from) {
5993// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.ColumnEncoding)
5994 GOOGLE_DCHECK_NE(&from, this);
5995 const ColumnEncoding* source =
5996 ::google::protobuf::internal::DynamicCastToGenerated<const ColumnEncoding>(
5997 &from);
5998 if (source == NULL) {
5999 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.ColumnEncoding)
6000 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6001 } else {
6002 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.ColumnEncoding)
6003 MergeFrom(*source);
6004 }
6005}
6006
6007void ColumnEncoding::MergeFrom(const ColumnEncoding& from) {
6008// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.ColumnEncoding)
6009 GOOGLE_DCHECK_NE(&from, this);
6010 _internal_metadata_.MergeFrom(from._internal_metadata_);
6011 ::google::protobuf::uint32 cached_has_bits = 0;
6012 (void) cached_has_bits;
6013
6014 cached_has_bits = from._has_bits_[0];
6015 if (cached_has_bits & 7u) {
6016 if (cached_has_bits & 0x00000001u) {
6017 kind_ = from.kind_;
6018 }
6019 if (cached_has_bits & 0x00000002u) {
6020 dictionarysize_ = from.dictionarysize_;
6021 }
6022 if (cached_has_bits & 0x00000004u) {
6023 bloomencoding_ = from.bloomencoding_;
6024 }
6025 _has_bits_[0] |= cached_has_bits;
6026 }
6027}
6028
6029void ColumnEncoding::CopyFrom(const ::google::protobuf::Message& from) {
6030// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.ColumnEncoding)
6031 if (&from == this) return;
6032 Clear();
6033 MergeFrom(from);
6034}
6035
6036void ColumnEncoding::CopyFrom(const ColumnEncoding& from) {
6037// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.ColumnEncoding)
6038 if (&from == this) return;
6039 Clear();
6040 MergeFrom(from);
6041}
6042
6043bool ColumnEncoding::IsInitialized() const {
6044 return true;
6045}
6046
6047void ColumnEncoding::Swap(ColumnEncoding* other) {
6048 if (other == this) return;
6049 InternalSwap(other);
6050}
6051void ColumnEncoding::InternalSwap(ColumnEncoding* other) {
6052 using std::swap;
6053 swap(kind_, other->kind_);
6054 swap(dictionarysize_, other->dictionarysize_);
6055 swap(bloomencoding_, other->bloomencoding_);
6056 swap(_has_bits_[0], other->_has_bits_[0]);
6057 _internal_metadata_.Swap(&other->_internal_metadata_);
6058}
6059
6060::google::protobuf::Metadata ColumnEncoding::GetMetadata() const {
6061 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6062 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
6063}
6064
6065
6066// ===================================================================
6067
6068void StripeFooter::InitAsDefaultInstance() {
6069}
6070#if !defined(_MSC_VER) || _MSC_VER >= 1900
6071const int StripeFooter::kStreamsFieldNumber;
6072const int StripeFooter::kColumnsFieldNumber;
6073const int StripeFooter::kWriterTimezoneFieldNumber;
6074#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6075
6076StripeFooter::StripeFooter()
6077 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6078 ::google::protobuf::internal::InitSCC(
6079 &protobuf_orc_5fproto_2eproto::scc_info_StripeFooter.base);
6080 SharedCtor();
6081 // @@protoc_insertion_point(constructor:orc.proto.StripeFooter)
6082}
6083StripeFooter::StripeFooter(const StripeFooter& from)
6084 : ::google::protobuf::Message(),
6085 _internal_metadata_(NULL),
6086 _has_bits_(from._has_bits_),
6087 streams_(from.streams_),
6088 columns_(from.columns_) {
6089 _internal_metadata_.MergeFrom(from._internal_metadata_);
6090 writertimezone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6091 if (from.has_writertimezone()) {
6092 writertimezone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.writertimezone_);
6093 }
6094 // @@protoc_insertion_point(copy_constructor:orc.proto.StripeFooter)
6095}
6096
6097void StripeFooter::SharedCtor() {
6098 writertimezone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6099}
6100
6101StripeFooter::~StripeFooter() {
6102 // @@protoc_insertion_point(destructor:orc.proto.StripeFooter)
6103 SharedDtor();
6104}
6105
6106void StripeFooter::SharedDtor() {
6107 writertimezone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6108}
6109
6110void StripeFooter::SetCachedSize(int size) const {
6111 _cached_size_.Set(size);
6112}
6113const ::google::protobuf::Descriptor* StripeFooter::descriptor() {
6114 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6115 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6116}
6117
6118const StripeFooter& StripeFooter::default_instance() {
6119 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_StripeFooter.base);
6120 return *internal_default_instance();
6121}
6122
6123
6124void StripeFooter::Clear() {
6125// @@protoc_insertion_point(message_clear_start:orc.proto.StripeFooter)
6126 ::google::protobuf::uint32 cached_has_bits = 0;
6127 // Prevent compiler warnings about cached_has_bits being unused
6128 (void) cached_has_bits;
6129
6130 streams_.Clear();
6131 columns_.Clear();
6132 cached_has_bits = _has_bits_[0];
6133 if (cached_has_bits & 0x00000001u) {
6134 writertimezone_.ClearNonDefaultToEmptyNoArena();
6135 }
6136 _has_bits_.Clear();
6137 _internal_metadata_.Clear();
6138}
6139
6140bool StripeFooter::MergePartialFromCodedStream(
6141 ::google::protobuf::io::CodedInputStream* input) {
6142#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6143 ::google::protobuf::uint32 tag;
6144 // @@protoc_insertion_point(parse_start:orc.proto.StripeFooter)
6145 for (;;) {
6146 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6147 tag = p.first;
6148 if (!p.second) goto handle_unusual;
6149 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6150 // repeated .orc.proto.Stream streams = 1;
6151 case 1: {
6152 if (static_cast< ::google::protobuf::uint8>(tag) ==
6153 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6154 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6155 input, add_streams()));
6156 } else {
6157 goto handle_unusual;
6158 }
6159 break;
6160 }
6161
6162 // repeated .orc.proto.ColumnEncoding columns = 2;
6163 case 2: {
6164 if (static_cast< ::google::protobuf::uint8>(tag) ==
6165 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6166 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6167 input, add_columns()));
6168 } else {
6169 goto handle_unusual;
6170 }
6171 break;
6172 }
6173
6174 // optional string writerTimezone = 3;
6175 case 3: {
6176 if (static_cast< ::google::protobuf::uint8>(tag) ==
6177 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6178 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6179 input, this->mutable_writertimezone()));
6180 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6181 this->writertimezone().data(), static_cast<int>(this->writertimezone().length()),
6182 ::google::protobuf::internal::WireFormat::PARSE,
6183 "orc.proto.StripeFooter.writerTimezone");
6184 } else {
6185 goto handle_unusual;
6186 }
6187 break;
6188 }
6189
6190 default: {
6191 handle_unusual:
6192 if (tag == 0) {
6193 goto success;
6194 }
6195 DO_(::google::protobuf::internal::WireFormat::SkipField(
6196 input, tag, _internal_metadata_.mutable_unknown_fields()));
6197 break;
6198 }
6199 }
6200 }
6201success:
6202 // @@protoc_insertion_point(parse_success:orc.proto.StripeFooter)
6203 return true;
6204failure:
6205 // @@protoc_insertion_point(parse_failure:orc.proto.StripeFooter)
6206 return false;
6207#undef DO_
6208}
6209
6210void StripeFooter::SerializeWithCachedSizes(
6211 ::google::protobuf::io::CodedOutputStream* output) const {
6212 // @@protoc_insertion_point(serialize_start:orc.proto.StripeFooter)
6213 ::google::protobuf::uint32 cached_has_bits = 0;
6214 (void) cached_has_bits;
6215
6216 // repeated .orc.proto.Stream streams = 1;
6217 for (unsigned int i = 0,
6218 n = static_cast<unsigned int>(this->streams_size()); i < n; i++) {
6219 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6220 1,
6221 this->streams(static_cast<int>(i)),
6222 output);
6223 }
6224
6225 // repeated .orc.proto.ColumnEncoding columns = 2;
6226 for (unsigned int i = 0,
6227 n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
6228 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6229 2,
6230 this->columns(static_cast<int>(i)),
6231 output);
6232 }
6233
6234 cached_has_bits = _has_bits_[0];
6235 // optional string writerTimezone = 3;
6236 if (cached_has_bits & 0x00000001u) {
6237 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6238 this->writertimezone().data(), static_cast<int>(this->writertimezone().length()),
6239 ::google::protobuf::internal::WireFormat::SERIALIZE,
6240 "orc.proto.StripeFooter.writerTimezone");
6241 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6242 3, this->writertimezone(), output);
6243 }
6244
6245 if (_internal_metadata_.have_unknown_fields()) {
6246 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6247 _internal_metadata_.unknown_fields(), output);
6248 }
6249 // @@protoc_insertion_point(serialize_end:orc.proto.StripeFooter)
6250}
6251
6252::google::protobuf::uint8* StripeFooter::InternalSerializeWithCachedSizesToArray(
6253 bool deterministic, ::google::protobuf::uint8* target) const {
6254 (void)deterministic; // Unused
6255 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.StripeFooter)
6256 ::google::protobuf::uint32 cached_has_bits = 0;
6257 (void) cached_has_bits;
6258
6259 // repeated .orc.proto.Stream streams = 1;
6260 for (unsigned int i = 0,
6261 n = static_cast<unsigned int>(this->streams_size()); i < n; i++) {
6262 target = ::google::protobuf::internal::WireFormatLite::
6263 InternalWriteMessageToArray(
6264 1, this->streams(static_cast<int>(i)), deterministic, target);
6265 }
6266
6267 // repeated .orc.proto.ColumnEncoding columns = 2;
6268 for (unsigned int i = 0,
6269 n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
6270 target = ::google::protobuf::internal::WireFormatLite::
6271 InternalWriteMessageToArray(
6272 2, this->columns(static_cast<int>(i)), deterministic, target);
6273 }
6274
6275 cached_has_bits = _has_bits_[0];
6276 // optional string writerTimezone = 3;
6277 if (cached_has_bits & 0x00000001u) {
6278 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6279 this->writertimezone().data(), static_cast<int>(this->writertimezone().length()),
6280 ::google::protobuf::internal::WireFormat::SERIALIZE,
6281 "orc.proto.StripeFooter.writerTimezone");
6282 target =
6283 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6284 3, this->writertimezone(), target);
6285 }
6286
6287 if (_internal_metadata_.have_unknown_fields()) {
6288 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6289 _internal_metadata_.unknown_fields(), target);
6290 }
6291 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.StripeFooter)
6292 return target;
6293}
6294
6295size_t StripeFooter::ByteSizeLong() const {
6296// @@protoc_insertion_point(message_byte_size_start:orc.proto.StripeFooter)
6297 size_t total_size = 0;
6298
6299 if (_internal_metadata_.have_unknown_fields()) {
6300 total_size +=
6301 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6302 _internal_metadata_.unknown_fields());
6303 }
6304 // repeated .orc.proto.Stream streams = 1;
6305 {
6306 unsigned int count = static_cast<unsigned int>(this->streams_size());
6307 total_size += 1UL * count;
6308 for (unsigned int i = 0; i < count; i++) {
6309 total_size +=
6310 ::google::protobuf::internal::WireFormatLite::MessageSize(
6311 this->streams(static_cast<int>(i)));
6312 }
6313 }
6314
6315 // repeated .orc.proto.ColumnEncoding columns = 2;
6316 {
6317 unsigned int count = static_cast<unsigned int>(this->columns_size());
6318 total_size += 1UL * count;
6319 for (unsigned int i = 0; i < count; i++) {
6320 total_size +=
6321 ::google::protobuf::internal::WireFormatLite::MessageSize(
6322 this->columns(static_cast<int>(i)));
6323 }
6324 }
6325
6326 // optional string writerTimezone = 3;
6327 if (has_writertimezone()) {
6328 total_size += 1 +
6329 ::google::protobuf::internal::WireFormatLite::StringSize(
6330 this->writertimezone());
6331 }
6332
6333 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6334 SetCachedSize(cached_size);
6335 return total_size;
6336}
6337
6338void StripeFooter::MergeFrom(const ::google::protobuf::Message& from) {
6339// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.StripeFooter)
6340 GOOGLE_DCHECK_NE(&from, this);
6341 const StripeFooter* source =
6342 ::google::protobuf::internal::DynamicCastToGenerated<const StripeFooter>(
6343 &from);
6344 if (source == NULL) {
6345 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.StripeFooter)
6346 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6347 } else {
6348 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.StripeFooter)
6349 MergeFrom(*source);
6350 }
6351}
6352
6353void StripeFooter::MergeFrom(const StripeFooter& from) {
6354// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.StripeFooter)
6355 GOOGLE_DCHECK_NE(&from, this);
6356 _internal_metadata_.MergeFrom(from._internal_metadata_);
6357 ::google::protobuf::uint32 cached_has_bits = 0;
6358 (void) cached_has_bits;
6359
6360 streams_.MergeFrom(from.streams_);
6361 columns_.MergeFrom(from.columns_);
6362 if (from.has_writertimezone()) {
6363 set_has_writertimezone();
6364 writertimezone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.writertimezone_);
6365 }
6366}
6367
6368void StripeFooter::CopyFrom(const ::google::protobuf::Message& from) {
6369// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.StripeFooter)
6370 if (&from == this) return;
6371 Clear();
6372 MergeFrom(from);
6373}
6374
6375void StripeFooter::CopyFrom(const StripeFooter& from) {
6376// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.StripeFooter)
6377 if (&from == this) return;
6378 Clear();
6379 MergeFrom(from);
6380}
6381
6382bool StripeFooter::IsInitialized() const {
6383 return true;
6384}
6385
6386void StripeFooter::Swap(StripeFooter* other) {
6387 if (other == this) return;
6388 InternalSwap(other);
6389}
6390void StripeFooter::InternalSwap(StripeFooter* other) {
6391 using std::swap;
6392 CastToBase(&streams_)->InternalSwap(CastToBase(&other->streams_));
6393 CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_));
6394 writertimezone_.Swap(&other->writertimezone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6395 GetArenaNoVirtual());
6396 swap(_has_bits_[0], other->_has_bits_[0]);
6397 _internal_metadata_.Swap(&other->_internal_metadata_);
6398}
6399
6400::google::protobuf::Metadata StripeFooter::GetMetadata() const {
6401 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6402 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
6403}
6404
6405
6406// ===================================================================
6407
6408void Type::InitAsDefaultInstance() {
6409}
6410#if !defined(_MSC_VER) || _MSC_VER >= 1900
6411const int Type::kKindFieldNumber;
6412const int Type::kSubtypesFieldNumber;
6413const int Type::kFieldNamesFieldNumber;
6414const int Type::kMaximumLengthFieldNumber;
6415const int Type::kPrecisionFieldNumber;
6416const int Type::kScaleFieldNumber;
6417#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6418
6419Type::Type()
6420 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6421 ::google::protobuf::internal::InitSCC(
6422 &protobuf_orc_5fproto_2eproto::scc_info_Type.base);
6423 SharedCtor();
6424 // @@protoc_insertion_point(constructor:orc.proto.Type)
6425}
6426Type::Type(const Type& from)
6427 : ::google::protobuf::Message(),
6428 _internal_metadata_(NULL),
6429 _has_bits_(from._has_bits_),
6430 subtypes_(from.subtypes_),
6431 fieldnames_(from.fieldnames_) {
6432 _internal_metadata_.MergeFrom(from._internal_metadata_);
6433 ::memcpy(&kind_, &from.kind_,
6434 static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
6435 reinterpret_cast<char*>(&kind_)) + sizeof(scale_));
6436 // @@protoc_insertion_point(copy_constructor:orc.proto.Type)
6437}
6438
6439void Type::SharedCtor() {
6440 ::memset(&kind_, 0, static_cast<size_t>(
6441 reinterpret_cast<char*>(&scale_) -
6442 reinterpret_cast<char*>(&kind_)) + sizeof(scale_));
6443}
6444
6445Type::~Type() {
6446 // @@protoc_insertion_point(destructor:orc.proto.Type)
6447 SharedDtor();
6448}
6449
6450void Type::SharedDtor() {
6451}
6452
6453void Type::SetCachedSize(int size) const {
6454 _cached_size_.Set(size);
6455}
6456const ::google::protobuf::Descriptor* Type::descriptor() {
6457 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6458 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6459}
6460
6461const Type& Type::default_instance() {
6462 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_Type.base);
6463 return *internal_default_instance();
6464}
6465
6466
6467void Type::Clear() {
6468// @@protoc_insertion_point(message_clear_start:orc.proto.Type)
6469 ::google::protobuf::uint32 cached_has_bits = 0;
6470 // Prevent compiler warnings about cached_has_bits being unused
6471 (void) cached_has_bits;
6472
6473 subtypes_.Clear();
6474 fieldnames_.Clear();
6475 cached_has_bits = _has_bits_[0];
6476 if (cached_has_bits & 15u) {
6477 ::memset(&kind_, 0, static_cast<size_t>(
6478 reinterpret_cast<char*>(&scale_) -
6479 reinterpret_cast<char*>(&kind_)) + sizeof(scale_));
6480 }
6481 _has_bits_.Clear();
6482 _internal_metadata_.Clear();
6483}
6484
6485bool Type::MergePartialFromCodedStream(
6486 ::google::protobuf::io::CodedInputStream* input) {
6487#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6488 ::google::protobuf::uint32 tag;
6489 // @@protoc_insertion_point(parse_start:orc.proto.Type)
6490 for (;;) {
6491 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6492 tag = p.first;
6493 if (!p.second) goto handle_unusual;
6494 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6495 // optional .orc.proto.Type.Kind kind = 1;
6496 case 1: {
6497 if (static_cast< ::google::protobuf::uint8>(tag) ==
6498 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6499 int value;
6500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6501 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6502 input, &value)));
6503 if (::orc::proto::Type_Kind_IsValid(value)) {
6504 set_kind(static_cast< ::orc::proto::Type_Kind >(value));
6505 } else {
6506 mutable_unknown_fields()->AddVarint(
6507 1, static_cast< ::google::protobuf::uint64>(value));
6508 }
6509 } else {
6510 goto handle_unusual;
6511 }
6512 break;
6513 }
6514
6515 // repeated uint32 subtypes = 2 [packed = true];
6516 case 2: {
6517 if (static_cast< ::google::protobuf::uint8>(tag) ==
6518 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6519 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
6520 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6521 input, this->mutable_subtypes())));
6522 } else if (
6523 static_cast< ::google::protobuf::uint8>(tag) ==
6524 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6525 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
6526 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6527 1, 18u, input, this->mutable_subtypes())));
6528 } else {
6529 goto handle_unusual;
6530 }
6531 break;
6532 }
6533
6534 // repeated string fieldNames = 3;
6535 case 3: {
6536 if (static_cast< ::google::protobuf::uint8>(tag) ==
6537 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6538 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6539 input, this->add_fieldnames()));
6540 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6541 this->fieldnames(this->fieldnames_size() - 1).data(),
6542 static_cast<int>(this->fieldnames(this->fieldnames_size() - 1).length()),
6543 ::google::protobuf::internal::WireFormat::PARSE,
6544 "orc.proto.Type.fieldNames");
6545 } else {
6546 goto handle_unusual;
6547 }
6548 break;
6549 }
6550
6551 // optional uint32 maximumLength = 4;
6552 case 4: {
6553 if (static_cast< ::google::protobuf::uint8>(tag) ==
6554 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6555 set_has_maximumlength();
6556 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6557 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6558 input, &maximumlength_)));
6559 } else {
6560 goto handle_unusual;
6561 }
6562 break;
6563 }
6564
6565 // optional uint32 precision = 5;
6566 case 5: {
6567 if (static_cast< ::google::protobuf::uint8>(tag) ==
6568 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
6569 set_has_precision();
6570 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6571 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6572 input, &precision_)));
6573 } else {
6574 goto handle_unusual;
6575 }
6576 break;
6577 }
6578
6579 // optional uint32 scale = 6;
6580 case 6: {
6581 if (static_cast< ::google::protobuf::uint8>(tag) ==
6582 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
6583 set_has_scale();
6584 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6585 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6586 input, &scale_)));
6587 } else {
6588 goto handle_unusual;
6589 }
6590 break;
6591 }
6592
6593 default: {
6594 handle_unusual:
6595 if (tag == 0) {
6596 goto success;
6597 }
6598 DO_(::google::protobuf::internal::WireFormat::SkipField(
6599 input, tag, _internal_metadata_.mutable_unknown_fields()));
6600 break;
6601 }
6602 }
6603 }
6604success:
6605 // @@protoc_insertion_point(parse_success:orc.proto.Type)
6606 return true;
6607failure:
6608 // @@protoc_insertion_point(parse_failure:orc.proto.Type)
6609 return false;
6610#undef DO_
6611}
6612
6613void Type::SerializeWithCachedSizes(
6614 ::google::protobuf::io::CodedOutputStream* output) const {
6615 // @@protoc_insertion_point(serialize_start:orc.proto.Type)
6616 ::google::protobuf::uint32 cached_has_bits = 0;
6617 (void) cached_has_bits;
6618
6619 cached_has_bits = _has_bits_[0];
6620 // optional .orc.proto.Type.Kind kind = 1;
6621 if (cached_has_bits & 0x00000001u) {
6622 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6623 1, this->kind(), output);
6624 }
6625
6626 // repeated uint32 subtypes = 2 [packed = true];
6627 if (this->subtypes_size() > 0) {
6628 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
6629 output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
6630 _subtypes_cached_byte_size_));
6631 }
6632 for (int i = 0, n = this->subtypes_size(); i < n; i++) {
6633 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
6634 this->subtypes(i), output);
6635 }
6636
6637 // repeated string fieldNames = 3;
6638 for (int i = 0, n = this->fieldnames_size(); i < n; i++) {
6639 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6640 this->fieldnames(i).data(), static_cast<int>(this->fieldnames(i).length()),
6641 ::google::protobuf::internal::WireFormat::SERIALIZE,
6642 "orc.proto.Type.fieldNames");
6643 ::google::protobuf::internal::WireFormatLite::WriteString(
6644 3, this->fieldnames(i), output);
6645 }
6646
6647 // optional uint32 maximumLength = 4;
6648 if (cached_has_bits & 0x00000002u) {
6649 ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->maximumlength(), output);
6650 }
6651
6652 // optional uint32 precision = 5;
6653 if (cached_has_bits & 0x00000004u) {
6654 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->precision(), output);
6655 }
6656
6657 // optional uint32 scale = 6;
6658 if (cached_has_bits & 0x00000008u) {
6659 ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->scale(), output);
6660 }
6661
6662 if (_internal_metadata_.have_unknown_fields()) {
6663 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6664 _internal_metadata_.unknown_fields(), output);
6665 }
6666 // @@protoc_insertion_point(serialize_end:orc.proto.Type)
6667}
6668
6669::google::protobuf::uint8* Type::InternalSerializeWithCachedSizesToArray(
6670 bool deterministic, ::google::protobuf::uint8* target) const {
6671 (void)deterministic; // Unused
6672 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.Type)
6673 ::google::protobuf::uint32 cached_has_bits = 0;
6674 (void) cached_has_bits;
6675
6676 cached_has_bits = _has_bits_[0];
6677 // optional .orc.proto.Type.Kind kind = 1;
6678 if (cached_has_bits & 0x00000001u) {
6679 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6680 1, this->kind(), target);
6681 }
6682
6683 // repeated uint32 subtypes = 2 [packed = true];
6684 if (this->subtypes_size() > 0) {
6685 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
6686 2,
6687 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
6688 target);
6689 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
6690 static_cast< ::google::protobuf::int32>(
6691 _subtypes_cached_byte_size_), target);
6692 target = ::google::protobuf::internal::WireFormatLite::
6693 WriteUInt32NoTagToArray(this->subtypes_, target);
6694 }
6695
6696 // repeated string fieldNames = 3;
6697 for (int i = 0, n = this->fieldnames_size(); i < n; i++) {
6698 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6699 this->fieldnames(i).data(), static_cast<int>(this->fieldnames(i).length()),
6700 ::google::protobuf::internal::WireFormat::SERIALIZE,
6701 "orc.proto.Type.fieldNames");
6702 target = ::google::protobuf::internal::WireFormatLite::
6703 WriteStringToArray(3, this->fieldnames(i), target);
6704 }
6705
6706 // optional uint32 maximumLength = 4;
6707 if (cached_has_bits & 0x00000002u) {
6708 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->maximumlength(), target);
6709 }
6710
6711 // optional uint32 precision = 5;
6712 if (cached_has_bits & 0x00000004u) {
6713 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->precision(), target);
6714 }
6715
6716 // optional uint32 scale = 6;
6717 if (cached_has_bits & 0x00000008u) {
6718 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->scale(), target);
6719 }
6720
6721 if (_internal_metadata_.have_unknown_fields()) {
6722 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6723 _internal_metadata_.unknown_fields(), target);
6724 }
6725 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.Type)
6726 return target;
6727}
6728
6729size_t Type::ByteSizeLong() const {
6730// @@protoc_insertion_point(message_byte_size_start:orc.proto.Type)
6731 size_t total_size = 0;
6732
6733 if (_internal_metadata_.have_unknown_fields()) {
6734 total_size +=
6735 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6736 _internal_metadata_.unknown_fields());
6737 }
6738 // repeated uint32 subtypes = 2 [packed = true];
6739 {
6740 size_t data_size = ::google::protobuf::internal::WireFormatLite::
6741 UInt32Size(this->subtypes_);
6742 if (data_size > 0) {
6743 total_size += 1 +
6744 ::google::protobuf::internal::WireFormatLite::Int32Size(
6745 static_cast< ::google::protobuf::int32>(data_size));
6746 }
6747 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
6748 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6749 _subtypes_cached_byte_size_ = cached_size;
6750 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6751 total_size += data_size;
6752 }
6753
6754 // repeated string fieldNames = 3;
6755 total_size += 1 *
6756 ::google::protobuf::internal::FromIntSize(this->fieldnames_size());
6757 for (int i = 0, n = this->fieldnames_size(); i < n; i++) {
6758 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
6759 this->fieldnames(i));
6760 }
6761
6762 if (_has_bits_[0 / 32] & 15u) {
6763 // optional .orc.proto.Type.Kind kind = 1;
6764 if (has_kind()) {
6765 total_size += 1 +
6766 ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
6767 }
6768
6769 // optional uint32 maximumLength = 4;
6770 if (has_maximumlength()) {
6771 total_size += 1 +
6772 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6773 this->maximumlength());
6774 }
6775
6776 // optional uint32 precision = 5;
6777 if (has_precision()) {
6778 total_size += 1 +
6779 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6780 this->precision());
6781 }
6782
6783 // optional uint32 scale = 6;
6784 if (has_scale()) {
6785 total_size += 1 +
6786 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6787 this->scale());
6788 }
6789
6790 }
6791 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6792 SetCachedSize(cached_size);
6793 return total_size;
6794}
6795
6796void Type::MergeFrom(const ::google::protobuf::Message& from) {
6797// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.Type)
6798 GOOGLE_DCHECK_NE(&from, this);
6799 const Type* source =
6800 ::google::protobuf::internal::DynamicCastToGenerated<const Type>(
6801 &from);
6802 if (source == NULL) {
6803 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.Type)
6804 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6805 } else {
6806 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.Type)
6807 MergeFrom(*source);
6808 }
6809}
6810
6811void Type::MergeFrom(const Type& from) {
6812// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.Type)
6813 GOOGLE_DCHECK_NE(&from, this);
6814 _internal_metadata_.MergeFrom(from._internal_metadata_);
6815 ::google::protobuf::uint32 cached_has_bits = 0;
6816 (void) cached_has_bits;
6817
6818 subtypes_.MergeFrom(from.subtypes_);
6819 fieldnames_.MergeFrom(from.fieldnames_);
6820 cached_has_bits = from._has_bits_[0];
6821 if (cached_has_bits & 15u) {
6822 if (cached_has_bits & 0x00000001u) {
6823 kind_ = from.kind_;
6824 }
6825 if (cached_has_bits & 0x00000002u) {
6826 maximumlength_ = from.maximumlength_;
6827 }
6828 if (cached_has_bits & 0x00000004u) {
6829 precision_ = from.precision_;
6830 }
6831 if (cached_has_bits & 0x00000008u) {
6832 scale_ = from.scale_;
6833 }
6834 _has_bits_[0] |= cached_has_bits;
6835 }
6836}
6837
6838void Type::CopyFrom(const ::google::protobuf::Message& from) {
6839// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.Type)
6840 if (&from == this) return;
6841 Clear();
6842 MergeFrom(from);
6843}
6844
6845void Type::CopyFrom(const Type& from) {
6846// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.Type)
6847 if (&from == this) return;
6848 Clear();
6849 MergeFrom(from);
6850}
6851
6852bool Type::IsInitialized() const {
6853 return true;
6854}
6855
6856void Type::Swap(Type* other) {
6857 if (other == this) return;
6858 InternalSwap(other);
6859}
6860void Type::InternalSwap(Type* other) {
6861 using std::swap;
6862 subtypes_.InternalSwap(&other->subtypes_);
6863 fieldnames_.InternalSwap(CastToBase(&other->fieldnames_));
6864 swap(kind_, other->kind_);
6865 swap(maximumlength_, other->maximumlength_);
6866 swap(precision_, other->precision_);
6867 swap(scale_, other->scale_);
6868 swap(_has_bits_[0], other->_has_bits_[0]);
6869 _internal_metadata_.Swap(&other->_internal_metadata_);
6870}
6871
6872::google::protobuf::Metadata Type::GetMetadata() const {
6873 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6874 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
6875}
6876
6877
6878// ===================================================================
6879
6880void StripeInformation::InitAsDefaultInstance() {
6881}
6882#if !defined(_MSC_VER) || _MSC_VER >= 1900
6883const int StripeInformation::kOffsetFieldNumber;
6884const int StripeInformation::kIndexLengthFieldNumber;
6885const int StripeInformation::kDataLengthFieldNumber;
6886const int StripeInformation::kFooterLengthFieldNumber;
6887const int StripeInformation::kNumberOfRowsFieldNumber;
6888#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6889
6890StripeInformation::StripeInformation()
6891 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6892 ::google::protobuf::internal::InitSCC(
6893 &protobuf_orc_5fproto_2eproto::scc_info_StripeInformation.base);
6894 SharedCtor();
6895 // @@protoc_insertion_point(constructor:orc.proto.StripeInformation)
6896}
6897StripeInformation::StripeInformation(const StripeInformation& from)
6898 : ::google::protobuf::Message(),
6899 _internal_metadata_(NULL),
6900 _has_bits_(from._has_bits_) {
6901 _internal_metadata_.MergeFrom(from._internal_metadata_);
6902 ::memcpy(&offset_, &from.offset_,
6903 static_cast<size_t>(reinterpret_cast<char*>(&numberofrows_) -
6904 reinterpret_cast<char*>(&offset_)) + sizeof(numberofrows_));
6905 // @@protoc_insertion_point(copy_constructor:orc.proto.StripeInformation)
6906}
6907
6908void StripeInformation::SharedCtor() {
6909 ::memset(&offset_, 0, static_cast<size_t>(
6910 reinterpret_cast<char*>(&numberofrows_) -
6911 reinterpret_cast<char*>(&offset_)) + sizeof(numberofrows_));
6912}
6913
6914StripeInformation::~StripeInformation() {
6915 // @@protoc_insertion_point(destructor:orc.proto.StripeInformation)
6916 SharedDtor();
6917}
6918
6919void StripeInformation::SharedDtor() {
6920}
6921
6922void StripeInformation::SetCachedSize(int size) const {
6923 _cached_size_.Set(size);
6924}
6925const ::google::protobuf::Descriptor* StripeInformation::descriptor() {
6926 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
6927 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6928}
6929
6930const StripeInformation& StripeInformation::default_instance() {
6931 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_StripeInformation.base);
6932 return *internal_default_instance();
6933}
6934
6935
6936void StripeInformation::Clear() {
6937// @@protoc_insertion_point(message_clear_start:orc.proto.StripeInformation)
6938 ::google::protobuf::uint32 cached_has_bits = 0;
6939 // Prevent compiler warnings about cached_has_bits being unused
6940 (void) cached_has_bits;
6941
6942 cached_has_bits = _has_bits_[0];
6943 if (cached_has_bits & 31u) {
6944 ::memset(&offset_, 0, static_cast<size_t>(
6945 reinterpret_cast<char*>(&numberofrows_) -
6946 reinterpret_cast<char*>(&offset_)) + sizeof(numberofrows_));
6947 }
6948 _has_bits_.Clear();
6949 _internal_metadata_.Clear();
6950}
6951
6952bool StripeInformation::MergePartialFromCodedStream(
6953 ::google::protobuf::io::CodedInputStream* input) {
6954#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6955 ::google::protobuf::uint32 tag;
6956 // @@protoc_insertion_point(parse_start:orc.proto.StripeInformation)
6957 for (;;) {
6958 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6959 tag = p.first;
6960 if (!p.second) goto handle_unusual;
6961 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6962 // optional uint64 offset = 1;
6963 case 1: {
6964 if (static_cast< ::google::protobuf::uint8>(tag) ==
6965 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6966 set_has_offset();
6967 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6968 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6969 input, &offset_)));
6970 } else {
6971 goto handle_unusual;
6972 }
6973 break;
6974 }
6975
6976 // optional uint64 indexLength = 2;
6977 case 2: {
6978 if (static_cast< ::google::protobuf::uint8>(tag) ==
6979 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6980 set_has_indexlength();
6981 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6982 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6983 input, &indexlength_)));
6984 } else {
6985 goto handle_unusual;
6986 }
6987 break;
6988 }
6989
6990 // optional uint64 dataLength = 3;
6991 case 3: {
6992 if (static_cast< ::google::protobuf::uint8>(tag) ==
6993 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6994 set_has_datalength();
6995 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6996 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6997 input, &datalength_)));
6998 } else {
6999 goto handle_unusual;
7000 }
7001 break;
7002 }
7003
7004 // optional uint64 footerLength = 4;
7005 case 4: {
7006 if (static_cast< ::google::protobuf::uint8>(tag) ==
7007 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
7008 set_has_footerlength();
7009 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7010 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7011 input, &footerlength_)));
7012 } else {
7013 goto handle_unusual;
7014 }
7015 break;
7016 }
7017
7018 // optional uint64 numberOfRows = 5;
7019 case 5: {
7020 if (static_cast< ::google::protobuf::uint8>(tag) ==
7021 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
7022 set_has_numberofrows();
7023 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7024 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7025 input, &numberofrows_)));
7026 } else {
7027 goto handle_unusual;
7028 }
7029 break;
7030 }
7031
7032 default: {
7033 handle_unusual:
7034 if (tag == 0) {
7035 goto success;
7036 }
7037 DO_(::google::protobuf::internal::WireFormat::SkipField(
7038 input, tag, _internal_metadata_.mutable_unknown_fields()));
7039 break;
7040 }
7041 }
7042 }
7043success:
7044 // @@protoc_insertion_point(parse_success:orc.proto.StripeInformation)
7045 return true;
7046failure:
7047 // @@protoc_insertion_point(parse_failure:orc.proto.StripeInformation)
7048 return false;
7049#undef DO_
7050}
7051
7052void StripeInformation::SerializeWithCachedSizes(
7053 ::google::protobuf::io::CodedOutputStream* output) const {
7054 // @@protoc_insertion_point(serialize_start:orc.proto.StripeInformation)
7055 ::google::protobuf::uint32 cached_has_bits = 0;
7056 (void) cached_has_bits;
7057
7058 cached_has_bits = _has_bits_[0];
7059 // optional uint64 offset = 1;
7060 if (cached_has_bits & 0x00000001u) {
7061 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->offset(), output);
7062 }
7063
7064 // optional uint64 indexLength = 2;
7065 if (cached_has_bits & 0x00000002u) {
7066 ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->indexlength(), output);
7067 }
7068
7069 // optional uint64 dataLength = 3;
7070 if (cached_has_bits & 0x00000004u) {
7071 ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->datalength(), output);
7072 }
7073
7074 // optional uint64 footerLength = 4;
7075 if (cached_has_bits & 0x00000008u) {
7076 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->footerlength(), output);
7077 }
7078
7079 // optional uint64 numberOfRows = 5;
7080 if (cached_has_bits & 0x00000010u) {
7081 ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->numberofrows(), output);
7082 }
7083
7084 if (_internal_metadata_.have_unknown_fields()) {
7085 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7086 _internal_metadata_.unknown_fields(), output);
7087 }
7088 // @@protoc_insertion_point(serialize_end:orc.proto.StripeInformation)
7089}
7090
7091::google::protobuf::uint8* StripeInformation::InternalSerializeWithCachedSizesToArray(
7092 bool deterministic, ::google::protobuf::uint8* target) const {
7093 (void)deterministic; // Unused
7094 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.StripeInformation)
7095 ::google::protobuf::uint32 cached_has_bits = 0;
7096 (void) cached_has_bits;
7097
7098 cached_has_bits = _has_bits_[0];
7099 // optional uint64 offset = 1;
7100 if (cached_has_bits & 0x00000001u) {
7101 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->offset(), target);
7102 }
7103
7104 // optional uint64 indexLength = 2;
7105 if (cached_has_bits & 0x00000002u) {
7106 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->indexlength(), target);
7107 }
7108
7109 // optional uint64 dataLength = 3;
7110 if (cached_has_bits & 0x00000004u) {
7111 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->datalength(), target);
7112 }
7113
7114 // optional uint64 footerLength = 4;
7115 if (cached_has_bits & 0x00000008u) {
7116 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->footerlength(), target);
7117 }
7118
7119 // optional uint64 numberOfRows = 5;
7120 if (cached_has_bits & 0x00000010u) {
7121 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->numberofrows(), target);
7122 }
7123
7124 if (_internal_metadata_.have_unknown_fields()) {
7125 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7126 _internal_metadata_.unknown_fields(), target);
7127 }
7128 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.StripeInformation)
7129 return target;
7130}
7131
7132size_t StripeInformation::ByteSizeLong() const {
7133// @@protoc_insertion_point(message_byte_size_start:orc.proto.StripeInformation)
7134 size_t total_size = 0;
7135
7136 if (_internal_metadata_.have_unknown_fields()) {
7137 total_size +=
7138 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7139 _internal_metadata_.unknown_fields());
7140 }
7141 if (_has_bits_[0 / 32] & 31u) {
7142 // optional uint64 offset = 1;
7143 if (has_offset()) {
7144 total_size += 1 +
7145 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7146 this->offset());
7147 }
7148
7149 // optional uint64 indexLength = 2;
7150 if (has_indexlength()) {
7151 total_size += 1 +
7152 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7153 this->indexlength());
7154 }
7155
7156 // optional uint64 dataLength = 3;
7157 if (has_datalength()) {
7158 total_size += 1 +
7159 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7160 this->datalength());
7161 }
7162
7163 // optional uint64 footerLength = 4;
7164 if (has_footerlength()) {
7165 total_size += 1 +
7166 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7167 this->footerlength());
7168 }
7169
7170 // optional uint64 numberOfRows = 5;
7171 if (has_numberofrows()) {
7172 total_size += 1 +
7173 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7174 this->numberofrows());
7175 }
7176
7177 }
7178 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7179 SetCachedSize(cached_size);
7180 return total_size;
7181}
7182
7183void StripeInformation::MergeFrom(const ::google::protobuf::Message& from) {
7184// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.StripeInformation)
7185 GOOGLE_DCHECK_NE(&from, this);
7186 const StripeInformation* source =
7187 ::google::protobuf::internal::DynamicCastToGenerated<const StripeInformation>(
7188 &from);
7189 if (source == NULL) {
7190 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.StripeInformation)
7191 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7192 } else {
7193 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.StripeInformation)
7194 MergeFrom(*source);
7195 }
7196}
7197
7198void StripeInformation::MergeFrom(const StripeInformation& from) {
7199// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.StripeInformation)
7200 GOOGLE_DCHECK_NE(&from, this);
7201 _internal_metadata_.MergeFrom(from._internal_metadata_);
7202 ::google::protobuf::uint32 cached_has_bits = 0;
7203 (void) cached_has_bits;
7204
7205 cached_has_bits = from._has_bits_[0];
7206 if (cached_has_bits & 31u) {
7207 if (cached_has_bits & 0x00000001u) {
7208 offset_ = from.offset_;
7209 }
7210 if (cached_has_bits & 0x00000002u) {
7211 indexlength_ = from.indexlength_;
7212 }
7213 if (cached_has_bits & 0x00000004u) {
7214 datalength_ = from.datalength_;
7215 }
7216 if (cached_has_bits & 0x00000008u) {
7217 footerlength_ = from.footerlength_;
7218 }
7219 if (cached_has_bits & 0x00000010u) {
7220 numberofrows_ = from.numberofrows_;
7221 }
7222 _has_bits_[0] |= cached_has_bits;
7223 }
7224}
7225
7226void StripeInformation::CopyFrom(const ::google::protobuf::Message& from) {
7227// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.StripeInformation)
7228 if (&from == this) return;
7229 Clear();
7230 MergeFrom(from);
7231}
7232
7233void StripeInformation::CopyFrom(const StripeInformation& from) {
7234// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.StripeInformation)
7235 if (&from == this) return;
7236 Clear();
7237 MergeFrom(from);
7238}
7239
7240bool StripeInformation::IsInitialized() const {
7241 return true;
7242}
7243
7244void StripeInformation::Swap(StripeInformation* other) {
7245 if (other == this) return;
7246 InternalSwap(other);
7247}
7248void StripeInformation::InternalSwap(StripeInformation* other) {
7249 using std::swap;
7250 swap(offset_, other->offset_);
7251 swap(indexlength_, other->indexlength_);
7252 swap(datalength_, other->datalength_);
7253 swap(footerlength_, other->footerlength_);
7254 swap(numberofrows_, other->numberofrows_);
7255 swap(_has_bits_[0], other->_has_bits_[0]);
7256 _internal_metadata_.Swap(&other->_internal_metadata_);
7257}
7258
7259::google::protobuf::Metadata StripeInformation::GetMetadata() const {
7260 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7261 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
7262}
7263
7264
7265// ===================================================================
7266
7267void UserMetadataItem::InitAsDefaultInstance() {
7268}
7269#if !defined(_MSC_VER) || _MSC_VER >= 1900
7270const int UserMetadataItem::kNameFieldNumber;
7271const int UserMetadataItem::kValueFieldNumber;
7272#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7273
7274UserMetadataItem::UserMetadataItem()
7275 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7276 ::google::protobuf::internal::InitSCC(
7277 &protobuf_orc_5fproto_2eproto::scc_info_UserMetadataItem.base);
7278 SharedCtor();
7279 // @@protoc_insertion_point(constructor:orc.proto.UserMetadataItem)
7280}
7281UserMetadataItem::UserMetadataItem(const UserMetadataItem& from)
7282 : ::google::protobuf::Message(),
7283 _internal_metadata_(NULL),
7284 _has_bits_(from._has_bits_) {
7285 _internal_metadata_.MergeFrom(from._internal_metadata_);
7286 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7287 if (from.has_name()) {
7288 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7289 }
7290 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7291 if (from.has_value()) {
7292 value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
7293 }
7294 // @@protoc_insertion_point(copy_constructor:orc.proto.UserMetadataItem)
7295}
7296
7297void UserMetadataItem::SharedCtor() {
7298 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7299 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7300}
7301
7302UserMetadataItem::~UserMetadataItem() {
7303 // @@protoc_insertion_point(destructor:orc.proto.UserMetadataItem)
7304 SharedDtor();
7305}
7306
7307void UserMetadataItem::SharedDtor() {
7308 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7309 value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7310}
7311
7312void UserMetadataItem::SetCachedSize(int size) const {
7313 _cached_size_.Set(size);
7314}
7315const ::google::protobuf::Descriptor* UserMetadataItem::descriptor() {
7316 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7317 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7318}
7319
7320const UserMetadataItem& UserMetadataItem::default_instance() {
7321 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_UserMetadataItem.base);
7322 return *internal_default_instance();
7323}
7324
7325
7326void UserMetadataItem::Clear() {
7327// @@protoc_insertion_point(message_clear_start:orc.proto.UserMetadataItem)
7328 ::google::protobuf::uint32 cached_has_bits = 0;
7329 // Prevent compiler warnings about cached_has_bits being unused
7330 (void) cached_has_bits;
7331
7332 cached_has_bits = _has_bits_[0];
7333 if (cached_has_bits & 3u) {
7334 if (cached_has_bits & 0x00000001u) {
7335 name_.ClearNonDefaultToEmptyNoArena();
7336 }
7337 if (cached_has_bits & 0x00000002u) {
7338 value_.ClearNonDefaultToEmptyNoArena();
7339 }
7340 }
7341 _has_bits_.Clear();
7342 _internal_metadata_.Clear();
7343}
7344
7345bool UserMetadataItem::MergePartialFromCodedStream(
7346 ::google::protobuf::io::CodedInputStream* input) {
7347#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7348 ::google::protobuf::uint32 tag;
7349 // @@protoc_insertion_point(parse_start:orc.proto.UserMetadataItem)
7350 for (;;) {
7351 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7352 tag = p.first;
7353 if (!p.second) goto handle_unusual;
7354 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7355 // optional string name = 1;
7356 case 1: {
7357 if (static_cast< ::google::protobuf::uint8>(tag) ==
7358 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7359 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7360 input, this->mutable_name()));
7361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7362 this->name().data(), static_cast<int>(this->name().length()),
7363 ::google::protobuf::internal::WireFormat::PARSE,
7364 "orc.proto.UserMetadataItem.name");
7365 } else {
7366 goto handle_unusual;
7367 }
7368 break;
7369 }
7370
7371 // optional bytes value = 2;
7372 case 2: {
7373 if (static_cast< ::google::protobuf::uint8>(tag) ==
7374 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7375 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7376 input, this->mutable_value()));
7377 } else {
7378 goto handle_unusual;
7379 }
7380 break;
7381 }
7382
7383 default: {
7384 handle_unusual:
7385 if (tag == 0) {
7386 goto success;
7387 }
7388 DO_(::google::protobuf::internal::WireFormat::SkipField(
7389 input, tag, _internal_metadata_.mutable_unknown_fields()));
7390 break;
7391 }
7392 }
7393 }
7394success:
7395 // @@protoc_insertion_point(parse_success:orc.proto.UserMetadataItem)
7396 return true;
7397failure:
7398 // @@protoc_insertion_point(parse_failure:orc.proto.UserMetadataItem)
7399 return false;
7400#undef DO_
7401}
7402
7403void UserMetadataItem::SerializeWithCachedSizes(
7404 ::google::protobuf::io::CodedOutputStream* output) const {
7405 // @@protoc_insertion_point(serialize_start:orc.proto.UserMetadataItem)
7406 ::google::protobuf::uint32 cached_has_bits = 0;
7407 (void) cached_has_bits;
7408
7409 cached_has_bits = _has_bits_[0];
7410 // optional string name = 1;
7411 if (cached_has_bits & 0x00000001u) {
7412 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7413 this->name().data(), static_cast<int>(this->name().length()),
7414 ::google::protobuf::internal::WireFormat::SERIALIZE,
7415 "orc.proto.UserMetadataItem.name");
7416 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7417 1, this->name(), output);
7418 }
7419
7420 // optional bytes value = 2;
7421 if (cached_has_bits & 0x00000002u) {
7422 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7423 2, this->value(), output);
7424 }
7425
7426 if (_internal_metadata_.have_unknown_fields()) {
7427 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7428 _internal_metadata_.unknown_fields(), output);
7429 }
7430 // @@protoc_insertion_point(serialize_end:orc.proto.UserMetadataItem)
7431}
7432
7433::google::protobuf::uint8* UserMetadataItem::InternalSerializeWithCachedSizesToArray(
7434 bool deterministic, ::google::protobuf::uint8* target) const {
7435 (void)deterministic; // Unused
7436 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.UserMetadataItem)
7437 ::google::protobuf::uint32 cached_has_bits = 0;
7438 (void) cached_has_bits;
7439
7440 cached_has_bits = _has_bits_[0];
7441 // optional string name = 1;
7442 if (cached_has_bits & 0x00000001u) {
7443 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7444 this->name().data(), static_cast<int>(this->name().length()),
7445 ::google::protobuf::internal::WireFormat::SERIALIZE,
7446 "orc.proto.UserMetadataItem.name");
7447 target =
7448 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7449 1, this->name(), target);
7450 }
7451
7452 // optional bytes value = 2;
7453 if (cached_has_bits & 0x00000002u) {
7454 target =
7455 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7456 2, this->value(), target);
7457 }
7458
7459 if (_internal_metadata_.have_unknown_fields()) {
7460 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7461 _internal_metadata_.unknown_fields(), target);
7462 }
7463 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.UserMetadataItem)
7464 return target;
7465}
7466
7467size_t UserMetadataItem::ByteSizeLong() const {
7468// @@protoc_insertion_point(message_byte_size_start:orc.proto.UserMetadataItem)
7469 size_t total_size = 0;
7470
7471 if (_internal_metadata_.have_unknown_fields()) {
7472 total_size +=
7473 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7474 _internal_metadata_.unknown_fields());
7475 }
7476 if (_has_bits_[0 / 32] & 3u) {
7477 // optional string name = 1;
7478 if (has_name()) {
7479 total_size += 1 +
7480 ::google::protobuf::internal::WireFormatLite::StringSize(
7481 this->name());
7482 }
7483
7484 // optional bytes value = 2;
7485 if (has_value()) {
7486 total_size += 1 +
7487 ::google::protobuf::internal::WireFormatLite::BytesSize(
7488 this->value());
7489 }
7490
7491 }
7492 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7493 SetCachedSize(cached_size);
7494 return total_size;
7495}
7496
7497void UserMetadataItem::MergeFrom(const ::google::protobuf::Message& from) {
7498// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.UserMetadataItem)
7499 GOOGLE_DCHECK_NE(&from, this);
7500 const UserMetadataItem* source =
7501 ::google::protobuf::internal::DynamicCastToGenerated<const UserMetadataItem>(
7502 &from);
7503 if (source == NULL) {
7504 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.UserMetadataItem)
7505 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7506 } else {
7507 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.UserMetadataItem)
7508 MergeFrom(*source);
7509 }
7510}
7511
7512void UserMetadataItem::MergeFrom(const UserMetadataItem& from) {
7513// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.UserMetadataItem)
7514 GOOGLE_DCHECK_NE(&from, this);
7515 _internal_metadata_.MergeFrom(from._internal_metadata_);
7516 ::google::protobuf::uint32 cached_has_bits = 0;
7517 (void) cached_has_bits;
7518
7519 cached_has_bits = from._has_bits_[0];
7520 if (cached_has_bits & 3u) {
7521 if (cached_has_bits & 0x00000001u) {
7522 set_has_name();
7523 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7524 }
7525 if (cached_has_bits & 0x00000002u) {
7526 set_has_value();
7527 value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
7528 }
7529 }
7530}
7531
7532void UserMetadataItem::CopyFrom(const ::google::protobuf::Message& from) {
7533// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.UserMetadataItem)
7534 if (&from == this) return;
7535 Clear();
7536 MergeFrom(from);
7537}
7538
7539void UserMetadataItem::CopyFrom(const UserMetadataItem& from) {
7540// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.UserMetadataItem)
7541 if (&from == this) return;
7542 Clear();
7543 MergeFrom(from);
7544}
7545
7546bool UserMetadataItem::IsInitialized() const {
7547 return true;
7548}
7549
7550void UserMetadataItem::Swap(UserMetadataItem* other) {
7551 if (other == this) return;
7552 InternalSwap(other);
7553}
7554void UserMetadataItem::InternalSwap(UserMetadataItem* other) {
7555 using std::swap;
7556 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7557 GetArenaNoVirtual());
7558 value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7559 GetArenaNoVirtual());
7560 swap(_has_bits_[0], other->_has_bits_[0]);
7561 _internal_metadata_.Swap(&other->_internal_metadata_);
7562}
7563
7564::google::protobuf::Metadata UserMetadataItem::GetMetadata() const {
7565 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7566 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
7567}
7568
7569
7570// ===================================================================
7571
7572void StripeStatistics::InitAsDefaultInstance() {
7573}
7574#if !defined(_MSC_VER) || _MSC_VER >= 1900
7575const int StripeStatistics::kColStatsFieldNumber;
7576#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7577
7578StripeStatistics::StripeStatistics()
7579 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7580 ::google::protobuf::internal::InitSCC(
7581 &protobuf_orc_5fproto_2eproto::scc_info_StripeStatistics.base);
7582 SharedCtor();
7583 // @@protoc_insertion_point(constructor:orc.proto.StripeStatistics)
7584}
7585StripeStatistics::StripeStatistics(const StripeStatistics& from)
7586 : ::google::protobuf::Message(),
7587 _internal_metadata_(NULL),
7588 _has_bits_(from._has_bits_),
7589 colstats_(from.colstats_) {
7590 _internal_metadata_.MergeFrom(from._internal_metadata_);
7591 // @@protoc_insertion_point(copy_constructor:orc.proto.StripeStatistics)
7592}
7593
7594void StripeStatistics::SharedCtor() {
7595}
7596
7597StripeStatistics::~StripeStatistics() {
7598 // @@protoc_insertion_point(destructor:orc.proto.StripeStatistics)
7599 SharedDtor();
7600}
7601
7602void StripeStatistics::SharedDtor() {
7603}
7604
7605void StripeStatistics::SetCachedSize(int size) const {
7606 _cached_size_.Set(size);
7607}
7608const ::google::protobuf::Descriptor* StripeStatistics::descriptor() {
7609 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7610 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7611}
7612
7613const StripeStatistics& StripeStatistics::default_instance() {
7614 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_StripeStatistics.base);
7615 return *internal_default_instance();
7616}
7617
7618
7619void StripeStatistics::Clear() {
7620// @@protoc_insertion_point(message_clear_start:orc.proto.StripeStatistics)
7621 ::google::protobuf::uint32 cached_has_bits = 0;
7622 // Prevent compiler warnings about cached_has_bits being unused
7623 (void) cached_has_bits;
7624
7625 colstats_.Clear();
7626 _has_bits_.Clear();
7627 _internal_metadata_.Clear();
7628}
7629
7630bool StripeStatistics::MergePartialFromCodedStream(
7631 ::google::protobuf::io::CodedInputStream* input) {
7632#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7633 ::google::protobuf::uint32 tag;
7634 // @@protoc_insertion_point(parse_start:orc.proto.StripeStatistics)
7635 for (;;) {
7636 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7637 tag = p.first;
7638 if (!p.second) goto handle_unusual;
7639 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7640 // repeated .orc.proto.ColumnStatistics colStats = 1;
7641 case 1: {
7642 if (static_cast< ::google::protobuf::uint8>(tag) ==
7643 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7645 input, add_colstats()));
7646 } else {
7647 goto handle_unusual;
7648 }
7649 break;
7650 }
7651
7652 default: {
7653 handle_unusual:
7654 if (tag == 0) {
7655 goto success;
7656 }
7657 DO_(::google::protobuf::internal::WireFormat::SkipField(
7658 input, tag, _internal_metadata_.mutable_unknown_fields()));
7659 break;
7660 }
7661 }
7662 }
7663success:
7664 // @@protoc_insertion_point(parse_success:orc.proto.StripeStatistics)
7665 return true;
7666failure:
7667 // @@protoc_insertion_point(parse_failure:orc.proto.StripeStatistics)
7668 return false;
7669#undef DO_
7670}
7671
7672void StripeStatistics::SerializeWithCachedSizes(
7673 ::google::protobuf::io::CodedOutputStream* output) const {
7674 // @@protoc_insertion_point(serialize_start:orc.proto.StripeStatistics)
7675 ::google::protobuf::uint32 cached_has_bits = 0;
7676 (void) cached_has_bits;
7677
7678 // repeated .orc.proto.ColumnStatistics colStats = 1;
7679 for (unsigned int i = 0,
7680 n = static_cast<unsigned int>(this->colstats_size()); i < n; i++) {
7681 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7682 1,
7683 this->colstats(static_cast<int>(i)),
7684 output);
7685 }
7686
7687 if (_internal_metadata_.have_unknown_fields()) {
7688 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7689 _internal_metadata_.unknown_fields(), output);
7690 }
7691 // @@protoc_insertion_point(serialize_end:orc.proto.StripeStatistics)
7692}
7693
7694::google::protobuf::uint8* StripeStatistics::InternalSerializeWithCachedSizesToArray(
7695 bool deterministic, ::google::protobuf::uint8* target) const {
7696 (void)deterministic; // Unused
7697 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.StripeStatistics)
7698 ::google::protobuf::uint32 cached_has_bits = 0;
7699 (void) cached_has_bits;
7700
7701 // repeated .orc.proto.ColumnStatistics colStats = 1;
7702 for (unsigned int i = 0,
7703 n = static_cast<unsigned int>(this->colstats_size()); i < n; i++) {
7704 target = ::google::protobuf::internal::WireFormatLite::
7705 InternalWriteMessageToArray(
7706 1, this->colstats(static_cast<int>(i)), deterministic, target);
7707 }
7708
7709 if (_internal_metadata_.have_unknown_fields()) {
7710 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7711 _internal_metadata_.unknown_fields(), target);
7712 }
7713 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.StripeStatistics)
7714 return target;
7715}
7716
7717size_t StripeStatistics::ByteSizeLong() const {
7718// @@protoc_insertion_point(message_byte_size_start:orc.proto.StripeStatistics)
7719 size_t total_size = 0;
7720
7721 if (_internal_metadata_.have_unknown_fields()) {
7722 total_size +=
7723 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7724 _internal_metadata_.unknown_fields());
7725 }
7726 // repeated .orc.proto.ColumnStatistics colStats = 1;
7727 {
7728 unsigned int count = static_cast<unsigned int>(this->colstats_size());
7729 total_size += 1UL * count;
7730 for (unsigned int i = 0; i < count; i++) {
7731 total_size +=
7732 ::google::protobuf::internal::WireFormatLite::MessageSize(
7733 this->colstats(static_cast<int>(i)));
7734 }
7735 }
7736
7737 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7738 SetCachedSize(cached_size);
7739 return total_size;
7740}
7741
7742void StripeStatistics::MergeFrom(const ::google::protobuf::Message& from) {
7743// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.StripeStatistics)
7744 GOOGLE_DCHECK_NE(&from, this);
7745 const StripeStatistics* source =
7746 ::google::protobuf::internal::DynamicCastToGenerated<const StripeStatistics>(
7747 &from);
7748 if (source == NULL) {
7749 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.StripeStatistics)
7750 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7751 } else {
7752 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.StripeStatistics)
7753 MergeFrom(*source);
7754 }
7755}
7756
7757void StripeStatistics::MergeFrom(const StripeStatistics& from) {
7758// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.StripeStatistics)
7759 GOOGLE_DCHECK_NE(&from, this);
7760 _internal_metadata_.MergeFrom(from._internal_metadata_);
7761 ::google::protobuf::uint32 cached_has_bits = 0;
7762 (void) cached_has_bits;
7763
7764 colstats_.MergeFrom(from.colstats_);
7765}
7766
7767void StripeStatistics::CopyFrom(const ::google::protobuf::Message& from) {
7768// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.StripeStatistics)
7769 if (&from == this) return;
7770 Clear();
7771 MergeFrom(from);
7772}
7773
7774void StripeStatistics::CopyFrom(const StripeStatistics& from) {
7775// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.StripeStatistics)
7776 if (&from == this) return;
7777 Clear();
7778 MergeFrom(from);
7779}
7780
7781bool StripeStatistics::IsInitialized() const {
7782 return true;
7783}
7784
7785void StripeStatistics::Swap(StripeStatistics* other) {
7786 if (other == this) return;
7787 InternalSwap(other);
7788}
7789void StripeStatistics::InternalSwap(StripeStatistics* other) {
7790 using std::swap;
7791 CastToBase(&colstats_)->InternalSwap(CastToBase(&other->colstats_));
7792 swap(_has_bits_[0], other->_has_bits_[0]);
7793 _internal_metadata_.Swap(&other->_internal_metadata_);
7794}
7795
7796::google::protobuf::Metadata StripeStatistics::GetMetadata() const {
7797 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7798 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
7799}
7800
7801
7802// ===================================================================
7803
7804void Metadata::InitAsDefaultInstance() {
7805}
7806#if !defined(_MSC_VER) || _MSC_VER >= 1900
7807const int Metadata::kStripeStatsFieldNumber;
7808#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7809
7810Metadata::Metadata()
7811 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7812 ::google::protobuf::internal::InitSCC(
7813 &protobuf_orc_5fproto_2eproto::scc_info_Metadata.base);
7814 SharedCtor();
7815 // @@protoc_insertion_point(constructor:orc.proto.Metadata)
7816}
7817Metadata::Metadata(const Metadata& from)
7818 : ::google::protobuf::Message(),
7819 _internal_metadata_(NULL),
7820 _has_bits_(from._has_bits_),
7821 stripestats_(from.stripestats_) {
7822 _internal_metadata_.MergeFrom(from._internal_metadata_);
7823 // @@protoc_insertion_point(copy_constructor:orc.proto.Metadata)
7824}
7825
7826void Metadata::SharedCtor() {
7827}
7828
7829Metadata::~Metadata() {
7830 // @@protoc_insertion_point(destructor:orc.proto.Metadata)
7831 SharedDtor();
7832}
7833
7834void Metadata::SharedDtor() {
7835}
7836
7837void Metadata::SetCachedSize(int size) const {
7838 _cached_size_.Set(size);
7839}
7840const ::google::protobuf::Descriptor* Metadata::descriptor() {
7841 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
7842 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7843}
7844
7845const Metadata& Metadata::default_instance() {
7846 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_Metadata.base);
7847 return *internal_default_instance();
7848}
7849
7850
7851void Metadata::Clear() {
7852// @@protoc_insertion_point(message_clear_start:orc.proto.Metadata)
7853 ::google::protobuf::uint32 cached_has_bits = 0;
7854 // Prevent compiler warnings about cached_has_bits being unused
7855 (void) cached_has_bits;
7856
7857 stripestats_.Clear();
7858 _has_bits_.Clear();
7859 _internal_metadata_.Clear();
7860}
7861
7862bool Metadata::MergePartialFromCodedStream(
7863 ::google::protobuf::io::CodedInputStream* input) {
7864#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7865 ::google::protobuf::uint32 tag;
7866 // @@protoc_insertion_point(parse_start:orc.proto.Metadata)
7867 for (;;) {
7868 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7869 tag = p.first;
7870 if (!p.second) goto handle_unusual;
7871 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7872 // repeated .orc.proto.StripeStatistics stripeStats = 1;
7873 case 1: {
7874 if (static_cast< ::google::protobuf::uint8>(tag) ==
7875 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7876 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7877 input, add_stripestats()));
7878 } else {
7879 goto handle_unusual;
7880 }
7881 break;
7882 }
7883
7884 default: {
7885 handle_unusual:
7886 if (tag == 0) {
7887 goto success;
7888 }
7889 DO_(::google::protobuf::internal::WireFormat::SkipField(
7890 input, tag, _internal_metadata_.mutable_unknown_fields()));
7891 break;
7892 }
7893 }
7894 }
7895success:
7896 // @@protoc_insertion_point(parse_success:orc.proto.Metadata)
7897 return true;
7898failure:
7899 // @@protoc_insertion_point(parse_failure:orc.proto.Metadata)
7900 return false;
7901#undef DO_
7902}
7903
7904void Metadata::SerializeWithCachedSizes(
7905 ::google::protobuf::io::CodedOutputStream* output) const {
7906 // @@protoc_insertion_point(serialize_start:orc.proto.Metadata)
7907 ::google::protobuf::uint32 cached_has_bits = 0;
7908 (void) cached_has_bits;
7909
7910 // repeated .orc.proto.StripeStatistics stripeStats = 1;
7911 for (unsigned int i = 0,
7912 n = static_cast<unsigned int>(this->stripestats_size()); i < n; i++) {
7913 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7914 1,
7915 this->stripestats(static_cast<int>(i)),
7916 output);
7917 }
7918
7919 if (_internal_metadata_.have_unknown_fields()) {
7920 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7921 _internal_metadata_.unknown_fields(), output);
7922 }
7923 // @@protoc_insertion_point(serialize_end:orc.proto.Metadata)
7924}
7925
7926::google::protobuf::uint8* Metadata::InternalSerializeWithCachedSizesToArray(
7927 bool deterministic, ::google::protobuf::uint8* target) const {
7928 (void)deterministic; // Unused
7929 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.Metadata)
7930 ::google::protobuf::uint32 cached_has_bits = 0;
7931 (void) cached_has_bits;
7932
7933 // repeated .orc.proto.StripeStatistics stripeStats = 1;
7934 for (unsigned int i = 0,
7935 n = static_cast<unsigned int>(this->stripestats_size()); i < n; i++) {
7936 target = ::google::protobuf::internal::WireFormatLite::
7937 InternalWriteMessageToArray(
7938 1, this->stripestats(static_cast<int>(i)), deterministic, target);
7939 }
7940
7941 if (_internal_metadata_.have_unknown_fields()) {
7942 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7943 _internal_metadata_.unknown_fields(), target);
7944 }
7945 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.Metadata)
7946 return target;
7947}
7948
7949size_t Metadata::ByteSizeLong() const {
7950// @@protoc_insertion_point(message_byte_size_start:orc.proto.Metadata)
7951 size_t total_size = 0;
7952
7953 if (_internal_metadata_.have_unknown_fields()) {
7954 total_size +=
7955 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7956 _internal_metadata_.unknown_fields());
7957 }
7958 // repeated .orc.proto.StripeStatistics stripeStats = 1;
7959 {
7960 unsigned int count = static_cast<unsigned int>(this->stripestats_size());
7961 total_size += 1UL * count;
7962 for (unsigned int i = 0; i < count; i++) {
7963 total_size +=
7964 ::google::protobuf::internal::WireFormatLite::MessageSize(
7965 this->stripestats(static_cast<int>(i)));
7966 }
7967 }
7968
7969 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7970 SetCachedSize(cached_size);
7971 return total_size;
7972}
7973
7974void Metadata::MergeFrom(const ::google::protobuf::Message& from) {
7975// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.Metadata)
7976 GOOGLE_DCHECK_NE(&from, this);
7977 const Metadata* source =
7978 ::google::protobuf::internal::DynamicCastToGenerated<const Metadata>(
7979 &from);
7980 if (source == NULL) {
7981 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.Metadata)
7982 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7983 } else {
7984 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.Metadata)
7985 MergeFrom(*source);
7986 }
7987}
7988
7989void Metadata::MergeFrom(const Metadata& from) {
7990// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.Metadata)
7991 GOOGLE_DCHECK_NE(&from, this);
7992 _internal_metadata_.MergeFrom(from._internal_metadata_);
7993 ::google::protobuf::uint32 cached_has_bits = 0;
7994 (void) cached_has_bits;
7995
7996 stripestats_.MergeFrom(from.stripestats_);
7997}
7998
7999void Metadata::CopyFrom(const ::google::protobuf::Message& from) {
8000// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.Metadata)
8001 if (&from == this) return;
8002 Clear();
8003 MergeFrom(from);
8004}
8005
8006void Metadata::CopyFrom(const Metadata& from) {
8007// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.Metadata)
8008 if (&from == this) return;
8009 Clear();
8010 MergeFrom(from);
8011}
8012
8013bool Metadata::IsInitialized() const {
8014 return true;
8015}
8016
8017void Metadata::Swap(Metadata* other) {
8018 if (other == this) return;
8019 InternalSwap(other);
8020}
8021void Metadata::InternalSwap(Metadata* other) {
8022 using std::swap;
8023 CastToBase(&stripestats_)->InternalSwap(CastToBase(&other->stripestats_));
8024 swap(_has_bits_[0], other->_has_bits_[0]);
8025 _internal_metadata_.Swap(&other->_internal_metadata_);
8026}
8027
8028::google::protobuf::Metadata Metadata::GetMetadata() const {
8029 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
8030 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
8031}
8032
8033
8034// ===================================================================
8035
8036void Footer::InitAsDefaultInstance() {
8037}
8038#if !defined(_MSC_VER) || _MSC_VER >= 1900
8039const int Footer::kHeaderLengthFieldNumber;
8040const int Footer::kContentLengthFieldNumber;
8041const int Footer::kStripesFieldNumber;
8042const int Footer::kTypesFieldNumber;
8043const int Footer::kMetadataFieldNumber;
8044const int Footer::kNumberOfRowsFieldNumber;
8045const int Footer::kStatisticsFieldNumber;
8046const int Footer::kRowIndexStrideFieldNumber;
8047const int Footer::kWriterFieldNumber;
8048#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8049
8050Footer::Footer()
8051 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8052 ::google::protobuf::internal::InitSCC(
8053 &protobuf_orc_5fproto_2eproto::scc_info_Footer.base);
8054 SharedCtor();
8055 // @@protoc_insertion_point(constructor:orc.proto.Footer)
8056}
8057Footer::Footer(const Footer& from)
8058 : ::google::protobuf::Message(),
8059 _internal_metadata_(NULL),
8060 _has_bits_(from._has_bits_),
8061 stripes_(from.stripes_),
8062 types_(from.types_),
8063 metadata_(from.metadata_),
8064 statistics_(from.statistics_) {
8065 _internal_metadata_.MergeFrom(from._internal_metadata_);
8066 ::memcpy(&headerlength_, &from.headerlength_,
8067 static_cast<size_t>(reinterpret_cast<char*>(&writer_) -
8068 reinterpret_cast<char*>(&headerlength_)) + sizeof(writer_));
8069 // @@protoc_insertion_point(copy_constructor:orc.proto.Footer)
8070}
8071
8072void Footer::SharedCtor() {
8073 ::memset(&headerlength_, 0, static_cast<size_t>(
8074 reinterpret_cast<char*>(&writer_) -
8075 reinterpret_cast<char*>(&headerlength_)) + sizeof(writer_));
8076}
8077
8078Footer::~Footer() {
8079 // @@protoc_insertion_point(destructor:orc.proto.Footer)
8080 SharedDtor();
8081}
8082
8083void Footer::SharedDtor() {
8084}
8085
8086void Footer::SetCachedSize(int size) const {
8087 _cached_size_.Set(size);
8088}
8089const ::google::protobuf::Descriptor* Footer::descriptor() {
8090 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
8091 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8092}
8093
8094const Footer& Footer::default_instance() {
8095 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_Footer.base);
8096 return *internal_default_instance();
8097}
8098
8099
8100void Footer::Clear() {
8101// @@protoc_insertion_point(message_clear_start:orc.proto.Footer)
8102 ::google::protobuf::uint32 cached_has_bits = 0;
8103 // Prevent compiler warnings about cached_has_bits being unused
8104 (void) cached_has_bits;
8105
8106 stripes_.Clear();
8107 types_.Clear();
8108 metadata_.Clear();
8109 statistics_.Clear();
8110 cached_has_bits = _has_bits_[0];
8111 if (cached_has_bits & 31u) {
8112 ::memset(&headerlength_, 0, static_cast<size_t>(
8113 reinterpret_cast<char*>(&writer_) -
8114 reinterpret_cast<char*>(&headerlength_)) + sizeof(writer_));
8115 }
8116 _has_bits_.Clear();
8117 _internal_metadata_.Clear();
8118}
8119
8120bool Footer::MergePartialFromCodedStream(
8121 ::google::protobuf::io::CodedInputStream* input) {
8122#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8123 ::google::protobuf::uint32 tag;
8124 // @@protoc_insertion_point(parse_start:orc.proto.Footer)
8125 for (;;) {
8126 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8127 tag = p.first;
8128 if (!p.second) goto handle_unusual;
8129 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8130 // optional uint64 headerLength = 1;
8131 case 1: {
8132 if (static_cast< ::google::protobuf::uint8>(tag) ==
8133 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8134 set_has_headerlength();
8135 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8136 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8137 input, &headerlength_)));
8138 } else {
8139 goto handle_unusual;
8140 }
8141 break;
8142 }
8143
8144 // optional uint64 contentLength = 2;
8145 case 2: {
8146 if (static_cast< ::google::protobuf::uint8>(tag) ==
8147 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8148 set_has_contentlength();
8149 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8150 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8151 input, &contentlength_)));
8152 } else {
8153 goto handle_unusual;
8154 }
8155 break;
8156 }
8157
8158 // repeated .orc.proto.StripeInformation stripes = 3;
8159 case 3: {
8160 if (static_cast< ::google::protobuf::uint8>(tag) ==
8161 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
8162 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8163 input, add_stripes()));
8164 } else {
8165 goto handle_unusual;
8166 }
8167 break;
8168 }
8169
8170 // repeated .orc.proto.Type types = 4;
8171 case 4: {
8172 if (static_cast< ::google::protobuf::uint8>(tag) ==
8173 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8175 input, add_types()));
8176 } else {
8177 goto handle_unusual;
8178 }
8179 break;
8180 }
8181
8182 // repeated .orc.proto.UserMetadataItem metadata = 5;
8183 case 5: {
8184 if (static_cast< ::google::protobuf::uint8>(tag) ==
8185 static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8186 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8187 input, add_metadata()));
8188 } else {
8189 goto handle_unusual;
8190 }
8191 break;
8192 }
8193
8194 // optional uint64 numberOfRows = 6;
8195 case 6: {
8196 if (static_cast< ::google::protobuf::uint8>(tag) ==
8197 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8198 set_has_numberofrows();
8199 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8200 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8201 input, &numberofrows_)));
8202 } else {
8203 goto handle_unusual;
8204 }
8205 break;
8206 }
8207
8208 // repeated .orc.proto.ColumnStatistics statistics = 7;
8209 case 7: {
8210 if (static_cast< ::google::protobuf::uint8>(tag) ==
8211 static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
8212 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8213 input, add_statistics()));
8214 } else {
8215 goto handle_unusual;
8216 }
8217 break;
8218 }
8219
8220 // optional uint32 rowIndexStride = 8;
8221 case 8: {
8222 if (static_cast< ::google::protobuf::uint8>(tag) ==
8223 static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
8224 set_has_rowindexstride();
8225 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8226 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8227 input, &rowindexstride_)));
8228 } else {
8229 goto handle_unusual;
8230 }
8231 break;
8232 }
8233
8234 // optional uint32 writer = 9;
8235 case 9: {
8236 if (static_cast< ::google::protobuf::uint8>(tag) ==
8237 static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
8238 set_has_writer();
8239 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8240 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8241 input, &writer_)));
8242 } else {
8243 goto handle_unusual;
8244 }
8245 break;
8246 }
8247
8248 default: {
8249 handle_unusual:
8250 if (tag == 0) {
8251 goto success;
8252 }
8253 DO_(::google::protobuf::internal::WireFormat::SkipField(
8254 input, tag, _internal_metadata_.mutable_unknown_fields()));
8255 break;
8256 }
8257 }
8258 }
8259success:
8260 // @@protoc_insertion_point(parse_success:orc.proto.Footer)
8261 return true;
8262failure:
8263 // @@protoc_insertion_point(parse_failure:orc.proto.Footer)
8264 return false;
8265#undef DO_
8266}
8267
8268void Footer::SerializeWithCachedSizes(
8269 ::google::protobuf::io::CodedOutputStream* output) const {
8270 // @@protoc_insertion_point(serialize_start:orc.proto.Footer)
8271 ::google::protobuf::uint32 cached_has_bits = 0;
8272 (void) cached_has_bits;
8273
8274 cached_has_bits = _has_bits_[0];
8275 // optional uint64 headerLength = 1;
8276 if (cached_has_bits & 0x00000001u) {
8277 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->headerlength(), output);
8278 }
8279
8280 // optional uint64 contentLength = 2;
8281 if (cached_has_bits & 0x00000002u) {
8282 ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->contentlength(), output);
8283 }
8284
8285 // repeated .orc.proto.StripeInformation stripes = 3;
8286 for (unsigned int i = 0,
8287 n = static_cast<unsigned int>(this->stripes_size()); i < n; i++) {
8288 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8289 3,
8290 this->stripes(static_cast<int>(i)),
8291 output);
8292 }
8293
8294 // repeated .orc.proto.Type types = 4;
8295 for (unsigned int i = 0,
8296 n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
8297 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8298 4,
8299 this->types(static_cast<int>(i)),
8300 output);
8301 }
8302
8303 // repeated .orc.proto.UserMetadataItem metadata = 5;
8304 for (unsigned int i = 0,
8305 n = static_cast<unsigned int>(this->metadata_size()); i < n; i++) {
8306 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8307 5,
8308 this->metadata(static_cast<int>(i)),
8309 output);
8310 }
8311
8312 // optional uint64 numberOfRows = 6;
8313 if (cached_has_bits & 0x00000004u) {
8314 ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->numberofrows(), output);
8315 }
8316
8317 // repeated .orc.proto.ColumnStatistics statistics = 7;
8318 for (unsigned int i = 0,
8319 n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) {
8320 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8321 7,
8322 this->statistics(static_cast<int>(i)),
8323 output);
8324 }
8325
8326 // optional uint32 rowIndexStride = 8;
8327 if (cached_has_bits & 0x00000008u) {
8328 ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->rowindexstride(), output);
8329 }
8330
8331 // optional uint32 writer = 9;
8332 if (cached_has_bits & 0x00000010u) {
8333 ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->writer(), output);
8334 }
8335
8336 if (_internal_metadata_.have_unknown_fields()) {
8337 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8338 _internal_metadata_.unknown_fields(), output);
8339 }
8340 // @@protoc_insertion_point(serialize_end:orc.proto.Footer)
8341}
8342
8343::google::protobuf::uint8* Footer::InternalSerializeWithCachedSizesToArray(
8344 bool deterministic, ::google::protobuf::uint8* target) const {
8345 (void)deterministic; // Unused
8346 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.Footer)
8347 ::google::protobuf::uint32 cached_has_bits = 0;
8348 (void) cached_has_bits;
8349
8350 cached_has_bits = _has_bits_[0];
8351 // optional uint64 headerLength = 1;
8352 if (cached_has_bits & 0x00000001u) {
8353 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->headerlength(), target);
8354 }
8355
8356 // optional uint64 contentLength = 2;
8357 if (cached_has_bits & 0x00000002u) {
8358 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->contentlength(), target);
8359 }
8360
8361 // repeated .orc.proto.StripeInformation stripes = 3;
8362 for (unsigned int i = 0,
8363 n = static_cast<unsigned int>(this->stripes_size()); i < n; i++) {
8364 target = ::google::protobuf::internal::WireFormatLite::
8365 InternalWriteMessageToArray(
8366 3, this->stripes(static_cast<int>(i)), deterministic, target);
8367 }
8368
8369 // repeated .orc.proto.Type types = 4;
8370 for (unsigned int i = 0,
8371 n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
8372 target = ::google::protobuf::internal::WireFormatLite::
8373 InternalWriteMessageToArray(
8374 4, this->types(static_cast<int>(i)), deterministic, target);
8375 }
8376
8377 // repeated .orc.proto.UserMetadataItem metadata = 5;
8378 for (unsigned int i = 0,
8379 n = static_cast<unsigned int>(this->metadata_size()); i < n; i++) {
8380 target = ::google::protobuf::internal::WireFormatLite::
8381 InternalWriteMessageToArray(
8382 5, this->metadata(static_cast<int>(i)), deterministic, target);
8383 }
8384
8385 // optional uint64 numberOfRows = 6;
8386 if (cached_has_bits & 0x00000004u) {
8387 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->numberofrows(), target);
8388 }
8389
8390 // repeated .orc.proto.ColumnStatistics statistics = 7;
8391 for (unsigned int i = 0,
8392 n = static_cast<unsigned int>(this->statistics_size()); i < n; i++) {
8393 target = ::google::protobuf::internal::WireFormatLite::
8394 InternalWriteMessageToArray(
8395 7, this->statistics(static_cast<int>(i)), deterministic, target);
8396 }
8397
8398 // optional uint32 rowIndexStride = 8;
8399 if (cached_has_bits & 0x00000008u) {
8400 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->rowindexstride(), target);
8401 }
8402
8403 // optional uint32 writer = 9;
8404 if (cached_has_bits & 0x00000010u) {
8405 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->writer(), target);
8406 }
8407
8408 if (_internal_metadata_.have_unknown_fields()) {
8409 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8410 _internal_metadata_.unknown_fields(), target);
8411 }
8412 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.Footer)
8413 return target;
8414}
8415
8416size_t Footer::ByteSizeLong() const {
8417// @@protoc_insertion_point(message_byte_size_start:orc.proto.Footer)
8418 size_t total_size = 0;
8419
8420 if (_internal_metadata_.have_unknown_fields()) {
8421 total_size +=
8422 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8423 _internal_metadata_.unknown_fields());
8424 }
8425 // repeated .orc.proto.StripeInformation stripes = 3;
8426 {
8427 unsigned int count = static_cast<unsigned int>(this->stripes_size());
8428 total_size += 1UL * count;
8429 for (unsigned int i = 0; i < count; i++) {
8430 total_size +=
8431 ::google::protobuf::internal::WireFormatLite::MessageSize(
8432 this->stripes(static_cast<int>(i)));
8433 }
8434 }
8435
8436 // repeated .orc.proto.Type types = 4;
8437 {
8438 unsigned int count = static_cast<unsigned int>(this->types_size());
8439 total_size += 1UL * count;
8440 for (unsigned int i = 0; i < count; i++) {
8441 total_size +=
8442 ::google::protobuf::internal::WireFormatLite::MessageSize(
8443 this->types(static_cast<int>(i)));
8444 }
8445 }
8446
8447 // repeated .orc.proto.UserMetadataItem metadata = 5;
8448 {
8449 unsigned int count = static_cast<unsigned int>(this->metadata_size());
8450 total_size += 1UL * count;
8451 for (unsigned int i = 0; i < count; i++) {
8452 total_size +=
8453 ::google::protobuf::internal::WireFormatLite::MessageSize(
8454 this->metadata(static_cast<int>(i)));
8455 }
8456 }
8457
8458 // repeated .orc.proto.ColumnStatistics statistics = 7;
8459 {
8460 unsigned int count = static_cast<unsigned int>(this->statistics_size());
8461 total_size += 1UL * count;
8462 for (unsigned int i = 0; i < count; i++) {
8463 total_size +=
8464 ::google::protobuf::internal::WireFormatLite::MessageSize(
8465 this->statistics(static_cast<int>(i)));
8466 }
8467 }
8468
8469 if (_has_bits_[0 / 32] & 31u) {
8470 // optional uint64 headerLength = 1;
8471 if (has_headerlength()) {
8472 total_size += 1 +
8473 ::google::protobuf::internal::WireFormatLite::UInt64Size(
8474 this->headerlength());
8475 }
8476
8477 // optional uint64 contentLength = 2;
8478 if (has_contentlength()) {
8479 total_size += 1 +
8480 ::google::protobuf::internal::WireFormatLite::UInt64Size(
8481 this->contentlength());
8482 }
8483
8484 // optional uint64 numberOfRows = 6;
8485 if (has_numberofrows()) {
8486 total_size += 1 +
8487 ::google::protobuf::internal::WireFormatLite::UInt64Size(
8488 this->numberofrows());
8489 }
8490
8491 // optional uint32 rowIndexStride = 8;
8492 if (has_rowindexstride()) {
8493 total_size += 1 +
8494 ::google::protobuf::internal::WireFormatLite::UInt32Size(
8495 this->rowindexstride());
8496 }
8497
8498 // optional uint32 writer = 9;
8499 if (has_writer()) {
8500 total_size += 1 +
8501 ::google::protobuf::internal::WireFormatLite::UInt32Size(
8502 this->writer());
8503 }
8504
8505 }
8506 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8507 SetCachedSize(cached_size);
8508 return total_size;
8509}
8510
8511void Footer::MergeFrom(const ::google::protobuf::Message& from) {
8512// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.Footer)
8513 GOOGLE_DCHECK_NE(&from, this);
8514 const Footer* source =
8515 ::google::protobuf::internal::DynamicCastToGenerated<const Footer>(
8516 &from);
8517 if (source == NULL) {
8518 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.Footer)
8519 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8520 } else {
8521 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.Footer)
8522 MergeFrom(*source);
8523 }
8524}
8525
8526void Footer::MergeFrom(const Footer& from) {
8527// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.Footer)
8528 GOOGLE_DCHECK_NE(&from, this);
8529 _internal_metadata_.MergeFrom(from._internal_metadata_);
8530 ::google::protobuf::uint32 cached_has_bits = 0;
8531 (void) cached_has_bits;
8532
8533 stripes_.MergeFrom(from.stripes_);
8534 types_.MergeFrom(from.types_);
8535 metadata_.MergeFrom(from.metadata_);
8536 statistics_.MergeFrom(from.statistics_);
8537 cached_has_bits = from._has_bits_[0];
8538 if (cached_has_bits & 31u) {
8539 if (cached_has_bits & 0x00000001u) {
8540 headerlength_ = from.headerlength_;
8541 }
8542 if (cached_has_bits & 0x00000002u) {
8543 contentlength_ = from.contentlength_;
8544 }
8545 if (cached_has_bits & 0x00000004u) {
8546 numberofrows_ = from.numberofrows_;
8547 }
8548 if (cached_has_bits & 0x00000008u) {
8549 rowindexstride_ = from.rowindexstride_;
8550 }
8551 if (cached_has_bits & 0x00000010u) {
8552 writer_ = from.writer_;
8553 }
8554 _has_bits_[0] |= cached_has_bits;
8555 }
8556}
8557
8558void Footer::CopyFrom(const ::google::protobuf::Message& from) {
8559// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.Footer)
8560 if (&from == this) return;
8561 Clear();
8562 MergeFrom(from);
8563}
8564
8565void Footer::CopyFrom(const Footer& from) {
8566// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.Footer)
8567 if (&from == this) return;
8568 Clear();
8569 MergeFrom(from);
8570}
8571
8572bool Footer::IsInitialized() const {
8573 return true;
8574}
8575
8576void Footer::Swap(Footer* other) {
8577 if (other == this) return;
8578 InternalSwap(other);
8579}
8580void Footer::InternalSwap(Footer* other) {
8581 using std::swap;
8582 CastToBase(&stripes_)->InternalSwap(CastToBase(&other->stripes_));
8583 CastToBase(&types_)->InternalSwap(CastToBase(&other->types_));
8584 CastToBase(&metadata_)->InternalSwap(CastToBase(&other->metadata_));
8585 CastToBase(&statistics_)->InternalSwap(CastToBase(&other->statistics_));
8586 swap(headerlength_, other->headerlength_);
8587 swap(contentlength_, other->contentlength_);
8588 swap(numberofrows_, other->numberofrows_);
8589 swap(rowindexstride_, other->rowindexstride_);
8590 swap(writer_, other->writer_);
8591 swap(_has_bits_[0], other->_has_bits_[0]);
8592 _internal_metadata_.Swap(&other->_internal_metadata_);
8593}
8594
8595::google::protobuf::Metadata Footer::GetMetadata() const {
8596 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
8597 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
8598}
8599
8600
8601// ===================================================================
8602
8603void PostScript::InitAsDefaultInstance() {
8604}
8605#if !defined(_MSC_VER) || _MSC_VER >= 1900
8606const int PostScript::kFooterLengthFieldNumber;
8607const int PostScript::kCompressionFieldNumber;
8608const int PostScript::kCompressionBlockSizeFieldNumber;
8609const int PostScript::kVersionFieldNumber;
8610const int PostScript::kMetadataLengthFieldNumber;
8611const int PostScript::kWriterVersionFieldNumber;
8612const int PostScript::kMagicFieldNumber;
8613#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8614
8615PostScript::PostScript()
8616 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8617 ::google::protobuf::internal::InitSCC(
8618 &protobuf_orc_5fproto_2eproto::scc_info_PostScript.base);
8619 SharedCtor();
8620 // @@protoc_insertion_point(constructor:orc.proto.PostScript)
8621}
8622PostScript::PostScript(const PostScript& from)
8623 : ::google::protobuf::Message(),
8624 _internal_metadata_(NULL),
8625 _has_bits_(from._has_bits_),
8626 version_(from.version_) {
8627 _internal_metadata_.MergeFrom(from._internal_metadata_);
8628 magic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8629 if (from.has_magic()) {
8630 magic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.magic_);
8631 }
8632 ::memcpy(&footerlength_, &from.footerlength_,
8633 static_cast<size_t>(reinterpret_cast<char*>(&metadatalength_) -
8634 reinterpret_cast<char*>(&footerlength_)) + sizeof(metadatalength_));
8635 // @@protoc_insertion_point(copy_constructor:orc.proto.PostScript)
8636}
8637
8638void PostScript::SharedCtor() {
8639 magic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8640 ::memset(&footerlength_, 0, static_cast<size_t>(
8641 reinterpret_cast<char*>(&metadatalength_) -
8642 reinterpret_cast<char*>(&footerlength_)) + sizeof(metadatalength_));
8643}
8644
8645PostScript::~PostScript() {
8646 // @@protoc_insertion_point(destructor:orc.proto.PostScript)
8647 SharedDtor();
8648}
8649
8650void PostScript::SharedDtor() {
8651 magic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8652}
8653
8654void PostScript::SetCachedSize(int size) const {
8655 _cached_size_.Set(size);
8656}
8657const ::google::protobuf::Descriptor* PostScript::descriptor() {
8658 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
8659 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8660}
8661
8662const PostScript& PostScript::default_instance() {
8663 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_PostScript.base);
8664 return *internal_default_instance();
8665}
8666
8667
8668void PostScript::Clear() {
8669// @@protoc_insertion_point(message_clear_start:orc.proto.PostScript)
8670 ::google::protobuf::uint32 cached_has_bits = 0;
8671 // Prevent compiler warnings about cached_has_bits being unused
8672 (void) cached_has_bits;
8673
8674 version_.Clear();
8675 cached_has_bits = _has_bits_[0];
8676 if (cached_has_bits & 0x00000001u) {
8677 magic_.ClearNonDefaultToEmptyNoArena();
8678 }
8679 if (cached_has_bits & 62u) {
8680 ::memset(&footerlength_, 0, static_cast<size_t>(
8681 reinterpret_cast<char*>(&metadatalength_) -
8682 reinterpret_cast<char*>(&footerlength_)) + sizeof(metadatalength_));
8683 }
8684 _has_bits_.Clear();
8685 _internal_metadata_.Clear();
8686}
8687
8688bool PostScript::MergePartialFromCodedStream(
8689 ::google::protobuf::io::CodedInputStream* input) {
8690#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8691 ::google::protobuf::uint32 tag;
8692 // @@protoc_insertion_point(parse_start:orc.proto.PostScript)
8693 for (;;) {
8694 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(64005u);
8695 tag = p.first;
8696 if (!p.second) goto handle_unusual;
8697 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8698 // optional uint64 footerLength = 1;
8699 case 1: {
8700 if (static_cast< ::google::protobuf::uint8>(tag) ==
8701 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8702 set_has_footerlength();
8703 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8704 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8705 input, &footerlength_)));
8706 } else {
8707 goto handle_unusual;
8708 }
8709 break;
8710 }
8711
8712 // optional .orc.proto.CompressionKind compression = 2;
8713 case 2: {
8714 if (static_cast< ::google::protobuf::uint8>(tag) ==
8715 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8716 int value;
8717 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8718 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8719 input, &value)));
8720 if (::orc::proto::CompressionKind_IsValid(value)) {
8721 set_compression(static_cast< ::orc::proto::CompressionKind >(value));
8722 } else {
8723 mutable_unknown_fields()->AddVarint(
8724 2, static_cast< ::google::protobuf::uint64>(value));
8725 }
8726 } else {
8727 goto handle_unusual;
8728 }
8729 break;
8730 }
8731
8732 // optional uint64 compressionBlockSize = 3;
8733 case 3: {
8734 if (static_cast< ::google::protobuf::uint8>(tag) ==
8735 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
8736 set_has_compressionblocksize();
8737 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8738 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8739 input, &compressionblocksize_)));
8740 } else {
8741 goto handle_unusual;
8742 }
8743 break;
8744 }
8745
8746 // repeated uint32 version = 4 [packed = true];
8747 case 4: {
8748 if (static_cast< ::google::protobuf::uint8>(tag) ==
8749 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8750 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
8751 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8752 input, this->mutable_version())));
8753 } else if (
8754 static_cast< ::google::protobuf::uint8>(tag) ==
8755 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
8756 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
8757 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8758 1, 34u, input, this->mutable_version())));
8759 } else {
8760 goto handle_unusual;
8761 }
8762 break;
8763 }
8764
8765 // optional uint64 metadataLength = 5;
8766 case 5: {
8767 if (static_cast< ::google::protobuf::uint8>(tag) ==
8768 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
8769 set_has_metadatalength();
8770 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8771 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8772 input, &metadatalength_)));
8773 } else {
8774 goto handle_unusual;
8775 }
8776 break;
8777 }
8778
8779 // optional uint32 writerVersion = 6;
8780 case 6: {
8781 if (static_cast< ::google::protobuf::uint8>(tag) ==
8782 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8783 set_has_writerversion();
8784 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8785 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8786 input, &writerversion_)));
8787 } else {
8788 goto handle_unusual;
8789 }
8790 break;
8791 }
8792
8793 // optional string magic = 8000;
8794 case 8000: {
8795 if (static_cast< ::google::protobuf::uint8>(tag) ==
8796 static_cast< ::google::protobuf::uint8>(2u /* 64002 & 0xFF */)) {
8797 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8798 input, this->mutable_magic()));
8799 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8800 this->magic().data(), static_cast<int>(this->magic().length()),
8801 ::google::protobuf::internal::WireFormat::PARSE,
8802 "orc.proto.PostScript.magic");
8803 } else {
8804 goto handle_unusual;
8805 }
8806 break;
8807 }
8808
8809 default: {
8810 handle_unusual:
8811 if (tag == 0) {
8812 goto success;
8813 }
8814 DO_(::google::protobuf::internal::WireFormat::SkipField(
8815 input, tag, _internal_metadata_.mutable_unknown_fields()));
8816 break;
8817 }
8818 }
8819 }
8820success:
8821 // @@protoc_insertion_point(parse_success:orc.proto.PostScript)
8822 return true;
8823failure:
8824 // @@protoc_insertion_point(parse_failure:orc.proto.PostScript)
8825 return false;
8826#undef DO_
8827}
8828
8829void PostScript::SerializeWithCachedSizes(
8830 ::google::protobuf::io::CodedOutputStream* output) const {
8831 // @@protoc_insertion_point(serialize_start:orc.proto.PostScript)
8832 ::google::protobuf::uint32 cached_has_bits = 0;
8833 (void) cached_has_bits;
8834
8835 cached_has_bits = _has_bits_[0];
8836 // optional uint64 footerLength = 1;
8837 if (cached_has_bits & 0x00000002u) {
8838 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->footerlength(), output);
8839 }
8840
8841 // optional .orc.proto.CompressionKind compression = 2;
8842 if (cached_has_bits & 0x00000008u) {
8843 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8844 2, this->compression(), output);
8845 }
8846
8847 // optional uint64 compressionBlockSize = 3;
8848 if (cached_has_bits & 0x00000004u) {
8849 ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->compressionblocksize(), output);
8850 }
8851
8852 // repeated uint32 version = 4 [packed = true];
8853 if (this->version_size() > 0) {
8854 ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
8855 output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
8856 _version_cached_byte_size_));
8857 }
8858 for (int i = 0, n = this->version_size(); i < n; i++) {
8859 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
8860 this->version(i), output);
8861 }
8862
8863 // optional uint64 metadataLength = 5;
8864 if (cached_has_bits & 0x00000020u) {
8865 ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->metadatalength(), output);
8866 }
8867
8868 // optional uint32 writerVersion = 6;
8869 if (cached_has_bits & 0x00000010u) {
8870 ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->writerversion(), output);
8871 }
8872
8873 // optional string magic = 8000;
8874 if (cached_has_bits & 0x00000001u) {
8875 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8876 this->magic().data(), static_cast<int>(this->magic().length()),
8877 ::google::protobuf::internal::WireFormat::SERIALIZE,
8878 "orc.proto.PostScript.magic");
8879 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8880 8000, this->magic(), output);
8881 }
8882
8883 if (_internal_metadata_.have_unknown_fields()) {
8884 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8885 _internal_metadata_.unknown_fields(), output);
8886 }
8887 // @@protoc_insertion_point(serialize_end:orc.proto.PostScript)
8888}
8889
8890::google::protobuf::uint8* PostScript::InternalSerializeWithCachedSizesToArray(
8891 bool deterministic, ::google::protobuf::uint8* target) const {
8892 (void)deterministic; // Unused
8893 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.PostScript)
8894 ::google::protobuf::uint32 cached_has_bits = 0;
8895 (void) cached_has_bits;
8896
8897 cached_has_bits = _has_bits_[0];
8898 // optional uint64 footerLength = 1;
8899 if (cached_has_bits & 0x00000002u) {
8900 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->footerlength(), target);
8901 }
8902
8903 // optional .orc.proto.CompressionKind compression = 2;
8904 if (cached_has_bits & 0x00000008u) {
8905 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8906 2, this->compression(), target);
8907 }
8908
8909 // optional uint64 compressionBlockSize = 3;
8910 if (cached_has_bits & 0x00000004u) {
8911 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->compressionblocksize(), target);
8912 }
8913
8914 // repeated uint32 version = 4 [packed = true];
8915 if (this->version_size() > 0) {
8916 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8917 4,
8918 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
8919 target);
8920 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
8921 static_cast< ::google::protobuf::int32>(
8922 _version_cached_byte_size_), target);
8923 target = ::google::protobuf::internal::WireFormatLite::
8924 WriteUInt32NoTagToArray(this->version_, target);
8925 }
8926
8927 // optional uint64 metadataLength = 5;
8928 if (cached_has_bits & 0x00000020u) {
8929 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->metadatalength(), target);
8930 }
8931
8932 // optional uint32 writerVersion = 6;
8933 if (cached_has_bits & 0x00000010u) {
8934 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->writerversion(), target);
8935 }
8936
8937 // optional string magic = 8000;
8938 if (cached_has_bits & 0x00000001u) {
8939 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8940 this->magic().data(), static_cast<int>(this->magic().length()),
8941 ::google::protobuf::internal::WireFormat::SERIALIZE,
8942 "orc.proto.PostScript.magic");
8943 target =
8944 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8945 8000, this->magic(), target);
8946 }
8947
8948 if (_internal_metadata_.have_unknown_fields()) {
8949 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8950 _internal_metadata_.unknown_fields(), target);
8951 }
8952 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.PostScript)
8953 return target;
8954}
8955
8956size_t PostScript::ByteSizeLong() const {
8957// @@protoc_insertion_point(message_byte_size_start:orc.proto.PostScript)
8958 size_t total_size = 0;
8959
8960 if (_internal_metadata_.have_unknown_fields()) {
8961 total_size +=
8962 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8963 _internal_metadata_.unknown_fields());
8964 }
8965 // repeated uint32 version = 4 [packed = true];
8966 {
8967 size_t data_size = ::google::protobuf::internal::WireFormatLite::
8968 UInt32Size(this->version_);
8969 if (data_size > 0) {
8970 total_size += 1 +
8971 ::google::protobuf::internal::WireFormatLite::Int32Size(
8972 static_cast< ::google::protobuf::int32>(data_size));
8973 }
8974 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
8975 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8976 _version_cached_byte_size_ = cached_size;
8977 GOOGLE_SAFE_CONCURRENT_WRITES_END();
8978 total_size += data_size;
8979 }
8980
8981 if (_has_bits_[0 / 32] & 63u) {
8982 // optional string magic = 8000;
8983 if (has_magic()) {
8984 total_size += 3 +
8985 ::google::protobuf::internal::WireFormatLite::StringSize(
8986 this->magic());
8987 }
8988
8989 // optional uint64 footerLength = 1;
8990 if (has_footerlength()) {
8991 total_size += 1 +
8992 ::google::protobuf::internal::WireFormatLite::UInt64Size(
8993 this->footerlength());
8994 }
8995
8996 // optional uint64 compressionBlockSize = 3;
8997 if (has_compressionblocksize()) {
8998 total_size += 1 +
8999 ::google::protobuf::internal::WireFormatLite::UInt64Size(
9000 this->compressionblocksize());
9001 }
9002
9003 // optional .orc.proto.CompressionKind compression = 2;
9004 if (has_compression()) {
9005 total_size += 1 +
9006 ::google::protobuf::internal::WireFormatLite::EnumSize(this->compression());
9007 }
9008
9009 // optional uint32 writerVersion = 6;
9010 if (has_writerversion()) {
9011 total_size += 1 +
9012 ::google::protobuf::internal::WireFormatLite::UInt32Size(
9013 this->writerversion());
9014 }
9015
9016 // optional uint64 metadataLength = 5;
9017 if (has_metadatalength()) {
9018 total_size += 1 +
9019 ::google::protobuf::internal::WireFormatLite::UInt64Size(
9020 this->metadatalength());
9021 }
9022
9023 }
9024 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9025 SetCachedSize(cached_size);
9026 return total_size;
9027}
9028
9029void PostScript::MergeFrom(const ::google::protobuf::Message& from) {
9030// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.PostScript)
9031 GOOGLE_DCHECK_NE(&from, this);
9032 const PostScript* source =
9033 ::google::protobuf::internal::DynamicCastToGenerated<const PostScript>(
9034 &from);
9035 if (source == NULL) {
9036 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.PostScript)
9037 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9038 } else {
9039 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.PostScript)
9040 MergeFrom(*source);
9041 }
9042}
9043
9044void PostScript::MergeFrom(const PostScript& from) {
9045// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.PostScript)
9046 GOOGLE_DCHECK_NE(&from, this);
9047 _internal_metadata_.MergeFrom(from._internal_metadata_);
9048 ::google::protobuf::uint32 cached_has_bits = 0;
9049 (void) cached_has_bits;
9050
9051 version_.MergeFrom(from.version_);
9052 cached_has_bits = from._has_bits_[0];
9053 if (cached_has_bits & 63u) {
9054 if (cached_has_bits & 0x00000001u) {
9055 set_has_magic();
9056 magic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.magic_);
9057 }
9058 if (cached_has_bits & 0x00000002u) {
9059 footerlength_ = from.footerlength_;
9060 }
9061 if (cached_has_bits & 0x00000004u) {
9062 compressionblocksize_ = from.compressionblocksize_;
9063 }
9064 if (cached_has_bits & 0x00000008u) {
9065 compression_ = from.compression_;
9066 }
9067 if (cached_has_bits & 0x00000010u) {
9068 writerversion_ = from.writerversion_;
9069 }
9070 if (cached_has_bits & 0x00000020u) {
9071 metadatalength_ = from.metadatalength_;
9072 }
9073 _has_bits_[0] |= cached_has_bits;
9074 }
9075}
9076
9077void PostScript::CopyFrom(const ::google::protobuf::Message& from) {
9078// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.PostScript)
9079 if (&from == this) return;
9080 Clear();
9081 MergeFrom(from);
9082}
9083
9084void PostScript::CopyFrom(const PostScript& from) {
9085// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.PostScript)
9086 if (&from == this) return;
9087 Clear();
9088 MergeFrom(from);
9089}
9090
9091bool PostScript::IsInitialized() const {
9092 return true;
9093}
9094
9095void PostScript::Swap(PostScript* other) {
9096 if (other == this) return;
9097 InternalSwap(other);
9098}
9099void PostScript::InternalSwap(PostScript* other) {
9100 using std::swap;
9101 version_.InternalSwap(&other->version_);
9102 magic_.Swap(&other->magic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9103 GetArenaNoVirtual());
9104 swap(footerlength_, other->footerlength_);
9105 swap(compressionblocksize_, other->compressionblocksize_);
9106 swap(compression_, other->compression_);
9107 swap(writerversion_, other->writerversion_);
9108 swap(metadatalength_, other->metadatalength_);
9109 swap(_has_bits_[0], other->_has_bits_[0]);
9110 _internal_metadata_.Swap(&other->_internal_metadata_);
9111}
9112
9113::google::protobuf::Metadata PostScript::GetMetadata() const {
9114 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
9115 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
9116}
9117
9118
9119// ===================================================================
9120
9121void FileTail::InitAsDefaultInstance() {
9122 ::orc::proto::_FileTail_default_instance_._instance.get_mutable()->postscript_ = const_cast< ::orc::proto::PostScript*>(
9123 ::orc::proto::PostScript::internal_default_instance());
9124 ::orc::proto::_FileTail_default_instance_._instance.get_mutable()->footer_ = const_cast< ::orc::proto::Footer*>(
9125 ::orc::proto::Footer::internal_default_instance());
9126}
9127#if !defined(_MSC_VER) || _MSC_VER >= 1900
9128const int FileTail::kPostscriptFieldNumber;
9129const int FileTail::kFooterFieldNumber;
9130const int FileTail::kFileLengthFieldNumber;
9131const int FileTail::kPostscriptLengthFieldNumber;
9132#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9133
9134FileTail::FileTail()
9135 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9136 ::google::protobuf::internal::InitSCC(
9137 &protobuf_orc_5fproto_2eproto::scc_info_FileTail.base);
9138 SharedCtor();
9139 // @@protoc_insertion_point(constructor:orc.proto.FileTail)
9140}
9141FileTail::FileTail(const FileTail& from)
9142 : ::google::protobuf::Message(),
9143 _internal_metadata_(NULL),
9144 _has_bits_(from._has_bits_) {
9145 _internal_metadata_.MergeFrom(from._internal_metadata_);
9146 if (from.has_postscript()) {
9147 postscript_ = new ::orc::proto::PostScript(*from.postscript_);
9148 } else {
9149 postscript_ = NULL;
9150 }
9151 if (from.has_footer()) {
9152 footer_ = new ::orc::proto::Footer(*from.footer_);
9153 } else {
9154 footer_ = NULL;
9155 }
9156 ::memcpy(&filelength_, &from.filelength_,
9157 static_cast<size_t>(reinterpret_cast<char*>(&postscriptlength_) -
9158 reinterpret_cast<char*>(&filelength_)) + sizeof(postscriptlength_));
9159 // @@protoc_insertion_point(copy_constructor:orc.proto.FileTail)
9160}
9161
9162void FileTail::SharedCtor() {
9163 ::memset(&postscript_, 0, static_cast<size_t>(
9164 reinterpret_cast<char*>(&postscriptlength_) -
9165 reinterpret_cast<char*>(&postscript_)) + sizeof(postscriptlength_));
9166}
9167
9168FileTail::~FileTail() {
9169 // @@protoc_insertion_point(destructor:orc.proto.FileTail)
9170 SharedDtor();
9171}
9172
9173void FileTail::SharedDtor() {
9174 if (this != internal_default_instance()) delete postscript_;
9175 if (this != internal_default_instance()) delete footer_;
9176}
9177
9178void FileTail::SetCachedSize(int size) const {
9179 _cached_size_.Set(size);
9180}
9181const ::google::protobuf::Descriptor* FileTail::descriptor() {
9182 ::protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
9183 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9184}
9185
9186const FileTail& FileTail::default_instance() {
9187 ::google::protobuf::internal::InitSCC(&protobuf_orc_5fproto_2eproto::scc_info_FileTail.base);
9188 return *internal_default_instance();
9189}
9190
9191
9192void FileTail::Clear() {
9193// @@protoc_insertion_point(message_clear_start:orc.proto.FileTail)
9194 ::google::protobuf::uint32 cached_has_bits = 0;
9195 // Prevent compiler warnings about cached_has_bits being unused
9196 (void) cached_has_bits;
9197
9198 cached_has_bits = _has_bits_[0];
9199 if (cached_has_bits & 3u) {
9200 if (cached_has_bits & 0x00000001u) {
9201 GOOGLE_DCHECK(postscript_ != NULL);
9202 postscript_->Clear();
9203 }
9204 if (cached_has_bits & 0x00000002u) {
9205 GOOGLE_DCHECK(footer_ != NULL);
9206 footer_->Clear();
9207 }
9208 }
9209 if (cached_has_bits & 12u) {
9210 ::memset(&filelength_, 0, static_cast<size_t>(
9211 reinterpret_cast<char*>(&postscriptlength_) -
9212 reinterpret_cast<char*>(&filelength_)) + sizeof(postscriptlength_));
9213 }
9214 _has_bits_.Clear();
9215 _internal_metadata_.Clear();
9216}
9217
9218bool FileTail::MergePartialFromCodedStream(
9219 ::google::protobuf::io::CodedInputStream* input) {
9220#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9221 ::google::protobuf::uint32 tag;
9222 // @@protoc_insertion_point(parse_start:orc.proto.FileTail)
9223 for (;;) {
9224 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9225 tag = p.first;
9226 if (!p.second) goto handle_unusual;
9227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9228 // optional .orc.proto.PostScript postscript = 1;
9229 case 1: {
9230 if (static_cast< ::google::protobuf::uint8>(tag) ==
9231 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9232 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9233 input, mutable_postscript()));
9234 } else {
9235 goto handle_unusual;
9236 }
9237 break;
9238 }
9239
9240 // optional .orc.proto.Footer footer = 2;
9241 case 2: {
9242 if (static_cast< ::google::protobuf::uint8>(tag) ==
9243 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9244 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9245 input, mutable_footer()));
9246 } else {
9247 goto handle_unusual;
9248 }
9249 break;
9250 }
9251
9252 // optional uint64 fileLength = 3;
9253 case 3: {
9254 if (static_cast< ::google::protobuf::uint8>(tag) ==
9255 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
9256 set_has_filelength();
9257 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9258 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9259 input, &filelength_)));
9260 } else {
9261 goto handle_unusual;
9262 }
9263 break;
9264 }
9265
9266 // optional uint64 postscriptLength = 4;
9267 case 4: {
9268 if (static_cast< ::google::protobuf::uint8>(tag) ==
9269 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
9270 set_has_postscriptlength();
9271 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9272 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9273 input, &postscriptlength_)));
9274 } else {
9275 goto handle_unusual;
9276 }
9277 break;
9278 }
9279
9280 default: {
9281 handle_unusual:
9282 if (tag == 0) {
9283 goto success;
9284 }
9285 DO_(::google::protobuf::internal::WireFormat::SkipField(
9286 input, tag, _internal_metadata_.mutable_unknown_fields()));
9287 break;
9288 }
9289 }
9290 }
9291success:
9292 // @@protoc_insertion_point(parse_success:orc.proto.FileTail)
9293 return true;
9294failure:
9295 // @@protoc_insertion_point(parse_failure:orc.proto.FileTail)
9296 return false;
9297#undef DO_
9298}
9299
9300void FileTail::SerializeWithCachedSizes(
9301 ::google::protobuf::io::CodedOutputStream* output) const {
9302 // @@protoc_insertion_point(serialize_start:orc.proto.FileTail)
9303 ::google::protobuf::uint32 cached_has_bits = 0;
9304 (void) cached_has_bits;
9305
9306 cached_has_bits = _has_bits_[0];
9307 // optional .orc.proto.PostScript postscript = 1;
9308 if (cached_has_bits & 0x00000001u) {
9309 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9310 1, this->_internal_postscript(), output);
9311 }
9312
9313 // optional .orc.proto.Footer footer = 2;
9314 if (cached_has_bits & 0x00000002u) {
9315 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9316 2, this->_internal_footer(), output);
9317 }
9318
9319 // optional uint64 fileLength = 3;
9320 if (cached_has_bits & 0x00000004u) {
9321 ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->filelength(), output);
9322 }
9323
9324 // optional uint64 postscriptLength = 4;
9325 if (cached_has_bits & 0x00000008u) {
9326 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->postscriptlength(), output);
9327 }
9328
9329 if (_internal_metadata_.have_unknown_fields()) {
9330 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9331 _internal_metadata_.unknown_fields(), output);
9332 }
9333 // @@protoc_insertion_point(serialize_end:orc.proto.FileTail)
9334}
9335
9336::google::protobuf::uint8* FileTail::InternalSerializeWithCachedSizesToArray(
9337 bool deterministic, ::google::protobuf::uint8* target) const {
9338 (void)deterministic; // Unused
9339 // @@protoc_insertion_point(serialize_to_array_start:orc.proto.FileTail)
9340 ::google::protobuf::uint32 cached_has_bits = 0;
9341 (void) cached_has_bits;
9342
9343 cached_has_bits = _has_bits_[0];
9344 // optional .orc.proto.PostScript postscript = 1;
9345 if (cached_has_bits & 0x00000001u) {
9346 target = ::google::protobuf::internal::WireFormatLite::
9347 InternalWriteMessageToArray(
9348 1, this->_internal_postscript(), deterministic, target);
9349 }
9350
9351 // optional .orc.proto.Footer footer = 2;
9352 if (cached_has_bits & 0x00000002u) {
9353 target = ::google::protobuf::internal::WireFormatLite::
9354 InternalWriteMessageToArray(
9355 2, this->_internal_footer(), deterministic, target);
9356 }
9357
9358 // optional uint64 fileLength = 3;
9359 if (cached_has_bits & 0x00000004u) {
9360 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->filelength(), target);
9361 }
9362
9363 // optional uint64 postscriptLength = 4;
9364 if (cached_has_bits & 0x00000008u) {
9365 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->postscriptlength(), target);
9366 }
9367
9368 if (_internal_metadata_.have_unknown_fields()) {
9369 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9370 _internal_metadata_.unknown_fields(), target);
9371 }
9372 // @@protoc_insertion_point(serialize_to_array_end:orc.proto.FileTail)
9373 return target;
9374}
9375
9376size_t FileTail::ByteSizeLong() const {
9377// @@protoc_insertion_point(message_byte_size_start:orc.proto.FileTail)
9378 size_t total_size = 0;
9379
9380 if (_internal_metadata_.have_unknown_fields()) {
9381 total_size +=
9382 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9383 _internal_metadata_.unknown_fields());
9384 }
9385 if (_has_bits_[0 / 32] & 15u) {
9386 // optional .orc.proto.PostScript postscript = 1;
9387 if (has_postscript()) {
9388 total_size += 1 +
9389 ::google::protobuf::internal::WireFormatLite::MessageSize(
9390 *postscript_);
9391 }
9392
9393 // optional .orc.proto.Footer footer = 2;
9394 if (has_footer()) {
9395 total_size += 1 +
9396 ::google::protobuf::internal::WireFormatLite::MessageSize(
9397 *footer_);
9398 }
9399
9400 // optional uint64 fileLength = 3;
9401 if (has_filelength()) {
9402 total_size += 1 +
9403 ::google::protobuf::internal::WireFormatLite::UInt64Size(
9404 this->filelength());
9405 }
9406
9407 // optional uint64 postscriptLength = 4;
9408 if (has_postscriptlength()) {
9409 total_size += 1 +
9410 ::google::protobuf::internal::WireFormatLite::UInt64Size(
9411 this->postscriptlength());
9412 }
9413
9414 }
9415 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9416 SetCachedSize(cached_size);
9417 return total_size;
9418}
9419
9420void FileTail::MergeFrom(const ::google::protobuf::Message& from) {
9421// @@protoc_insertion_point(generalized_merge_from_start:orc.proto.FileTail)
9422 GOOGLE_DCHECK_NE(&from, this);
9423 const FileTail* source =
9424 ::google::protobuf::internal::DynamicCastToGenerated<const FileTail>(
9425 &from);
9426 if (source == NULL) {
9427 // @@protoc_insertion_point(generalized_merge_from_cast_fail:orc.proto.FileTail)
9428 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9429 } else {
9430 // @@protoc_insertion_point(generalized_merge_from_cast_success:orc.proto.FileTail)
9431 MergeFrom(*source);
9432 }
9433}
9434
9435void FileTail::MergeFrom(const FileTail& from) {
9436// @@protoc_insertion_point(class_specific_merge_from_start:orc.proto.FileTail)
9437 GOOGLE_DCHECK_NE(&from, this);
9438 _internal_metadata_.MergeFrom(from._internal_metadata_);
9439 ::google::protobuf::uint32 cached_has_bits = 0;
9440 (void) cached_has_bits;
9441
9442 cached_has_bits = from._has_bits_[0];
9443 if (cached_has_bits & 15u) {
9444 if (cached_has_bits & 0x00000001u) {
9445 mutable_postscript()->::orc::proto::PostScript::MergeFrom(from.postscript());
9446 }
9447 if (cached_has_bits & 0x00000002u) {
9448 mutable_footer()->::orc::proto::Footer::MergeFrom(from.footer());
9449 }
9450 if (cached_has_bits & 0x00000004u) {
9451 filelength_ = from.filelength_;
9452 }
9453 if (cached_has_bits & 0x00000008u) {
9454 postscriptlength_ = from.postscriptlength_;
9455 }
9456 _has_bits_[0] |= cached_has_bits;
9457 }
9458}
9459
9460void FileTail::CopyFrom(const ::google::protobuf::Message& from) {
9461// @@protoc_insertion_point(generalized_copy_from_start:orc.proto.FileTail)
9462 if (&from == this) return;
9463 Clear();
9464 MergeFrom(from);
9465}
9466
9467void FileTail::CopyFrom(const FileTail& from) {
9468// @@protoc_insertion_point(class_specific_copy_from_start:orc.proto.FileTail)
9469 if (&from == this) return;
9470 Clear();
9471 MergeFrom(from);
9472}
9473
9474bool FileTail::IsInitialized() const {
9475 return true;
9476}
9477
9478void FileTail::Swap(FileTail* other) {
9479 if (other == this) return;
9480 InternalSwap(other);
9481}
9482void FileTail::InternalSwap(FileTail* other) {
9483 using std::swap;
9484 swap(postscript_, other->postscript_);
9485 swap(footer_, other->footer_);
9486 swap(filelength_, other->filelength_);
9487 swap(postscriptlength_, other->postscriptlength_);
9488 swap(_has_bits_[0], other->_has_bits_[0]);
9489 _internal_metadata_.Swap(&other->_internal_metadata_);
9490}
9491
9492::google::protobuf::Metadata FileTail::GetMetadata() const {
9493 protobuf_orc_5fproto_2eproto::protobuf_AssignDescriptorsOnce();
9494 return ::protobuf_orc_5fproto_2eproto::file_level_metadata[kIndexInFileMessages];
9495}
9496
9497
9498// @@protoc_insertion_point(namespace_scope)
9499} // namespace proto
9500} // namespace orc
9501namespace google {
9502namespace protobuf {
9503template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::IntegerStatistics* Arena::CreateMaybeMessage< ::orc::proto::IntegerStatistics >(Arena* arena) {
9504 return Arena::CreateInternal< ::orc::proto::IntegerStatistics >(arena);
9505}
9506template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::DoubleStatistics* Arena::CreateMaybeMessage< ::orc::proto::DoubleStatistics >(Arena* arena) {
9507 return Arena::CreateInternal< ::orc::proto::DoubleStatistics >(arena);
9508}
9509template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::StringStatistics* Arena::CreateMaybeMessage< ::orc::proto::StringStatistics >(Arena* arena) {
9510 return Arena::CreateInternal< ::orc::proto::StringStatistics >(arena);
9511}
9512template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::BucketStatistics* Arena::CreateMaybeMessage< ::orc::proto::BucketStatistics >(Arena* arena) {
9513 return Arena::CreateInternal< ::orc::proto::BucketStatistics >(arena);
9514}
9515template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::DecimalStatistics* Arena::CreateMaybeMessage< ::orc::proto::DecimalStatistics >(Arena* arena) {
9516 return Arena::CreateInternal< ::orc::proto::DecimalStatistics >(arena);
9517}
9518template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::DateStatistics* Arena::CreateMaybeMessage< ::orc::proto::DateStatistics >(Arena* arena) {
9519 return Arena::CreateInternal< ::orc::proto::DateStatistics >(arena);
9520}
9521template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::TimestampStatistics* Arena::CreateMaybeMessage< ::orc::proto::TimestampStatistics >(Arena* arena) {
9522 return Arena::CreateInternal< ::orc::proto::TimestampStatistics >(arena);
9523}
9524template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::BinaryStatistics* Arena::CreateMaybeMessage< ::orc::proto::BinaryStatistics >(Arena* arena) {
9525 return Arena::CreateInternal< ::orc::proto::BinaryStatistics >(arena);
9526}
9527template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::ColumnStatistics* Arena::CreateMaybeMessage< ::orc::proto::ColumnStatistics >(Arena* arena) {
9528 return Arena::CreateInternal< ::orc::proto::ColumnStatistics >(arena);
9529}
9530template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::RowIndexEntry* Arena::CreateMaybeMessage< ::orc::proto::RowIndexEntry >(Arena* arena) {
9531 return Arena::CreateInternal< ::orc::proto::RowIndexEntry >(arena);
9532}
9533template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::RowIndex* Arena::CreateMaybeMessage< ::orc::proto::RowIndex >(Arena* arena) {
9534 return Arena::CreateInternal< ::orc::proto::RowIndex >(arena);
9535}
9536template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::BloomFilter* Arena::CreateMaybeMessage< ::orc::proto::BloomFilter >(Arena* arena) {
9537 return Arena::CreateInternal< ::orc::proto::BloomFilter >(arena);
9538}
9539template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::BloomFilterIndex* Arena::CreateMaybeMessage< ::orc::proto::BloomFilterIndex >(Arena* arena) {
9540 return Arena::CreateInternal< ::orc::proto::BloomFilterIndex >(arena);
9541}
9542template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::Stream* Arena::CreateMaybeMessage< ::orc::proto::Stream >(Arena* arena) {
9543 return Arena::CreateInternal< ::orc::proto::Stream >(arena);
9544}
9545template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::ColumnEncoding* Arena::CreateMaybeMessage< ::orc::proto::ColumnEncoding >(Arena* arena) {
9546 return Arena::CreateInternal< ::orc::proto::ColumnEncoding >(arena);
9547}
9548template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::StripeFooter* Arena::CreateMaybeMessage< ::orc::proto::StripeFooter >(Arena* arena) {
9549 return Arena::CreateInternal< ::orc::proto::StripeFooter >(arena);
9550}
9551template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::Type* Arena::CreateMaybeMessage< ::orc::proto::Type >(Arena* arena) {
9552 return Arena::CreateInternal< ::orc::proto::Type >(arena);
9553}
9554template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::StripeInformation* Arena::CreateMaybeMessage< ::orc::proto::StripeInformation >(Arena* arena) {
9555 return Arena::CreateInternal< ::orc::proto::StripeInformation >(arena);
9556}
9557template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::UserMetadataItem* Arena::CreateMaybeMessage< ::orc::proto::UserMetadataItem >(Arena* arena) {
9558 return Arena::CreateInternal< ::orc::proto::UserMetadataItem >(arena);
9559}
9560template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::StripeStatistics* Arena::CreateMaybeMessage< ::orc::proto::StripeStatistics >(Arena* arena) {
9561 return Arena::CreateInternal< ::orc::proto::StripeStatistics >(arena);
9562}
9563template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::Metadata* Arena::CreateMaybeMessage< ::orc::proto::Metadata >(Arena* arena) {
9564 return Arena::CreateInternal< ::orc::proto::Metadata >(arena);
9565}
9566template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::Footer* Arena::CreateMaybeMessage< ::orc::proto::Footer >(Arena* arena) {
9567 return Arena::CreateInternal< ::orc::proto::Footer >(arena);
9568}
9569template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::PostScript* Arena::CreateMaybeMessage< ::orc::proto::PostScript >(Arena* arena) {
9570 return Arena::CreateInternal< ::orc::proto::PostScript >(arena);
9571}
9572template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::orc::proto::FileTail* Arena::CreateMaybeMessage< ::orc::proto::FileTail >(Arena* arena) {
9573 return Arena::CreateInternal< ::orc::proto::FileTail >(arena);
9574}
9575} // namespace protobuf
9576} // namespace google
9577
9578// @@protoc_insertion_point(global_scope)
9579