~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/filesort.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
namespace drizzled {
35
35
 
36
 
class Session;
37
 
class Table;
38
 
class SortField;
39
 
 
40
 
namespace optimizer {
41
 
class SqlSelect;
42
 
}
43
 
 
44
 
class SortParam;
45
 
 
46
 
class FileSort {
 
36
class FileSort 
 
37
{
47
38
  Session &_session;
48
39
 
49
40
  uint32_t sortlength(SortField *sortorder, uint32_t s_length, bool *multi_byte_charset);
51
42
  ha_rows find_all_keys(SortParam *param, 
52
43
                        optimizer::SqlSelect *select,
53
44
                        unsigned char **sort_keys,
54
 
                        internal::IO_CACHE *buffpek_pointers,
55
 
                        internal::IO_CACHE *tempfile, internal::IO_CACHE *indexfile);
 
45
                        internal::io_cache_st *buffpek_pointers,
 
46
                        internal::io_cache_st *tempfile, internal::io_cache_st *indexfile);
56
47
 
57
 
  int merge_buffers(SortParam *param,internal::IO_CACHE *from_file,
58
 
                    internal::IO_CACHE *to_file, unsigned char *sort_buffer,
 
48
  int merge_buffers(SortParam *param,internal::io_cache_st *from_file,
 
49
                    internal::io_cache_st *to_file, unsigned char *sort_buffer,
59
50
                    buffpek *lastbuff,
60
51
                    buffpek *Fb,
61
52
                    buffpek *Tb,int flag);
64
55
                  unsigned char *sort_buffer,
65
56
                  buffpek *buffpek,
66
57
                  uint32_t maxbuffer,
67
 
                  internal::IO_CACHE *tempfile,
68
 
                  internal::IO_CACHE *outfile);
 
58
                  internal::io_cache_st *tempfile,
 
59
                  internal::io_cache_st *outfile);
69
60
 
70
61
  int merge_many_buff(SortParam *param, unsigned char *sort_buffer,
71
62
                      buffpek *buffpek,
72
 
                      uint32_t *maxbuffer, internal::IO_CACHE *t_file);
 
63
                      uint32_t *maxbuffer, internal::io_cache_st *t_file);
73
64
 
74
 
  uint32_t read_to_buffer(internal::IO_CACHE *fromfile, buffpek *buffpek,
 
65
  uint32_t read_to_buffer(internal::io_cache_st *fromfile, buffpek *buffpek,
75
66
                          uint32_t sort_length);
76
67
 
77
68