| 102 | MemoryPool* memory_pool() const override { return pool_; } |
| 103 | |
| 104 | int64_t ReportUnencodedDataBytes() override { |
| 105 | if (descr_->physical_type() != Type::BYTE_ARRAY) { |
| 106 | throw ParquetException("ReportUnencodedDataBytes is only supported for BYTE_ARRAY"); |
| 107 | } |
| 108 | int64_t bytes = unencoded_byte_array_data_bytes_; |
| 109 | unencoded_byte_array_data_bytes_ = 0; |
| 110 | return bytes; |
| 111 | } |
| 112 | |
| 113 | protected: |
| 114 | // For accessing type-specific metadata, like FIXED_LEN_BYTE_ARRAY |