![]() |
Storage Engine API
|
Key class for precomputing a small format index key that is denser than a traditional BSONObj. More...
#include <key.h>
Key class for precomputing a small format index key that is denser than a traditional BSONObj.
KeyBson is a legacy wrapper implementation for old BSONObj style keys for v:0 indexes.
KeyV1 is the new implementation.
Public Member Functions | |
KeyBson () | |
KeyBson (const char *keyData) | |
KeyBson (const BSONObj &obj) | |
int | woCompare (const KeyBson &r, const Ordering &o) const |
BSONObj | toBson () const |
std::string | toString () const |
int | dataSize () const |
const char * | data () const |
BSONElement | _firstElement () const |
bool | isCompactFormat () const |
bool | woEqual (const KeyBson &r) const |
void | assign (const KeyBson &rhs) |
bool | isValid () const |
Private Attributes | |
BSONObj | _o |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int mongo::KeyBson::woCompare | ( | const KeyBson & | r, |
const Ordering & | o | ||
) | const |
bool mongo::KeyBson::woEqual | ( | const KeyBson & | r | ) | const |
|
private |