作者: 韩晨旭 10225101440 李畅 10225102463
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.
 
 

30 lines
557 B

#ifndef VTABLE_READER_H
#define VTABLE_READER_H
#include <memory>
#include "leveldb/env.h"
#include "leveldb/options.h"
#include "leveldb/slice.h"
#include "leveldb/status.h"
#include "util/coding.h"
#include "vtable_format.h"
namespace leveldb {
class VTableReader {
public:
Status Open(const Options& options, std::string fname);
Status Get(const VTableHandle& handle,
VTableRecord* record) const ;
private:
Options options_;
RandomAccessFile* file_{nullptr};
};
} // namespace leveldb
#endif //VTABLE_READER_H