Encapsulates asynchronous buffered block writing engine. More...
|buffered_writer (unsigned_type write_buf_size, unsigned_type write_batch_size)|
|Constructs an object. |
|block_type *||get_free_block ()|
|Returns free block from the internal buffer pool. |
|block_type *||write (block_type *filled_block, const bid_type &bid)|
|Submits block for writing. |
|Flushes not yet written buffers. |
|Flushes not yet written buffers and frees used memory. |
< batch_entry, std::vector
< batch_entry >
, batch_entry_cmp >
|std::vector< int_type >||free_write_blocks|
|std::vector< int_type >||busy_write_blocks|
Encapsulates asynchronous buffered block writing engine.
buffered_writer overlaps I/Os with filling of output buffer.
|buffered_writer< block_type >::buffered_writer||(||unsigned_type||write_buf_size,|
Constructs an object.
|write_buf_size||number of write buffers to use|
|write_batch_size||number of blocks to accumulate in order to flush write requests (bulk buffered writing)|
|virtual buffered_writer< block_type >::~buffered_writer||(||)||
Flushes not yet written buffers and frees used memory.
|void buffered_writer< block_type >::flush||(||)||
Flushes not yet written buffers.
|block_type* buffered_writer< block_type >::get_free_block||(||)||
|block_type* buffered_writer< block_type >::write||(||block_type *||filled_block,|
|const bid_type &||bid|
Submits block for writing.
|filled_block||pointer to the block|
|bid||block identifier, a place to write data of the |
References buffered_writer< block_type >::get_free_block().