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

Function extension_rumbeginscan_core

pg_documentdb/src/index_am/rum.c:1042–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040
1041
1042IndexScanDesc
1043extension_rumbeginscan_core(Relation rel, int nkeys, int norderbys,
1044 IndexAmRoutine *coreRoutine)
1045{
1046 if (IsCompositeOpClass(rel))
1047 {
1048 IndexScanDesc scan = RelationGetIndexScan(rel, nkeys, norderbys);
1049
1050 DocumentDBRumIndexState *outerScanState = palloc0(
1051 sizeof(DocumentDBRumIndexState));
1052 scan->opaque = outerScanState;
1053 outerScanState->scanDirection = ForwardScanDirection;
1054
1055 /* Don't yet start inner scan here - instead wait until rescan to begin */
1056 return scan;
1057 }
1058 else
1059 {
1060 return coreRoutine->ambeginscan(rel, nkeys, norderbys);
1061 }
1062}
1063
1064
1065static void

Calls 1

IsCompositeOpClassFunction · 0.85

Tested by

no test coverage detected