16 #ifndef FILESORT_UTILS_INCLUDED
17 #define FILESORT_UTILS_INCLUDED
19 #include "my_global.h"
21 #include "sql_array.h"
45 double get_merge_many_buffs_cost_fast(ha_rows num_rows,
46 ha_rows num_keys_per_buffer,
66 m_idx_array(), m_record_length(0), m_start_of_data(NULL)
75 m_idx_array[idx]= m_start_of_data + (idx * m_record_length);
76 return m_idx_array[idx];
82 for (uint ix= 0; ix < m_idx_array.size(); ++ix)
89 return m_idx_array.size() * (m_record_length +
sizeof(uchar*));
98 return std::make_pair(static_cast<uint>(m_idx_array.size()),
116 m_idx_array= rhs.m_idx_array;
117 m_record_length= rhs.m_record_length;
118 m_start_of_data= rhs.m_start_of_data;
125 Idx_array m_idx_array;
126 uint m_record_length;
127 uchar *m_start_of_data;
130 #endif // FILESORT_UTILS_INCLUDED