MCPcopy Create free account
hub / github.com/apache/arrow / SerializedPageReader

Method SerializedPageReader

cpp/src/parquet/column_reader.cc:257–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255class 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 //

Callers

nothing calls this directly

Calls 3

GetCodecFunction · 0.85
AllocateBufferFunction · 0.70
memory_poolMethod · 0.45

Tested by

no test coverage detected