---------------------------------------------------------------- * SampleNext * * This is a workhorse for ExecSampleScan * ---------------------------------------------------------------- */
| 42 | * ---------------------------------------------------------------- |
| 43 | */ |
| 44 | static TupleTableSlot * |
| 45 | SampleNext(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 |
nothing calls this directly
no test coverage detected