2015-02-17 00:40:34 +01:00
|
|
|
#include "BlobOnBlocks.h"
|
2014-12-09 17:45:33 +01:00
|
|
|
|
2015-02-17 00:40:34 +01:00
|
|
|
#include "datanodestore/DataNode.h"
|
2014-12-13 19:17:08 +01:00
|
|
|
|
2014-12-09 17:56:48 +01:00
|
|
|
using std::unique_ptr;
|
|
|
|
|
2014-12-09 17:45:33 +01:00
|
|
|
namespace blobstore {
|
|
|
|
namespace onblocks {
|
|
|
|
|
2014-12-13 19:17:08 +01:00
|
|
|
using datanodestore::DataNode;
|
2014-12-09 17:45:33 +01:00
|
|
|
|
2014-12-13 19:17:08 +01:00
|
|
|
BlobOnBlocks::BlobOnBlocks(unique_ptr<DataNode> rootnode)
|
|
|
|
: _rootnode(std::move(rootnode)) {
|
2014-12-09 17:56:48 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-12-13 19:17:08 +01:00
|
|
|
BlobOnBlocks::~BlobOnBlocks() {
|
2014-12-09 17:56:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
size_t BlobOnBlocks::size() const {
|
2015-01-22 23:37:03 +01:00
|
|
|
assert(false); //TODO Implement
|
|
|
|
//return _rootnode->numBytesInThisNode();
|
2014-12-09 17:56:48 +01:00
|
|
|
}
|
|
|
|
|
2015-01-28 01:02:32 +01:00
|
|
|
void BlobOnBlocks::flush() const {
|
|
|
|
_rootnode->flush();
|
|
|
|
}
|
|
|
|
|
2014-12-09 17:45:33 +01:00
|
|
|
}
|
|
|
|
}
|