Drizzled Public API Documentation

drizzled::SortParam Class Reference

Public Member Functions

int write_keys (unsigned char **sort_keys, uint32_t count, internal::io_cache_st *buffer_file, internal::io_cache_st *tempfile)
 
void make_sortkey (unsigned char *to, unsigned char *ref_pos)
 
void register_used_fields ()
 
void 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 75 of file filesort.cc.

Member Function Documentation

int drizzled::SortParam::write_keys ( unsigned char **  sort_keys,
uint32_t  count,
internal::io_cache_st buffpek_pointers,
internal::io_cache_st 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 709 of file filesort.cc.

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


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