diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-05-18 18:01:38 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-06-09 16:33:22 -0400 |
commit | 3b731debe162706cbbfabd9578bbb57ab5a7a7d8 (patch) | |
tree | 7b26f5541e5de0060bf75f5563b37cae5a246ee8 /src/mongo/db/exec/fetch.h | |
parent | f50d1d0b7df924926855badd3cd700653f75f0f8 (diff) | |
download | mongo-3b731debe162706cbbfabd9578bbb57ab5a7a7d8.tar.gz |
SERVER-16444 New API for navigating RecordStores
Diffstat (limited to 'src/mongo/db/exec/fetch.h')
-rw-r--r-- | src/mongo/db/exec/fetch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/exec/fetch.h b/src/mongo/db/exec/fetch.h index 18fbeedb3db..b43a38bb7eb 100644 --- a/src/mongo/db/exec/fetch.h +++ b/src/mongo/db/exec/fetch.h @@ -28,7 +28,7 @@ #pragma once -#include <boost/scoped_ptr.hpp> +#include <memory> #include "mongo/db/exec/plan_stage.h" #include "mongo/db/jsobj.h" @@ -37,6 +37,8 @@ namespace mongo { + class RecordCursor; + /** * This stage turns a RecordId into a BSONObj. * @@ -88,10 +90,12 @@ namespace mongo { // Collection which is used by this stage. Used to resolve record ids retrieved by child // stages. The lifetime of the collection must supersede that of the stage. const Collection* _collection; + // Used to fetch Records from _collection. + std::unique_ptr<RecordCursor> _cursor; // _ws is not owned by us. WorkingSet* _ws; - boost::scoped_ptr<PlanStage> _child; + std::unique_ptr<PlanStage> _child; // The filter is not owned by us. const MatchExpression* _filter; |