GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::dht< KeyType, ValueType > Class Template Reference

#include <graphlab/rpc/dht.hpp>

List of all members.

Public Types

typedef boost::unordered_map
< size_t, ValueType > 
storage_type

Public Member Functions

 dht (distributed_control &dc)
procid_t owner (const KeyType &key) const
std::pair< bool, ValueType > get (const KeyType &key) const
request_future< std::pair
< bool, ValueType > > 
get_future (const KeyType &key) const
void set (const KeyType &key, const ValueType &newval)
void print_stats () const
void clear ()

Detailed Description

template<typename KeyType, typename ValueType>
class graphlab::dht< KeyType, ValueType >

Implements a very rudimentary distributed key value store.

Definition at line 39 of file dht.hpp.


Member Function Documentation

template<typename KeyType, typename ValueType>
void graphlab::dht< KeyType, ValueType >::clear ( )
inline

Must be called by all machines simultaneously

Definition at line 147 of file dht.hpp.

template<typename KeyType, typename ValueType>
std::pair<bool, ValueType> graphlab::dht< KeyType, ValueType >::get ( const KeyType &  key) const
inline

gets the value associated with a key. Returns (true, Value) if the entry is available. Returns (false, undefined) otherwise.

Definition at line 67 of file dht.hpp.

template<typename KeyType, typename ValueType>
request_future<std::pair<bool, ValueType> > graphlab::dht< KeyType, ValueType >::get_future ( const KeyType &  key) const
inline

gets the value associated with a key. Returns (true, Value) if the entry is available. Returns (false, undefined) otherwise.

Definition at line 94 of file dht.hpp.

template<typename KeyType, typename ValueType>
procid_t graphlab::dht< KeyType, ValueType >::owner ( const KeyType &  key) const
inline

Get the owner of the key

Definition at line 58 of file dht.hpp.

template<typename KeyType, typename ValueType>
void graphlab::dht< KeyType, ValueType >::set ( const KeyType &  key,
const ValueType &  newval 
)
inline

Sets the newval to be the value associated with the key

Definition at line 122 of file dht.hpp.


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