diff options
Diffstat (limited to 'src/mongo/db/index/2d_access_method.h')
-rw-r--r-- | src/mongo/db/index/2d_access_method.h | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/mongo/db/index/2d_access_method.h b/src/mongo/db/index/2d_access_method.h index 208df9235cd..644b6addc5b 100644 --- a/src/mongo/db/index/2d_access_method.h +++ b/src/mongo/db/index/2d_access_method.h @@ -35,25 +35,28 @@ namespace mongo { - class IndexCatalogEntry; - class IndexDescriptor; - struct TwoDIndexingParams; +class IndexCatalogEntry; +class IndexDescriptor; +struct TwoDIndexingParams; - class TwoDAccessMethod : public IndexAccessMethod { - public: - TwoDAccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree); +class TwoDAccessMethod : public IndexAccessMethod { +public: + TwoDAccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree); - private: +private: + const IndexDescriptor* getDescriptor() { + return _descriptor; + } + TwoDIndexingParams& getParams() { + return _params; + } - const IndexDescriptor* getDescriptor() { return _descriptor; } - TwoDIndexingParams& getParams() { return _params; } + // This really gets the 'locs' from the provided obj. + void getKeys(const BSONObj& obj, std::vector<BSONObj>& locs) const; - // This really gets the 'locs' from the provided obj. - void getKeys(const BSONObj& obj, std::vector<BSONObj>& locs) const; + virtual void getKeys(const BSONObj& obj, BSONObjSet* keys) const; - virtual void getKeys(const BSONObj& obj, BSONObjSet* keys) const; - - TwoDIndexingParams _params; - }; + TwoDIndexingParams _params; +}; } // namespace mongo |