MySQL 9.1.0
Source Code Documentation
ddl::Merge_cursor::Compare Struct Reference

Comparator. More...

Public Member Functions

 Compare (const dict_index_t *index, Dup *dup)
 Constructor. More...
 
 Compare ()=default
 Destructor. More...
 
bool operator() (const File_cursor *lhs, const File_cursor *rhs) const noexcept
 Compare the keys of two cursors. More...
 

Public Attributes

Dupm_dup {}
 For reporting duplicates. More...
 
const dict_index_tm_index {}
 Index being built. More...
 

Detailed Description

Comparator.

Constructor & Destructor Documentation

◆ Compare() [1/2]

ddl::Merge_cursor::Compare::Compare ( const dict_index_t index,
Dup dup 
)
inlineexplicit

Constructor.

Parameters
[in]indexIndex that the rows belong to.
[in,out]dupFor reporting duplicates, can be nullptr.

◆ Compare() [2/2]

ddl::Merge_cursor::Compare::Compare ( )
default

Destructor.

Member Function Documentation

◆ operator()()

bool ddl::Merge_cursor::Compare::operator() ( const File_cursor lhs,
const File_cursor rhs 
) const
noexcept

Compare the keys of two cursors.

Parameters
[in]lhsLeft hand side.
[in]rhsRight hand side.
Returns
true if lhs strictly less than rhs.

Member Data Documentation

◆ m_dup

Dup* ddl::Merge_cursor::Compare::m_dup {}

For reporting duplicates.

◆ m_index

const dict_index_t* ddl::Merge_cursor::Compare::m_index {}

Index being built.


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