summaryrefslogtreecommitdiff
path: root/storage/connect/xindex.h
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2014-03-30 22:52:54 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2014-03-30 22:52:54 +0200
commitfe3cbcdffa6d419bcc3658fb6dda9ea371b19d35 (patch)
tree350473c8efff19ee2c6edc266a454b78c43558e1 /storage/connect/xindex.h
parent5c5834b09123f46b2807dcf76872846a2185bf8a (diff)
downloadmariadb-git-fe3cbcdffa6d419bcc3658fb6dda9ea371b19d35.tar.gz
- Add system variables type_conv and conv_size. This addresses the eventual
conversion from TEXT to VARCHAR in PROXY and MYSQL tables. modified: storage/connect/ha_connect.cc storage/connect/myconn.cpp storage/connect/myconn.h storage/connect/myutil.cpp storage/connect/tabmysql.cpp storage/connect/tabutil.cpp - Add the xmap system variable addressing whether file mapping should be used to handle indexing. modified: storage/connect/CMakeLists.txt storage/connect/ha_connect.cc storage/connect/xindex.cpp storage/connect/xindex.h - Do take care of ~ in Linux version of _fullpath (not tested yet) modified: storage/connect/osutil.c
Diffstat (limited to 'storage/connect/xindex.h')
-rw-r--r--storage/connect/xindex.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/connect/xindex.h b/storage/connect/xindex.h
index ac886673b68..2f7a29bc246 100644
--- a/storage/connect/xindex.h
+++ b/storage/connect/xindex.h
@@ -192,6 +192,9 @@ class DllExport XXBASE : public CSORT, public BLOCK {
virtual void Print(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z);
virtual bool Init(PGLOBAL g) = 0;
+#if defined(XMAP)
+ virtual bool MapInit(PGLOBAL g) = 0;
+#endif // XMAP
virtual int MaxRange(void) {return 1;}
virtual int Fetch(PGLOBAL g) = 0;
virtual bool NextVal(bool eq) {return true;}
@@ -248,6 +251,9 @@ class DllExport XINDEX : public XXBASE {
// Methods
virtual void Reset(void);
virtual bool Init(PGLOBAL g);
+#if defined(XMAP)
+ virtual bool MapInit(PGLOBAL g);
+#endif // XMAP
virtual int Qcompare(int *, int *);
virtual int Fetch(PGLOBAL g);
virtual int FastFind(int nk);
@@ -403,6 +409,9 @@ class DllExport XXROW : public XXBASE {
// Methods
virtual bool Init(PGLOBAL g);
+#if defined(XMAP)
+ virtual bool MapInit(PGLOBAL g) {return true;}
+#endif // XMAP
virtual int Fetch(PGLOBAL g);
virtual int FastFind(int nk);
virtual int MaxRange(void) {return 1;}