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

Maxdiff Histogram builder

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QO 2022-06-27, QO 2022-07-11, QO 2022-07-25, QO 2022-08-08, QO 2022-08-22, QO 2022-09-05, QO 2022-09-19, QO 2022-10-03, QE 2022-10-17

      Implement maxDiff, accepting a stream of BSON data and outputting a histogram.

      The class definition should look like the following:

      class MaxDiffBuilder

      { public: void push(BSONValue val); Histogram getHistogram(); }

      For the initial implementation, we are fine to use frequency as the metric to determine where to divide steps.

      Eventually we will want to test additional metrics, so it might be helpful to templatize on the metric function. This also has implications for merging, however, as most metrics don't combine as easily as simply adding the values together. 

            Assignee:
            joel.redman@mongodb.com Joel Redman (Inactive)
            Reporter:
            joel.redman@mongodb.com Joel Redman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: