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

Function bmbuildCallback

src/backend/access/bitmap/bitmap.c:591–602  ·  view source on GitHub ↗

* Per-tuple callback from IndexBuildHeapScan */

Source from the content-addressed store, hash-verified

589 * Per-tuple callback from IndexBuildHeapScan
590 */
591static void
592bmbuildCallback(Relation index, ItemPointer tupleId, Datum *attdata,
593 bool *nulls, bool tupleIsAlive pg_attribute_unused(), void *state)
594{
595 BMBuildState *bstate = (BMBuildState *) state;
596
597 _bitmap_buildinsert(index, *tupleId, attdata, nulls, bstate);
598 bstate->ituples += 1;
599
600 if (((int)bstate->ituples) % 1000 == 0)
601 CHECK_FOR_INTERRUPTS();
602}
603
604/*
605 * Free an IndexScanDesc created by copy_scan_desc(). If releaseBuffers is true,

Callers

nothing calls this directly

Calls 1

_bitmap_buildinsertFunction · 0.85

Tested by

no test coverage detected