summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/count_scan.h
diff options
context:
space:
mode:
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;