|
| data_ptr_t | GetDeprecated (const bool dirty_p=true) |
| |
| bool | InMemory () const |
| | Returns true, if the buffer is in-memory.
|
| |
| bool | OnDisk () const |
| | Returns true, if the block is on-disk.
|
| |
|
void | Serialize (PartialBlockManager &partial_block_manager, const idx_t available_segments, const idx_t segment_size, const idx_t bitmask_offset) |
| | Serializes a buffer, if dirty or not on disk.
|
| |
|
void | LoadFromDisk () |
| | Load a buffer from disk, if not in memory.
|
| |
|
uint32_t | GetOffset (const idx_t bitmask_count, const idx_t available_segments) |
| | Returns the first free offset in a bitmask.
|
| |
|
void | SetAllocationSize (const idx_t available_segments, const idx_t segment_size, const idx_t bitmask_offset) |
| | Sets the allocation size, if dirty.
|
| |
|
|
BlockManager & | block_manager |
| | Block manager of the database instance.
|
| |
|
atomic< idx_t > | readers |
| | The number of active segments.
|
| |
|
idx_t | segment_count |
| | The number of allocated segments.
|
| |
|
idx_t | allocation_size |
| | The size of allocated memory in this buffer (necessary for copying while pinning)
|
| |
|
bool | dirty |
| | True: the in-memory buffer is no longer consistent with its optional copy on disk.
|
| |
|
bool | vacuum |
| | True: can be vacuumed after the vacuum operation.
|
| |
|
bool | loaded |
| | True: has been loaded from disk.
|
| |
|
BlockPointer | block_pointer |
| | Partial block id and offset.
|
| |
|
BufferHandle | buffer_handle |
| | The buffer handle of the in-memory buffer.
|
| |
|
shared_ptr< BlockHandle > | block_handle |
| | The block handle of the on-disk buffer.
|
| |
|
mutex | lock |
| | The lock for this fixed size buffer handle.
|
| |
A fixed-size buffer holds fixed-size segments of data. It lazily deserializes a buffer, if on-disk and not in memory, and it only serializes dirty and non-written buffers to disk during serialization.