ASAPCabinetFE
 
Loading...
Searching...
No Matches
asap_index_manager.h
Go to the documentation of this file.
1
11#ifndef ASAP_INDEX_MANAGER_H
12#define ASAP_INDEX_MANAGER_H
13
14#include "table_data.h"
15#include "itable_callbacks.h"
16#include "config/settings.h"
18#include <vector>
19
30public:
36 AsapIndexManager(const Settings& settings);
37
49 bool load(const Settings& settings, std::vector<TableData>& tables, LoadingProgress* progress = nullptr) override;
50
62 bool save(const Settings& settings, const std::vector<TableData>& tables, LoadingProgress* progress = nullptr) override;
63
76 std::vector<TableData> mergeTables(const Settings& settings, const std::vector<TableData>& newTables, LoadingProgress* progress = nullptr) override;
77
78private:
79 Settings settings_;
80};
81
82#endif // ASAP_INDEX_MANAGER_H
Manages loading, saving, and merging of ASAP index files for ASAPCabinetFE.
Definition asap_index_manager.h:29
bool save(const Settings &settings, const std::vector< TableData > &tables, LoadingProgress *progress=nullptr) override
Saves table data to the ASAP index file.
Definition asap_index_manager.cpp:157
bool load(const Settings &settings, std::vector< TableData > &tables, LoadingProgress *progress=nullptr) override
Loads table data from the ASAP index file.
Definition asap_index_manager.cpp:24
std::vector< TableData > mergeTables(const Settings &settings, const std::vector< TableData > &newTables, LoadingProgress *progress=nullptr) override
Merges new table data with existing index data.
Definition asap_index_manager.cpp:289
Interface for managing ASAP index file operations.
Definition itable_callbacks.h:26
Defines the ITableCallbacks interface for managing ASAP index files in ASAPCabinetFE.
Defines the LoadingProgress struct for tracking loading state in ASAPCabinetFE.
Tracks the loading progress state for ASAPCabinetFE.
Definition loading_progress.h:33
Definition settings.h:12
Defines the TableData struct for storing VPX table metadata and media paths.