diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-25 00:57:31 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-25 00:57:31 -0500 |
commit | 7b815a4a9801dfd7a6ff6ecbb4163160f8bee8fd (patch) | |
tree | 4410a0c2268292a2e49cae915c906551075aa79e /s/strategy.h | |
parent | dbbbdf47877886a65c5428f1a9f7578129687076 (diff) | |
download | mongo-7b815a4a9801dfd7a6ff6ecbb4163160f8bee8fd.tar.gz |
cursor code re-org
Diffstat (limited to 's/strategy.h')
-rw-r--r-- | s/strategy.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/s/strategy.h b/s/strategy.h index 7d73460f2a6..54c9627f4f4 100644 --- a/s/strategy.h +++ b/s/strategy.h @@ -19,38 +19,6 @@ namespace mongo { void insert( string server , const char * ns , const BSONObj& obj ); }; - - class ShardedCursor { - public: - ShardedCursor( QueryMessage& q ); - virtual ~ShardedCursor(); - - virtual bool more() = 0; - virtual BSONObj next() = 0; - - /** - * @return whether there is more data left - */ - bool sendNextBatch( Request& r ); - - protected: - auto_ptr<DBClientCursor> query( const string& server , int num = 0 , BSONObj extraFilter = emptyObj ); - - BSONObj concatQuery( const BSONObj& query , const BSONObj& extraFilter ); - BSONObj _concatFilter( const BSONObj& filter , const BSONObj& extraFilter ); - - string _ns; - int _options; - int _skip; - int _ntoreturn; - - BSONObj _query; - BSONObj _fields; - - long long _id; - - int _totalSent; - }; extern Strategy * SINGLE; extern Strategy * SHARDED; |