Create LiteParsedDocumentSourceExtension stubs

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should implement a stub like the following to enable concurrent work:

      class LiteParsedDocumentSourceExtension : public LiteParsedDocumentSource {};
      
      class LiteParsedDocumentSourceExtensionDesugar : public LiteParsedDocumentSourceExtension {
         public:
            StringData stageName() const { return _stageName; }
            const BSONObj& originalStageBson() const { return _spec; }
      
            const std::vector<BSONObj>& getDesugaredPipeline() const {
               return _desugaredPipeline.get([this] { return getDesugaredBSONVec() });
            }
      
         protected:
            virtual std::vector<BSONObj> getDesugaredBSONVec() const = 0;
            std::string _stageName;
            BSONObj _spec;
      
         private:
            Deferred<std::vector<BSONObj>> _desugaredPipeline;
      }; 

            Assignee:
            Finley Lau
            Reporter:
            Finley Lau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: