mirror of
https://github.com/MariaDB/server.git
synced 2025-09-08 06:27:57 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user