This repository was archived by the owner on Oct 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to be committed: modified: CMakeLists.txt modified: README.md modified: src/db/db.cpp modified: src/db/db.h modified: src/db/db_impl.cpp modified: src/db/db_impl.h modified: src/db/status.h modified: src/filter/bloom_filter.cpp modified: src/filter/bloom_filter.h modified: src/filter/filter_policy.h new file: src/sst_parser/header.h new file: src/sst_parser/index_block.h new file: src/sst_parser/restart_point.h new file: src/sst_parser/sst_parser.cpp new file: src/sst_parser/sst_parser.h
- Loading branch information
1 parent
ffe43ab
commit 375f991
Showing
15 changed files
with
439 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Created by qianyy on 2023/1/30. | ||
// | ||
#include "db/offset_info.h" | ||
|
||
#ifndef SMALLKV_HEADER_H | ||
#define SMALLKV_HEADER_H | ||
namespace smallkv { | ||
// SST中Header的定义 | ||
struct Header { | ||
OffsetInfo MetaBlock_OffsetInfo; | ||
OffsetInfo IndexBlock_OffsetInfo; | ||
}; | ||
} | ||
#endif //SMALLKV_HEADER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Created by qianyy on 2023/1/31. | ||
// | ||
#include <stdint.h> | ||
#include <string> | ||
#include "db/offset_info.h" | ||
|
||
#ifndef SMALLKV_INDEX_BLOCK_H | ||
#define SMALLKV_INDEX_BLOCK_H | ||
namespace smallkv { | ||
struct IndexBlock { | ||
std::string _shortest_key; // 保证 _shortest_key >= 对应的DataBlock中的最大key | ||
OffsetInfo offsetInfo; // 对应DataBlock的offset信息 | ||
}; | ||
} | ||
#endif //SMALLKV_INDEX_BLOCK_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Created by qianyy on 2023/2/4. | ||
// | ||
#include "db/offset_info.h" | ||
#include <string> | ||
|
||
#ifndef SMALLKV_RESTART_POINT_H | ||
#define SMALLKV_RESTART_POINT_H | ||
namespace smallkv { | ||
struct RestartPoint { | ||
int record_num = 0; | ||
OffsetInfo rp_offset; | ||
std::string fullkey; | ||
}; | ||
} | ||
#endif //SMALLKV_RESTART_POINT_H |
Oops, something went wrong.