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

Function GenerateNegationTerms

pg_documentdb/src/opclass/bson_gin_core.c:2109–2127  ·  view source on GitHub ↗

* Adds the Root terms for negation scenarios into the entries. */

Source from the content-addressed store, hash-verified

2107 * Adds the Root terms for negation scenarios into the entries.
2108 */
2109static void
2110GenerateNegationTerms(Datum *entries, int nextIndex,
2111 bool *partialMatch,
2112 IndexTermCreateMetadata *termMetadata)
2113{
2114 /* non exists term. */
2115 entries[nextIndex] = GenerateRootNonExistsTerm(termMetadata);
2116 partialMatch[nextIndex] = false;
2117 nextIndex++;
2118
2119 /* the next term generated is the root exists term */
2120 entries[nextIndex] = GenerateRootExistsTerm(termMetadata);
2121 partialMatch[nextIndex] = false;
2122 nextIndex++;
2123
2124 /* the next term generated is the root term for back-compatibility */
2125 entries[nextIndex] = GenerateRootTerm(termMetadata);
2126 partialMatch[nextIndex] = false;
2127}
2128
2129
2130/*

Callers 4

GinBsonExtractQueryLessFunction · 0.85

Calls 3

GenerateRootExistsTermFunction · 0.85
GenerateRootTermFunction · 0.85

Tested by

no test coverage detected