sparrow-ipc 0.3.0
Loading...
Searching...
No Matches
serializer_reserve.hpp File Reference
#include <numeric>
#include <ranges>
#include <sparrow/record_batch.hpp>
#include "sparrow_ipc/compression.hpp"
#include "sparrow_ipc/dictionary_iteration.hpp"
#include "sparrow_ipc/dictionary_tracker.hpp"
#include "sparrow_ipc/serialize_utils.hpp"
Include dependency graph for serializer_reserve.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sparrow_ipc
 

Functions

template<std::ranges::input_range R>
requires std::same_as<std::ranges::range_value_t<R>, sparrow::record_batch>
std::size_t sparrow_ipc::calculate_serializer_reserve_size (const R &record_batches, std::size_t current_stream_size, bool schema_received, std::optional< CompressionType > compression, const dictionary_tracker &dict_tracker, std::optional< std::reference_wrapper< CompressionCache > > cache=std::nullopt)