summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/document_value/document_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/document_value/document_internal.h')
-rw-r--r--src/mongo/db/exec/document_value/document_internal.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/exec/document_value/document_internal.h b/src/mongo/db/exec/document_value/document_internal.h
index d7fb3b337d6..372130c3e68 100644
--- a/src/mongo/db/exec/document_value/document_internal.h
+++ b/src/mongo/db/exec/document_value/document_internal.h
@@ -296,8 +296,8 @@ public:
return _sd.size();
}
- inline void copyTo(char* dest, bool includeEndingNull) const {
- return _sd.copyTo(dest, includeEndingNull);
+ inline size_t copy(char* dest, size_t len) const {
+ return _sd.copy(dest, len);
}
constexpr const char* rawData() const noexcept {
@@ -385,6 +385,11 @@ public:
*/
Document shred() const;
+ /**
+ * Loads the whole document into cache.
+ */
+ void loadIntoCache() const;
+
static const DocumentStorage& emptyDoc() {
return kEmptyDoc;
}