~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_sort.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "drizzled/base.h"
26
26
#include "drizzled/qsort_cmp.h"
27
27
 
 
28
namespace drizzled
 
29
{
 
30
 
 
31
namespace internal
 
32
{
 
33
typedef struct st_io_cache IO_CACHE;
 
34
}
 
35
 
28
36
typedef struct st_sort_field SORT_FIELD;
29
 
typedef struct st_io_cache IO_CACHE;
30
37
class Field;
31
38
class Table;
32
39
 
97
104
 
98
105
int merge_many_buff(SORTPARAM *param, unsigned char *sort_buffer,
99
106
                    BUFFPEK *buffpek,
100
 
                    uint32_t *maxbuffer, IO_CACHE *t_file);
101
 
uint32_t read_to_buffer(IO_CACHE *fromfile,BUFFPEK *buffpek,
 
107
                    uint32_t *maxbuffer, internal::IO_CACHE *t_file);
 
108
uint32_t read_to_buffer(internal::IO_CACHE *fromfile,BUFFPEK *buffpek,
102
109
                    uint32_t sort_length);
103
 
int merge_buffers(SORTPARAM *param,IO_CACHE *from_file,
104
 
                  IO_CACHE *to_file, unsigned char *sort_buffer,
 
110
int merge_buffers(SORTPARAM *param,internal::IO_CACHE *from_file,
 
111
                  internal::IO_CACHE *to_file, unsigned char *sort_buffer,
105
112
                  BUFFPEK *lastbuff,BUFFPEK *Fb,
106
113
                  BUFFPEK *Tb,int flag);
107
114
 
 
115
} /* namespace drizzled */
 
116
 
108
117
#endif /* DRIZZLED_SQL_SORT_H */