1 #ifndef PARTITION_ELEMENT_INCLUDED
2 #define PARTITION_ELEMENT_INCLUDED
32 enum partition_state {
35 PART_TO_BE_DROPPED= 2,
37 PART_TO_BE_REORGED= 4,
38 PART_REORGED_DROPPED= 5,
65 Item* item_expression;
96 ha_rows part_max_rows;
97 ha_rows part_min_rows;
100 char *tablespace_name;
103 char* data_file_name;
104 char* index_file_name;
106 enum partition_state part_state;
113 : part_max_rows(0), part_min_rows(0), range_value(0),
114 partition_name(NULL), tablespace_name(NULL),
115 log_entry(NULL), part_comment(NULL),
116 data_file_name(NULL), index_file_name(NULL),
117 engine_type(NULL), part_state(PART_NORMAL),
118 nodegroup_id(UNDEF_NODEGROUP), has_null_value(FALSE),
119 signed_flag(FALSE), max_value(FALSE)
123 : part_max_rows(part_elem->part_max_rows),
124 part_min_rows(part_elem->part_min_rows),
125 range_value(0), partition_name(NULL),
126 tablespace_name(part_elem->tablespace_name),
127 part_comment(part_elem->part_comment),
128 data_file_name(part_elem->data_file_name),
129 index_file_name(part_elem->index_file_name),
130 engine_type(part_elem->engine_type),
131 part_state(part_elem->part_state),
132 nodegroup_id(part_elem->nodegroup_id),
133 has_null_value(FALSE)