[SERVER-23078] Move MultikeyPaths using declaration to its own header file Created: 11/Mar/16  Updated: 14/Apr/16  Resolved: 14/Mar/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying
Affects Version/s: None
Fix Version/s: 3.3.4

Type: Task Priority: Trivial - P5
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-22399 Extend IndexEntry to contain path-lev... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 11 (03/14/16)
Participants:

 Description   

The using declaration added as a member to the IndexEntry struct

// A vector with size equal to the number of elements in the index key pattern. Each element in
// the vector is an ordered set of positions (starting at 0) into the corresponding indexed
// field that represent what prefixes of the indexed field cause the index to be multikey.
//
// For example, with the index {'a.b': 1, 'a.c': 1} where the paths "a" and "a.b" cause the
// index to be multikey, we'd have a std::vector<std::set<size_t>>{{0U, 1U}, {0U}}.
using MultikeyPaths = std::vector<std::set<size_t>>;

would be useful to reference in the BtreeKeyGenerator, IndexAccessMethod, and IndexDescriptor classes. Since it isn't specific to the IndexEntry code, we should move it to its own header file called mongo/db/index/multikey_paths.h.



 Comments   
Comment by Githook User [ 14/Mar/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-23078 Move MultikeyPaths using declaration to its own file.
Branch: master
https://github.com/mongodb/mongo/commit/03918a5cd5314421c72a4aa83b35fff4951c4789

Generated at Thu Feb 08 04:02:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.