43 char* upper,
int upsz,
bool upper_incl,
44 bool forward =
true) {
51 klow, lower_incl, kup, upper_incl, forward);
103 bool need_tuple =
false)
105 _need_tuple(need_tuple) {
108 _primary_idx = pmanager->
table()->primary_idx();
A cursor object to sequentially read BTree.
Definition: btcursor.h:64
index_desc_t * _pindex
Definition: scan.h:8
bool construct_regularkey(const void *nonkeystr, w_keystr_len_t length)
Definition: w_key.h:281
const w_rc_t RCOK
Definition: w_rc.h:239
w_rc_t open_scan(char *bound, int bsz, bool incl, bool forward=true)
Definition: scan.h:32
#define w_assert1(x)
Level 1 should not add significant extra time.
Definition: w_base.h:198
uint32_t smsize_t
Definition: basics.h:41
static rc_t find_assoc(StoreID stid, const w_keystr_t &key, void *el, smsize_t &elen, bool &found)
Find an entry associated with a key in a B+-Tree index.
Definition: smindex.cpp:88
T * table()
Definition: table_man.h:140
index_scan_iter_impl(index_desc_t *pindex, table_man_t< T > *pmanager, bool need_tuple=false)
Definition: scan.h:101
w_rc_t open_scan(bool forward=true)
Definition: scan.h:25
virtual w_rc_t next(bool &eof, table_row_t &tuple)
Definition: scan.h:69
void load_value(char *data, index_desc_t *pindex=nullptr)
Definition: row.cpp:339
Key string class which can represent a few special values.
Definition: w_key.h:47
virtual ~table_scan_iter_impl()
Definition: scan.h:67
bool _need_tuple
Definition: scan.h:98
base_scan_t(index_desc_t *pindex)
Definition: scan.h:13
const w_keystr_t & key()
Definition: btcursor.h:122
#define w_assert0(x)
Default assert/debug level is 0.
Definition: w_base.h:175
virtual ~index_scan_iter_impl()
Definition: scan.h:111
w_rc_t open_scan(char *lower, int lowsz, bool lower_incl, char *upper, int upsz, bool upper_incl, bool forward=true)
Definition: scan.h:42
bt_cursor_t * btcursor
Definition: scan.h:10
Return code for most functions and methods.
Definition: w_rc.h:87
Definition: index_desc.h:60
int elen() const
Definition: btcursor.h:135
void serialize_as_nonkeystr(void *buffer) const
Definition: w_key.h:478
StoreID & stid()
Definition: index_desc.h:117
rep_row_t * _rep
Definition: row.h:171
rc_t next()
Definition: btcursor.cpp:247
#define W_DO(x)
Call a method or function x. This macro is the normal idiom for calling a method or function...
Definition: w_rc.h:304
: Base class for tables stored in Shore
table_scan_iter_impl(table_man_t< T > *pmanager)
Definition: scan.h:64
rep_row_t * _rep_key
Definition: row.h:172
char * _dest
Definition: row.h:118
virtual w_rc_t next(bool &eof, table_row_t &tuple)=0
virtual ~base_scan_t()
Definition: scan.h:19
bool eof()
Definition: btcursor.h:131
virtual w_rc_t next(bool &eof, table_row_t &tuple)
Definition: scan.h:113
Definition: table_man.h:117
index_desc_t * _primary_idx
Definition: scan.h:96
char * elem()
Definition: btcursor.h:139
void load_key(char *data, index_desc_t *pindex=nullptr)
Definition: row.cpp:249