MySQL 9.1.0
Source Code Documentation
|
Bitmap for completed chunks in current state. More...
#include <clone0desc.h>
Classes | |
class | Bitmap_Operator_Impl |
Bitmap array index operator implementation. More... | |
Public Member Functions | |
Chnunk_Bitmap () | |
Construct bitmap. More... | |
Bitmap_Operator_Impl | operator[] (uint32_t index) |
Array index operator. More... | |
uint32_t * | reset (uint32_t max_bits, mem_heap_t *heap) |
Reset bitmap with new size. More... | |
uint32_t | get_min_unset_bit () |
Get minimum BIT position that is not set. More... | |
uint32_t | get_max_set_bit () |
Get maximum BIT position that is not set. More... | |
void | serialize (byte *&desc_chunk, uint &len) |
Serialize the descriptor. More... | |
void | deserialize (const byte *desc_chunk, uint &len_left) |
Deserialize the descriptor. More... | |
size_t | get_serialized_length () |
Get the length of serialized data. More... | |
size_t | capacity () const |
Maximum bit capacity. More... | |
size_t | size () const |
Size of bitmap in bytes. More... | |
uint32_t | size_bits () const |
Size of bitmap in bits. More... | |
Private Attributes | |
uint32_t * | m_bitmap |
BITMAP buffer. More... | |
size_t | m_size |
BITMAP buffer size: Number of 4 byte blocks. More... | |
uint32_t | m_bits |
Total number of BITs in the MAP. More... | |
Bitmap for completed chunks in current state.
|
inline |
Construct bitmap.
|
inline |
Maximum bit capacity.
void Chnunk_Bitmap::deserialize | ( | const byte * | desc_chunk, |
uint & | len_left | ||
) |
Deserialize the descriptor.
[in] | desc_chunk | serialized chunk info |
[in,out] | len_left | length left in bytes |
uint32_t Chnunk_Bitmap::get_max_set_bit | ( | ) |
Get maximum BIT position that is not set.
uint32_t Chnunk_Bitmap::get_min_unset_bit | ( | ) |
Get minimum BIT position that is not set.
size_t Chnunk_Bitmap::get_serialized_length | ( | ) |
Get the length of serialized data.
|
inline |
Array index operator.
[in] | index | bitmap array index |
uint32_t * Chnunk_Bitmap::reset | ( | uint32_t | max_bits, |
mem_heap_t * | heap | ||
) |
Reset bitmap with new size.
[in] | max_bits | number of BITs to hold |
[in] | heap | heap for allocating memory |
void Chnunk_Bitmap::serialize | ( | byte *& | desc_chunk, |
uint & | len | ||
) |
Serialize the descriptor.
Caller should pass the length if allocated.
[out] | desc_chunk | serialized chunk info |
[in,out] | len | length of serialized descriptor |
|
inline |
Size of bitmap in bytes.
|
inline |
Size of bitmap in bits.
|
private |
BITMAP buffer.
|
private |
Total number of BITs in the MAP.
|
private |
BITMAP buffer size: Number of 4 byte blocks.