summaryrefslogtreecommitdiff
path: root/sql/sql_partition.h
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-09-15 17:07:52 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-09-15 17:07:52 +0200
commit12627d40725a5513a365f31164f89a518f249b65 (patch)
treeee714c9620c9eaa85fba98f4423487d638cc9edf /sql/sql_partition.h
parent51c27a69424119a8c381456ed68c10f7c810d0aa (diff)
downloadmariadb-git-12627d40725a5513a365f31164f89a518f249b65.tar.gz
WL#3352, Introducing Column list partitioning, makes it possible to partition on most data types, makes it possible to prune on multi-field partitioning
Diffstat (limited to 'sql/sql_partition.h')
-rw-r--r--sql/sql_partition.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sql/sql_partition.h b/sql/sql_partition.h
index 282e24f1853..7902cc77877 100644
--- a/sql/sql_partition.h
+++ b/sql/sql_partition.h
@@ -173,9 +173,12 @@ typedef struct st_partition_iter
SYNOPSIS
get_partitions_in_range_iter()
part_info Partitioning info
- is_subpart
+ is_subpart
+ store_length_array Length of fields packed in opt_range_key format
min_val Left edge, field value in opt_range_key format.
- max_val Right edge, field value in opt_range_key format.
+ max_val Right edge, field value in opt_range_key format.
+ min_len Length of minimum value
+ max_len Length of maximum value
flags Some combination of NEAR_MIN, NEAR_MAX, NO_MIN_RANGE,
NO_MAX_RANGE.
part_iter Iterator structure to be initialized
@@ -191,8 +194,9 @@ typedef struct st_partition_iter
The set of partitions is returned by initializing an iterator in *part_iter
NOTES
- There are currently two functions of this type:
+ There are currently three functions of this type:
- get_part_iter_for_interval_via_walking
+ - get_part_iter_for_interval_cols_via_map
- get_part_iter_for_interval_via_mapping
RETURN
@@ -203,7 +207,9 @@ typedef struct st_partition_iter
typedef int (*get_partitions_in_range_iter)(partition_info *part_info,
bool is_subpart,
+ uint32 *store_length_array,
uchar *min_val, uchar *max_val,
+ uint min_len, uint max_len,
uint flags,
PARTITION_ITERATOR *part_iter);