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

Function IsExtendedIndexAm

pg_documentdb/src/index_am/index_am_utils.c:219–233  ·  view source on GitHub ↗

* Is the Index Access Method an extended index (not a regular bson index, TEXT, Vector, Points etc) */

Source from the content-addressed store, hash-verified

217 * Is the Index Access Method an extended index (not a regular bson index, TEXT, Vector, Points etc)
218 */
219bool
220IsExtendedIndexAm(Oid indexAm)
221{
222 if (!EnableExtendedIndexes)
223 {
224 return false;
225 }
226
227 const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid(indexAm);
228
229 /* If there are create index support functions,
230 * we assume it is a MongoIndexKind_Extended index, not a regular bson index.
231 */
232 return amEntry != NULL && amEntry->create_indexes_support_funcs != NULL;
233}
234
235
236/*

Calls 1

Tested by

no test coverage detected