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

Function IsBsonRegularIndexAm

pg_documentdb/src/index_am/index_am_utils.c:204–213  ·  view source on GitHub ↗

* Is the Index Acess Method used for indexing bson (as opposed to indexing TEXT, Vector, Points etc) * as indicated by enum MongoIndexKind_Regular. */

Source from the content-addressed store, hash-verified

202 * as indicated by enum MongoIndexKind_Regular.
203 */
204bool
205IsBsonRegularIndexAm(Oid indexAm)
206{
207 const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid(indexAm);
208
209 /* If there are create index support functions,
210 * we assume it is a MongoIndexKind_Extended index, not a regular bson index.
211 */
212 return amEntry != NULL && amEntry->create_indexes_support_funcs == NULL;
213}
214
215
216/*

Calls 1

Tested by

no test coverage detected