diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-07-01 18:15:42 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-07-10 17:17:58 -0400 |
commit | 0e573d73f6bf7deea31e3f2c6076fe21a07effe0 (patch) | |
tree | a01cef281b9d892faa0dea42a36679feb7a24630 /src/mongo/db/pipeline/value.h | |
parent | 2e2a6fdffdba369a0594962267e5bc7bb47a3f3a (diff) | |
download | mongo-0e573d73f6bf7deea31e3f2c6076fe21a07effe0.tar.gz |
SERVER-9444 Use Sorter in DocumentSourceSort
For now external sorting is disabled, but this lays the groundwork to
enable it.
Diffstat (limited to 'src/mongo/db/pipeline/value.h')
-rw-r--r-- | src/mongo/db/pipeline/value.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/value.h b/src/mongo/db/pipeline/value.h index 86cb7fa570c..def84abefa6 100644 --- a/src/mongo/db/pipeline/value.h +++ b/src/mongo/db/pipeline/value.h @@ -234,6 +234,13 @@ namespace mongo { /// Call this after memcpying to update ref counts if needed void memcpyed() const { _storage.memcpyed(); } + /// members for Sorter + struct SorterDeserializeSettings {}; // unused + void serializeForSorter(BufBuilder& buf) const; + static Value deserializeForSorter(BufReader& buf, const SorterDeserializeSettings&); + int memUsageForSorter() const { return getApproximateSize(); } + Value getOwned() const { return *this; } + private: /** This is a "honeypot" to prevent unexpected implicit conversions to the accepted argument * types. bool is especially bad since without this it will accept any pointer. |