db_impl.h 639 字节
Newer Older
X
Xu Peng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef VECENGINE_DB_IMPL_H_
#define VECENGINE_DB_IMPL_H_

#include "db.h"

namespace vecengine {

class Env;

class DBImpl : public DB {
public:
    DBImpl(const Options& options_, const std::string& name_);

X
Xu Peng 已提交
14 15 16 17
    virtual Status add_group(GroupOptions options_,
            const std::string& group_id_,
            std::string& gid_) override;

X
Xu Peng 已提交
18 19
    virtual ~DBImpl();
private:
X
Xu Peng 已提交
20 21 22 23

    Status meta_add_group(const std::string& group_id_);
    Status meta_add_group_file(const std::string& group_id_);

X
Xu Peng 已提交
24 25 26 27 28 29 30 31 32
    const _dbname;
    Env* const _env;
    const Options _options;

}; // DBImpl

} // namespace vecengine

#endif // VECENGINE_DB_IMPL_H_