diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2013-05-01 10:01:08 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2013-05-02 15:58:09 -0400 |
commit | c81781d4064998e1cd5d98f6e89c9359f2b7e323 (patch) | |
tree | f78ae5ebe5bbb660e383964ae17c6f523c298ebf /src/mongo/db/index/hash_access_method.h | |
parent | 41a2d01e419cabd2011ce4ce7262eb8b7181d9e7 (diff) | |
download | mongo-c81781d4064998e1cd5d98f6e89c9359f2b7e323.tar.gz |
SERVER-8791 SERVER-9212 remove IndexSpec
Diffstat (limited to 'src/mongo/db/index/hash_access_method.h')
-rw-r--r-- | src/mongo/db/index/hash_access_method.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/index/hash_access_method.h b/src/mongo/db/index/hash_access_method.h index 19060cf3f96..0777f645159 100644 --- a/src/mongo/db/index/hash_access_method.h +++ b/src/mongo/db/index/hash_access_method.h @@ -43,15 +43,18 @@ namespace mongo { return Status::OK(); } - // Our missing field is different than the default missing field, this needs to be - // exposed in s/d_split.cpp. That's the only thing that calls this. - static BSONObj getMissingField(const IndexDetails& details); - /** * Hashing function used by both this class and the cursors we create. + * Exposed for testing and so mongo/db/index_legacy.cpp can use it. */ static long long int makeSingleKey(const BSONElement& e, HashSeed seed, int v); + /** + * Exposed externally for testing purposes. + */ + static void getKeysImpl(const BSONObj& obj, const string& hashedField, HashSeed seed, + int hashVersion, bool isSparse, BSONObjSet* keys); + private: virtual void getKeys(const BSONObj& obj, BSONObjSet* keys); |