#include <key.h>
◆ KeyV1Owned() [1/2]
mongo::KeyV1Owned::KeyV1Owned |
( |
const BSONObj & |
obj | ) |
|
a BSON object to be translated to KeyV1 format.
If the object isn't representable in KeyV1 format (which happens, intentionally, at times) it will stay as bson herein.
◆ KeyV1Owned() [2/2]
mongo::KeyV1Owned::KeyV1Owned |
( |
const KeyV1 & |
rhs | ) |
|
makes a copy (memcpy's the whole thing)
◆ operator=()
◆ traditional()
void mongo::KeyV1Owned::traditional |
( |
const BSONObj & |
obj | ) |
|
|
private |
object cannot be represented in compact format.
so store in traditional bson format with a leading sentinel byte IsBSON to indicate it's in that format.
Given that the KeyV1Owned constructor already grabbed a bufbuilder, we reuse it here so that we don't have to do an extra malloc.
StackBufBuilder mongo::KeyV1Owned::b |
|
private |
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/btree/key.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/btree/key.cpp