代码注释 #36
|
|
@ -189,6 +189,25 @@ static TupleTableSlot* SeqNext(SeqScanState* node);
|
|||
|
||||
static void ExecInitNextPartitionForSeqScan(SeqScanState* node);
|
||||
|
||||
/* ------------------------------------------------------
|
||||
* seq_scan_getnext_template
|
||||
* ------------------------------------------------------
|
||||
* Param:
|
||||
* scan:the description of the status of atable scan
|
||||
* slot:tores the tuple obtained from the table
|
||||
* direction:Indicates 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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue