8#include <sparrow/record_batch.hpp>
48 std::optional<std::reference_wrapper<const sparrow::record_batch>>
get_dictionary(int64_t
id)
const;
56 [[nodiscard]]
bool contains(int64_t
id)
const noexcept;
68 [[nodiscard]]
size_t size() const noexcept ;
71 std::map<int64_t, sparrow::record_batch> m_dictionaries;
Caches dictionaries during deserialization.
std::optional< std::reference_wrapper< const sparrow::record_batch > > get_dictionary(int64_t id) const
Retrieve a cached dictionary.
void clear() noexcept
Clear all cached dictionaries.
void store_dictionary(int64_t id, sparrow::record_batch batch, bool is_delta)
Store or update a dictionary.
size_t size() const noexcept
Get the number of cached dictionaries.
bool contains(int64_t id) const noexcept
Check if a dictionary is cached.