summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/count_scan.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-07-16 15:21:19 -0400
committerMathias Stearn <mathias@10gen.com>2015-07-23 12:26:07 -0400
commit2fcf4314964f566efa546d6ec9c53bfaf78c2972 (patch)
tree9cb19f8cfebaef12373953eb85b0a4fd3bc7ccd0 /src/mongo/db/exec/count_scan.h
parentd065c380ffc76fef63cf2fe7bacc439134ab39eb (diff)
downloadmongo-2fcf4314964f566efa546d6ec9c53bfaf78c2972.tar.gz
SERVER-19456 Use final designators where appropriate in PlanStages
Diffstat (limited to 'src/mongo/db/exec/count_scan.h')
-rw-r--r--src/mongo/db/exec/count_scan.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mongo/db/exec/count_scan.h b/src/mongo/db/exec/count_scan.h
index dbbd85c5715..f7f65700134 100644
--- a/src/mongo/db/exec/count_scan.h
+++ b/src/mongo/db/exec/count_scan.h
@@ -64,25 +64,25 @@ struct CountScanParams {
* Only created through the getExecutorCount path, as count is the only operation that doesn't
* care about its data.
*/
-class CountScan : public PlanStage {
+class CountScan final : public PlanStage {
public:
CountScan(OperationContext* txn, const CountScanParams& params, WorkingSet* workingSet);
- 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);
+ 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 StageType stageType() const {
+ StageType stageType() const final {
return STAGE_COUNT_SCAN;
}
- 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;