libmoost
moost::kvds::KvdsTch Class Reference

*** This class is NOT thread safe *** More...

#include <kvds_tch_linux.hpp>

List of all members.

Public Types

typedef TCHDB * store_type

Public Member Functions

 KvdsTch ()
 ~KvdsTch ()
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 add (void const *pkey, size_t const ksize, void const *pval, size_t const vsize)
bool all (void const *pkey, size_t const ksize, void *pval, size_t &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

void assert_data_store_open () const
void throw_tcexception (int ecode, char const *msg="Unexpected error")
void set_next_itr ()

Private Attributes

store_type pdb_
bool bOpen_
void * pitr_
int pitr_size_

Detailed Description

*** This class is NOT thread safe ***

Definition at line 66 of file kvds_tch_linux.hpp.


Member Typedef Documentation

Definition at line 69 of file kvds_tch_linux.hpp.


Constructor & Destructor Documentation

Definition at line 71 of file kvds_tch_linux.hpp.

Definition at line 77 of file kvds_tch_linux.hpp.

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 178 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 187 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 125 of file kvds_tch_linux.hpp.

Here is the caller graph for this function:

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

Definition at line 237 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 110 of file kvds_tch_linux.hpp.

Here is the caller graph for this function:

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

Definition at line 231 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 297 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 223 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 279 of file kvds_tch_linux.hpp.

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

Definition at line 156 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

You can call this to get a refernce 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 122 of file kvds_tch_linux.hpp.

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

Definition at line 304 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 250 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 94 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 147 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

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

Definition at line 108 of file kvds_tch_linux.hpp.

void moost::kvds::KvdsTch::set_next_itr ( ) [inline, private]

Definition at line 139 of file kvds_tch_linux.hpp.

Here is the caller graph for this function:

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

Definition at line 284 of file kvds_tch_linux.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::kvds::KvdsTch::throw_tcexception ( int  ecode,
char const *  msg = "Unexpected error" 
) [inline, private]

Definition at line 130 of file kvds_tch_linux.hpp.

Here is the caller graph for this function:

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

Unused

Definition at line 215 of file kvds_tch_linux.hpp.

Here is the call graph for this function:


Member Data Documentation

Definition at line 314 of file kvds_tch_linux.hpp.

Definition at line 313 of file kvds_tch_linux.hpp.

void* moost::kvds::KvdsTch::pitr_ [private]

Definition at line 315 of file kvds_tch_linux.hpp.

Definition at line 316 of file kvds_tch_linux.hpp.


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