summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/working_set.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-12-10 13:15:29 -0500
committerHari Khalsa <hkhalsa@10gen.com>2013-12-11 14:19:22 -0500
commit76e5458c48460de585bbde25c87bd4046c67198b (patch)
tree2f69fdd7463ee698646b06e37b3887974a166c9c /src/mongo/db/exec/working_set.h
parentbe7c5f961bd163cb315c561ebd5a47a3b54dcfe8 (diff)
downloadmongo-76e5458c48460de585bbde25c87bd4046c67198b.tar.gz
SERVER-10026 migrate geoNear to new exec via rewrite
Diffstat (limited to 'src/mongo/db/exec/working_set.h')
-rw-r--r--src/mongo/db/exec/working_set.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/exec/working_set.h b/src/mongo/db/exec/working_set.h
index c32cf8be121..9b47e4a5540 100644
--- a/src/mongo/db/exec/working_set.h
+++ b/src/mongo/db/exec/working_set.h
@@ -145,9 +145,20 @@ namespace mongo {
* What types of computed data can we have?
*/
enum WorkingSetComputedDataType {
+ // What's the score of the document retrieved from a $text query?
WSM_COMPUTED_TEXT_SCORE = 0,
+
+ // What's the distance from a geoNear query point to the document?
WSM_COMPUTED_GEO_DISTANCE = 1,
+
+ // The index key used to retrieve the document, for $returnKey query option.
WSM_INDEX_KEY = 2,
+
+ // What point (of several possible points) was used to compute the distance to the document
+ // via geoNear?
+ WSM_GEO_NEAR_POINT = 3,
+
+ // Must be last.
WSM_COMPUTED_NUM_TYPES,
};