~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort.h

  • Committer: Brian Aker
  • Date: 2010-11-06 05:47:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1909.
  • Revision ID: brian@tangent.org-20101106054712-jwxd8e0s0s3nm7qn
Merge in encapsulations in filesort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
class SqlSelect;
43
43
}
44
44
 
 
45
class SortParam;
 
46
 
45
47
class FileSort {
46
48
  Session &_session;
47
49
 
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);
55
57
 
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,
58
60
                    buffpek *lastbuff,
59
61
                    buffpek *Fb,
60
62
                    buffpek *Tb,int flag);
61
63
 
62
 
  int merge_index(SORTPARAM *param,
 
64
  int merge_index(SortParam *param,
63
65
                  unsigned char *sort_buffer,
64
66
                  buffpek *buffpek,
65
67
                  uint32_t maxbuffer,
66
68
                  internal::IO_CACHE *tempfile,
67
69
                  internal::IO_CACHE *outfile);
68
70
 
69
 
  int merge_many_buff(SORTPARAM *param, unsigned char *sort_buffer,
 
71
  int merge_many_buff(SortParam *param, unsigned char *sort_buffer,
70
72
                      buffpek *buffpek,
71
73
                      uint32_t *maxbuffer, internal::IO_CACHE *t_file);
72
74
 
86
88
 
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);
90
92
 
91
93
};
92
94