#include <storage.h>

Public Types | |
| typedef boost::function< void(const ByteVec &)> | GetCallback |
| typedef boost::function< void(void)> | PutCallback |
Public Member Functions | |
| virtual void | get (const boost::filesystem::path &path, ByteVec &result) |
| virtual void | getAsync (const boost::filesystem::path &path, GetCallback callback)=0 |
| virtual void | getBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &results) |
| virtual std::string | getType ()=0 |
| virtual void | put (const boost::filesystem::path &path, const ByteVec &data) |
| virtual void | putAsync (const boost::filesystem::path &path, const ByteVec &data, PutCallback callback)=0 |
| virtual void | putBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &data) |
| virtual | ~Storage () |
Protected Member Functions | |
| Storage () | |
Private Member Functions | |
| void | getDataCb (boost::condition &get_condition, unsigned &remaining, const ByteVec &data_in, ByteVec &data) |
| void | putDataCb (boost::condition &put_condition, unsigned &remaining) |
| typedef boost::function<void(const ByteVec&)> megatree::Storage::GetCallback |
| typedef boost::function<void(void)> megatree::Storage::PutCallback |
| virtual megatree::Storage::~Storage | ( | ) | [inline, virtual] |
| megatree::Storage::Storage | ( | ) | [inline, protected] |
| virtual void megatree::Storage::get | ( | const boost::filesystem::path & | path, |
| ByteVec & | result | ||
| ) | [inline, virtual] |
Reimplemented in megatree::DiskStorage, and megatree::VizStorage.
| virtual void megatree::Storage::getAsync | ( | const boost::filesystem::path & | path, |
| GetCallback | callback | ||
| ) | [pure virtual] |
Implemented in megatree::HbaseStorage, megatree::DiskStorage, and megatree::VizStorage.
| virtual void megatree::Storage::getBatch | ( | const std::vector< boost::filesystem::path > & | paths, |
| std::vector< ByteVec > & | results | ||
| ) | [inline, virtual] |
Reimplemented in megatree::HbaseStorage, megatree::DiskStorage, and megatree::VizStorage.
| void megatree::Storage::getDataCb | ( | boost::condition & | get_condition, |
| unsigned & | remaining, | ||
| const ByteVec & | data_in, | ||
| ByteVec & | data | ||
| ) | [inline, private] |
| virtual std::string megatree::Storage::getType | ( | ) | [pure virtual] |
Implemented in megatree::HbaseStorage, megatree::DiskStorage, and megatree::VizStorage.
| virtual void megatree::Storage::put | ( | const boost::filesystem::path & | path, |
| const ByteVec & | data | ||
| ) | [inline, virtual] |
| virtual void megatree::Storage::putAsync | ( | const boost::filesystem::path & | path, |
| const ByteVec & | data, | ||
| PutCallback | callback | ||
| ) | [pure virtual] |
Implemented in megatree::HbaseStorage, megatree::VizStorage, and megatree::DiskStorage.
| virtual void megatree::Storage::putBatch | ( | const std::vector< boost::filesystem::path > & | paths, |
| std::vector< ByteVec > & | data | ||
| ) | [inline, virtual] |
Reimplemented in megatree::HbaseStorage, megatree::VizStorage, and megatree::DiskStorage.
| void megatree::Storage::putDataCb | ( | boost::condition & | put_condition, |
| unsigned & | remaining | ||
| ) | [inline, private] |