summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/fetch.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-07-08 12:40:15 -0400
committerMathias Stearn <mathias@10gen.com>2015-07-16 14:37:02 -0400
commitc832bc753c29f91597b75fa02c0d9019c3c20b0f (patch)
tree5324f665212988a354ff6ba254b239dc594d2c7d /src/mongo/db/exec/fetch.h
parentf64b6c596f9dcd1bae7011a3230b517386baa255 (diff)
downloadmongo-c832bc753c29f91597b75fa02c0d9019c3c20b0f.tar.gz
SERVER-17364 Unify handling of child stages into PlanStage base class
This is prep for adding more methods that need to propagate to children.
Diffstat (limited to 'src/mongo/db/exec/fetch.h')
-rw-r--r--src/mongo/db/exec/fetch.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mongo/db/exec/fetch.h b/src/mongo/db/exec/fetch.h
index 9a0ff81c021..edfd6c35a5f 100644
--- a/src/mongo/db/exec/fetch.h
+++ b/src/mongo/db/exec/fetch.h
@@ -60,11 +60,9 @@ public:
virtual bool isEOF();
virtual StageState work(WorkingSetID* out);
- virtual void saveState();
- virtual void restoreState(OperationContext* opCtx);
- virtual void invalidate(OperationContext* txn, const RecordId& dl, InvalidationType type);
-
- virtual std::vector<PlanStage*> getChildren() const;
+ virtual void doSaveState();
+ virtual void doRestoreState(OperationContext* opCtx);
+ virtual void doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type);
virtual StageType stageType() const {
return STAGE_FETCH;
@@ -72,8 +70,6 @@ public:
std::unique_ptr<PlanStageStats> getStats();
- virtual const CommonStats* getCommonStats() const;
-
virtual const SpecificStats* getSpecificStats() const;
static const char* kStageType;
@@ -95,7 +91,6 @@ private:
// _ws is not owned by us.
WorkingSet* _ws;
- std::unique_ptr<PlanStage> _child;
// The filter is not owned by us.
const MatchExpression* _filter;
@@ -104,7 +99,6 @@ private:
WorkingSetID _idRetrying;
// Stats
- CommonStats _commonStats;
FetchStats _specificStats;
};