Compare the keys of an index.
More...
#include <ddl0impl-compare.h>
Compare the keys of an index.
◆ Compare_key() [1/2]
ddl::Compare_key::Compare_key |
( |
const dict_index_t * |
index, |
|
|
Dup * |
dups, |
|
|
bool |
compare_all |
|
) |
| |
|
inlinenoexcept |
Constructor.
- Parameters
-
[in] | index | Compare the keys of this index. |
[in,out] | dups | For capturing the duplicate entries. |
[in] | compare_all | If set, compare all columns in the key. |
◆ Compare_key() [2/2]
◆ ~Compare_key()
ddl::Compare_key::~Compare_key |
( |
| ) |
|
|
default |
◆ operator()()
int ddl::Compare_key::operator() |
( |
const dfield_t * |
lhs, |
|
|
const dfield_t * |
rhs |
|
) |
| const |
|
inlinenoexcept |
Compare two tuples.
- Parameters
-
[in] | lhs | Tuple to compare on the left hand side |
[in] | rhs | Tuple to compare on the Right hand side |
- Return values
-
+ve | - if lhs > rhs |
-ve | - if lhs < rhs |
0 | - if lhs == rhs |
◆ m_dups
Dup* ddl::Compare_key::m_dups {} |
For collecting duplicates.
◆ m_fields
◆ m_n_fields
const size_t ddl::Compare_key::m_n_fields {} |
Total number of fields in the index key.
◆ m_n_unique
const size_t ddl::Compare_key::m_n_unique {} |
Number of unique fields in the index key.
The documentation for this struct was generated from the following file: