Storage Engine API
mongo::BSONCollectionCatalogEntry::MetaData Struct Reference

#include <bson_collection_catalog_entry.h>

Public Member Functions

void parse (const BSONObj &obj)
 
BSONObj toBSON () const
 
int findIndexOffset (StringData name) const
 
bool eraseIndex (StringData name)
 Removes information about an index from the MetaData. More...
 
void rename (StringData toNS)
 
KVPrefix getMaxPrefix () const
 

Public Attributes

std::string ns
 
CollectionOptions options
 
std::vector< IndexMetaDataindexes
 
KVPrefix prefix = KVPrefix::kNotPrefixed
 

Member Function Documentation

◆ eraseIndex()

bool mongo::BSONCollectionCatalogEntry::MetaData::eraseIndex ( StringData  name)

Removes information about an index from the MetaData.

Returns true if an index called name existed and was deleted, and false otherwise.

◆ findIndexOffset()

int mongo::BSONCollectionCatalogEntry::MetaData::findIndexOffset ( StringData  name) const

◆ getMaxPrefix()

KVPrefix mongo::BSONCollectionCatalogEntry::MetaData::getMaxPrefix ( ) const

◆ parse()

void mongo::BSONCollectionCatalogEntry::MetaData::parse ( const BSONObj &  obj)

◆ rename()

void mongo::BSONCollectionCatalogEntry::MetaData::rename ( StringData  toNS)

◆ toBSON()

BSONObj mongo::BSONCollectionCatalogEntry::MetaData::toBSON ( ) const

Member Data Documentation

◆ indexes

std::vector<IndexMetaData> mongo::BSONCollectionCatalogEntry::MetaData::indexes

◆ ns

std::string mongo::BSONCollectionCatalogEntry::MetaData::ns

◆ options

CollectionOptions mongo::BSONCollectionCatalogEntry::MetaData::options

◆ prefix

KVPrefix mongo::BSONCollectionCatalogEntry::MetaData::prefix = KVPrefix::kNotPrefixed

The documentation for this struct was generated from the following files: