Lines Matching refs:keyno

60 handler::multi_range_read_info_const(uint keyno, RANGE_SEQ_IF *seq,  in multi_range_read_info_const()  argument
111 uint len= table->key_info[keyno].key_length + table->file->ref_length; in multi_range_read_info_const()
112 if (table->file->is_clustering_key(keyno)) in multi_range_read_info_const()
168 table->key_info[keyno].actual_rec_per_key(keyparts_used - 1) > 0.5) in multi_range_read_info_const()
170 rows= ((ha_rows) table->key_info[keyno]. in multi_range_read_info_const()
177 if ((rows= this->records_in_range(keyno, min_endp, max_endp, &pages)) == in multi_range_read_info_const()
306 if (!is_clustering_key(keyno)) in multi_range_read_info_const()
309 cost->idx_cpu_cost= (keyread_time(keyno, 0, total_rows) + in multi_range_read_info_const()
312 cost->cpu_cost= read_time(keyno, 0, total_rows); in multi_range_read_info_const()
324 cost->cpu_cost= read_time(keyno, limited_ranges, total_rows); in multi_range_read_info_const()
332 table->s->keynames.type_names[keyno], in multi_range_read_info_const()
373 ha_rows handler::multi_range_read_info(uint keyno, uint n_ranges, uint n_rows, in multi_range_read_info() argument
388 if (!is_clustering_key(keyno)) in multi_range_read_info()
395 cost->idx_cpu_cost= (keyread_time(keyno, 0, n_rows) + in multi_range_read_info()
399 cost->cpu_cost= read_time(keyno, 0, n_rows); in multi_range_read_info()
404 cost->cpu_cost= read_time(keyno, n_ranges, (uint)n_rows); in multi_range_read_info()
1103 keyno= h_idx->active_index; in dsmrr_init()
1105 if (! h_idx->is_clustering_key(keyno)) in dsmrr_init()
1263 (res= primary_file->ha_index_init(keyno, MY_TEST(mode & HA_MRR_SORTED)))) in dsmrr_init()
1315 if (keyno == primary_file->pushed_idx_cond_keyno) in setup_two_handlers()
1337 if ((res= secondary_file->ha_index_init(keyno, FALSE))) in setup_two_handlers()
1341 secondary_file->idx_cond_push(keyno, pushed_cond); in setup_two_handlers()
1453 KEY *key_info= &primary_file->get_table()->key_info[keyno]; in setup_buffer_sharing()
1665 ha_rows DsMrr_impl::dsmrr_info(uint keyno, uint n_ranges, uint rows, in dsmrr_info() argument
1674 res= primary_file->handler::multi_range_read_info(keyno, n_ranges, rows, in dsmrr_info()
1680 choose_mrr_impl(keyno, rows, flags, bufsz, cost)) in dsmrr_info()
1700 ha_rows DsMrr_impl::dsmrr_info_const(uint keyno, RANGE_SEQ_IF *seq, in dsmrr_info_const() argument
1708 rows= primary_file->handler::multi_range_read_info_const(keyno, seq, in dsmrr_info_const()
1725 choose_mrr_impl(keyno, rows, flags, bufsz, cost)) in dsmrr_info_const()
1758 bool key_uses_partial_cols(TABLE_SHARE *share, uint keyno) in key_uses_partial_cols() argument
1760 KEY_PART_INFO *kp= share->key_info[keyno].key_part; in key_uses_partial_cols()
1761 KEY_PART_INFO *kp_end= kp + share->key_info[keyno].user_defined_key_parts; in key_uses_partial_cols()
1764 if (!kp->field->part_of_key.is_set(keyno)) in key_uses_partial_cols()
1782 bool DsMrr_impl::check_cpk_scan(THD *thd, TABLE_SHARE *share, uint keyno, in check_cpk_scan() argument
1786 primary_file->is_clustering_key(keyno) && in check_cpk_scan()
1815 bool DsMrr_impl::choose_mrr_impl(uint keyno, ha_rows rows, uint *flags, in choose_mrr_impl() argument
1823 bool doing_cpk_scan= check_cpk_scan(thd, share, keyno, *flags); in choose_mrr_impl()
1824 bool using_cpk= primary_file->is_clustering_key(keyno); in choose_mrr_impl()
1828 (using_cpk && !doing_cpk_scan) || key_uses_partial_cols(share, keyno)) in choose_mrr_impl()
1836 uint add_len= share->key_info[keyno].key_length + primary_file->ref_length; in choose_mrr_impl()
1837 if (get_disk_sweep_mrr_cost(keyno, rows, *flags, bufsz, add_len, in choose_mrr_impl()