MySQL 8.4.2
Source Code Documentation
|
For loading an index from a sorted buffer. More...
Public Member Functions | |
Key_sort_buffer_cursor (Builder *builder, Key_sort_buffer *key_buffer) noexcept | |
Constructor. More... | |
dberr_t | open () noexcept |
Open the cursor. More... | |
dberr_t | fetch (dtuple_t *&dtuple) noexcept override |
Fetch the current row as a tuple. More... | |
dberr_t | next () noexcept override |
Move to the next record. More... | |
Public Member Functions inherited from ddl::Load_cursor | |
Load_cursor (Builder *builder, Dup *dup) noexcept | |
Default constructor. More... | |
virtual | ~Load_cursor () override=default |
Default destructor. More... | |
dberr_t | get_err () const noexcept |
bool | duplicates_detected () const noexcept override |
Public Member Functions inherited from Btree_load::Cursor | |
Cursor ()=default | |
Constructor. More... | |
virtual | ~Cursor ()=default |
Destructor. More... | |
Private Attributes | |
dtuple_t * | m_dtuple {} |
Tuple to return. More... | |
size_t | m_n_rows {} |
Number of rows read from the key buffer. More... | |
ulint * | m_offsets {} |
Row offsets. More... | |
Scoped_heap | m_heap {} |
Heap for m_offsets and m_buf. More... | |
const mrec_t * | m_mrec {} |
Current merge row in m_aligned_buffer. More... | |
Key_sort_buffer * | m_key_buffer {} |
Key buffer to read from. More... | |
Additional Inherited Members | |
Public Attributes inherited from ddl::Load_cursor | |
Dup * | m_dup {} |
Duplicate checking and reporting. More... | |
dberr_t | m_err {DB_SUCCESS} |
Operation error code. More... | |
Builder * | m_builder {} |
Index meta data. More... | |
Scoped_heap | m_tuple_heap {} |
Heap for the raw row to dtuple_t conversion. More... | |
For loading an index from a sorted buffer.
|
inlinenoexcept |
Constructor.
[in,out] | builder | Index builder. |
[in,out] | key_buffer | Key buffer to load from. |
Fetch the current row as a tuple.
Note: Tuple columns are shallow copies.
[out] | dtuple | Row represented as a tuple. |
Implements Btree_load::Cursor.
|
overridevirtualnoexcept |
Move to the next record.
Implements Btree_load::Cursor.
|
noexcept |
Open the cursor.
|
private |
Tuple to return.
|
private |
Heap for m_offsets and m_buf.
|
private |
Key buffer to read from.
|
private |
Current merge row in m_aligned_buffer.
|
private |
Number of rows read from the key buffer.
|
private |
Row offsets.