MySQL 9.1.0
Source Code Documentation
|
For loading a Btree index from a file. More...
Public Member Functions | |
File_cursor (Builder *builder, const Unique_os_file_descriptor &file, size_t buffer_size, const Range &range, Alter_stage *stage) noexcept | |
Constructor. More... | |
~File_cursor () override | |
Destructor. 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 | fetch (const mrec_t *&mrec, ulint *&offsets) noexcept |
Fetch the current row. 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 Member Functions | |
dberr_t | fetch () noexcept |
Prepare to fetch the current row. More... | |
Private Attributes | |
size_t | m_id {} |
Instance ID. More... | |
File_reader | m_reader |
File reader. More... | |
uint64_t | m_n_rows {} |
Number of rows read the file. More... | |
Alter_stage * | m_stage {} |
PFS monitoring. More... | |
uint64_t | m_processed_rows_to_report {} |
Number of rows that were fetched but not yet reported to the PFS. More... | |
Friends | |
struct | Merge_cursor |
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 a Btree index from a file.
|
noexcept |
Constructor.
[in] | builder | The index build driver. |
[in] | file | File to read from. |
[in] | buffer_size | IO buffer size to use for reads. |
[in] | range | Offsets of the chunk to read from the file |
[in,out] | stage | PFS observability. |
|
override |
Destructor.
|
privatenoexcept |
Prepare to fetch the current row.
Fetch the current row.
[out] | mrec | Current row. |
[out] | offsets | Column offsets inside mrec. |
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.
|
friend |
|
private |
Instance ID.
|
private |
Number of rows read the file.
|
private |
Number of rows that were fetched but not yet reported to the PFS.
|
private |
File reader.
|
private |
PFS monitoring.