|
| KeyString (Version version) |
|
| KeyString (Version version, const BSONObj &obj, Ordering ord, RecordId recordId) |
|
| KeyString (Version version, const BSONObj &obj, Ordering ord, Discriminator discriminator=kInclusive) |
|
| KeyString (Version version, RecordId rid) |
|
void | appendRecordId (RecordId loc) |
|
void | appendTypeBits (const TypeBits &bits) |
|
void | resetToEmpty () |
| Resets to an empty state. More...
|
|
void | resetToKey (const BSONObj &obj, Ordering ord, RecordId recordId) |
|
void | resetToKey (const BSONObj &obj, Ordering ord, Discriminator discriminator=kInclusive) |
|
void | resetFromBuffer (const void *buffer, size_t size) |
|
const char * | getBuffer () const |
|
size_t | getSize () const |
|
bool | isEmpty () const |
|
const TypeBits & | getTypeBits () const |
|
int | compare (const KeyString &other) const |
|
std::string | toString () const |
|
|
static StringData | versionToString (Version version) |
|
static size_t | getKeySize (const char *buffer, size_t len, Ordering ord, const TypeBits &typeBits) |
|
static BSONObj | toBson (StringData data, Ordering ord, const TypeBits &types) |
|
static BSONObj | toBson (const char *buffer, size_t len, Ordering ord, const TypeBits &types) noexcept |
| Decodes the given KeyString buffer into it's BSONObj representation. More...
|
|
static BSONObj | toBsonSafe (const char *buffer, size_t len, Ordering ord, const TypeBits &types) |
|
static RecordId | decodeRecordIdAtEnd (const void *buf, size_t size) |
| Decodes a RecordId from the end of a buffer. More...
|
|
static RecordId | decodeRecordId (BufReader *reader) |
| Decodes a RecordId, consuming all bytes needed from reader. More...
|
|
|
void | _appendAllElementsForIndexing (const BSONObj &obj, Ordering ord, Discriminator discriminator) |
|
void | _appendBool (bool val, bool invert) |
|
void | _appendDate (Date_t val, bool invert) |
|
void | _appendTimestamp (Timestamp val, bool invert) |
|
void | _appendOID (OID val, bool invert) |
|
void | _appendString (StringData val, bool invert) |
|
void | _appendSymbol (StringData val, bool invert) |
|
void | _appendCode (StringData val, bool invert) |
|
void | _appendCodeWString (const BSONCodeWScope &val, bool invert) |
|
void | _appendBinData (const BSONBinData &val, bool invert) |
|
void | _appendRegex (const BSONRegEx &val, bool invert) |
|
void | _appendDBRef (const BSONDBRef &val, bool invert) |
|
void | _appendArray (const BSONArray &val, bool invert) |
|
void | _appendObject (const BSONObj &val, bool invert) |
|
void | _appendNumberDouble (const double num, bool invert) |
|
void | _appendNumberLong (const long long num, bool invert) |
|
void | _appendNumberInt (const int num, bool invert) |
|
void | _appendNumberDecimal (const Decimal128 num, bool invert) |
|
void | _appendBsonValue (const BSONElement &elem, bool invert, const StringData *name) |
|
void | _appendStringLike (StringData str, bool invert) |
| – lowest level More...
|
|
void | _appendBson (const BSONObj &obj, bool invert) |
|
void | _appendSmallDouble (double value, DecimalContinuationMarker dcm, bool invert) |
|
void | _appendLargeDouble (double value, DecimalContinuationMarker dcm, bool invert) |
|
void | _appendInteger (const long long num, bool invert) |
|
void | _appendPreshiftedIntegerPortion (uint64_t value, bool isNegative, bool invert) |
|
void | _appendDoubleWithoutTypeBits (const double num, DecimalContinuationMarker dcm, bool invert) |
|
void | _appendHugeDecimalWithoutTypeBits (const Decimal128 dec, bool invert) |
|
void | _appendTinyDecimalWithoutTypeBits (const Decimal128 dec, const double bin, bool invert) |
|
template<typename T > |
void | _append (const T &thing, bool invert) |
|
void | _appendBytes (const void *source, size_t bytes, bool invert) |
|