#include <index_range_scan.h>
|
| IndexRangeScanIterator (THD *thd, TABLE *table, ha_rows *examined_rows, double expected_rows, uint index_arg, bool need_rows_in_rowid_order, bool reuse_handler, MEM_ROOT *return_mem_root, uint mrr_flags, uint mrr_buf_size, Bounds_checked_array< QUICK_RANGE * > ranges) |
|
| ~IndexRangeScanIterator () override |
|
| IndexRangeScanIterator (const IndexRangeScanIterator &)=delete |
|
| IndexRangeScanIterator (IndexRangeScanIterator &&)=default |
|
bool | Init () override |
| Initialize or reinitialize the iterator. More...
|
|
int | Read () override |
| Read a single row. More...
|
|
void | UnlockRow () override |
| The default implementation of unlock-row method of RowIterator, used in all access methods except EQRefIterator. More...
|
|
uint | get_mrr_flags () const |
|
uchar * | last_rowid () const override |
|
| RowIDCapableRowIterator (THD *thd, TABLE *table) |
|
| TableRowIterator (THD *thd, TABLE *table) |
|
void | SetNullRowFlag (bool is_null_row) override |
| Mark the current row buffer as containing a NULL row or not, so that if you read from it and the flag is true, you'll get only NULLs no matter what is actually in the buffer (typically some old leftover row). More...
|
|
void | StartPSIBatchMode () override |
| Start performance schema batch mode, if supported (otherwise ignored). More...
|
|
void | EndPSIBatchModeIfStarted () override |
| Ends performance schema batch mode, if started. More...
|
|
| RowIterator (THD *thd) |
|
virtual | ~RowIterator ()=default |
|
| RowIterator (const RowIterator &)=delete |
|
| RowIterator (RowIterator &&)=default |
|
virtual const IteratorProfiler * | GetProfiler () const |
| Get profiling data for this iterator (for 'EXPLAIN ANALYZE'). More...
|
|
virtual void | SetOverrideProfiler (const IteratorProfiler *profiler) |
|
virtual RowIterator * | real_iterator () |
| If this iterator is wrapping a different iterator (e.g. More...
|
|
virtual const RowIterator * | real_iterator () const |
|
◆ IndexRangeScanIterator() [1/3]
IndexRangeScanIterator::IndexRangeScanIterator |
( |
THD * |
thd, |
|
|
TABLE * |
table, |
|
|
ha_rows * |
examined_rows, |
|
|
double |
expected_rows, |
|
|
uint |
index_arg, |
|
|
bool |
need_rows_in_rowid_order, |
|
|
bool |
reuse_handler, |
|
|
MEM_ROOT * |
return_mem_root, |
|
|
uint |
mrr_flags, |
|
|
uint |
mrr_buf_size, |
|
|
Bounds_checked_array< QUICK_RANGE * > |
ranges |
|
) |
| |
◆ ~IndexRangeScanIterator()
IndexRangeScanIterator::~IndexRangeScanIterator |
( |
| ) |
|
|
override |
◆ IndexRangeScanIterator() [2/3]
◆ IndexRangeScanIterator() [3/3]
◆ cmp_next()
int IndexRangeScanIterator::cmp_next |
( |
QUICK_RANGE * |
range | ) |
|
|
private |
◆ cmp_prev()
int IndexRangeScanIterator::cmp_prev |
( |
QUICK_RANGE * |
range | ) |
|
|
private |
◆ get_mrr_flags()
uint IndexRangeScanIterator::get_mrr_flags |
( |
| ) |
const |
|
inline |
◆ Init()
bool IndexRangeScanIterator::Init |
( |
| ) |
|
|
overridevirtual |
Initialize or reinitialize the iterator.
You must always call Init() before trying a Read() (but Init() does not imply Read()).
You can call Init() multiple times; subsequent calls will rewind the iterator (or reposition it, depending on whether the iterator takes in e.g. a Index_lookup) and allow you to read the records anew.
Implements RowIterator.
◆ init_ror_merged_scan()
bool IndexRangeScanIterator::init_ror_merged_scan |
( |
| ) |
|
|
private |
◆ last_rowid()
uchar * IndexRangeScanIterator::last_rowid |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Read()
int IndexRangeScanIterator::Read |
( |
| ) |
|
|
overridevirtual |
Read a single row.
The row data is not actually returned from the function; it is put in the table's (or tables', in case of a join) record buffer, ie., table->records[0].
- Return values
-
0 | OK |
-1 | End of records |
1 | Error |
Implements RowIterator.
◆ row_in_ranges()
bool IndexRangeScanIterator::row_in_ranges |
( |
| ) |
|
|
private |
◆ shared_init()
bool IndexRangeScanIterator::shared_init |
( |
| ) |
|
|
private |
◆ shared_reset()
bool IndexRangeScanIterator::shared_reset |
( |
| ) |
|
|
private |
◆ UnlockRow()
void IndexRangeScanIterator::UnlockRow |
( |
| ) |
|
|
inlineoverridevirtual |
The default implementation of unlock-row method of RowIterator, used in all access methods except EQRefIterator.
Reimplemented from TableRowIterator.
◆ IndexMergeIterator
◆ quick_range_seq_init
◆ quick_range_seq_next
◆ RowIDIntersectionIterator
◆ column_bitmap
MY_BITMAP IndexRangeScanIterator::column_bitmap |
|
protected |
◆ cur_range
◆ file
handler* IndexRangeScanIterator::file |
|
protected |
◆ free_file
bool IndexRangeScanIterator::free_file |
|
protected |
◆ in_ror_merged_scan
bool IndexRangeScanIterator::in_ror_merged_scan |
|
protected |
◆ index
uint IndexRangeScanIterator::index |
|
protected |
◆ inited
bool IndexRangeScanIterator::inited = false |
|
private |
◆ key_part_info
◆ last_range
◆ m_examined_rows
ha_rows* IndexRangeScanIterator::m_examined_rows |
|
private |
◆ m_expected_rows
const double IndexRangeScanIterator::m_expected_rows |
|
private |
◆ mem_root
MEM_ROOT* IndexRangeScanIterator::mem_root |
|
private |
◆ mrr_buf_desc
◆ mrr_buf_size
uint IndexRangeScanIterator::mrr_buf_size |
|
protected |
◆ mrr_flags
uint IndexRangeScanIterator::mrr_flags |
|
protected |
◆ need_rows_in_rowid_order
const bool IndexRangeScanIterator::need_rows_in_rowid_order |
|
protected |
◆ qr_traversal_ctx
◆ ranges
◆ reuse_handler
const bool IndexRangeScanIterator::reuse_handler |
|
protected |
The documentation for this class was generated from the following files: