* 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 } */
| 2049 | * byte 1:N: A single bson object with { path : value } |
| 2050 | */ |
| 2051 | BsonIndexTermSerialized |
| 2052 | SerializeBsonIndexTerm(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 | |
| 2062 | static Datum |
no test coverage detected