0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

thoughts/comments

This commit is contained in:
Eliot Horowitz 2010-11-15 16:45:51 -05:00
parent 8f0e8a2eb1
commit 35386e6fd9

View File

@ -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:
/**