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

Function SampleNext

src/backend/executor/nodeSamplescan.c:44–57  ·  view source on GitHub ↗

---------------------------------------------------------------- * SampleNext * * This is a workhorse for ExecSampleScan * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

42 * ----------------------------------------------------------------
43 */
44static TupleTableSlot *
45SampleNext(SampleScanState *node)
46{
47 /*
48 * if this is first call within a scan, initialize
49 */
50 if (!node->begun)
51 tablesample_init(node);
52
53 /*
54 * get the next tuple, and store it in our result slot
55 */
56 return tablesample_getnext(node);
57}
58
59/*
60 * SampleRecheck -- access method routine to recheck a tuple in EvalPlanQual

Callers

nothing calls this directly

Calls 2

tablesample_initFunction · 0.85
tablesample_getnextFunction · 0.85

Tested by

no test coverage detected