小组成员:
曹可心-10223903406
朴祉燕-10224602413
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef LEVELDB_BLOB_FILE_H_
|
|
#define LEVELDB_BLOB_FILE_H_
|
|
|
|
#include <string>
|
|
#include "leveldb/status.h"
|
|
#include "leveldb/slice.h"
|
|
|
|
namespace leveldb {
|
|
|
|
class BlobFile {
|
|
public:
|
|
BlobFile(const std::string& filename);
|
|
~BlobFile();
|
|
|
|
// 写入键值对
|
|
Status Put(const Slice& key, const Slice& value);
|
|
|
|
private:
|
|
std::string filename_;
|
|
// 内部实现,例如文件指针或缓冲区
|
|
};
|
|
|
|
} // namespace leveldb
|
|
|
|
#endif // LEVELDB_BLOB_FILE_H_
|