~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort_info.h

  • Committer: Brian Aker
  • Date: 2010-10-09 17:14:15 UTC
  • mfrom: (1827.1.3 trunk-drizzle)
  • Revision ID: brian@tangent.org-20101009171415-tw1rjj8s3k2mrqps
Merge of tdavies (align numbers in trunk).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#include "drizzled/sql_sort.h"
20
21
#ifndef DRIZZLED_FILESORT_INFO_H
21
22
#define DRIZZLED_FILESORT_INFO_H
22
23
 
 
24
 
23
25
namespace drizzled
24
26
{
25
27
 
26
28
/* Information on state of filesort */
27
 
struct filesort_info_st
 
29
class filesort_info
28
30
{
 
31
public:
29
32
  internal::IO_CACHE *io_cache;           /* If sorted through filesort */
30
33
  unsigned char     **sort_keys;        /* Buffer for sorting keys */
31
34
  unsigned char     *buffpek;           /* Buffer for buffpek structures */
32
35
  uint32_t      buffpek_len;        /* Max number of buffpeks in the buffer */
33
36
  unsigned char     *addon_buf;         /* Pointer to a buffer if sorted with fields */
34
37
  size_t    addon_length;       /* Length of the buffer */
35
 
  struct sort_addon_field_st *addon_field;     /* Pointer to the fields info */
36
 
  void    (*unpack)(struct sort_addon_field_st *, unsigned char *); /* To unpack back */
 
38
  sort_addon_field *addon_field;     /* Pointer to the fields info */
 
39
  void    (*unpack)(sort_addon_field *, unsigned char *); /* To unpack back */
37
40
  unsigned char     *record_pointers;    /* If sorted in memory */
38
41
  ha_rows   found_records;      /* How many records in sort */
39
42
 
40
 
  filesort_info_st() :
 
43
  filesort_info() :
41
44
    io_cache(0),
42
45
    sort_keys(0),
43
46
    buffpek(0),