diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-04-09 23:21:15 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-04-09 23:21:15 +0000 |
commit | 0dcad3e212de5e8560e57c1a3d2f04909ebe7513 (patch) | |
tree | 412366d59303c0c4a90d281e50f78c39775db31d /cpp/src/Freeze/IndexI.h | |
parent | Each request now has its own set of object factories. (diff) | |
download | ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.bz2 ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.xz ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.zip |
Updated Freeze Evictor with new facets
Diffstat (limited to 'cpp/src/Freeze/IndexI.h')
-rw-r--r-- | cpp/src/Freeze/IndexI.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/cpp/src/Freeze/IndexI.h b/cpp/src/Freeze/IndexI.h index ca59018ac4b..b531d636e85 100644 --- a/cpp/src/Freeze/IndexI.h +++ b/cpp/src/Freeze/IndexI.h @@ -22,23 +22,22 @@ namespace Freeze { +class ObjectStore; + class IndexI { public: - IndexI(Index&, const std::string&); + IndexI(Index&); - std::vector<Ice::Identity> - untypedFindFirst(const Freeze::Key&, Ice::Int) const; + std::vector<Ice::Identity> untypedFindFirst(const Key&, Ice::Int) const; - std::vector<Ice::Identity> - untypedFind(const Freeze::Key&) const; + std::vector<Ice::Identity> untypedFind(const Key&) const; - Ice::Int - untypedCount(const Freeze::Key&) const; + Ice::Int untypedCount(const Key&) const; void - associate(EvictorI* evictor, DbTxn* txn, bool createDb, bool populateIndex); + associate(ObjectStore* store, DbTxn* txn, bool createDb, bool populateIndex); int secondaryKeyCreate(Db*, const Dbt*, const Dbt*, Dbt*); @@ -46,14 +45,14 @@ public: void close(); - - private: + + Index& _index; - std::string _name; + std::string _filename; std::auto_ptr<Db> _db; - EvictorI* _evictor; + ObjectStore* _store; }; } |