小组成员: 曹可心-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.
 
 
 

25 lines
587 B

#ifndef STORAGE_LEVELDB_DB_VLOG_READER_H_
#define STORAGE_LEVELDB_DB_VLOG_READER_H_
#include <cstdint>
#include "leveldb/slice.h"
#include "leveldb/status.h"
#include "port/port.h"
namespace leveldb {
class SequentialFile;
namespace vlog {
class VReader {
public:
explicit VReader(SequentialFile* file);
~VReader() = default;
Status ReadRecord(uint64_t vfile_offset, std::string* record);
Status ReadKV(uint64_t vfile_offset, std::string* key ,std::string* val);
private:
SequentialFile* file_;
};
} // namespace vlog
}
#endif