#include <collection_options.h>
◆ anonymous enum
◆ ParseKind
The 'uuid' member is a collection property stored in the catalog with user-settable options, but is not valid for the user to specify as collection option.
So, parsing commands must reject the 'uuid' property, but parsing stored options must accept it.
Enumerator |
---|
parseForCommand | |
parseForStorage | |
◆ UserFlags
Enumerator |
---|
Flag_UsePowerOf2Sizes | |
Flag_NoPadding | |
◆ appendBSON()
void mongo::CollectionOptions::appendBSON |
( |
BSONObjBuilder * |
builder | ) |
const |
◆ isView()
bool mongo::CollectionOptions::isView |
( |
| ) |
const |
Returns true if the options indicate the namespace is a view.
◆ matchesStorageOptions()
bool mongo::CollectionOptions::matchesStorageOptions |
( |
const CollectionOptions & |
other, |
|
|
CollatorFactoryInterface * |
collatorFactory |
|
) |
| const |
Returns true if given options matches to this.
Uses the collatorFactory to normalize the collation property being compared.
Note: ignores idIndex property.
◆ parse()
Parses the "options" subfield of the collection info object.
◆ setNoIdIndex()
void mongo::CollectionOptions::setNoIdIndex |
( |
| ) |
|
|
inline |
◆ toBSON()
BSONObj mongo::CollectionOptions::toBSON |
( |
| ) |
const |
◆ validateForStorage()
Status mongo::CollectionOptions::validateForStorage |
( |
| ) |
const |
Confirms that collection options can be converted to BSON and back without errors.
◆ validMaxCappedDocs()
bool mongo::CollectionOptions::validMaxCappedDocs |
( |
long long * |
max | ) |
|
|
static |
- Parameters
-
max | in and out, will be adjusted |
- Returns
- if the value is valid at all
◆ autoIndexId
enum { ... } mongo::CollectionOptions::autoIndexId |
◆ capped
bool mongo::CollectionOptions::capped = false |
◆ cappedMaxDocs
long long mongo::CollectionOptions::cappedMaxDocs = 0 |
◆ cappedSize
long long mongo::CollectionOptions::cappedSize = 0 |
◆ collation
BSONObj mongo::CollectionOptions::collation |
◆ flags
◆ flagsSet
bool mongo::CollectionOptions::flagsSet = false |
◆ idIndex
BSONObj mongo::CollectionOptions::idIndex |
◆ indexOptionDefaults
BSONObj mongo::CollectionOptions::indexOptionDefaults |
◆ initialExtentSizes
std::vector<long long> mongo::CollectionOptions::initialExtentSizes |
◆ initialNumExtents
long long mongo::CollectionOptions::initialNumExtents = 0 |
◆ pipeline
BSONObj mongo::CollectionOptions::pipeline |
◆ storageEngine
BSONObj mongo::CollectionOptions::storageEngine |
◆ temp
bool mongo::CollectionOptions::temp = false |
◆ uuid
◆ validationAction
std::string mongo::CollectionOptions::validationAction |
◆ validationLevel
std::string mongo::CollectionOptions::validationLevel |
◆ validator
BSONObj mongo::CollectionOptions::validator |
◆ viewOn
std::string mongo::CollectionOptions::viewOn |
The documentation for this struct was generated from the following files: