![]() |
Storage Engine API
|
#include "mongo/platform/basic.h"
#include "mongo/db/catalog/index_key_validate.h"
#include <boost/optional.hpp>
#include <cmath>
#include <limits>
#include <set>
#include "mongo/base/status.h"
#include "mongo/base/status_with.h"
#include "mongo/db/field_ref.h"
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/index_names.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/matcher/expression_parser.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/query/collation/collator_factory_interface.h"
#include "mongo/db/service_context.h"
#include "mongo/util/fail_point_service.h"
#include "mongo/util/mongoutils/str.h"
#include "mongo/util/represent_as.h"
Namespaces | |
mongo | |
Copyright (C) 2014 MongoDB Inc. | |
mongo::index_key_validate | |
Typedefs | |
using | mongo::index_key_validate::IndexVersion = IndexDescriptor::IndexVersion |
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... | |