75 assert(!
_desc[index].is_variable_length());
76 assert(!
_desc[index].allow_null());
109 bool get_sorted(
const int index,
table_row_t* ptuple);
140 return (_tuple_count);
169 : psortbuf(psortbuf),
228 _manager->get_sorted(_index, &tuple);
229 eof = (++_index > _manager->_tuple_count);
void reset()
Definition: sort.h:241
w_rc_t next(bool &eof, table_row_t &tuple)
Definition: sort.h:227
unsigned _field_count
Definition: table_desc.h:127
Definition: table_desc.h:122
bool _is_sorted
Definition: sort.h:100
asc_sort_buffer_t(const size_t field_count)
Definition: sort.h:66
const w_rc_t RCOK
Definition: w_rc.h:239
char * _sort_buf
Definition: sort.h:96
field_desc_t * _desc
Definition: table_desc.h:135
asc_sort_iter_impl(asc_sort_buffer_t *psortbuf, asc_sort_man_impl *psortman)
Definition: sort.h:168
asc_sort_man_impl * _manager
Definition: sort.h:162
void setup(const size_t index, sqltype_t type, const int len=0)
Definition: sort.h:72
tatas_lock _sorted_lock
Definition: sort.h:101
unsigned field_count() const
Definition: table_desc.h:247
int count()
Definition: sort.h:139
asc_sort_man_impl(asc_sort_buffer_t *aSortBufferAsc, rep_row_t *aprow)
Definition: sort.h:113
Return code for most functions and methods.
Definition: w_rc.h:87
int _index
Definition: sort.h:164
asc_sort_buffer_t * psortbuf
Definition: sort.h:160
int _buf_size
Definition: sort.h:99
w_rc_t open_scan()
Definition: sort.h:212
A test-and-test-and-set spinlock.
Definition: tatas.h:25
#define W_COERCE(x)
Call a function or method x, fail catastrophically if error is returned.
Definition: w_rc.h:349
~asc_sort_buffer_t()
Definition: sort.h:69
int _tuple_count
Definition: sort.h:98
void setup(const sqltype_t type, const char *name, const short size=0, const bool allow_null=false)
Definition: field.h:418
~asc_sort_man_impl()
Definition: sort.h:122
sqltype_t
Definition: field.h:99
: Base class for tables stored in Shore
rep_row_t * _preprow
Definition: sort.h:103
w_rc_t close_scan()
Definition: sort.h:184
Definition: table_man.h:117
int _tuple_size
Definition: sort.h:97