diff options
author | unknown <joreland@mysql.com> | 2004-11-23 22:08:47 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-11-23 22:08:47 +0100 |
commit | 4607570413a4abd35dfae471d7ff967363e7624c (patch) | |
tree | 65a8b88761bda39dfd55a1535cb9015bba59afd8 /ndb/include/ndbapi | |
parent | 3ef57e28495d2f309a982ea8f3c42306d67f76bd (diff) | |
download | mariadb-git-4607570413a4abd35dfae471d7ff967363e7624c.tar.gz |
wl2126 - ndb - add support for batching range scans
1) removed acc keyinfo
2) introduce handling of multiple bounds
ndb/include/kernel/signaldata/AccScan.hpp:
Removed keyinfo from AccScan
ndb/include/kernel/signaldata/TuxBound.hpp:
Add data word
ndb/include/ndbapi/NdbIndexScanOperation.hpp:
Added new_bound call, which is used when batching range scans
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
removed keyinfo from acc scan
ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
removed scan keyinfo
ndb/src/kernel/blocks/dblqh/DblqhInit.cpp:
removed scan keyinfo
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
1) removed add scan,
let LQH read keyinfo from tup instead
2) introduce copy_bounds which handles multiple bounds
ndb/src/kernel/blocks/dbtux/Dbtux.hpp:
removed scan keyinfo
ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp:
removed scan keyinfo
ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp:
removed scan keyinfo
ndb/src/ndbapi/NdbScanOperation.cpp:
handle multiple bounds
Diffstat (limited to 'ndb/include/ndbapi')
-rw-r--r-- | ndb/include/ndbapi/NdbIndexScanOperation.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ndb/include/ndbapi/NdbIndexScanOperation.hpp b/ndb/include/ndbapi/NdbIndexScanOperation.hpp index 66b3fc9d43b..01955ee1a08 100644 --- a/ndb/include/ndbapi/NdbIndexScanOperation.hpp +++ b/ndb/include/ndbapi/NdbIndexScanOperation.hpp @@ -114,6 +114,12 @@ public: * sent on next execute */ int reset_bounds(); + + /** + * Set new bound on operation, + * used when batching index reads + */ + int set_new_bound(); bool getSorted() const { return m_ordered; } private: @@ -132,6 +138,9 @@ private: int compare(Uint32 key, Uint32 cols, const NdbReceiver*, const NdbReceiver*); Uint32 m_sort_columns; + + Uint32 m_this_bound_start; + Uint32 * m_first_bound_word; }; #endif |