summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/skip.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-07-28 18:16:39 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-07-28 18:27:27 -0400
commitb66e993f1c742518d9b5e93b0d8a5f8255a4127c (patch)
tree55e6fed05333d2d37f34586726a342ed7f7dbc29 /src/mongo/db/exec/skip.h
parent314a22e93f283ab80e650618cbd3ed8babb8510f (diff)
downloadmongo-b66e993f1c742518d9b5e93b0d8a5f8255a4127c.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/exec/skip.h')
-rw-r--r--src/mongo/db/exec/skip.h62
1 files changed, 32 insertions, 30 deletions
diff --git a/src/mongo/db/exec/skip.h b/src/mongo/db/exec/skip.h
index b61f23a9c7f..832a1f88eb7 100644
--- a/src/mongo/db/exec/skip.h
+++ b/src/mongo/db/exec/skip.h
@@ -36,46 +36,48 @@
namespace mongo {
- /**
- * This stage implements skip functionality. It drops the first 'toSkip' results from its child
- * then returns the rest verbatim.
- *
- * Preconditions: None.
- */
- class SkipStage : public PlanStage {
- public:
- SkipStage(int toSkip, WorkingSet* ws, PlanStage* child);
- virtual ~SkipStage();
+/**
+ * This stage implements skip functionality. It drops the first 'toSkip' results from its child
+ * then returns the rest verbatim.
+ *
+ * Preconditions: None.
+ */
+class SkipStage : public PlanStage {
+public:
+ SkipStage(int toSkip, WorkingSet* ws, PlanStage* child);
+ virtual ~SkipStage();
- virtual bool isEOF();
- virtual StageState work(WorkingSetID* out);
+ 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 void saveState();
+ virtual void restoreState(OperationContext* opCtx);
+ virtual void invalidate(OperationContext* txn, const RecordId& dl, InvalidationType type);
- virtual std::vector<PlanStage*> getChildren() const;
+ virtual std::vector<PlanStage*> getChildren() const;
- virtual StageType stageType() const { return STAGE_SKIP; }
+ virtual StageType stageType() const {
+ return STAGE_SKIP;
+ }
- virtual PlanStageStats* getStats();
+ virtual PlanStageStats* getStats();
- virtual const CommonStats* getCommonStats();
+ virtual const CommonStats* getCommonStats();
- virtual const SpecificStats* getSpecificStats();
+ virtual const SpecificStats* getSpecificStats();
- static const char* kStageType;
+ static const char* kStageType;
- private:
- WorkingSet* _ws;
- boost::scoped_ptr<PlanStage> _child;
+private:
+ WorkingSet* _ws;
+ boost::scoped_ptr<PlanStage> _child;
- // We drop the first _toSkip results that we would have returned.
- int _toSkip;
+ // We drop the first _toSkip results that we would have returned.
+ int _toSkip;
- // Stats
- CommonStats _commonStats;
- SkipStats _specificStats;
- };
+ // Stats
+ CommonStats _commonStats;
+ SkipStats _specificStats;
+};
} // namespace mongo