mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
thoughts/comments
This commit is contained in:
parent
8f0e8a2eb1
commit
35386e6fd9
@ -44,11 +44,9 @@ namespace mongo {
|
||||
* @return the spec init was called with
|
||||
*/
|
||||
BSONObj getSpec() const { return _source; }
|
||||
|
||||
|
||||
/**
|
||||
* transforms in according to spec
|
||||
* NOTE: this will stricy obey _id, which is not true
|
||||
* for normal queries
|
||||
*/
|
||||
BSONObj transform( const BSONObj& in ) const;
|
||||
|
||||
@ -57,7 +55,15 @@ namespace mongo {
|
||||
* transforms in according to spec
|
||||
*/
|
||||
void transform( const BSONObj& in , BSONObjBuilder& b ) const;
|
||||
|
||||
|
||||
/**
|
||||
* @return if the key has all the information needed to return
|
||||
* NOTE: a key may have modified the actual data
|
||||
* which has to be handled above this
|
||||
*/
|
||||
bool keyEnough( const BSONObj& keyPattern ) const;
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user