2014-12-09 17:45:33 +01:00
|
|
|
#include <blobstore/implementations/onblocks/BlobOnBlocks.h>
|
|
|
|
|
2015-01-22 23:37:03 +01:00
|
|
|
#include <blobstore/implementations/onblocks/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
|
|
|
}
|
|
|
|
|
2014-12-09 17:45:33 +01:00
|
|
|
}
|
|
|
|
}
|