#include <EmptyFragment.h>
Inherits arrow::io::OutputStream.
|
| 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 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.
◆ PreallocatedOutputStream()
o2::framework::PreallocatedOutputStream::PreallocatedOutputStream |
( |
std::vector< size_t > & |
sizes, |
|
|
const std::shared_ptr< arrow::ResizableBuffer > & |
buffer |
|
) |
| |
|
explicit |
◆ ~PreallocatedOutputStream()
o2::framework::PreallocatedOutputStream::~PreallocatedOutputStream |
( |
| ) |
|
|
overridedefault |
◆ capacity()
int64_t o2::framework::PreallocatedOutputStream::capacity |
( |
| ) |
const |
|
inline |
◆ Close()
arrow::Status o2::framework::PreallocatedOutputStream::Close |
( |
| ) |
|
|
override |
◆ closed()
bool o2::framework::PreallocatedOutputStream::closed |
( |
| ) |
const |
|
override |
◆ Create()
arrow::Result< std::shared_ptr< PreallocatedOutputStream > > o2::framework::PreallocatedOutputStream::Create |
( |
std::vector< size_t > & |
sizes, |
|
|
int64_t |
initial_capacity = 4096 , |
|
|
arrow::MemoryPool * |
pool = arrow::default_memory_pool() |
|
) |
| |
|
static |
Create in-memory output stream with indicated capacity using a memory pool.
- Parameters
-
[in] | initial_capacity | the initial allocated internal capacity of the OutputStream |
[in,out] | pool | a MemoryPool to use for allocations |
- Returns
- the created stream
Definition at line 67 of file EmptyFragment.cxx.
◆ Finish()
arrow::Result< std::shared_ptr< arrow::Buffer > > o2::framework::PreallocatedOutputStream::Finish |
( |
| ) |
|
◆ Reset()
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.
- Parameters
-
[in] | initial_capacity | the starting allocated capacity |
[in,out] | pool | the memory pool to use for allocations |
- Returns
- Status
Definition at line 77 of file EmptyFragment.cxx.
◆ Tell()
arrow::Result< int64_t > o2::framework::PreallocatedOutputStream::Tell |
( |
| ) |
const |
|
override |
◆ Write()
arrow::Status o2::framework::PreallocatedOutputStream::Write |
( |
const void * |
data, |
|
|
int64_t |
nbytes |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: