Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23078

Move MultikeyPaths using declaration to its own header file

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • None
    • Fully Compatible
    • Query 11 (03/14/16)

      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.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: