#include <sql_bitmap.h>
Public Member Functions | |
| Bitmap () | |
| Bitmap (uint prefix_to_set) | |
| void | init () |
| void | init (uint prefix_to_set) |
| uint | length () const |
| void | set_bit (uint n) |
| void | clear_bit (uint n) |
| void | set_prefix (uint n) |
| void | set_all () |
| void | clear_all () |
| void | intersect (Bitmap< 64 > &map2) |
| void | intersect (ulonglong map2) |
| void | intersect_extended (ulonglong map2) |
| void | subtract (Bitmap< 64 > &map2) |
| void | merge (Bitmap< 64 > &map2) |
| my_bool | is_set (uint n) const |
| my_bool | is_prefix (uint n) const |
| my_bool | is_clear_all () const |
| my_bool | is_set_all () const |
| my_bool | is_subset (const Bitmap< 64 > &map2) const |
| my_bool | is_overlapping (const Bitmap< 64 > &map2) const |
| my_bool | operator== (const Bitmap< 64 > &map2) const |
| char * | print (char *buf) const |
| ulonglong | to_ulonglong () const |
Private Attributes | |
| ulonglong | map |
Definition at line 97 of file sql_bitmap.h.
| void Bitmap< 64 >::clear_all | ( | ) | [inline] |
Definition at line 125 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by get_best_group_min_max(), get_key_scans_params(), make_join_statistics(), mysql_delete(), partition_info::partition_info(), prepare_simple_select(), SEL_TREE::SEL_TREE(), ha_heap::set_keys_for_scanning(), SQL_SELECT::SQL_SELECT(), test_if_skip_sort_order(), SQL_SELECT::test_quick_select(), tree_and(), and tree_or().
Here is the caller graph for this function:

Definition at line 116 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by remove_nonrange_trees().
Here is the caller graph for this function:

Definition at line 113 of file sql_bitmap.h.
References Bitmap< default_width >::set_prefix().
00113 { set_prefix(prefix_to_set); }
Here is the call graph for this function:

| void Bitmap< 64 >::init | ( | ) | [inline] |
Definition at line 112 of file sql_bitmap.h.
Referenced by make_join_statistics(), make_simple_join(), and open_binary_frm().
Here is the caller graph for this function:

Definition at line 127 of file sql_bitmap.h.
References Bitmap< default_width >::map.
00127 { map&= map2; }
Definition at line 126 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by add_group_and_distinct_keys(), add_key_field(), Item_field::fix_fields(), ha_myisam::info(), insert_fields(), mark_common_columns(), sel_trees_can_be_ored(), test_if_skip_sort_order(), SQL_SELECT::test_quick_select(), and update_field_dependencies().
Here is the caller graph for this function:

Definition at line 128 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by ha_myisam::info().
00128 { map&= map2; }
Here is the caller graph for this function:

Definition at line 133 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by add_group_and_distinct_keys(), best_access_path(), find_shortest_key(), get_best_combination(), make_join_readinfo(), mysql_delete(), ha_myisam::preload_keys(), sel_trees_can_be_ored(), select_describe(), test_if_skip_sort_order(), SQL_SELECT::test_quick_select(), and tree_and().
Here is the caller graph for this function:

Definition at line 136 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by st_table::mark_columns_needed_for_update().
Here is the caller graph for this function:

Definition at line 131 of file sql_bitmap.h.
References Bitmap< default_width >::map, and test.
Referenced by add_key_part(), best_access_path(), find_key_for_maxmin(), find_shortest_key(), Item_func_match::fix_index(), get_best_group_min_max(), get_best_ror_intersect(), get_index_for_order(), get_key_scans_params(), get_schema_stat_record(), join_read_const_table(), join_read_first(), join_read_last(), make_join_readinfo(), print_sel_tree(), sel_trees_can_be_ored(), select_describe(), test_if_skip_sort_order(), test_if_subkey(), and SQL_SELECT::test_quick_select().
Here is the caller graph for this function:

Definition at line 134 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by ha_myisam::preload_keys().
Here is the caller graph for this function:

Definition at line 130 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by add_group_and_distinct_keys(), add_key_field(), insert_fields(), mark_common_columns(), and update_field_dependencies().
Here is the caller graph for this function:

| char* Bitmap< 64 >::print | ( | char * | buf | ) | const [inline] |
Definition at line 138 of file sql_bitmap.h.
References longlong2str, and Bitmap< default_width >::map.
Referenced by print_quick(), and select_describe().
00138 { longlong2str(map,buf,16); return buf; }
Here is the caller graph for this function:

| void Bitmap< 64 >::set_all | ( | ) | [inline] |
Definition at line 124 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by SQL_SELECT::check_quick(), make_simple_join(), and mysql_init_variables().
Here is the caller graph for this function:

Definition at line 115 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by check_quick_select(), get_best_group_min_max(), get_key_scans_params(), get_mm_parts(), ha_heap::set_keys_for_scanning(), test_if_skip_sort_order(), tree_and(), and tree_or().
Here is the caller graph for this function:

Definition at line 117 of file sql_bitmap.h.
References Bitmap< default_width >::length(), Bitmap< default_width >::map, and Bitmap< default_width >::set_all().
Referenced by ha_myisammrg::info(), and ha_myisam::info().
00118 { 00119 if (n >= length()) 00120 set_all(); 00121 else 00122 map= (((ulonglong)1) << n)-1; 00123 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 139 of file sql_bitmap.h.
References Bitmap< default_width >::map.
Referenced by ha_myisam::assign_to_keycache(), get_best_group_min_max(), ha_myisam::preload_keys(), and SQL_SELECT::test_quick_select().
00139 { return map; }
Here is the caller graph for this function:

Definition at line 99 of file sql_bitmap.h.
1.4.7

