diff options
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 { |