diff options
Diffstat (limited to 'src/mongo/db/pipeline/document.h')
-rw-r--r-- | src/mongo/db/pipeline/document.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document.h b/src/mongo/db/pipeline/document.h index 77c04bafb3f..c50466089a4 100644 --- a/src/mongo/db/pipeline/document.h +++ b/src/mongo/db/pipeline/document.h @@ -142,6 +142,13 @@ namespace mongo { */ Document clone() const { return Document(storage().clone().get()); } + /// members for Sorter + struct SorterDeserializeSettings {}; // unused + void serializeForSorter(BufBuilder& buf) const; + static Document deserializeForSorter(BufReader& buf, const SorterDeserializeSettings&); + int memUsageForSorter() const { return getApproximateSize(); } + Document getOwned() const { return *this; } + // TEMP for compatibility with legacy intrusive_ptr<Document> Document& operator*() { return *this; } const Document& operator*() const { return *this; } |