| 29 | namespace parquet { |
| 30 | |
| 31 | std::shared_ptr<::arrow::io::BufferOutputStream> CreateOutputStream(MemoryPool* pool) { |
| 32 | PARQUET_ASSIGN_OR_THROW(auto stream, ::arrow::io::BufferOutputStream::Create( |
| 33 | kDefaultOutputStreamSize, pool)); |
| 34 | return stream; |
| 35 | } |
| 36 | |
| 37 | std::shared_ptr<ResizableBuffer> AllocateBuffer(MemoryPool* pool, int64_t size) { |
| 38 | PARQUET_ASSIGN_OR_THROW(auto result, ::arrow::AllocateResizableBuffer(size, pool)); |
no outgoing calls