| 255 | class SerializedPageReader : public PageReader { |
| 256 | public: |
| 257 | SerializedPageReader(std::shared_ptr<ArrowInputStream> stream, int64_t total_num_values, |
| 258 | Compression::type codec, const ReaderProperties& properties, |
| 259 | const CryptoContext* crypto_ctx, bool always_compressed, |
| 260 | StatisticsMinMaxField stats_min_max_field) |
| 261 | : properties_(properties), |
| 262 | stream_(std::move(stream)), |
| 263 | decompression_buffer_(AllocateBuffer(properties_.memory_pool(), 0)), |
| 264 | page_ordinal_(0), |
| 265 | seen_num_values_(0), |
| 266 | total_num_values_(total_num_values), |
| 267 | stats_min_max_field_(stats_min_max_field) { |
| 268 | if (crypto_ctx != nullptr) { |
| 269 | crypto_ctx_ = *crypto_ctx; |
| 270 | InitDecryption(); |
| 271 | } |
| 272 | max_page_header_size_ = kDefaultMaxPageHeaderSize; |
| 273 | decompressor_ = GetCodec(codec); |
| 274 | always_compressed_ = always_compressed; |
| 275 | } |
| 276 | |
| 277 | // Implement the PageReader interface |
| 278 | // |
nothing calls this directly
no test coverage detected