diff options
author | Dwight <dmerriman@gmail.com> | 2010-04-22 10:31:16 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2010-04-22 10:31:16 -0400 |
commit | 67e3503b9d10a2e3e1fbea48baba6d4846019134 (patch) | |
tree | 510dc1a0f144c09dc8b28e773063b4a4e6dc9cbb /db/queryutil.h | |
parent | 835c65adc298dde1b311d6346f914f9c60e4a71e (diff) | |
download | mongo-67e3503b9d10a2e3e1fbea48baba6d4846019134.tar.gz |
bson cleaning
Diffstat (limited to 'db/queryutil.h')
-rw-r--r-- | db/queryutil.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db/queryutil.h b/db/queryutil.h index 936bd4d575a..701b40ea09a 100644 --- a/db/queryutil.h +++ b/db/queryutil.h @@ -143,7 +143,14 @@ namespace mongo { map< string, Type > fieldTypes_; BSONObj sort_; }; - + + // a BoundList contains intervals specified by inclusive start + // and end bounds. The intervals should be nonoverlapping and occur in + // the specified direction of traversal. For example, given a simple index {i:1} + // and direction +1, one valid BoundList is: (1, 2); (4, 6). The same BoundList + // would be valid for index {i:-1} with direction -1. + typedef vector< pair< BSONObj, BSONObj > > BoundList; + // ranges of fields' value that may be determined from query -- used to // determine index limits class FieldRangeSet { |