~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_sort.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
typedef struct st_sort_addon_field {  /* Sort addon packed field */
46
46
  Field *field;          /* Original field */
47
 
  uint   offset;         /* Offset from the last sorted field */
48
 
  uint   null_offset;    /* Offset to to null bit from the last sorted field */
49
 
  uint   length;         /* Length in the sort buffer */
 
47
  uint32_t   offset;         /* Offset from the last sorted field */
 
48
  uint32_t   null_offset;    /* Offset to to null bit from the last sorted field */
 
49
  uint32_t   length;         /* Length in the sort buffer */
50
50
  uint8_t  null_bit;       /* Null bit mask for the field */
51
51
} SORT_ADDON_FIELD;
52
52
 
65
65
};
66
66
 
67
67
typedef struct st_sort_param {
68
 
  uint rec_length;          /* Length of sorted records */
69
 
  uint sort_length;                     /* Length of sorted columns */
70
 
  uint ref_length;                      /* Length of record ref. */
71
 
  uint addon_length;        /* Length of added packed fields */
72
 
  uint res_length;          /* Length of records in final sorted file/buffer */
73
 
  uint keys;                            /* Max keys / buffer */
 
68
  uint32_t rec_length;          /* Length of sorted records */
 
69
  uint32_t sort_length;                 /* Length of sorted columns */
 
70
  uint32_t ref_length;                  /* Length of record ref. */
 
71
  uint32_t addon_length;        /* Length of added packed fields */
 
72
  uint32_t res_length;          /* Length of records in final sorted file/buffer */
 
73
  uint32_t keys;                                /* Max keys / buffer */
74
74
  ha_rows max_rows,examined_rows;
75
75
  Table *sort_form;                     /* For quicker make_sortkey */
76
76
  SORT_FIELD *local_sortorder;
87
87
 
88
88
int merge_many_buff(SORTPARAM *param, unsigned char *sort_buffer,
89
89
                    BUFFPEK *buffpek,
90
 
                    uint *maxbuffer, IO_CACHE *t_file);
91
 
uint read_to_buffer(IO_CACHE *fromfile,BUFFPEK *buffpek,
92
 
                    uint sort_length);
 
90
                    uint32_t *maxbuffer, IO_CACHE *t_file);
 
91
uint32_t read_to_buffer(IO_CACHE *fromfile,BUFFPEK *buffpek,
 
92
                    uint32_t sort_length);
93
93
int merge_buffers(SORTPARAM *param,IO_CACHE *from_file,
94
94
                  IO_CACHE *to_file, unsigned char *sort_buffer,
95
95
                  BUFFPEK *lastbuff,BUFFPEK *Fb,
96
96
                  BUFFPEK *Tb,int flag);
97
 
void reuse_freed_buff(QUEUE *queue, BUFFPEK *reuse, uint key_length);
 
97
void reuse_freed_buff(QUEUE *queue, BUFFPEK *reuse, uint32_t key_length);
98
98
 
99
99
#endif