summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/index_access_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/index_access_method.h')
-rw-r--r--src/mongo/db/index/index_access_method.h27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/mongo/db/index/index_access_method.h b/src/mongo/db/index/index_access_method.h
index 8e9391f4c29..8819e11912f 100644
--- a/src/mongo/db/index/index_access_method.h
+++ b/src/mongo/db/index/index_access_method.h
@@ -74,6 +74,12 @@ public:
IndexAccessMethod() = default;
virtual ~IndexAccessMethod() = default;
+ static std::unique_ptr<IndexAccessMethod> make(OperationContext* opCtx,
+ const NamespaceString& nss,
+ const CollectionOptions& collectionOptions,
+ IndexCatalogEntry* entry,
+ StringData ident);
+
/**
* Equivalent to (but shorter and faster than): dynamic_cast<SortedDataIndexAccessMethod*>(this)
*/
@@ -275,27 +281,6 @@ public:
};
/**
- * Factory class that constructs an IndexAccessMethod depending on the type of index.
- */
-class IndexAccessMethodFactory {
-public:
- IndexAccessMethodFactory() = default;
- virtual ~IndexAccessMethodFactory() = default;
-
- static IndexAccessMethodFactory* get(ServiceContext* service);
- static IndexAccessMethodFactory* get(OperationContext* opCtx);
- static void set(ServiceContext* service,
- std::unique_ptr<IndexAccessMethodFactory> collectionFactory);
-
-
- virtual std::unique_ptr<IndexAccessMethod> make(OperationContext* opCtx,
- const NamespaceString& nss,
- const CollectionOptions& collectionOptions,
- IndexCatalogEntry* entry,
- StringData ident) = 0;
-};
-
-/**
* Updates are two steps: verify that it's a valid update, and perform it.
* prepareUpdate fills out the UpdateStatus and update actually applies it.
*/