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

Function ExplainCompositeScanToWriter

pg_documentdb/src/index_am/rum.c:1878–1897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1876
1877
1878void
1879ExplainCompositeScanToWriter(IndexScanDesc scan, pgbson_writer *writer)
1880{
1881 if (!IsCompositeOpClass(scan->indexRelation))
1882 {
1883 return;
1884 }
1885
1886 if (scan->indexRelation->rd_opcoptions != NULL)
1887 {
1888 pgbson_writer keyWriter;
1889 PgbsonWriterStartDocument(writer, "keyPattern", -1, &keyWriter);
1890 SerializeCompositeIndexKeyForExplainToWriter(
1891 scan->indexRelation->rd_opcoptions[0], &keyWriter);
1892 PgbsonWriterEndDocument(writer, &keyWriter);
1893 }
1894
1895 ExplainWriterFuncs writerFuncs = GetForBsonWriter();
1896 ExplainCompositeScanCore(scan, writer, &writerFuncs);
1897}
1898
1899
1900void

Callers 1

WriteIndexExecutionStatsFunction · 0.85

Calls 6

IsCompositeOpClassFunction · 0.85
PgbsonWriterEndDocumentFunction · 0.85
GetForBsonWriterFunction · 0.85
ExplainCompositeScanCoreFunction · 0.85

Tested by

no test coverage detected