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

Get rid of create() factory functions for accumulators and move callers onto constructors

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      It doesn't appear to be necessary to have both a public factory function and a public constructor for derived classes of AccumulatorState, so the interface could be simplified by removing the factory functions altogether and changing any callers to use the constructors instead. 

      The create() factory function is currently used in a template function here, and individual accumulators' factory functions may be used in other places as well. All of these callers will need to be updated to use the constructors. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            natalie.hill@mongodb.com Natalie Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: