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

Function ExecStoreVirtualTuple

src/backend/executor/execTuples.c:1568–1582  ·  view source on GitHub ↗

-------------------------------- * ExecStoreVirtualTuple * Mark a slot as containing a virtual tuple. * * The protocol for loading a slot with virtual tuple data is: * * Call ExecClearTuple to mark the slot empty. * * Store data into the Datum/isnull arrays. * * Call ExecStoreVirtualTuple to mark the slot valid. * This is a bit unclean but it avoids one round of data copying. * ----

Source from the content-addressed store, hash-verified

1566 * --------------------------------
1567 */
1568TupleTableSlot *
1569ExecStoreVirtualTuple(TupleTableSlot *slot)
1570{
1571 /*
1572 * sanity checks
1573 */
1574 Assert(slot != NULL);
1575 Assert(slot->tts_tupleDescriptor != NULL);
1576 Assert(TTS_EMPTY(slot));
1577
1578 slot->tts_flags &= ~TTS_FLAG_EMPTY;
1579 slot->tts_nvalid = slot->tts_tupleDescriptor->natts;
1580
1581 return slot;
1582}
1583
1584/* --------------------------------
1585 * ExecStoreAllNullTuple

Callers 15

apply_returning_filterFunction · 0.85
fileIterateForeignScanFunction · 0.85
ReadTupleMethod · 0.85
FetchTupleMethod · 0.85
ScanAnalyzeNextTupleMethod · 0.85
MakeZOrderTupleSlotMethod · 0.85
GetNextTupleMethod · 0.85
GetSortedDataMethod · 0.85
ExecStoreVirtualTupleMethod · 0.85
hypothetical_rank_commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected