![]() |
Project
|
#include <EmptyFragment.h>
Inherits arrow::io::OutputStream.
Public Member Functions | |
| PreallocatedOutputStream (std::vector< size_t > &sizes, const std::shared_ptr< arrow::ResizableBuffer > &buffer) | |
| ~PreallocatedOutputStream () override=default | |
| arrow::Status | Close () override |
| Close the stream, preserving the buffer (retrieve it with Finish()). | |
| bool | closed () const override |
| arrow::Result< int64_t > | Tell () const override |
| arrow::Status | Write (const void *data, int64_t nbytes) override |
| arrow::Result< std::shared_ptr< arrow::Buffer > > | Finish () |
| Close the stream and return the buffer. | |
| arrow::Status | Reset (std::vector< size_t > sizes, int64_t initial_capacity, arrow::MemoryPool *pool) |
| Initialize state of OutputStream with newly allocated memory and set position to 0. | |
| int64_t | capacity () const |
Static Public Member Functions | |
| static arrow::Result< std::shared_ptr< PreallocatedOutputStream > > | Create (std::vector< size_t > &sizes, int64_t initial_capacity=4096, arrow::MemoryPool *pool=arrow::default_memory_pool()) |
| Create in-memory output stream with indicated capacity using a memory pool. | |
An OutputStream which does the reading of the input buffers directly on writing, if needed. Each deferred operation is encoded in the source buffer by an incremental number which can be used to lookup in the ops vector the operation to perform.
Definition at line 54 of file EmptyFragment.h.
|
explicit |
Definition at line 63 of file EmptyFragment.cxx.
|
overridedefault |
|
inline |
Definition at line 99 of file EmptyFragment.h.
|
override |
Close the stream, preserving the buffer (retrieve it with Finish()).
Definition at line 94 of file EmptyFragment.cxx.
|
override |
Definition at line 105 of file EmptyFragment.cxx.
|
static |
Create in-memory output stream with indicated capacity using a memory pool.
| [in] | initial_capacity | the initial allocated internal capacity of the OutputStream |
| [in,out] | pool | a MemoryPool to use for allocations |
Definition at line 72 of file EmptyFragment.cxx.
| arrow::Result< std::shared_ptr< arrow::Buffer > > o2::framework::PreallocatedOutputStream::Finish | ( | ) |
Close the stream and return the buffer.
Definition at line 107 of file EmptyFragment.cxx.
| arrow::Status o2::framework::PreallocatedOutputStream::Reset | ( | std::vector< size_t > | sizes, |
| int64_t | initial_capacity, | ||
| arrow::MemoryPool * | pool | ||
| ) |
Initialize state of OutputStream with newly allocated memory and set position to 0.
| [in] | initial_capacity | the starting allocated capacity |
| [in,out] | pool | the memory pool to use for allocations |
Definition at line 82 of file EmptyFragment.cxx.
|
override |
Definition at line 115 of file EmptyFragment.cxx.
|
override |
Definition at line 117 of file EmptyFragment.cxx.