diff options
Diffstat (limited to 'src/mongo/db/index/s2_access_method.h')
-rw-r--r-- | src/mongo/db/index/s2_access_method.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mongo/db/index/s2_access_method.h b/src/mongo/db/index/s2_access_method.h index 9ce655e47f7..15e0c3a773e 100644 --- a/src/mongo/db/index/s2_access_method.h +++ b/src/mongo/db/index/s2_access_method.h @@ -36,22 +36,22 @@ namespace mongo { - class S2AccessMethod : public IndexAccessMethod { - public: - S2AccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree); - - /** - * Takes an index spec object for this index and returns a copy tweaked to conform to the - * expected format. When an index build is initiated, this function is called on the spec - * object the user provides, and the return value of this function is the final spec object - * that gets saved in the index catalog. Throws a UserException if 'specObj' is invalid. - */ - static BSONObj fixSpec(const BSONObj& specObj); - - private: - virtual void getKeys(const BSONObj& obj, BSONObjSet* keys) const; - - S2IndexingParams _params; - }; +class S2AccessMethod : public IndexAccessMethod { +public: + S2AccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree); + + /** + * Takes an index spec object for this index and returns a copy tweaked to conform to the + * expected format. When an index build is initiated, this function is called on the spec + * object the user provides, and the return value of this function is the final spec object + * that gets saved in the index catalog. Throws a UserException if 'specObj' is invalid. + */ + static BSONObj fixSpec(const BSONObj& specObj); + +private: + virtual void getKeys(const BSONObj& obj, BSONObjSet* keys) const; + + S2IndexingParams _params; +}; } // namespace mongo |