diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-07-16 15:21:19 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-07-23 12:26:07 -0400 |
commit | 2fcf4314964f566efa546d6ec9c53bfaf78c2972 (patch) | |
tree | 9cb19f8cfebaef12373953eb85b0a4fd3bc7ccd0 /src/mongo/db/exec/index_scan.h | |
parent | d065c380ffc76fef63cf2fe7bacc439134ab39eb (diff) | |
download | mongo-2fcf4314964f566efa546d6ec9c53bfaf78c2972.tar.gz |
SERVER-19456 Use final designators where appropriate in PlanStages
Diffstat (limited to 'src/mongo/db/exec/index_scan.h')
-rw-r--r-- | src/mongo/db/exec/index_scan.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/mongo/db/exec/index_scan.h b/src/mongo/db/exec/index_scan.h index 5ae2319800c..aae3d54ec4c 100644 --- a/src/mongo/db/exec/index_scan.h +++ b/src/mongo/db/exec/index_scan.h @@ -70,7 +70,7 @@ struct IndexScanParams { * * Sub-stage preconditions: None. Is a leaf and consumes no stage data. */ -class IndexScan : public PlanStage { +class IndexScan final : public PlanStage { public: /** * Keeps track of what this index scan is currently doing so that it @@ -95,23 +95,21 @@ public: WorkingSet* workingSet, const MatchExpression* filter); - virtual ~IndexScan() {} + StageState work(WorkingSetID* out) final; + bool isEOF() final; + void doSaveState() final; + void doRestoreState() final; + void doDetachFromOperationContext() final; + void doReattachToOperationContext(OperationContext* opCtx) final; + void doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type) final; - virtual StageState work(WorkingSetID* out); - virtual bool isEOF(); - virtual void doSaveState(); - virtual void doRestoreState(); - virtual void doDetachFromOperationContext(); - virtual void doReattachToOperationContext(OperationContext* opCtx); - virtual void doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type); - - virtual StageType stageType() const { + StageType stageType() const final { return STAGE_IXSCAN; } - virtual std::unique_ptr<PlanStageStats> getStats(); + std::unique_ptr<PlanStageStats> getStats() final; - virtual const SpecificStats* getSpecificStats() const; + const SpecificStats* getSpecificStats() const final; static const char* kStageType; |