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

Function _bitmap_buildinsert

src/backend/access/bitmap/bitmapinsert.c:2525–2539  ·  view source on GitHub ↗

* _bitmap_buildinsert() -- insert an index tuple during index creation. */

Source from the content-addressed store, hash-verified

2523 * _bitmap_buildinsert() -- insert an index tuple during index creation.
2524 */
2525void
2526_bitmap_buildinsert(Relation rel, ItemPointerData ht_ctid, Datum *attdata,
2527 bool *nulls, BMBuildState *state)
2528{
2529 TupleDesc tupDesc;
2530 uint64 tidOffset;
2531
2532 tidOffset = BM_IPTR_TO_INT(&ht_ctid);
2533
2534 tupDesc = RelationGetDescr(rel);
2535
2536 /* insert a new bit into the corresponding bitmap */
2537 build_inserttuple(rel, tidOffset, ht_ctid,
2538 tupDesc, attdata, nulls, state);
2539}
2540
2541/*
2542 * _bitmap_doinsert() -- insert an index tuple for a given tuple.

Callers 1

bmbuildCallbackFunction · 0.85

Calls 1

build_inserttupleFunction · 0.85

Tested by

no test coverage detected