2014-12-09 17:45:33 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
|
|
|
|
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
|
|
|
|
|
2015-02-17 00:40:34 +01:00
|
|
|
#include "../../interface/Blob.h"
|
2014-12-09 17:56:48 +01:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2014-12-09 17:45:33 +01:00
|
|
|
namespace blobstore {
|
|
|
|
namespace onblocks {
|
2014-12-13 19:17:08 +01:00
|
|
|
namespace datanodestore {
|
|
|
|
class DataNode;
|
|
|
|
}
|
2014-12-09 17:45:33 +01:00
|
|
|
|
2014-12-09 17:56:48 +01:00
|
|
|
class BlobOnBlocks: public Blob {
|
2014-12-09 17:45:33 +01:00
|
|
|
public:
|
2014-12-13 19:17:08 +01:00
|
|
|
BlobOnBlocks(std::unique_ptr<datanodestore::DataNode> rootnode);
|
2014-12-09 17:45:33 +01:00
|
|
|
virtual ~BlobOnBlocks();
|
2014-12-09 17:56:48 +01:00
|
|
|
|
|
|
|
size_t size() const override;
|
|
|
|
|
2015-01-28 01:02:32 +01:00
|
|
|
void flush() const override;
|
|
|
|
|
2014-12-09 17:56:48 +01:00
|
|
|
private:
|
2014-12-13 19:17:08 +01:00
|
|
|
std::unique_ptr<datanodestore::DataNode> _rootnode;
|
2014-12-09 17:45:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|