summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/projection.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-09-23 10:42:41 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-09-23 19:28:10 -0400
commit44ae87438efc76040d93b039233d7f2ff4f46e3d (patch)
tree594ebd1e16c59e7a462cab61d0eab14046d9e181 /src/mongo/db/exec/projection.h
parent221b1d1c23cf66a6609e0e0c9ab63f23c0142b3a (diff)
downloadmongo-44ae87438efc76040d93b039233d7f2ff4f46e3d.tar.gz
SERVER-10471 covering and sort analysis. split projection parse from exec
Diffstat (limited to 'src/mongo/db/exec/projection.h')
-rw-r--r--src/mongo/db/exec/projection.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/exec/projection.h b/src/mongo/db/exec/projection.h
index ade2bbfab84..284c7e05956 100644
--- a/src/mongo/db/exec/projection.h
+++ b/src/mongo/db/exec/projection.h
@@ -30,9 +30,9 @@
#include "mongo/db/diskloc.h"
#include "mongo/db/exec/plan_stage.h"
-#include "mongo/db/exec/query_projection.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/matcher/expression.h"
+#include "mongo/db/query/parsed_projection.h"
namespace mongo {
@@ -41,7 +41,7 @@ namespace mongo {
*/
class ProjectionStage : public PlanStage {
public:
- ProjectionStage(QueryProjection* projection, WorkingSet* ws, PlanStage* child,
+ ProjectionStage(ParsedProjection* projection, WorkingSet* ws, PlanStage* child,
const MatchExpression* filter);
virtual ~ProjectionStage();
@@ -55,7 +55,8 @@ namespace mongo {
PlanStageStats* getStats();
private:
- scoped_ptr<QueryProjection> _projection;
+ // Not owned by us.
+ ParsedProjection* _projection;
// _ws is not owned by us.
WorkingSet* _ws;