17 #ifndef INSERT_DATA_LOADER_H_
18 #define INSERT_DATA_LOADER_H_
20 #include "../Catalog/Catalog.h"
23 namespace Fragmenter_Namespace {
32 const size_t leaf_idx,
36 const size_t leaf_idx,
79 const size_t leaf_idx,
82 const size_t leaf_idx,
85 int tableId)
override;
87 int tableId)
override;
void insertChunks(const Catalog_Namespace::SessionInfo &session_info, const InsertChunks &insert_chunks)
virtual ~InsertConnector()=default
std::shared_mutex current_leaf_index_mutex_
virtual size_t leafCount()=0
virtual void insertDataToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const size_t leaf_idx, Fragmenter_Namespace::InsertData &insert_data)=0
void insertData(const Catalog_Namespace::SessionInfo &session_info, InsertData &insert_data)
size_t leafCount() override
void checkpoint(const Catalog_Namespace::SessionInfo &parent_session_info, int tableId) override
size_t current_leaf_index_
void insertDataToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const size_t leaf_idx, Fragmenter_Namespace::InsertData &insert_data) override
virtual void checkpoint(const Catalog_Namespace::SessionInfo &parent_session_info, int tableId)=0
void insertChunksToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const size_t leaf_idx, const Fragmenter_Namespace::InsertChunks &insert_chunks) override
void rollback(const Catalog_Namespace::SessionInfo &parent_session_info, int tableId) override
size_t getLeafCount() const
The data to be inserted using the fragment manager.
virtual void rollback(const Catalog_Namespace::SessionInfo &parent_session_info, int tableId)=0
std::shared_timed_mutex shared_mutex
InsertDataLoader(InsertConnector &connector)
virtual void insertChunksToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const size_t leaf_idx, const Fragmenter_Namespace::InsertChunks &insert_chunks)=0
InsertConnector & connector_