The world's most popular open source database
#include "partition_info.h"Include dependency graph for sql_partition.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | LIST_PART_ENTRY |
| struct | part_id_range |
| struct | st_partition_iter |
| struct | st_partition_iter::st_part_num_range |
| struct | st_partition_iter::st_field_value_range |
Defines | |
| #define | HA_CAN_PARTITION (1 << 0) |
| #define | HA_CAN_UPDATE_PARTITION_KEY (1 << 1) |
| #define | HA_CAN_PARTITION_UNIQUE (1 << 2) |
| #define | HA_USE_AUTO_PARTITION (1 << 3) |
| #define | NOT_A_PARTITION_ID ((uint32)-1) |
Typedefs | |
| typedef uint32(*) | partition_iter_func (st_partition_iter *part_iter) |
| typedef st_partition_iter | PARTITION_ITERATOR |
| typedef int(*) | get_partitions_in_range_iter (partition_info *part_info, bool is_subpart, char *min_val, char *max_val, uint flags, PARTITION_ITERATOR *part_iter) |
Functions | |
| bool | is_partition_in_list (char *part_name, List< char > list_part_names) |
| char * | are_partitions_in_table (partition_info *new_part_info, partition_info *old_part_info) |
| bool | check_reorganise_list (partition_info *new_part_info, partition_info *old_part_info, List< char > list_part_names) |
| handler * | get_ha_partition (partition_info *part_info) |
| int | get_parts_for_update (const byte *old_data, byte *new_data, const byte *rec0, partition_info *part_info, uint32 *old_part_id, uint32 *new_part_id, longlong *func_value) |
| int | get_part_for_delete (const byte *buf, const byte *rec0, partition_info *part_info, uint32 *part_id) |
| void | prune_partition_set (const TABLE *table, part_id_range *part_spec) |
| bool | check_partition_info (partition_info *part_info, handlerton **eng_type, TABLE *table, handler *file, HA_CREATE_INFO *info) |
| bool | fix_partition_func (THD *thd, TABLE *table, bool create_table_ind) |
| char * | generate_partition_syntax (partition_info *part_info, uint *buf_length, bool use_sql_alloc, bool show_partition_options) |
| bool | partition_key_modified (TABLE *table, List< Item > &fields) |
| void | get_partition_set (const TABLE *table, byte *buf, const uint index, const key_range *key_spec, part_id_range *part_spec) |
| void | get_full_part_id_from_key (const TABLE *table, byte *buf, KEY *key_info, const key_range *key_spec, part_id_range *part_spec) |
| bool | mysql_unpack_partition (THD *thd, const uchar *part_buf, uint part_info_len, uchar *part_state, uint part_state_len, TABLE *table, bool is_create_table_ind, handlerton *default_db_type) |
| void | make_used_partitions_str (partition_info *part_info, String *parts_str) |
| uint32 | get_list_array_idx_for_endpoint (partition_info *part_info, bool left_endpoint, bool include_endpoint) |
| uint32 | get_partition_id_range_for_endpoint (partition_info *part_info, bool left_endpoint, bool include_endpoint) |
| bool | fix_fields_part_func (THD *thd, Item *func_expr, TABLE *table, bool is_sub_part, bool is_field_to_be_setup) |
| #define HA_CAN_PARTITION (1 << 0) |
| #define HA_CAN_PARTITION_UNIQUE (1 << 2) |
Definition at line 24 of file sql_partition.h.
| #define HA_CAN_UPDATE_PARTITION_KEY (1 << 1) |
Definition at line 23 of file sql_partition.h.
| #define HA_USE_AUTO_PARTITION (1 << 3) |
| #define NOT_A_PARTITION_ID ((uint32)-1) |
Definition at line 51 of file sql_partition.h.
| typedef int(*) get_partitions_in_range_iter(partition_info *part_info, bool is_subpart, char *min_val, char *max_val, uint flags, PARTITION_ITERATOR *part_iter) |
Definition at line 200 of file sql_partition.h.
| typedef uint32(*) partition_iter_func(st_partition_iter *part_iter) |
Definition at line 117 of file sql_partition.h.
| typedef struct st_partition_iter PARTITION_ITERATOR |
| char* are_partitions_in_table | ( | partition_info * | new_part_info, | |
| partition_info * | old_part_info | |||
| ) |
| bool check_partition_info | ( | partition_info * | part_info, | |
| handlerton ** | eng_type, | |||
| TABLE * | table, | |||
| handler * | file, | |||
| HA_CREATE_INFO * | info | |||
| ) |
| bool check_reorganise_list | ( | partition_info * | new_part_info, | |
| partition_info * | old_part_info, | |||
| List< char > | list_part_names | |||
| ) |
| bool fix_fields_part_func | ( | THD * | thd, | |
| Item * | func_expr, | |||
| TABLE * | table, | |||
| bool | is_sub_part, | |||
| bool | is_field_to_be_setup | |||
| ) |
| char* generate_partition_syntax | ( | partition_info * | part_info, | |
| uint * | buf_length, | |||
| bool | use_sql_alloc, | |||
| bool | show_partition_options | |||
| ) |
Referenced by mysql_create_table_internal(), mysql_write_frm(), and store_create_info().
Here is the caller graph for this function:

| void get_full_part_id_from_key | ( | const TABLE * | table, | |
| byte * | buf, | |||
| KEY * | key_info, | |||
| const key_range * | key_spec, | |||
| part_id_range * | part_spec | |||
| ) |
| handler* get_ha_partition | ( | partition_info * | part_info | ) |
| uint32 get_list_array_idx_for_endpoint | ( | partition_info * | part_info, | |
| bool | left_endpoint, | |||
| bool | include_endpoint | |||
| ) |
| int get_part_for_delete | ( | const byte * | buf, | |
| const byte * | rec0, | |||
| partition_info * | part_info, | |||
| uint32 * | part_id | |||
| ) |
| uint32 get_partition_id_range_for_endpoint | ( | partition_info * | part_info, | |
| bool | left_endpoint, | |||
| bool | include_endpoint | |||
| ) |
| void get_partition_set | ( | const TABLE * | table, | |
| byte * | buf, | |||
| const uint | index, | |||
| const key_range * | key_spec, | |||
| part_id_range * | part_spec | |||
| ) |
| int get_parts_for_update | ( | const byte * | old_data, | |
| byte * | new_data, | |||
| const byte * | rec0, | |||
| partition_info * | part_info, | |||
| uint32 * | old_part_id, | |||
| uint32 * | new_part_id, | |||
| longlong * | func_value | |||
| ) |
| void make_used_partitions_str | ( | partition_info * | part_info, | |
| String * | parts_str | |||
| ) |
| void prune_partition_set | ( | const TABLE * | table, | |
| part_id_range * | part_spec | |||
| ) |
1.4.7

