MySQL 9.5.0
Source Code Documentation
RowIDIntersectionIterator Class Referencefinal

#include <rowid_ordered_retrieval.h>

Inheritance diagram for RowIDIntersectionIterator:
[legend]

Public Member Functions

 RowIDIntersectionIterator (THD *thd, MEM_ROOT *return_mem_root, TABLE *table_arg, bool retrieve_full_rows, bool need_rows_in_rowid_order, Mem_root_array< unique_ptr_destroy_only< RowIterator > > children, unique_ptr_destroy_only< RowIterator > cpk_child)
 
 ~RowIDIntersectionIterator () override
 
ucharlast_rowid () const override
 
- Public Member Functions inherited from RowIDCapableRowIterator
 RowIDCapableRowIterator (THD *thd, TABLE *table)
 
- Public Member Functions inherited from TableRowIterator
 TableRowIterator (THD *thd, TABLE *table)
 
void UnlockRow () override
 The default implementation of unlock-row method of RowIterator, used in all access methods except EQRefIterator. More...
 
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...
 
- Public Member Functions inherited from RowIterator
 RowIterator (THD *thd)
 
virtual ~RowIterator ()=default
 
 RowIterator (const RowIterator &)=delete
 
 RowIterator (RowIterator &&)=default
 
bool Init ()
 Initialize or reinitialize the iterator. More...
 
int Read ()
 Read a single row. More...
 
virtual const IteratorProfilerGetProfiler () const
 Get profiling data for this iterator (for 'EXPLAIN ANALYZE'). More...
 
virtual void SetOverrideProfiler (const IteratorProfiler *profiler)
 
virtual RowIteratorreal_iterator ()
 If this iterator is wrapping a different iterator (e.g. More...
 
virtual const RowIteratorreal_iterator () const
 
uint64_t num_init_calls () const
 Returns the number of times Init() has been called on this iterator. More...
 
uint64_t num_rows () const
 Returns the number of times Read() has returned a row successfully from this iterator. More...
 
uint64_t num_full_reads () const
 Returns the number of times the iterator has been fully read. More...
 

Private Member Functions

bool DoInit () override
 
int DoRead () override
 
bool init_ror_merged_scan ()
 

Private Attributes

Mem_root_array< unique_ptr_destroy_only< RowIterator > > m_children
 
unique_ptr_destroy_only< RowIteratorm_cpk_child
 
bool retrieve_full_rows
 
bool scans_inited
 
const bool need_rows_in_rowid_order
 
ucharm_last_rowid
 
bool inited = false
 

Additional Inherited Members

- Protected Member Functions inherited from TableRowIterator
int HandleError (int error)
 
void PrintError (int error)
 
TABLEtable () const
 
- Protected Member Functions inherited from RowIterator
THDthd () const
 

Constructor & Destructor Documentation

◆ RowIDIntersectionIterator()

RowIDIntersectionIterator::RowIDIntersectionIterator ( THD thd,
MEM_ROOT return_mem_root,
TABLE table_arg,
bool  retrieve_full_rows,
bool  need_rows_in_rowid_order,
Mem_root_array< unique_ptr_destroy_only< RowIterator > >  children,
unique_ptr_destroy_only< RowIterator cpk_child 
)

◆ ~RowIDIntersectionIterator()

RowIDIntersectionIterator::~RowIDIntersectionIterator ( )
override

Member Function Documentation

◆ DoInit()

bool RowIDIntersectionIterator::DoInit ( )
overrideprivatevirtual

Implements RowIterator.

◆ DoRead()

int RowIDIntersectionIterator::DoRead ( )
overrideprivatevirtual

Implements RowIterator.

◆ init_ror_merged_scan()

bool RowIDIntersectionIterator::init_ror_merged_scan ( )
private

◆ last_rowid()

uchar * RowIDIntersectionIterator::last_rowid ( ) const
inlineoverridevirtual

Member Data Documentation

◆ inited

bool RowIDIntersectionIterator::inited = false
private

◆ m_children

Mem_root_array<unique_ptr_destroy_only<RowIterator> > RowIDIntersectionIterator::m_children
private

◆ m_cpk_child

unique_ptr_destroy_only<RowIterator> RowIDIntersectionIterator::m_cpk_child
private

◆ m_last_rowid

uchar* RowIDIntersectionIterator::m_last_rowid
private

◆ need_rows_in_rowid_order

const bool RowIDIntersectionIterator::need_rows_in_rowid_order
private

◆ retrieve_full_rows

bool RowIDIntersectionIterator::retrieve_full_rows
private

◆ scans_inited

bool RowIDIntersectionIterator::scans_inited
private

The documentation for this class was generated from the following files: