Drizzled Public API Documentation

drizzled::SortParam Class Reference

List of all members.

Public Member Functions

int write_keys (unsigned char **sort_keys, uint32_t count, internal::IO_CACHE *buffer_file, internal::IO_CACHE *tempfile)
void make_sortkey (unsigned char *to, unsigned char *ref_pos)
void register_used_fields ()
bool save_index (unsigned char **sort_keys, uint32_t count, filesort_info *table_sort)

Public Attributes

uint32_t rec_length
uint32_t sort_length
uint32_t ref_length
uint32_t addon_length
uint32_t res_length
uint32_t keys
ha_rows max_rows
ha_rows examined_rows
Tablesort_form
SortFieldlocal_sortorder
SortFieldend
sort_addon_fieldaddon_field
unsigned char * unique_buff
bool not_killable
char * tmp_buffer
qsort2_cmp compare
BufferCompareContext cmp_context

Detailed Description

Definition at line 73 of file filesort.cc.


Member Function Documentation

int drizzled::SortParam::write_keys ( unsigned char **  sort_keys,
uint32_t  count,
internal::IO_CACHE buffpek_pointers,
internal::IO_CACHE tempfile 
)

Sort the buffer and write:

  1. the sorted sequence to tempfile
  2. a buffpek describing the sorted sequence position to buffpek_pointers

(was: Skriver en buffert med nycklar till filen)

Parameters:
paramSort parameters
sort_keysArray of pointers to keys to sort
countNumber of elements in sort_keys array
buffpek_pointersOne 'buffpek' struct will be written into this file. The buffpek::{file_pos, count} will indicate where the sorted data was stored.
tempfileThe sorted sequence will be written into this file.
Return values:
0OK
1Error

Definition at line 724 of file filesort.cc.

Referenced by drizzled::FileSort::find_all_keys().


The documentation for this class was generated from the following file: