| 1562 | } |
| 1563 | |
| 1564 | StatisticsPair GetPageStatistics() override { |
| 1565 | StatisticsPair result; |
| 1566 | if (page_statistics_) { |
| 1567 | result.encoded_stats = page_statistics_->Encode(); |
| 1568 | } |
| 1569 | if (properties_->size_statistics_level() == SizeStatisticsLevel::PageAndColumnChunk) { |
| 1570 | ARROW_DCHECK(page_size_statistics_ != nullptr); |
| 1571 | result.size_stats = *page_size_statistics_; |
| 1572 | } |
| 1573 | return result; |
| 1574 | } |
| 1575 | |
| 1576 | StatisticsPair GetChunkStatistics() override { |
| 1577 | StatisticsPair result; |