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

Function SerializeBsonIndexTerm

pg_documentdb/src/opclass/gin_index_term.c:2051–2059  ·  view source on GitHub ↗

* Serializes a single bson term (path and value) to the serialized index * format. The serialized format is: * byte 0: Metadata: * Today this is simply whether or not the term is truncated * byte 1:N: A single bson object with { path : value } */

Source from the content-addressed store, hash-verified

2049 * byte 1:N: A single bson object with { path : value }
2050 */
2051BsonIndexTermSerialized
2052SerializeBsonIndexTerm(pgbsonelement *indexElement, const
2053 IndexTermCreateMetadata *indexTermSizeLimit)
2054{
2055 Assert(indexTermSizeLimit != NULL);
2056
2057 IndexTermMetadata termMetadata = IndexTermNoMetadata;
2058 return SerializeBsonIndexTermCore(indexElement, indexTermSizeLimit, termMetadata);
2059}
2060
2061
2062static Datum

Calls 1

Tested by

no test coverage detected