drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::SortParam Class Reference
Collaboration diagram for drizzled::SortParam:
[legend]

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
Table * sort_form
SortField * local_sortorder
SortField * end
sort_addon_field * addon_field
unsigned char * unique_buff
bool not_killable
char * tmp_buffer
qsort2_cmp compare
BufferCompareContext cmp_context

Detailed Description

Definition at line 77 of file filesort.cc.

Constructor & Destructor Documentation

◆ SortParam()

drizzled::SortParam::SortParam ( )
inline

Definition at line 97 of file filesort.cc.

◆ ~SortParam()

drizzled::SortParam::~SortParam ( )
inline

Definition at line 117 of file filesort.cc.

Member Function Documentation

◆ make_sortkey()

void drizzled::SortParam::make_sortkey ( unsigned char * to,
unsigned char * ref_pos )

Make a sort-key from record.

Definition at line 776 of file filesort.cc.

◆ register_used_fields()

void drizzled::SortParam::register_used_fields ( )

Definition at line 1012 of file filesort.cc.

◆ save_index()

void drizzled::SortParam::save_index ( unsigned char ** sort_keys,
uint32_t count,
filesort_info * table_sort )

Definition at line 1049 of file filesort.cc.

◆ write_keys()

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 711 of file filesort.cc.

Member Data Documentation

◆ addon_field

sort_addon_field* drizzled::SortParam::addon_field

Definition at line 89 of file filesort.cc.

◆ addon_length

uint32_t drizzled::SortParam::addon_length

Definition at line 82 of file filesort.cc.

◆ cmp_context

BufferCompareContext drizzled::SortParam::cmp_context

Definition at line 95 of file filesort.cc.

◆ compare

qsort2_cmp drizzled::SortParam::compare

Definition at line 94 of file filesort.cc.

◆ end

SortField* drizzled::SortParam::end

Definition at line 88 of file filesort.cc.

◆ examined_rows

ha_rows drizzled::SortParam::examined_rows

Definition at line 85 of file filesort.cc.

◆ keys

uint32_t drizzled::SortParam::keys

Definition at line 84 of file filesort.cc.

◆ local_sortorder

SortField* drizzled::SortParam::local_sortorder

Definition at line 87 of file filesort.cc.

◆ max_rows

ha_rows drizzled::SortParam::max_rows

Definition at line 85 of file filesort.cc.

◆ not_killable

bool drizzled::SortParam::not_killable

Definition at line 91 of file filesort.cc.

◆ rec_length

uint32_t drizzled::SortParam::rec_length

Definition at line 79 of file filesort.cc.

◆ ref_length

uint32_t drizzled::SortParam::ref_length

Definition at line 81 of file filesort.cc.

◆ res_length

uint32_t drizzled::SortParam::res_length

Definition at line 83 of file filesort.cc.

◆ sort_form

Table* drizzled::SortParam::sort_form

Definition at line 86 of file filesort.cc.

◆ sort_length

uint32_t drizzled::SortParam::sort_length

Definition at line 80 of file filesort.cc.

◆ tmp_buffer

char* drizzled::SortParam::tmp_buffer

Definition at line 92 of file filesort.cc.

◆ unique_buff

unsigned char* drizzled::SortParam::unique_buff

Definition at line 90 of file filesort.cc.


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