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