summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-12-06 01:11:22 +0300
committerSergei Petrunia <psergey@askmonty.org>2014-12-06 01:11:22 +0300
commit9cac7649eade35f2e5a52e4107067701de315abc (patch)
treedd52931aa97a38f68e29eddd2a82fbf279c8fb4c /sql/sql_explain.h
parent8fb2c80fdb9868b45ab91c915b32d2c39fd7fcd0 (diff)
downloadmariadb-git-9cac7649eade35f2e5a52e4107067701de315abc.tar.gz
EXPLAIN FORMAT=JSON: Support range+MRR plans (when MRR is used but BKA is not)
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index 352be32bbcd..5e96cd78657 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -450,13 +450,24 @@ enum explain_extra_tag
};
+/*
+ Explain data structure describing join buffering use.
+*/
+
class EXPLAIN_BKA_TYPE
{
public:
EXPLAIN_BKA_TYPE() : join_alg(NULL) {}
bool incremental;
+
+ /*
+ NULL if no join buferring used.
+ Other values: BNL, BNLH, BKA, BKAH.
+ */
const char *join_alg;
+
+ /* Information about MRR usage. */
StringBuffer<64> mrr_type;
bool is_using_jbuf() { return (join_alg != NULL); }