libmoost
moost::kvds::KvdsKch Class Reference

#include <kvds_kch_linux.hpp>

List of all members.

Public Types

typedef kyotocabinet::HashDB store_type

Public Member Functions

 KvdsKch ()
 ~KvdsKch ()
void open (char const dsname[], bool newdb=false)
void save ()
void close ()
store_typeget_store ()
bool put (void const *pkey, size_t const ksize, void const *pval, size_t const vsize)
bool get (void const *pkey, size_t const ksize, void *pval, size_t &vsize)
bool all (void const *pkey, size_t const ksize, void *pval, size_t &vsize)
bool add (void const *pkey, size_t const ksize, void const *pval, size_t const vsize)
bool xst (void const *pkey, size_t const ksize)
bool del (void const *pkey, size_t const ksize)
bool clr ()
bool beg ()
bool nxt (void *pkey, size_t &ksize)
bool end ()
bool siz (void const *pkey, size_t const ksize, size_t &vsize)
bool cnt (boost::uint64_t &cnt)
bool nil (bool &isnil)

Private Member Functions

bool set_cursor ()
void release_cursor ()
void throw_kch_exception (const std::string &msg) const
void throw_kch_exception () const
void assert_data_store_open () const

Private Attributes

store_type db_
bool bOpen_
kyotocabinet::HashDB::Cursor * pcursor_

Detailed Description

Definition at line 66 of file kvds_kch_linux.hpp.


Member Typedef Documentation

typedef kyotocabinet::HashDB moost::kvds::KvdsKch::store_type

Definition at line 69 of file kvds_kch_linux.hpp.


Constructor & Destructor Documentation

Definition at line 71 of file kvds_kch_linux.hpp.

Definition at line 75 of file kvds_kch_linux.hpp.

Here is the call graph for this function:


Member Function Documentation

bool moost::kvds::KvdsKch::add ( void const *  pkey,
size_t const  ksize,
void const *  pval,
size_t const  vsize 
) [inline]

Definition at line 213 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

bool moost::kvds::KvdsKch::all ( void const *  pkey,
size_t const  ksize,
void *  pval,
size_t &  vsize 
) [inline]

Definition at line 185 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

void moost::kvds::KvdsKch::assert_data_store_open ( ) const [inline, private]

Definition at line 149 of file kvds_kch_linux.hpp.

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::beg ( ) [inline]

Definition at line 244 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

void moost::kvds::KvdsKch::close ( ) [inline]

Definition at line 101 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::clr ( ) [inline]

Definition at line 238 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

bool moost::kvds::KvdsKch::cnt ( boost::uint64_t &  cnt) [inline]

Definition at line 297 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::del ( void const *  pkey,
size_t const  ksize 
) [inline]

Definition at line 230 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

bool moost::kvds::KvdsKch::end ( ) [inline]

Definition at line 281 of file kvds_kch_linux.hpp.

bool moost::kvds::KvdsKch::get ( void const *  pkey,
size_t const  ksize,
void *  pval,
size_t &  vsize 
) [inline]

Definition at line 165 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

You can call this to get a reference to the underlying store. Useful if you need to do post construction configuration. For example if using a google hash or spare map you need to specify the delete/erase keys

Definition at line 116 of file kvds_kch_linux.hpp.

bool moost::kvds::KvdsKch::nil ( bool &  isnil) [inline]

Definition at line 304 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

bool moost::kvds::KvdsKch::nxt ( void *  pkey,
size_t &  ksize 
) [inline]

Definition at line 250 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

void moost::kvds::KvdsKch::open ( char const  dsname[],
bool  newdb = false 
) [inline]

Definition at line 84 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::put ( void const *  pkey,
size_t const  ksize,
void const *  pval,
size_t const  vsize 
) [inline]

Definition at line 156 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

void moost::kvds::KvdsKch::release_cursor ( ) [inline, private]

Definition at line 133 of file kvds_kch_linux.hpp.

Here is the caller graph for this function:

void moost::kvds::KvdsKch::save ( ) [inline]

Definition at line 99 of file kvds_kch_linux.hpp.

bool moost::kvds::KvdsKch::set_cursor ( ) [inline, private]

Definition at line 119 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::siz ( void const *  pkey,
size_t const  ksize,
size_t &  vsize 
) [inline]

Definition at line 286 of file kvds_kch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::kvds::KvdsKch::throw_kch_exception ( const std::string &  msg) const [inline, private]

Definition at line 139 of file kvds_kch_linux.hpp.

void moost::kvds::KvdsKch::throw_kch_exception ( ) const [inline, private]

Definition at line 144 of file kvds_kch_linux.hpp.

Here is the caller graph for this function:

bool moost::kvds::KvdsKch::xst ( void const *  pkey,
size_t const  ksize 
) [inline]

Unused

Definition at line 222 of file kvds_kch_linux.hpp.

Here is the call graph for this function:


Member Data Documentation

Definition at line 314 of file kvds_kch_linux.hpp.

Definition at line 313 of file kvds_kch_linux.hpp.

kyotocabinet::HashDB::Cursor* moost::kvds::KvdsKch::pcursor_ [private]

Definition at line 315 of file kvds_kch_linux.hpp.


The documentation for this class was generated from the following file: