Storage Engine API
mongo::KVStorageEngineTest Class Reference
Inheritance diagram for mongo::KVStorageEngineTest:

Public Member Functions

 KVStorageEngineTest ()
 
void setUp () final
 
void tearDown () final
 
StatusWith< std::string > createCollection (OperationContext *opCtx, NamespaceString ns)
 Create a collection in the catalog and in the KVEngine. More...
 
Status createCollTable (OperationContext *opCtx, NamespaceString collName)
 Create a collection table in the KVEngine not reflected in the KVCatalog. More...
 
Status dropIndexTable (OperationContext *opCtx, NamespaceString nss, std::string indexName)
 
Status dropIdent (OperationContext *opCtx, StringData ident)
 
StatusWith< std::vector< StorageEngine::CollectionIndexNamePair > > reconcile (OperationContext *opCtx)
 
std::vector< std::string > getAllKVEngineIdents (OperationContext *opCtx)
 
Status createIndex (OperationContext *opCtx, NamespaceString collNs, std::string key)
 Create an index with a key of {<key>: 1} and a name of <key>. More...
 

Public Attributes

ServiceContextMongoDTest _serviceContext
 
std::unique_ptr< KVStorageEngine_storageEngine
 

Constructor & Destructor Documentation

◆ KVStorageEngineTest()

mongo::KVStorageEngineTest::KVStorageEngineTest ( )
inline

Member Function Documentation

◆ createCollection()

StatusWith<std::string> mongo::KVStorageEngineTest::createCollection ( OperationContext *  opCtx,
NamespaceString  ns 
)
inline

Create a collection in the catalog and in the KVEngine.

Return the storage engine's ident.

◆ createCollTable()

Status mongo::KVStorageEngineTest::createCollTable ( OperationContext *  opCtx,
NamespaceString  collName 
)
inline

Create a collection table in the KVEngine not reflected in the KVCatalog.

◆ createIndex()

Status mongo::KVStorageEngineTest::createIndex ( OperationContext *  opCtx,
NamespaceString  collNs,
std::string  key 
)
inline

Create an index with a key of {<key>: 1} and a name of <key>.

◆ dropIdent()

Status mongo::KVStorageEngineTest::dropIdent ( OperationContext *  opCtx,
StringData  ident 
)
inline

◆ dropIndexTable()

Status mongo::KVStorageEngineTest::dropIndexTable ( OperationContext *  opCtx,
NamespaceString  nss,
std::string  indexName 
)
inline

◆ getAllKVEngineIdents()

std::vector<std::string> mongo::KVStorageEngineTest::getAllKVEngineIdents ( OperationContext *  opCtx)
inline

◆ reconcile()

StatusWith<std::vector<StorageEngine::CollectionIndexNamePair> > mongo::KVStorageEngineTest::reconcile ( OperationContext *  opCtx)
inline

◆ setUp()

void mongo::KVStorageEngineTest::setUp ( )
inlinefinal

◆ tearDown()

void mongo::KVStorageEngineTest::tearDown ( )
inlinefinal

Member Data Documentation

◆ _serviceContext

ServiceContextMongoDTest mongo::KVStorageEngineTest::_serviceContext

◆ _storageEngine

std::unique_ptr<KVStorageEngine> mongo::KVStorageEngineTest::_storageEngine

The documentation for this class was generated from the following file: