MCPcopy Create free account
hub / github.com/documentdb/documentdb / GetOneTupleCore

Function GetOneTupleCore

pg_documentdb/src/index_am/rum.c:1282–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280
1281
1282static bool
1283GetOneTupleCore(DocumentDBRumIndexState *outerScanState,
1284 IndexScanDesc scan, ScanDirection direction,
1285 IndexAmRoutine *coreRoutine)
1286{
1287 bool result = coreRoutine->amgettuple(outerScanState->innerScan, direction);
1288 if (result)
1289 {
1290 ItemPointerCopy(&outerScanState->innerScan->xs_heaptid, &scan->xs_heaptid);
1291 scan->xs_recheck = outerScanState->innerScan->xs_recheck;
1292 scan->xs_recheckorderby = outerScanState->innerScan->xs_recheckorderby;
1293
1294 /* Set the pointers to handle order by values */
1295 scan->xs_orderbyvals = outerScanState->innerScan->xs_orderbyvals;
1296 scan->xs_orderbynulls = outerScanState->innerScan->xs_orderbynulls;
1297
1298 scan->xs_itup = outerScanState->innerScan->xs_itup;
1299 scan->xs_itupdesc = outerScanState->innerScan->xs_itupdesc;
1300 }
1301
1302 return result;
1303}
1304
1305
1306bool

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected