summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/stage_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/stage_types.h')
-rw-r--r--src/mongo/db/query/stage_types.h102
1 files changed, 51 insertions, 51 deletions
diff --git a/src/mongo/db/query/stage_types.h b/src/mongo/db/query/stage_types.h
index 273da805283..5a4981dc81b 100644
--- a/src/mongo/db/query/stage_types.h
+++ b/src/mongo/db/query/stage_types.h
@@ -30,72 +30,72 @@
namespace mongo {
- /**
- * These map to implementations of the PlanStage interface, all of which live in db/exec/
- */
- enum StageType {
- STAGE_AND_HASH,
- STAGE_AND_SORTED,
- STAGE_CACHED_PLAN,
- STAGE_COLLSCAN,
+/**
+ * These map to implementations of the PlanStage interface, all of which live in db/exec/
+ */
+enum StageType {
+ STAGE_AND_HASH,
+ STAGE_AND_SORTED,
+ STAGE_CACHED_PLAN,
+ STAGE_COLLSCAN,
- // This stage sits at the root of the query tree and counts up the number of results
- // returned by its child.
- STAGE_COUNT,
+ // This stage sits at the root of the query tree and counts up the number of results
+ // returned by its child.
+ STAGE_COUNT,
- // If we're running a .count(), the query is fully covered by one ixscan, and the ixscan is
- // from one key to another, we can just skip through the keys without bothering to examine
- // them.
- STAGE_COUNT_SCAN,
+ // If we're running a .count(), the query is fully covered by one ixscan, and the ixscan is
+ // from one key to another, we can just skip through the keys without bothering to examine
+ // them.
+ STAGE_COUNT_SCAN,
- STAGE_DELETE,
+ STAGE_DELETE,
- // If we're running a distinct, we only care about one value for each key. The distinct
- // scan stage is an ixscan with some key-skipping behvaior that only distinct uses.
- STAGE_DISTINCT_SCAN,
+ // If we're running a distinct, we only care about one value for each key. The distinct
+ // scan stage is an ixscan with some key-skipping behvaior that only distinct uses.
+ STAGE_DISTINCT_SCAN,
- // Dummy stage used for receiving notifications of deletions during chunk migration.
- STAGE_NOTIFY_DELETE,
+ // Dummy stage used for receiving notifications of deletions during chunk migration.
+ STAGE_NOTIFY_DELETE,
- STAGE_EOF,
+ STAGE_EOF,
- // This is more of an "internal-only" stage where we try to keep docs that were mutated
- // during query execution.
- STAGE_KEEP_MUTATIONS,
+ // This is more of an "internal-only" stage where we try to keep docs that were mutated
+ // during query execution.
+ STAGE_KEEP_MUTATIONS,
- STAGE_FETCH,
+ STAGE_FETCH,
- // The two $geoNear impls imply a fetch+sort and must be stages.
- STAGE_GEO_NEAR_2D,
- STAGE_GEO_NEAR_2DSPHERE,
+ // The two $geoNear impls imply a fetch+sort and must be stages.
+ STAGE_GEO_NEAR_2D,
+ STAGE_GEO_NEAR_2DSPHERE,
- STAGE_GROUP,
+ STAGE_GROUP,
- STAGE_IDHACK,
- STAGE_IXSCAN,
- STAGE_LIMIT,
+ STAGE_IDHACK,
+ STAGE_IXSCAN,
+ STAGE_LIMIT,
- // Implements parallelCollectionScan.
- STAGE_MULTI_ITERATOR,
+ // Implements parallelCollectionScan.
+ STAGE_MULTI_ITERATOR,
- STAGE_MULTI_PLAN,
- STAGE_OPLOG_START,
- STAGE_OR,
- STAGE_PROJECTION,
+ STAGE_MULTI_PLAN,
+ STAGE_OPLOG_START,
+ STAGE_OR,
+ STAGE_PROJECTION,
- // Stage for running aggregation pipelines.
- STAGE_PIPELINE_PROXY,
+ // Stage for running aggregation pipelines.
+ STAGE_PIPELINE_PROXY,
- STAGE_QUEUED_DATA,
- STAGE_SHARDING_FILTER,
- STAGE_SKIP,
- STAGE_SORT,
- STAGE_SORT_MERGE,
- STAGE_SUBPLAN,
- STAGE_TEXT,
- STAGE_UNKNOWN,
+ STAGE_QUEUED_DATA,
+ STAGE_SHARDING_FILTER,
+ STAGE_SKIP,
+ STAGE_SORT,
+ STAGE_SORT_MERGE,
+ STAGE_SUBPLAN,
+ STAGE_TEXT,
+ STAGE_UNKNOWN,
- STAGE_UPDATE,
- };
+ STAGE_UPDATE,
+};
} // namespace mongo