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