mongo::FieldRangeVector Class Reference
#include <queryutil.h>
List of all members.
Detailed Description
This class manages the ranges of valid element values for each field in an ordered list of signed fields corresponding to an index specification.
Definition at line 355 of file queryutil.h.
Constructor & Destructor Documentation
mongo::FieldRangeVector::FieldRangeVector |
( |
const FieldRangeSet & |
frs, |
|
|
const BSONObj & |
keyPattern, |
|
|
int |
direction | |
|
) |
| | [inline] |
- Parameters:
-
| frs | The valid ranges for all fields, as defined by the query spec keyPattern The index key pattern |
| direction | The direction of index traversal |
Definition at line 362 of file queryutil.h.
Member Function Documentation
BSONObj mongo::FieldRangeVector::endKey |
( |
|
) |
const [inline] |
bool mongo::FieldRangeVector::matches |
( |
const BSONObj & |
obj |
) |
const |
- Returns:
- true iff the provided document matches valid ranges on all of this FieldRangeVector's fields, which is the case iff this document would be returned while scanning the index corresponding to this FieldRangeVector. This function is used for $or clause deduping.
bool mongo::FieldRangeVector::matchesElement |
( |
const BSONElement & |
e, |
|
|
int |
i, |
|
|
bool |
direction | |
|
) |
| | const [private] |
int mongo::FieldRangeVector::matchingLowElement |
( |
const BSONElement & |
e, |
|
|
int |
i, |
|
|
bool |
direction, |
|
|
bool & |
lowEquality | |
|
) |
| | const [private] |
BSONObj mongo::FieldRangeVector::obj |
( |
|
) |
const [inline] |
long long mongo::FieldRangeVector::size |
( |
|
) |
[inline] |
BSONObj mongo::FieldRangeVector::startKey |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: