![]() |
Storage Engine API
|
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/server_options.h"
Go to the source code of this file.
Classes | |
class | mongo::StatusWith< T > |
Namespaces | |
mongo | |
Copyright (C) 2014 MongoDB Inc. | |
mongo::index_key_validate | |
Functions | |
Status | mongo::index_key_validate::validateKeyPattern (const BSONObj &key, IndexDescriptor::IndexVersion indexVersion) |
Checks if the key is valid for building an index according to the validation rules for the given index version. More... | |
StatusWith< BSONObj > | mongo::index_key_validate::validateIndexSpec (OperationContext *opCtx, const BSONObj &indexSpec, const NamespaceString &expectedNamespace, const ServerGlobalParams::FeatureCompatibility &featureCompatibility) |
Validates the index specification 'indexSpec' and returns an equivalent index specification that has any missing attributes filled in. More... | |
Status | mongo::index_key_validate::validateIdIndexSpec (const BSONObj &indexSpec) |
Performs additional validation for _id index specifications. More... | |
Status | mongo::index_key_validate::validateIndexSpecFieldNames (const BSONObj &indexSpec) |
Top-level index spec field names are validated here. More... | |
StatusWith< BSONObj > | mongo::index_key_validate::validateIndexSpecCollation (OperationContext *opCtx, const BSONObj &indexSpec, const CollatorInterface *defaultCollator) |
Validates the 'collation' field in the index specification 'indexSpec' and fills in the full collation spec. More... | |