summaryrefslogtreecommitdiff
path: root/sql/sql_statistics.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-03-11 07:44:24 -0700
committerIgor Babaev <igor@askmonty.org>2013-03-11 07:44:24 -0700
commitfc1c8ffdadfd14eb51969ecfde43e3204f10f6f8 (patch)
tree70ee4b3628cc62a706476d6c7b873fcfc9aa0e10 /sql/sql_statistics.h
parent938d47dcdc50ae4f127197ed72fd044b33ea7524 (diff)
downloadmariadb-git-fc1c8ffdadfd14eb51969ecfde43e3204f10f6f8.tar.gz
The pilot patch for mwl#253.
Diffstat (limited to 'sql/sql_statistics.h')
-rw-r--r--sql/sql_statistics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h
index 17f22cec4e5..6bf552b92a0 100644
--- a/sql/sql_statistics.h
+++ b/sql/sql_statistics.h
@@ -90,6 +90,12 @@ int rename_column_in_stat_tables(THD *thd, TABLE *tab, Field *col,
const char *new_name);
void set_statistics_for_table(THD *thd, TABLE *table);
+double get_column_avg_frequency(Field * field);
+
+double get_column_range_cardinality(Field *field,
+ key_range *min_endp,
+ key_range *max_endp);
+
class Columns_statistics;
class Index_statistics;