File tree Expand file tree Collapse file tree 3 files changed +4
-49
lines changed Expand file tree Collapse file tree 3 files changed +4
-49
lines changed Original file line number Diff line number Diff line change @@ -214,13 +214,10 @@ class ColumnChunkMetaData::ColumnChunkMetaDataImpl {
214
214
for (auto encoding : column_metadata_->encodings ) {
215
215
encodings_.push_back (FromThrift (encoding));
216
216
}
217
- auto fromthrift = [](format::PageEncodingStats page_encoding_stats) {
218
- return parquet::PageEncodingStats (FromThrift (page_encoding_stats.page_type ),
219
- FromThrift (page_encoding_stats.encoding ),
220
- page_encoding_stats.count );
221
- };
222
217
for (auto encoding_stats : column_metadata_->encoding_stats ) {
223
- encoding_stats_.push_back (fromthrift (encoding_stats));
218
+ encoding_stats_.push_back ({FromThrift (encoding_stats.page_type ),
219
+ FromThrift (encoding_stats.encoding ),
220
+ encoding_stats.count });
224
221
}
225
222
possible_stats_ = nullptr ;
226
223
}
Original file line number Diff line number Diff line change @@ -335,24 +335,6 @@ SortOrder::type GetSortOrder(const std::shared_ptr<const LogicalType>& logical_t
335
335
ColumnOrder ColumnOrder::undefined_ = ColumnOrder(ColumnOrder::UNDEFINED);
336
336
ColumnOrder ColumnOrder::type_defined_ = ColumnOrder(ColumnOrder::TYPE_DEFINED_ORDER);
337
337
338
- void PageEncodingStats::set_page_type (const PageType::type val) { this ->page_type = val; }
339
-
340
- void PageEncodingStats::set_encoding (const Encoding::type val) { this ->encoding = val; }
341
-
342
- void PageEncodingStats::set_count (const int32_t val) { this ->count = val; }
343
-
344
- PageEncodingStats::PageEncodingStats (const PageEncodingStats& obj) {
345
- page_type = obj.page_type ;
346
- encoding = obj.encoding ;
347
- count = obj.count ;
348
- }
349
- PageEncodingStats& PageEncodingStats::operator =(const PageEncodingStats& obj) {
350
- page_type = obj.page_type ;
351
- encoding = obj.encoding ;
352
- count = obj.count ;
353
- return *this ;
354
- }
355
-
356
338
// Static methods for LogicalType class
357
339
358
340
std::shared_ptr<const LogicalType> LogicalType::FromConvertedType (
Original file line number Diff line number Diff line change @@ -503,34 +503,10 @@ class ColumnOrder {
503
503
};
504
504
505
505
// parquet::PageEncodingStats
506
- class PARQUET_EXPORT PageEncodingStats {
507
- public:
508
- PageEncodingStats (const PageEncodingStats&);
509
- PageEncodingStats (PageEncodingStats&&) = default ;
510
- PageEncodingStats& operator =(const PageEncodingStats&);
511
- PageEncodingStats& operator =(PageEncodingStats&&) = default ;
512
- PageEncodingStats ()
513
- : page_type((PageType::type)0 ), encoding((Encoding::type)0 ), count(0 ) {}
514
- PageEncodingStats (PageType::type page_type_, Encoding::type encoding_, int32_t count_)
515
- : page_type((page_type_)), encoding(encoding_), count(count_) {}
516
-
506
+ struct PageEncodingStats {
517
507
PageType::type page_type;
518
508
Encoding::type encoding;
519
509
int32_t count;
520
-
521
- void set_page_type (const PageType::type val);
522
-
523
- void set_encoding (const Encoding::type val);
524
-
525
- void set_count (const int32_t val);
526
-
527
- bool operator ==(const PageEncodingStats& rhs) const {
528
- if (!(page_type == rhs.page_type )) return false ;
529
- if (!(encoding == rhs.encoding )) return false ;
530
- if (!(count == rhs.count )) return false ;
531
- return true ;
532
- }
533
- bool operator !=(const PageEncodingStats& rhs) const { return !(*this == rhs); }
534
510
};
535
511
536
512
// ----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments