diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-25 14:42:44 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-25 14:42:44 -0400 |
| commit | cf5f3bbb0cb58430ed68ad3ebfcefc009e553d71 (patch) | |
| tree | 4c17bc3169ee195c236cea9c9efda0aef7488e3c /include/util/types.h | |
| parent | 826c1fff5accbaa6b415acc176a5acbeb5f691b6 (diff) | |
| download | dynamic-extension-cf5f3bbb0cb58430ed68ad3ebfcefc009e553d71.tar.gz | |
Code reformatting
Diffstat (limited to 'include/util/types.h')
| -rw-r--r-- | include/util/types.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/util/types.h b/include/util/types.h index 64dc773..be04d05 100644 --- a/include/util/types.h +++ b/include/util/types.h @@ -20,8 +20,8 @@ #include <cassert> #include <cstdint> #include <cstdlib> -#include <vector> #include <memory> +#include <vector> namespace de { @@ -76,21 +76,18 @@ constexpr ShardID buffer_shid = {buffer_level_idx, all_shards_idx}; enum class ReconstructionType { Invalid, /* placeholder type */ - Flush, /* a flush of the buffer into L0 */ - Merge, /* the merging of shards in two seperate levels */ - Append, /* adding a shard directly to a level */ - Compact /* the merging of shards on one level */ + Flush, /* a flush of the buffer into L0 */ + Merge, /* the merging of shards in two seperate levels */ + Append, /* adding a shard directly to a level */ + Compact /* the merging of shards on one level */ }; - -template <typename ShardType> -struct reconstruction_results { +template <typename ShardType> struct reconstruction_results { std::shared_ptr<ShardType> new_shard; std::vector<std::pair<level_index, const ShardType *>> source_shards; size_t target_level; size_t reccnt; long runtime; - }; typedef struct ReconstructionTask { @@ -121,11 +118,14 @@ public: total_reccnt += reccnt; } - void add_reconstruction(level_index source, level_index target, - size_t reccnt, ReconstructionType type) { + void add_reconstruction(level_index source, level_index target, size_t reccnt, + ReconstructionType type) { if (type == ReconstructionType::Merge) { - m_tasks.push_back({{{source, all_shards_idx}, {target, all_shards_idx}}, target, reccnt, type}); + m_tasks.push_back({{{source, all_shards_idx}, {target, all_shards_idx}}, + target, + reccnt, + type}); } else { m_tasks.push_back({{{source, all_shards_idx}}, target, reccnt, type}); } |