コード例 #1
0
ファイル: indexcursor.cpp プロジェクト: igagnidz/tokumx
 BSONObj IndexCursor::prettyIndexBounds() const {
     if ( _bounds == NULL ) {
         return BSON( "start" << prettyKey( _startKey ) << "end" << prettyKey( _endKey ) );
     } else {
         return _bounds->obj();
     }
 }    
コード例 #2
0
ファイル: btreecursor.cpp プロジェクト: FrancescaK/mongo
 BSONObj BtreeCursor::prettyIndexBounds() const {
     if ( !_independentFieldRanges ) {
         return BSON( "start" << prettyKey( startKey ) << "end" << prettyKey( endKey ) );
     }
     else {
         return _bounds->obj();
     }
 }