![]() |
Project
|
Inherits arrow::io::OutputStream.
Public Member Functions | |
TTreeDeferredReadOutputStream (std::vector< ReadOps > &ops, const std::shared_ptr< arrow::ResizableBuffer > &buffer) | |
~TTreeDeferredReadOutputStream () 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< ReadOps > ops, 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< TTreeDeferredReadOutputStream > > | Create (std::vector< ReadOps > &ops, 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 69 of file TTreePlugin.cxx.
|
explicit |
Definition at line 135 of file TTreePlugin.cxx.
|
overridedefault |
|
inline |
Definition at line 114 of file TTreePlugin.cxx.
|
override |
Close the stream, preserving the buffer (retrieve it with Finish()).
Definition at line 166 of file TTreePlugin.cxx.
|
override |
Definition at line 177 of file TTreePlugin.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 144 of file TTreePlugin.cxx.
arrow::Result< std::shared_ptr< arrow::Buffer > > o2::framework::TTreeDeferredReadOutputStream::Finish | ( | ) |
Close the stream and return the buffer.
Definition at line 179 of file TTreePlugin.cxx.
arrow::Status o2::framework::TTreeDeferredReadOutputStream::Reset | ( | std::vector< ReadOps > | ops, |
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 154 of file TTreePlugin.cxx.
|
override |
Definition at line 187 of file TTreePlugin.cxx.
|
override |
Definition at line 244 of file TTreePlugin.cxx.