MCPcopy Create free account
hub / github.com/apache/cloudberry / table_index_build_scan

Function table_index_build_scan

src/include/access/tableam.h:2021–2042  ·  view source on GitHub ↗

* table_index_build_scan - scan the table to find tuples to be indexed * * This is called back from an access-method-specific index build procedure * after the AM has done whatever setup it needs. The parent table relation * is scanned to find tuples that should be entered into the index. Each * such tuple is passed to the AM's callback routine, which does the right * things to add it to t

Source from the content-addressed store, hash-verified

2019 * for other AMs later.
2020 */
2021static inline double
2022table_index_build_scan(Relation table_rel,
2023 Relation index_rel,
2024 struct IndexInfo *index_info,
2025 bool allow_sync,
2026 bool progress,
2027 IndexBuildCallback callback,
2028 void *callback_state,
2029 TableScanDesc scan)
2030{
2031 return table_rel->rd_tableam->index_build_range_scan(table_rel,
2032 index_rel,
2033 index_info,
2034 allow_sync,
2035 false,
2036 progress,
2037 0,
2038 InvalidBlockNumber,
2039 callback,
2040 callback_state,
2041 scan);
2042}
2043
2044/*
2045 * As table_index_build_scan(), except that instead of scanning the complete

Callers 10

bt_check_every_levelFunction · 0.85
blbuildFunction · 0.85
spgbuildFunction · 0.85
ginbuildFunction · 0.85
brinbuildFunction · 0.85
hashbuildFunction · 0.85
gistbuildFunction · 0.85
bmbuildFunction · 0.85
_bt_spools_heapscanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected