Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cpp/src/arrow/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class ARROW_EXPORT Buffer {

Buffer(const uint8_t* data, int64_t size, std::shared_ptr<MemoryManager> mm,
std::shared_ptr<Buffer> parent = NULLPTR)
: is_mutable_(false), data_(data), size_(size), capacity_(size), parent_(parent) {
: is_mutable_(false),
data_(data),
size_(size),
capacity_(size),
parent_(std::move(parent)) {
SetMemoryManager(std::move(mm));
}

Expand Down
5 changes: 5 additions & 0 deletions cpp/src/parquet/column_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ class SerializedPageReader : public PageReader {
}

// Implement the PageReader interface
//
// The returned Page contains references that aren't guaranteed to live
// beyond the next call to NextPage(). SerializedPageReader reuses the
// decryption and decompression buffers internally, so if NextPage() is
// called then the content of previous page might be invalidated.
std::shared_ptr<Page> NextPage() override;

void set_max_page_header_size(uint32_t size) override { max_page_header_size_ = size; }
Expand Down
3 changes: 3 additions & 0 deletions cpp/src/parquet/column_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ class PARQUET_EXPORT PageReader {

// @returns: shared_ptr<Page>(nullptr) on EOS, std::shared_ptr<Page>
// containing new Page otherwise
//
// The returned Page may contain references that aren't guaranteed to live
// beyond the next call to NextPage().
virtual std::shared_ptr<Page> NextPage() = 0;

virtual void set_max_page_header_size(uint32_t size) = 0;
Expand Down