Example #1
0
 BSONObj IndexCursor::prettyIndexBounds() const {
     if ( _bounds == NULL ) {
         return BSON( "start" << prettyKey( _startKey ) << "end" << prettyKey( _endKey ) );
     } else {
         return _bounds->obj();
     }
 }    
Example #2
0
 BSONObj BtreeCursor::prettyIndexBounds() const {
     if ( !_independentFieldRanges ) {
         return BSON( "start" << prettyKey( startKey ) << "end" << prettyKey( endKey ) );
     }
     else {
         return _bounds->obj();
     }
 }