sparrow-ipc 0.2.0
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <cstdint>
#include <optional>
#include <string_view>
#include <sparrow/record_batch.hpp>
#include "sparrow_ipc/config/config.hpp"
Include dependency graph for utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sparrow_ipc
 
namespace  sparrow_ipc::utils
 

Functions

constexpr size_t sparrow_ipc::utils::align_to_8 (const size_t n)
 
SPARROW_IPC_API std::optional< std::string_view > sparrow_ipc::utils::get_substr_after_separator (std::string_view str, std::string_view sep)
 
SPARROW_IPC_API std::optional< int32_t > sparrow_ipc::utils::parse_to_int32 (std::string_view str)
 
SPARROW_IPC_API std::optional< int32_t > sparrow_ipc::utils::get_substr_as_int32 (std::string_view str, std::string_view sep)
 
SPARROW_IPC_API std::optional< std::tuple< int32_t, int32_t, std::optional< int32_t > > > sparrow_ipc::utils::parse_decimal_format (std::string_view format_str)
 
SPARROW_IPC_API std::vector< std::string_view > sparrow_ipc::utils::extract_words_after_colon (std::string_view str)
 
template<std::ranges::input_range R>
requires std::same_as<std::ranges::range_value_t<R>, sparrow::record_batch>
bool sparrow_ipc::utils::check_record_batches_consistency (const R &record_batches)
 Checks if all record batches in a collection have consistent structure.