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

Function TryExplainByIndexAm

pg_documentdb/src/index_am/index_am_utils.c:292–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291
292void
293TryExplainByIndexAm(struct IndexScanDescData *scan, ExplainWriterFuncs *writeFuncs,
294 void *writerState)
295{
296 const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid(
297 scan->indexRelation->rd_rel->relam);
298
299 if (amEntry == NULL || amEntry->add_explain_output == NULL)
300 {
301 /* No explain output for this index AM */
302 return;
303 }
304
305 amEntry->add_explain_output(scan, writerState, writeFuncs);
306}
307
308
309/*

Callers 3

ExplainCompositeScanCoreFunction · 0.85
ExplainRegularIndexScanFunction · 0.85

Calls 1

Tested by

no test coverage detected