33 #include <boost/optional.hpp> 35 #include "mongo/base/status.h" 36 #include "mongo/db/jsobj.h" 37 #include "mongo/util/uuid.h" 44 class CollatorFactoryInterface;
80 void appendBSON(BSONObjBuilder* builder)
const;
97 CollatorFactoryInterface* collatorFactory)
const;
bool createTimestampSafeUniqueIndex
Definition: collection_options.cpp:46
BSONObj collation
Definition: collection_options.h:149
std::string validationAction
Definition: collection_options.h:145
Definition: collection_options.h:120
Definition: collection_options.h:127
Definition: collection_options.h:121
Definition: collection_options.h:57
long long initialNumExtents
Definition: collection_options.h:111
void setNoIdIndex()
Definition: collection_options.h:115
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
BSONObj pipeline
Definition: collection_options.h:156
OperationContext Database StringData BSONObj CollectionOptions::ParseKind bool const BSONObj &idIndex Status
Definition: database_impl.cpp:956
BSONObj validator
Definition: collection_options.h:144
Definition: collection_options.h:68
BSONObj storageEngine
Definition: collection_options.h:135
bool matchesStorageOptions(const CollectionOptions &other, CollatorFactoryInterface *collatorFactory) const
Returns true if given options matches to this.
Definition: collection_options.cpp:349
long long cappedMaxDocs
Definition: collection_options.h:108
Definition: collection_options.h:126
UUID CollectionUUID
A CollectionUUID is a 128-bit unique identifier, per RFC 4122, v4.
Definition: collection_options.h:53
BSONObj idIndex
Definition: collection_options.h:141
Status validateForStorage() const
Confirms that collection options can be converted to BSON and back without errors.
Definition: collection_options.cpp:109
void appendBSON(BSONObjBuilder *builder) const
Definition: collection_options.cpp:285
Status parse(const BSONObj &obj, ParseKind kind=parseForCommand)
Parses the "options" subfield of the collection info object.
Definition: collection_options.cpp:113
Definition: collection_options.h:68
long long cappedSize
Definition: collection_options.h:107
boost::optional< CollectionUUID > OptionalCollectionUUID
Definition: collection_options.h:55
ParseKind
The 'uuid' member is a collection property stored in the catalog with user-settable options...
Definition: collection_options.h:68
std::vector< long long > initialExtentSizes
Definition: collection_options.h:112
std::string viewOn
Definition: collection_options.h:154
bool capped
Definition: collection_options.h:106
static bool validMaxCappedDocs(long long *max)
Definition: collection_options.cpp:53
bool temp
Definition: collection_options.h:132
int flags
Definition: collection_options.h:129
Definition: collection_options.h:119
std::string validationLevel
Definition: collection_options.h:146
UserFlags
Definition: collection_options.h:125
BSONObj indexOptionDefaults
Definition: collection_options.h:138
enum mongo::CollectionOptions::@19 autoIndexId
BSONObj toBSON() const
Definition: collection_options.cpp:279
bool flagsSet
Definition: collection_options.h:130
bool isView() const
Returns true if the options indicate the namespace is a view.
Definition: collection_options.cpp:105
OptionalCollectionUUID uuid
Definition: collection_options.h:104