#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.
|
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...
|
|
◆ cmp_varlen_keys()
A compare function for variable-length keys used by filesort().
For record format documentation,
- See also
- Sort_param.
- Parameters
-
sort_field_array | array of field descriptors for sorting |
use_hash | compare hash values (for grouping of JSON data) |
s1 | pointer to record 1 |
s2 | pointer to record 2 |
- Returns
- true/false according to sorting order true : s1 < s2 false : s1 >= s2