summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_cursor_manager.h
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2018-09-24 16:27:58 -0400
committerTed Tuckman <ted.tuckman@mongodb.com>2018-10-04 11:22:05 -0400
commitc589abf31b748d0f13e710d8d59394b65ab6891d (patch)
tree637288a6b560f8906bc0dd6ff3bf1b55eb709b79 /src/mongo/s/query/cluster_cursor_manager.h
parentf9436146f64ad7caa2ce525c1d75a85f918d68c0 (diff)
downloadmongo-c589abf31b748d0f13e710d8d59394b65ab6891d.tar.gz
SERVER-37005 Add fields to GenericCursor
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_manager.h')
-rw-r--r--src/mongo/s/query/cluster_cursor_manager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.h b/src/mongo/s/query/cluster_cursor_manager.h
index 6c1b0d10c92..f74e8a4ba97 100644
--- a/src/mongo/s/query/cluster_cursor_manager.h
+++ b/src/mongo/s/query/cluster_cursor_manager.h
@@ -213,6 +213,31 @@ public:
long long getNumReturnedSoFar() const;
/**
+ * Returns the creation date of the cursor.
+ */
+ Date_t getCreatedDate() const;
+
+ /**
+ * Returns the time the cursor was last used.
+ */
+ Date_t getLastUseDate() const;
+
+ /**
+ * Set the cursor's lastUseDate to the given time.
+ */
+ void setLastUseDate(Date_t now);
+
+ /**
+ * Increment the number of batches returned by this cursor.
+ */
+ void incNBatches();
+
+ /**
+ * Get the number of batches returned by this cursor.
+ */
+ long long getNBatches() const;
+
+ /**
* Returns a GenericCursor version of the pinned cursor.
*/
GenericCursor toGenericCursor() const;