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

Implement CollatorInterfaceMock

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.3
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 11 (03/14/16)
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      This will allow us write unit tests for planning with respect to a collation, and will break the dependency between many collation subtasks and vendorizing ICU (SERVER-22371).

      The CollatorInterface has two basic virtual methods:

      • getComparisonKey() which takes a string and returns a CollationKey.
      • compare() which takes two strings to compare with respect to the collation and returns -1, 0, or 1.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: