10 #ifndef META_INDEX_CHUNK_HANDLER_H_
11 #define META_INDEX_CHUNK_HANDLER_H_
18 #include <unordered_set>
34 template <
class Index>
38 using index_pdata_type =
typename Index::index_pdata_type;
39 using primary_key_type =
typename index_pdata_type::primary_key_type;
40 using secondary_key_type =
typename index_pdata_type::secondary_key_type;
61 template <
class Container>
77 std::unordered_set<index_pdata_type>
pdata_;
83 const static uint64_t constexpr
max_size = 1024 * 1024 * 128;
106 uint32_t
size()
const;
129 using std::runtime_error::runtime_error;
137 void write_chunk(std::vector<index_pdata_type>& pdata);