48
50
uint32_t sortlength(SortField *sortorder, uint32_t s_length, bool *multi_byte_charset);
49
51
sort_addon_field *get_addon_fields(Field **ptabfield, uint32_t sortlength, uint32_t *plength);
50
ha_rows find_all_keys(SORTPARAM *param,
52
ha_rows find_all_keys(SortParam *param,
51
53
optimizer::SqlSelect *select,
52
54
unsigned char **sort_keys,
53
55
internal::IO_CACHE *buffpek_pointers,
54
56
internal::IO_CACHE *tempfile, internal::IO_CACHE *indexfile);
56
int merge_buffers(SORTPARAM *param,internal::IO_CACHE *from_file,
58
int merge_buffers(SortParam *param,internal::IO_CACHE *from_file,
57
59
internal::IO_CACHE *to_file, unsigned char *sort_buffer,
60
62
buffpek *Tb,int flag);
62
int merge_index(SORTPARAM *param,
64
int merge_index(SortParam *param,
63
65
unsigned char *sort_buffer,
65
67
uint32_t maxbuffer,
66
68
internal::IO_CACHE *tempfile,
67
69
internal::IO_CACHE *outfile);
69
int merge_many_buff(SORTPARAM *param, unsigned char *sort_buffer,
71
int merge_many_buff(SortParam *param, unsigned char *sort_buffer,
71
73
uint32_t *maxbuffer, internal::IO_CACHE *t_file);
87
89
ha_rows run(Table *table, SortField *sortorder, uint32_t s_length,
88
90
optimizer::SqlSelect *select, ha_rows max_rows,
89
bool sort_positions, ha_rows *examined_rows);
91
bool sort_positions, ha_rows &examined_rows);