代码注释 #36

Open
Lohax wants to merge 18 commits from Lohax/openGauss-server:master into master
1 changed files with 19 additions and 0 deletions
Showing only changes of commit a2303c1fce - Show all commits

View File

@ -189,6 +189,25 @@ static TupleTableSlot* SeqNext(SeqScanState* node);
static void ExecInitNextPartitionForSeqScan(SeqScanState* node);
/* ------------------------------------------------------
* seq_scan_getnext_template
* ------------------------------------------------------
* Param
* scanthe description of the status of atable scan
* slottores the tuple obtained from the table
* directionIndicates the direction of the table scan
* ------------------------------------------------------
* Note
* First determine how to read tuples (1) hashBucket mode
* (2) heap mode (3) uheap mode (UHeap provides a different
* data storage and management mode from the traditional Heap
* It may contain some optimizations and improvements to improve
* the performance of certain types of database workloads).
* Then call each mode of the read function, read a tuple.
* Finally, call UHeapSlotStoreUHeapTuple or heap_slot_store_heap_tuple
* to store the returned tuple tuple into the slot.
* ------------------------------------------------------
*/
template<TableAmType type, bool hashBucket>
FORCE_INLINE
void seq_scan_getnext_template(TableScanDesc scan, TupleTableSlot* slot, ScanDirection direction)