Various small helpers to abstract over the fact that AccessPath can contain a number of different range scan types.
More...
|
bool | is_loose_index_scan (const AccessPath *path) |
|
bool | is_agg_loose_index_scan (const AccessPath *path) |
|
bool | reverse_sort_possible (const AccessPath *path) |
| Whether the range access method is capable of returning records in reverse order. More...
|
|
bool | is_reverse_sorted_range (const AccessPath *path) |
| Whether the access path is an INDEX_RANGE_SCAN that returns rows in reverse order. More...
|
|
bool | make_reverse (uint used_key_parts, AccessPath *path) |
| Ask the AccessPath to reverse itself; returns false if successful. More...
|
|
void | set_need_sorted_output (AccessPath *path) |
|
unsigned | used_index (const AccessPath *path) |
| If this is an index range scan, and that range scan uses a single index, returns the index used. More...
|
|
bool | unique_key_range (const AccessPath *path) |
| Return true if there is only one range and this uses the whole unique key. More...
|
|
void | get_fields_used (const AccessPath *path, MY_BITMAP *used_fields) |
|
unsigned | get_used_key_parts (const AccessPath *path) |
|
bool | uses_index_on_fields (const AccessPath *path, const MY_BITMAP *fields) |
| Return whether any index used by this range scan uses the field(s) marked in passed bitmap. More...
|
|
unsigned | get_max_used_key_length (const AccessPath *path) |
| Get the total length of first used_key_parts parts of the key, in bytes. More...
|
|
void | add_info_string (const AccessPath *path, String *str) |
|
void | add_keys_and_lengths (const AccessPath *path, String *key_names, String *used_lengths) |
|
void | trace_basic_info (THD *thd, const AccessPath *path, const RANGE_OPT_PARAM *param, Opt_trace_object *trace_object) |
| Add basic info for this range scan to the optimizer trace. More...
|
|
bool | get_forced_by_hint (const AccessPath *path) |
|
void | dbug_dump (const AccessPath *path, int indent, bool verbose) |
|
Various small helpers to abstract over the fact that AccessPath can contain a number of different range scan types.