#include "datanodestore/DataLeafNode.h" #include "datanodestore/DataNodeStore.h" #include "BlobStoreOnBlocks.h" #include "BlobOnBlocks.h" using std::unique_ptr; using std::make_unique; using blockstore::BlockStore; using blockstore::Key; namespace blobstore { namespace onblocks { using datanodestore::DataNodeStore; BlobStoreOnBlocks::BlobStoreOnBlocks(unique_ptr blockStore) : _nodes(make_unique(std::move(blockStore))) { } BlobStoreOnBlocks::~BlobStoreOnBlocks() { } unique_ptr BlobStoreOnBlocks::create() { return make_unique(_nodes->createNewLeafNode()); } unique_ptr BlobStoreOnBlocks::load(const Key &key) { return make_unique(_nodes->load(key)); } } }