diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-10-21 20:40:01 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-10-21 20:40:01 +0000 |
commit | 2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f (patch) | |
tree | ee83ca7fa800f497d1e7f340c5d1737545235870 /cpp/src/Freeze/IndexI.h | |
parent | Fixed code generation bug. (diff) | |
download | ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.bz2 ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.xz ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.zip |
Added Freeze evictor indices
Diffstat (limited to 'cpp/src/Freeze/IndexI.h')
-rw-r--r-- | cpp/src/Freeze/IndexI.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/cpp/src/Freeze/IndexI.h b/cpp/src/Freeze/IndexI.h new file mode 100644 index 00000000000..ca59018ac4b --- /dev/null +++ b/cpp/src/Freeze/IndexI.h @@ -0,0 +1,61 @@ +// ********************************************************************** +// +// Copyright (c) 2003 +// ZeroC, Inc. +// Billerica, MA, USA +// +// All Rights Reserved. +// +// Ice is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 2 as published by +// the Free Software Foundation. +// +// ********************************************************************** + +#ifndef FREEZE_INDEX_I_H +#define FREEZE_INDEX_I_H + +#include <Ice/Ice.h> +#include <Freeze/Index.h> +#include <Freeze/EvictorI.h> + +namespace Freeze +{ + +class IndexI +{ +public: + + IndexI(Index&, const std::string&); + + std::vector<Ice::Identity> + untypedFindFirst(const Freeze::Key&, Ice::Int) const; + + std::vector<Ice::Identity> + untypedFind(const Freeze::Key&) const; + + Ice::Int + untypedCount(const Freeze::Key&) const; + + void + associate(EvictorI* evictor, DbTxn* txn, bool createDb, bool populateIndex); + + int + secondaryKeyCreate(Db*, const Dbt*, const Dbt*, Dbt*); + + void + close(); + + + +private: + + Index& _index; + std::string _name; + std::auto_ptr<Db> _db; + EvictorI* _evictor; +}; + +} +#endif + |