MySQL 8.0.39
Source Code Documentation
cmp_varlen_keys.h File Reference
#include <assert.h>
#include <stdio.h>
#include <functional>
#include "sql/sort_param.h"
#include "sql/sql_array.h"

Go to the source code of this file.

Classes

struct  Merge_chunk_greater
 This struct is used for merging chunks for filesort() For filesort() with fixed-size keys we use memcmp to compare rows. More...
 

Functions

bool cmp_varlen_keys (Bounds_checked_array< st_sort_field > sort_field_array, bool use_hash, const uchar *s1, const uchar *s2)
 A compare function for variable-length keys used by filesort(). More...
 

Function Documentation

◆ cmp_varlen_keys()

bool cmp_varlen_keys ( Bounds_checked_array< st_sort_field sort_field_array,
bool  use_hash,
const uchar s1,
const uchar s2 
)
inline

A compare function for variable-length keys used by filesort().

For record format documentation,

See also
Sort_param.
Parameters
sort_field_arrayarray of field descriptors for sorting
use_hashcompare hash values (for grouping of JSON data)
s1pointer to record 1
s2pointer to record 2
Returns
true/false according to sorting order true : s1 < s2 false : s1 >= s2