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

Refactor LiteParsedQuery and CanonicalQuery::canonicalize()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.6
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query 14 (05/13/16)
    • Linked BF Score:
      0

      Description

      Make the following changes to the LiteParsedQuery interface:

      Expose LiteParsedQuery(NamespaceString nss) and validate().
      Delete makeAsOpQuery() and makeAsFindCmd().
      Create setters and getters for all members.

      Additionally, remove all overloads of CanonicalQuery::canonicalize() except:
      canonicalize(const QueryMessage&, const ExtensionsCallback&),
      canonicalize(LiteParsedQuery*, const ExtenstionsCallback&), and
      canonicalize(const CanonicalQuery&, MatchExpression* root, const ExtensionsCallback&).
      Callers of all other overloads should construct a LiteParsedQuery.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: