MySQL 8.0.32
Source Code Documentation
ddl::Builder::Thread_ctx Struct Reference

State of a cluster index reader thread. More...

Public Member Functions

 Thread_ctx (size_t id, Key_sort_buffer *key_buffer) noexcept
 Constructor. More...
 
 ~Thread_ctx () noexcept
 Destructor. More...
 

Public Attributes

size_t m_id {}
 Thread ID. More...
 
Key_sort_bufferm_key_buffer {}
 Key sort buffer. More...
 
size_t m_n_recs {}
 Total number of records added to the key sort buffer. More...
 
ddl::file_t m_file {}
 Merge file handle. More...
 
Aligned_buffer m_aligned_buffer {}
 Buffer to use for file writes. More...
 
Merge_offsets m_offsets {}
 Record list starting offset in the output file. More...
 
RTree_inserterm_rtree_inserter {}
 For spatial/Rtree rows handling. More...
 

Detailed Description

State of a cluster index reader thread.

Constructor & Destructor Documentation

◆ Thread_ctx()

ddl::Builder::Thread_ctx::Thread_ctx ( size_t  id,
Key_sort_buffer key_buffer 
)
explicitnoexcept

Constructor.

Parameters
[in]idThread state ID.
[in,out]key_bufferBuffer for building the target index. Note, the thread state will own the key buffer and is responsible for deleting it.

◆ ~Thread_ctx()

ddl::Builder::Thread_ctx::~Thread_ctx ( )
noexcept

Destructor.

Member Data Documentation

◆ m_aligned_buffer

Aligned_buffer ddl::Builder::Thread_ctx::m_aligned_buffer {}

Buffer to use for file writes.

◆ m_file

ddl::file_t ddl::Builder::Thread_ctx::m_file {}

Merge file handle.

◆ m_id

size_t ddl::Builder::Thread_ctx::m_id {}

Thread ID.

◆ m_key_buffer

Key_sort_buffer* ddl::Builder::Thread_ctx::m_key_buffer {}

Key sort buffer.

◆ m_n_recs

size_t ddl::Builder::Thread_ctx::m_n_recs {}

Total number of records added to the key sort buffer.

◆ m_offsets

Merge_offsets ddl::Builder::Thread_ctx::m_offsets {}

Record list starting offset in the output file.

◆ m_rtree_inserter

RTree_inserter* ddl::Builder::Thread_ctx::m_rtree_inserter {}

For spatial/Rtree rows handling.


The documentation for this struct was generated from the following files: